bootstrap-table-treegrid.js 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($$4) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($$4);
  8. function _classCallCheck(instance, Constructor) {
  9. if (!(instance instanceof Constructor)) {
  10. throw new TypeError("Cannot call a class as a function");
  11. }
  12. }
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. Object.defineProperty(Constructor, "prototype", {
  26. writable: false
  27. });
  28. return Constructor;
  29. }
  30. function _inherits(subClass, superClass) {
  31. if (typeof superClass !== "function" && superClass !== null) {
  32. throw new TypeError("Super expression must either be null or a function");
  33. }
  34. subClass.prototype = Object.create(superClass && superClass.prototype, {
  35. constructor: {
  36. value: subClass,
  37. writable: true,
  38. configurable: true
  39. }
  40. });
  41. Object.defineProperty(subClass, "prototype", {
  42. writable: false
  43. });
  44. if (superClass) _setPrototypeOf(subClass, superClass);
  45. }
  46. function _getPrototypeOf(o) {
  47. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  48. return o.__proto__ || Object.getPrototypeOf(o);
  49. };
  50. return _getPrototypeOf(o);
  51. }
  52. function _setPrototypeOf(o, p) {
  53. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  54. o.__proto__ = p;
  55. return o;
  56. };
  57. return _setPrototypeOf(o, p);
  58. }
  59. function _isNativeReflectConstruct() {
  60. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  61. if (Reflect.construct.sham) return false;
  62. if (typeof Proxy === "function") return true;
  63. try {
  64. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  65. return true;
  66. } catch (e) {
  67. return false;
  68. }
  69. }
  70. function _assertThisInitialized(self) {
  71. if (self === void 0) {
  72. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  73. }
  74. return self;
  75. }
  76. function _possibleConstructorReturn(self, call) {
  77. if (call && (typeof call === "object" || typeof call === "function")) {
  78. return call;
  79. } else if (call !== void 0) {
  80. throw new TypeError("Derived constructors may only return object or undefined");
  81. }
  82. return _assertThisInitialized(self);
  83. }
  84. function _createSuper(Derived) {
  85. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  86. return function _createSuperInternal() {
  87. var Super = _getPrototypeOf(Derived),
  88. result;
  89. if (hasNativeReflectConstruct) {
  90. var NewTarget = _getPrototypeOf(this).constructor;
  91. result = Reflect.construct(Super, arguments, NewTarget);
  92. } else {
  93. result = Super.apply(this, arguments);
  94. }
  95. return _possibleConstructorReturn(this, result);
  96. };
  97. }
  98. function _superPropBase(object, property) {
  99. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  100. object = _getPrototypeOf(object);
  101. if (object === null) break;
  102. }
  103. return object;
  104. }
  105. function _get() {
  106. if (typeof Reflect !== "undefined" && Reflect.get) {
  107. _get = Reflect.get.bind();
  108. } else {
  109. _get = function _get(target, property, receiver) {
  110. var base = _superPropBase(target, property);
  111. if (!base) return;
  112. var desc = Object.getOwnPropertyDescriptor(base, property);
  113. if (desc.get) {
  114. return desc.get.call(arguments.length < 3 ? target : receiver);
  115. }
  116. return desc.value;
  117. };
  118. }
  119. return _get.apply(this, arguments);
  120. }
  121. function _unsupportedIterableToArray(o, minLen) {
  122. if (!o) return;
  123. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  124. var n = Object.prototype.toString.call(o).slice(8, -1);
  125. if (n === "Object" && o.constructor) n = o.constructor.name;
  126. if (n === "Map" || n === "Set") return Array.from(o);
  127. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  128. }
  129. function _arrayLikeToArray(arr, len) {
  130. if (len == null || len > arr.length) len = arr.length;
  131. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  132. return arr2;
  133. }
  134. function _createForOfIteratorHelper(o, allowArrayLike) {
  135. var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  136. if (!it) {
  137. if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
  138. if (it) o = it;
  139. var i = 0;
  140. var F = function () {};
  141. return {
  142. s: F,
  143. n: function () {
  144. if (i >= o.length) return {
  145. done: true
  146. };
  147. return {
  148. done: false,
  149. value: o[i++]
  150. };
  151. },
  152. e: function (e) {
  153. throw e;
  154. },
  155. f: F
  156. };
  157. }
  158. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  159. }
  160. var normalCompletion = true,
  161. didErr = false,
  162. err;
  163. return {
  164. s: function () {
  165. it = it.call(o);
  166. },
  167. n: function () {
  168. var step = it.next();
  169. normalCompletion = step.done;
  170. return step;
  171. },
  172. e: function (e) {
  173. didErr = true;
  174. err = e;
  175. },
  176. f: function () {
  177. try {
  178. if (!normalCompletion && it.return != null) it.return();
  179. } finally {
  180. if (didErr) throw err;
  181. }
  182. }
  183. };
  184. }
  185. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  186. var check = function (it) {
  187. return it && it.Math == Math && it;
  188. };
  189. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  190. var global$b =
  191. // eslint-disable-next-line es-x/no-global-this -- safe
  192. check(typeof globalThis == 'object' && globalThis) ||
  193. check(typeof window == 'object' && window) ||
  194. // eslint-disable-next-line no-restricted-globals -- safe
  195. check(typeof self == 'object' && self) ||
  196. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  197. // eslint-disable-next-line no-new-func -- fallback
  198. (function () { return this; })() || Function('return this')();
  199. var objectGetOwnPropertyDescriptor = {};
  200. var fails$d = function (exec) {
  201. try {
  202. return !!exec();
  203. } catch (error) {
  204. return true;
  205. }
  206. };
  207. var fails$c = fails$d;
  208. // Detect IE8's incomplete defineProperty implementation
  209. var descriptors = !fails$c(function () {
  210. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  211. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  212. });
  213. var fails$b = fails$d;
  214. var functionBindNative = !fails$b(function () {
  215. // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
  216. var test = (function () { /* empty */ }).bind();
  217. // eslint-disable-next-line no-prototype-builtins -- safe
  218. return typeof test != 'function' || test.hasOwnProperty('prototype');
  219. });
  220. var NATIVE_BIND$2 = functionBindNative;
  221. var call$4 = Function.prototype.call;
  222. var functionCall = NATIVE_BIND$2 ? call$4.bind(call$4) : function () {
  223. return call$4.apply(call$4, arguments);
  224. };
  225. var objectPropertyIsEnumerable = {};
  226. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  227. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  228. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  229. // Nashorn ~ JDK8 bug
  230. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  231. // `Object.prototype.propertyIsEnumerable` method implementation
  232. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  233. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  234. var descriptor = getOwnPropertyDescriptor$1(this, V);
  235. return !!descriptor && descriptor.enumerable;
  236. } : $propertyIsEnumerable;
  237. var createPropertyDescriptor$3 = function (bitmap, value) {
  238. return {
  239. enumerable: !(bitmap & 1),
  240. configurable: !(bitmap & 2),
  241. writable: !(bitmap & 4),
  242. value: value
  243. };
  244. };
  245. var NATIVE_BIND$1 = functionBindNative;
  246. var FunctionPrototype$1 = Function.prototype;
  247. var bind$2 = FunctionPrototype$1.bind;
  248. var call$3 = FunctionPrototype$1.call;
  249. var uncurryThis$f = NATIVE_BIND$1 && bind$2.bind(call$3, call$3);
  250. var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
  251. return fn && uncurryThis$f(fn);
  252. } : function (fn) {
  253. return fn && function () {
  254. return call$3.apply(fn, arguments);
  255. };
  256. };
  257. var uncurryThis$e = functionUncurryThis;
  258. var toString$5 = uncurryThis$e({}.toString);
  259. var stringSlice = uncurryThis$e(''.slice);
  260. var classofRaw$1 = function (it) {
  261. return stringSlice(toString$5(it), 8, -1);
  262. };
  263. var uncurryThis$d = functionUncurryThis;
  264. var fails$a = fails$d;
  265. var classof$5 = classofRaw$1;
  266. var $Object$3 = Object;
  267. var split = uncurryThis$d(''.split);
  268. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  269. var indexedObject = fails$a(function () {
  270. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  271. // eslint-disable-next-line no-prototype-builtins -- safe
  272. return !$Object$3('z').propertyIsEnumerable(0);
  273. }) ? function (it) {
  274. return classof$5(it) == 'String' ? split(it, '') : $Object$3(it);
  275. } : $Object$3;
  276. var $TypeError$6 = TypeError;
  277. // `RequireObjectCoercible` abstract operation
  278. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  279. var requireObjectCoercible$3 = function (it) {
  280. if (it == undefined) throw $TypeError$6("Can't call method on " + it);
  281. return it;
  282. };
  283. // toObject with fallback for non-array-like ES3 strings
  284. var IndexedObject$2 = indexedObject;
  285. var requireObjectCoercible$2 = requireObjectCoercible$3;
  286. var toIndexedObject$4 = function (it) {
  287. return IndexedObject$2(requireObjectCoercible$2(it));
  288. };
  289. // `IsCallable` abstract operation
  290. // https://tc39.es/ecma262/#sec-iscallable
  291. var isCallable$c = function (argument) {
  292. return typeof argument == 'function';
  293. };
  294. var isCallable$b = isCallable$c;
  295. var isObject$7 = function (it) {
  296. return typeof it == 'object' ? it !== null : isCallable$b(it);
  297. };
  298. var global$a = global$b;
  299. var isCallable$a = isCallable$c;
  300. var aFunction = function (argument) {
  301. return isCallable$a(argument) ? argument : undefined;
  302. };
  303. var getBuiltIn$4 = function (namespace, method) {
  304. return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
  305. };
  306. var uncurryThis$c = functionUncurryThis;
  307. var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
  308. var getBuiltIn$3 = getBuiltIn$4;
  309. var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
  310. var global$9 = global$b;
  311. var userAgent = engineUserAgent;
  312. var process = global$9.process;
  313. var Deno = global$9.Deno;
  314. var versions = process && process.versions || Deno && Deno.version;
  315. var v8 = versions && versions.v8;
  316. var match, version;
  317. if (v8) {
  318. match = v8.split('.');
  319. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  320. // but their correct versions are not interesting for us
  321. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  322. }
  323. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  324. // so check `userAgent` even if `.v8` exists, but 0
  325. if (!version && userAgent) {
  326. match = userAgent.match(/Edge\/(\d+)/);
  327. if (!match || match[1] >= 74) {
  328. match = userAgent.match(/Chrome\/(\d+)/);
  329. if (match) version = +match[1];
  330. }
  331. }
  332. var engineV8Version = version;
  333. /* eslint-disable es-x/no-symbol -- required for testing */
  334. var V8_VERSION$2 = engineV8Version;
  335. var fails$9 = fails$d;
  336. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
  337. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
  338. var symbol = Symbol();
  339. // Chrome 38 Symbol has incorrect toString conversion
  340. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  341. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  342. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  343. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  344. });
  345. /* eslint-disable es-x/no-symbol -- required for testing */
  346. var NATIVE_SYMBOL$1 = nativeSymbol;
  347. var useSymbolAsUid = NATIVE_SYMBOL$1
  348. && !Symbol.sham
  349. && typeof Symbol.iterator == 'symbol';
  350. var getBuiltIn$2 = getBuiltIn$4;
  351. var isCallable$9 = isCallable$c;
  352. var isPrototypeOf = objectIsPrototypeOf;
  353. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  354. var $Object$2 = Object;
  355. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  356. return typeof it == 'symbol';
  357. } : function (it) {
  358. var $Symbol = getBuiltIn$2('Symbol');
  359. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  360. };
  361. var $String$2 = String;
  362. var tryToString$1 = function (argument) {
  363. try {
  364. return $String$2(argument);
  365. } catch (error) {
  366. return 'Object';
  367. }
  368. };
  369. var isCallable$8 = isCallable$c;
  370. var tryToString = tryToString$1;
  371. var $TypeError$5 = TypeError;
  372. // `Assert: IsCallable(argument) is true`
  373. var aCallable$2 = function (argument) {
  374. if (isCallable$8(argument)) return argument;
  375. throw $TypeError$5(tryToString(argument) + ' is not a function');
  376. };
  377. var aCallable$1 = aCallable$2;
  378. // `GetMethod` abstract operation
  379. // https://tc39.es/ecma262/#sec-getmethod
  380. var getMethod$1 = function (V, P) {
  381. var func = V[P];
  382. return func == null ? undefined : aCallable$1(func);
  383. };
  384. var call$2 = functionCall;
  385. var isCallable$7 = isCallable$c;
  386. var isObject$6 = isObject$7;
  387. var $TypeError$4 = TypeError;
  388. // `OrdinaryToPrimitive` abstract operation
  389. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  390. var ordinaryToPrimitive$1 = function (input, pref) {
  391. var fn, val;
  392. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  393. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
  394. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  395. throw $TypeError$4("Can't convert object to primitive value");
  396. };
  397. var shared$3 = {exports: {}};
  398. var global$8 = global$b;
  399. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  400. var defineProperty$1 = Object.defineProperty;
  401. var defineGlobalProperty$3 = function (key, value) {
  402. try {
  403. defineProperty$1(global$8, key, { value: value, configurable: true, writable: true });
  404. } catch (error) {
  405. global$8[key] = value;
  406. } return value;
  407. };
  408. var global$7 = global$b;
  409. var defineGlobalProperty$2 = defineGlobalProperty$3;
  410. var SHARED = '__core-js_shared__';
  411. var store$3 = global$7[SHARED] || defineGlobalProperty$2(SHARED, {});
  412. var sharedStore = store$3;
  413. var store$2 = sharedStore;
  414. (shared$3.exports = function (key, value) {
  415. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  416. })('versions', []).push({
  417. version: '3.22.8',
  418. mode: 'global',
  419. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  420. license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
  421. source: 'https://github.com/zloirock/core-js'
  422. });
  423. var requireObjectCoercible$1 = requireObjectCoercible$3;
  424. var $Object$1 = Object;
  425. // `ToObject` abstract operation
  426. // https://tc39.es/ecma262/#sec-toobject
  427. var toObject$3 = function (argument) {
  428. return $Object$1(requireObjectCoercible$1(argument));
  429. };
  430. var uncurryThis$b = functionUncurryThis;
  431. var toObject$2 = toObject$3;
  432. var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
  433. // `HasOwnProperty` abstract operation
  434. // https://tc39.es/ecma262/#sec-hasownproperty
  435. // eslint-disable-next-line es-x/no-object-hasown -- safe
  436. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  437. return hasOwnProperty(toObject$2(it), key);
  438. };
  439. var uncurryThis$a = functionUncurryThis;
  440. var id = 0;
  441. var postfix = Math.random();
  442. var toString$4 = uncurryThis$a(1.0.toString);
  443. var uid$2 = function (key) {
  444. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
  445. };
  446. var global$6 = global$b;
  447. var shared$2 = shared$3.exports;
  448. var hasOwn$6 = hasOwnProperty_1;
  449. var uid$1 = uid$2;
  450. var NATIVE_SYMBOL = nativeSymbol;
  451. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  452. var WellKnownSymbolsStore = shared$2('wks');
  453. var Symbol$2 = global$6.Symbol;
  454. var symbolFor = Symbol$2 && Symbol$2['for'];
  455. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
  456. var wellKnownSymbol$6 = function (name) {
  457. if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
  458. var description = 'Symbol.' + name;
  459. if (NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)) {
  460. WellKnownSymbolsStore[name] = Symbol$2[name];
  461. } else if (USE_SYMBOL_AS_UID && symbolFor) {
  462. WellKnownSymbolsStore[name] = symbolFor(description);
  463. } else {
  464. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  465. }
  466. } return WellKnownSymbolsStore[name];
  467. };
  468. var call$1 = functionCall;
  469. var isObject$5 = isObject$7;
  470. var isSymbol$1 = isSymbol$2;
  471. var getMethod = getMethod$1;
  472. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  473. var wellKnownSymbol$5 = wellKnownSymbol$6;
  474. var $TypeError$3 = TypeError;
  475. var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
  476. // `ToPrimitive` abstract operation
  477. // https://tc39.es/ecma262/#sec-toprimitive
  478. var toPrimitive$1 = function (input, pref) {
  479. if (!isObject$5(input) || isSymbol$1(input)) return input;
  480. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  481. var result;
  482. if (exoticToPrim) {
  483. if (pref === undefined) pref = 'default';
  484. result = call$1(exoticToPrim, input, pref);
  485. if (!isObject$5(result) || isSymbol$1(result)) return result;
  486. throw $TypeError$3("Can't convert object to primitive value");
  487. }
  488. if (pref === undefined) pref = 'number';
  489. return ordinaryToPrimitive(input, pref);
  490. };
  491. var toPrimitive = toPrimitive$1;
  492. var isSymbol = isSymbol$2;
  493. // `ToPropertyKey` abstract operation
  494. // https://tc39.es/ecma262/#sec-topropertykey
  495. var toPropertyKey$3 = function (argument) {
  496. var key = toPrimitive(argument, 'string');
  497. return isSymbol(key) ? key : key + '';
  498. };
  499. var global$5 = global$b;
  500. var isObject$4 = isObject$7;
  501. var document = global$5.document;
  502. // typeof document.createElement is 'object' in old IE
  503. var EXISTS$1 = isObject$4(document) && isObject$4(document.createElement);
  504. var documentCreateElement = function (it) {
  505. return EXISTS$1 ? document.createElement(it) : {};
  506. };
  507. var DESCRIPTORS$6 = descriptors;
  508. var fails$8 = fails$d;
  509. var createElement = documentCreateElement;
  510. // Thanks to IE8 for its funny defineProperty
  511. var ie8DomDefine = !DESCRIPTORS$6 && !fails$8(function () {
  512. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  513. return Object.defineProperty(createElement('div'), 'a', {
  514. get: function () { return 7; }
  515. }).a != 7;
  516. });
  517. var DESCRIPTORS$5 = descriptors;
  518. var call = functionCall;
  519. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  520. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  521. var toIndexedObject$3 = toIndexedObject$4;
  522. var toPropertyKey$2 = toPropertyKey$3;
  523. var hasOwn$5 = hasOwnProperty_1;
  524. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  525. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  526. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  527. // `Object.getOwnPropertyDescriptor` method
  528. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  529. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  530. O = toIndexedObject$3(O);
  531. P = toPropertyKey$2(P);
  532. if (IE8_DOM_DEFINE$1) try {
  533. return $getOwnPropertyDescriptor$1(O, P);
  534. } catch (error) { /* empty */ }
  535. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  536. };
  537. var objectDefineProperty = {};
  538. var DESCRIPTORS$4 = descriptors;
  539. var fails$7 = fails$d;
  540. // V8 ~ Chrome 36-
  541. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  542. var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$7(function () {
  543. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  544. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  545. value: 42,
  546. writable: false
  547. }).prototype != 42;
  548. });
  549. var isObject$3 = isObject$7;
  550. var $String$1 = String;
  551. var $TypeError$2 = TypeError;
  552. // `Assert: Type(argument) is Object`
  553. var anObject$2 = function (argument) {
  554. if (isObject$3(argument)) return argument;
  555. throw $TypeError$2($String$1(argument) + ' is not an object');
  556. };
  557. var DESCRIPTORS$3 = descriptors;
  558. var IE8_DOM_DEFINE = ie8DomDefine;
  559. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  560. var anObject$1 = anObject$2;
  561. var toPropertyKey$1 = toPropertyKey$3;
  562. var $TypeError$1 = TypeError;
  563. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  564. var $defineProperty = Object.defineProperty;
  565. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  566. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  567. var ENUMERABLE = 'enumerable';
  568. var CONFIGURABLE$1 = 'configurable';
  569. var WRITABLE = 'writable';
  570. // `Object.defineProperty` method
  571. // https://tc39.es/ecma262/#sec-object.defineproperty
  572. objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  573. anObject$1(O);
  574. P = toPropertyKey$1(P);
  575. anObject$1(Attributes);
  576. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  577. var current = $getOwnPropertyDescriptor(O, P);
  578. if (current && current[WRITABLE]) {
  579. O[P] = Attributes.value;
  580. Attributes = {
  581. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  582. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  583. writable: false
  584. };
  585. }
  586. } return $defineProperty(O, P, Attributes);
  587. } : $defineProperty : function defineProperty(O, P, Attributes) {
  588. anObject$1(O);
  589. P = toPropertyKey$1(P);
  590. anObject$1(Attributes);
  591. if (IE8_DOM_DEFINE) try {
  592. return $defineProperty(O, P, Attributes);
  593. } catch (error) { /* empty */ }
  594. if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
  595. if ('value' in Attributes) O[P] = Attributes.value;
  596. return O;
  597. };
  598. var DESCRIPTORS$2 = descriptors;
  599. var definePropertyModule$2 = objectDefineProperty;
  600. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  601. var createNonEnumerableProperty$3 = DESCRIPTORS$2 ? function (object, key, value) {
  602. return definePropertyModule$2.f(object, key, createPropertyDescriptor$1(1, value));
  603. } : function (object, key, value) {
  604. object[key] = value;
  605. return object;
  606. };
  607. var makeBuiltIn$2 = {exports: {}};
  608. var DESCRIPTORS$1 = descriptors;
  609. var hasOwn$4 = hasOwnProperty_1;
  610. var FunctionPrototype = Function.prototype;
  611. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  612. var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
  613. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  614. // additional protection from minified / mangled / dropped function names
  615. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  616. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
  617. var functionName = {
  618. EXISTS: EXISTS,
  619. PROPER: PROPER,
  620. CONFIGURABLE: CONFIGURABLE
  621. };
  622. var uncurryThis$9 = functionUncurryThis;
  623. var isCallable$6 = isCallable$c;
  624. var store$1 = sharedStore;
  625. var functionToString = uncurryThis$9(Function.toString);
  626. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  627. if (!isCallable$6(store$1.inspectSource)) {
  628. store$1.inspectSource = function (it) {
  629. return functionToString(it);
  630. };
  631. }
  632. var inspectSource$3 = store$1.inspectSource;
  633. var global$4 = global$b;
  634. var isCallable$5 = isCallable$c;
  635. var inspectSource$2 = inspectSource$3;
  636. var WeakMap$1 = global$4.WeakMap;
  637. var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
  638. var shared$1 = shared$3.exports;
  639. var uid = uid$2;
  640. var keys = shared$1('keys');
  641. var sharedKey$1 = function (key) {
  642. return keys[key] || (keys[key] = uid(key));
  643. };
  644. var hiddenKeys$3 = {};
  645. var NATIVE_WEAK_MAP = nativeWeakMap;
  646. var global$3 = global$b;
  647. var uncurryThis$8 = functionUncurryThis;
  648. var isObject$2 = isObject$7;
  649. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  650. var hasOwn$3 = hasOwnProperty_1;
  651. var shared = sharedStore;
  652. var sharedKey = sharedKey$1;
  653. var hiddenKeys$2 = hiddenKeys$3;
  654. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  655. var TypeError$1 = global$3.TypeError;
  656. var WeakMap = global$3.WeakMap;
  657. var set, get, has;
  658. var enforce = function (it) {
  659. return has(it) ? get(it) : set(it, {});
  660. };
  661. var getterFor = function (TYPE) {
  662. return function (it) {
  663. var state;
  664. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  665. throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  666. } return state;
  667. };
  668. };
  669. if (NATIVE_WEAK_MAP || shared.state) {
  670. var store = shared.state || (shared.state = new WeakMap());
  671. var wmget = uncurryThis$8(store.get);
  672. var wmhas = uncurryThis$8(store.has);
  673. var wmset = uncurryThis$8(store.set);
  674. set = function (it, metadata) {
  675. if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  676. metadata.facade = it;
  677. wmset(store, it, metadata);
  678. return metadata;
  679. };
  680. get = function (it) {
  681. return wmget(store, it) || {};
  682. };
  683. has = function (it) {
  684. return wmhas(store, it);
  685. };
  686. } else {
  687. var STATE = sharedKey('state');
  688. hiddenKeys$2[STATE] = true;
  689. set = function (it, metadata) {
  690. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  691. metadata.facade = it;
  692. createNonEnumerableProperty$2(it, STATE, metadata);
  693. return metadata;
  694. };
  695. get = function (it) {
  696. return hasOwn$3(it, STATE) ? it[STATE] : {};
  697. };
  698. has = function (it) {
  699. return hasOwn$3(it, STATE);
  700. };
  701. }
  702. var internalState = {
  703. set: set,
  704. get: get,
  705. has: has,
  706. enforce: enforce,
  707. getterFor: getterFor
  708. };
  709. var fails$6 = fails$d;
  710. var isCallable$4 = isCallable$c;
  711. var hasOwn$2 = hasOwnProperty_1;
  712. var DESCRIPTORS = descriptors;
  713. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  714. var inspectSource$1 = inspectSource$3;
  715. var InternalStateModule = internalState;
  716. var enforceInternalState = InternalStateModule.enforce;
  717. var getInternalState = InternalStateModule.get;
  718. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  719. var defineProperty = Object.defineProperty;
  720. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$6(function () {
  721. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  722. });
  723. var TEMPLATE = String(String).split('String');
  724. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  725. if (String(name).slice(0, 7) === 'Symbol(') {
  726. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  727. }
  728. if (options && options.getter) name = 'get ' + name;
  729. if (options && options.setter) name = 'set ' + name;
  730. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  731. defineProperty(value, 'name', { value: name, configurable: true });
  732. }
  733. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  734. defineProperty(value, 'length', { value: options.arity });
  735. }
  736. try {
  737. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  738. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  739. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  740. } else if (value.prototype) value.prototype = undefined;
  741. } catch (error) { /* empty */ }
  742. var state = enforceInternalState(value);
  743. if (!hasOwn$2(state, 'source')) {
  744. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  745. } return value;
  746. };
  747. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  748. // eslint-disable-next-line no-extend-native -- required
  749. Function.prototype.toString = makeBuiltIn$1(function toString() {
  750. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  751. }, 'toString');
  752. var isCallable$3 = isCallable$c;
  753. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  754. var makeBuiltIn = makeBuiltIn$2.exports;
  755. var defineGlobalProperty$1 = defineGlobalProperty$3;
  756. var defineBuiltIn$2 = function (O, key, value, options) {
  757. if (!options) options = {};
  758. var simple = options.enumerable;
  759. var name = options.name !== undefined ? options.name : key;
  760. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  761. if (options.global) {
  762. if (simple) O[key] = value;
  763. else defineGlobalProperty$1(key, value);
  764. } else {
  765. if (!options.unsafe) delete O[key];
  766. else if (O[key]) simple = true;
  767. if (simple) O[key] = value;
  768. else createNonEnumerableProperty$1(O, key, value);
  769. } return O;
  770. };
  771. var objectGetOwnPropertyNames = {};
  772. var ceil = Math.ceil;
  773. var floor = Math.floor;
  774. // `Math.trunc` method
  775. // https://tc39.es/ecma262/#sec-math.trunc
  776. // eslint-disable-next-line es-x/no-math-trunc -- safe
  777. var mathTrunc = Math.trunc || function trunc(x) {
  778. var n = +x;
  779. return (n > 0 ? floor : ceil)(n);
  780. };
  781. var trunc = mathTrunc;
  782. // `ToIntegerOrInfinity` abstract operation
  783. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  784. var toIntegerOrInfinity$2 = function (argument) {
  785. var number = +argument;
  786. // eslint-disable-next-line no-self-compare -- NaN check
  787. return number !== number || number === 0 ? 0 : trunc(number);
  788. };
  789. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  790. var max = Math.max;
  791. var min$1 = Math.min;
  792. // Helper for a popular repeating case of the spec:
  793. // Let integer be ? ToInteger(index).
  794. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  795. var toAbsoluteIndex$1 = function (index, length) {
  796. var integer = toIntegerOrInfinity$1(index);
  797. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  798. };
  799. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  800. var min = Math.min;
  801. // `ToLength` abstract operation
  802. // https://tc39.es/ecma262/#sec-tolength
  803. var toLength$1 = function (argument) {
  804. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  805. };
  806. var toLength = toLength$1;
  807. // `LengthOfArrayLike` abstract operation
  808. // https://tc39.es/ecma262/#sec-lengthofarraylike
  809. var lengthOfArrayLike$3 = function (obj) {
  810. return toLength(obj.length);
  811. };
  812. var toIndexedObject$2 = toIndexedObject$4;
  813. var toAbsoluteIndex = toAbsoluteIndex$1;
  814. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  815. // `Array.prototype.{ indexOf, includes }` methods implementation
  816. var createMethod$2 = function (IS_INCLUDES) {
  817. return function ($this, el, fromIndex) {
  818. var O = toIndexedObject$2($this);
  819. var length = lengthOfArrayLike$2(O);
  820. var index = toAbsoluteIndex(fromIndex, length);
  821. var value;
  822. // Array#includes uses SameValueZero equality algorithm
  823. // eslint-disable-next-line no-self-compare -- NaN check
  824. if (IS_INCLUDES && el != el) while (length > index) {
  825. value = O[index++];
  826. // eslint-disable-next-line no-self-compare -- NaN check
  827. if (value != value) return true;
  828. // Array#indexOf ignores holes, Array#includes - not
  829. } else for (;length > index; index++) {
  830. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  831. } return !IS_INCLUDES && -1;
  832. };
  833. };
  834. var arrayIncludes = {
  835. // `Array.prototype.includes` method
  836. // https://tc39.es/ecma262/#sec-array.prototype.includes
  837. includes: createMethod$2(true),
  838. // `Array.prototype.indexOf` method
  839. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  840. indexOf: createMethod$2(false)
  841. };
  842. var uncurryThis$7 = functionUncurryThis;
  843. var hasOwn$1 = hasOwnProperty_1;
  844. var toIndexedObject$1 = toIndexedObject$4;
  845. var indexOf = arrayIncludes.indexOf;
  846. var hiddenKeys$1 = hiddenKeys$3;
  847. var push$1 = uncurryThis$7([].push);
  848. var objectKeysInternal = function (object, names) {
  849. var O = toIndexedObject$1(object);
  850. var i = 0;
  851. var result = [];
  852. var key;
  853. for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push$1(result, key);
  854. // Don't enum bug & hidden keys
  855. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  856. ~indexOf(result, key) || push$1(result, key);
  857. }
  858. return result;
  859. };
  860. // IE8- don't enum bug keys
  861. var enumBugKeys$1 = [
  862. 'constructor',
  863. 'hasOwnProperty',
  864. 'isPrototypeOf',
  865. 'propertyIsEnumerable',
  866. 'toLocaleString',
  867. 'toString',
  868. 'valueOf'
  869. ];
  870. var internalObjectKeys = objectKeysInternal;
  871. var enumBugKeys = enumBugKeys$1;
  872. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  873. // `Object.getOwnPropertyNames` method
  874. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  875. // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
  876. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  877. return internalObjectKeys(O, hiddenKeys);
  878. };
  879. var objectGetOwnPropertySymbols = {};
  880. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
  881. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  882. var getBuiltIn$1 = getBuiltIn$4;
  883. var uncurryThis$6 = functionUncurryThis;
  884. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  885. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  886. var anObject = anObject$2;
  887. var concat = uncurryThis$6([].concat);
  888. // all object keys, includes non-enumerable and symbols
  889. var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
  890. var keys = getOwnPropertyNamesModule.f(anObject(it));
  891. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  892. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  893. };
  894. var hasOwn = hasOwnProperty_1;
  895. var ownKeys = ownKeys$1;
  896. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  897. var definePropertyModule$1 = objectDefineProperty;
  898. var copyConstructorProperties$1 = function (target, source, exceptions) {
  899. var keys = ownKeys(source);
  900. var defineProperty = definePropertyModule$1.f;
  901. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  902. for (var i = 0; i < keys.length; i++) {
  903. var key = keys[i];
  904. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  905. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  906. }
  907. }
  908. };
  909. var fails$5 = fails$d;
  910. var isCallable$2 = isCallable$c;
  911. var replacement = /#|\.prototype\./;
  912. var isForced$1 = function (feature, detection) {
  913. var value = data[normalize(feature)];
  914. return value == POLYFILL ? true
  915. : value == NATIVE ? false
  916. : isCallable$2(detection) ? fails$5(detection)
  917. : !!detection;
  918. };
  919. var normalize = isForced$1.normalize = function (string) {
  920. return String(string).replace(replacement, '.').toLowerCase();
  921. };
  922. var data = isForced$1.data = {};
  923. var NATIVE = isForced$1.NATIVE = 'N';
  924. var POLYFILL = isForced$1.POLYFILL = 'P';
  925. var isForced_1 = isForced$1;
  926. var global$2 = global$b;
  927. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  928. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  929. var defineBuiltIn$1 = defineBuiltIn$2;
  930. var defineGlobalProperty = defineGlobalProperty$3;
  931. var copyConstructorProperties = copyConstructorProperties$1;
  932. var isForced = isForced_1;
  933. /*
  934. options.target - name of the target object
  935. options.global - target is the global object
  936. options.stat - export as static methods of target
  937. options.proto - export as prototype methods of target
  938. options.real - real prototype method for the `pure` version
  939. options.forced - export even if the native feature is available
  940. options.bind - bind methods to the target, required for the `pure` version
  941. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  942. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  943. options.sham - add a flag to not completely full polyfills
  944. options.enumerable - export as enumerable property
  945. options.dontCallGetSet - prevent calling a getter on target
  946. options.name - the .name of the function if it does not match the key
  947. */
  948. var _export = function (options, source) {
  949. var TARGET = options.target;
  950. var GLOBAL = options.global;
  951. var STATIC = options.stat;
  952. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  953. if (GLOBAL) {
  954. target = global$2;
  955. } else if (STATIC) {
  956. target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
  957. } else {
  958. target = (global$2[TARGET] || {}).prototype;
  959. }
  960. if (target) for (key in source) {
  961. sourceProperty = source[key];
  962. if (options.dontCallGetSet) {
  963. descriptor = getOwnPropertyDescriptor(target, key);
  964. targetProperty = descriptor && descriptor.value;
  965. } else targetProperty = target[key];
  966. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  967. // contained in target
  968. if (!FORCED && targetProperty !== undefined) {
  969. if (typeof sourceProperty == typeof targetProperty) continue;
  970. copyConstructorProperties(sourceProperty, targetProperty);
  971. }
  972. // add a flag to not completely full polyfills
  973. if (options.sham || (targetProperty && targetProperty.sham)) {
  974. createNonEnumerableProperty(sourceProperty, 'sham', true);
  975. }
  976. defineBuiltIn$1(target, key, sourceProperty, options);
  977. }
  978. };
  979. var classof$4 = classofRaw$1;
  980. // `IsArray` abstract operation
  981. // https://tc39.es/ecma262/#sec-isarray
  982. // eslint-disable-next-line es-x/no-array-isarray -- safe
  983. var isArray$2 = Array.isArray || function isArray(argument) {
  984. return classof$4(argument) == 'Array';
  985. };
  986. var $TypeError = TypeError;
  987. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  988. var doesNotExceedSafeInteger$1 = function (it) {
  989. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  990. return it;
  991. };
  992. var toPropertyKey = toPropertyKey$3;
  993. var definePropertyModule = objectDefineProperty;
  994. var createPropertyDescriptor = createPropertyDescriptor$3;
  995. var createProperty$1 = function (object, key, value) {
  996. var propertyKey = toPropertyKey(key);
  997. if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
  998. else object[propertyKey] = value;
  999. };
  1000. var wellKnownSymbol$4 = wellKnownSymbol$6;
  1001. var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
  1002. var test = {};
  1003. test[TO_STRING_TAG$1] = 'z';
  1004. var toStringTagSupport = String(test) === '[object z]';
  1005. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1006. var isCallable$1 = isCallable$c;
  1007. var classofRaw = classofRaw$1;
  1008. var wellKnownSymbol$3 = wellKnownSymbol$6;
  1009. var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
  1010. var $Object = Object;
  1011. // ES3 wrong here
  1012. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  1013. // fallback for IE11 Script Access Denied error
  1014. var tryGet = function (it, key) {
  1015. try {
  1016. return it[key];
  1017. } catch (error) { /* empty */ }
  1018. };
  1019. // getting tag from ES6+ `Object.prototype.toString`
  1020. var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  1021. var O, tag, result;
  1022. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1023. // @@toStringTag case
  1024. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1025. // builtinTag case
  1026. : CORRECT_ARGUMENTS ? classofRaw(O)
  1027. // ES3 arguments fallback
  1028. : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1029. };
  1030. var uncurryThis$5 = functionUncurryThis;
  1031. var fails$4 = fails$d;
  1032. var isCallable = isCallable$c;
  1033. var classof$2 = classof$3;
  1034. var getBuiltIn = getBuiltIn$4;
  1035. var inspectSource = inspectSource$3;
  1036. var noop = function () { /* empty */ };
  1037. var empty = [];
  1038. var construct = getBuiltIn('Reflect', 'construct');
  1039. var constructorRegExp = /^\s*(?:class|function)\b/;
  1040. var exec$1 = uncurryThis$5(constructorRegExp.exec);
  1041. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  1042. var isConstructorModern = function isConstructor(argument) {
  1043. if (!isCallable(argument)) return false;
  1044. try {
  1045. construct(noop, empty, argument);
  1046. return true;
  1047. } catch (error) {
  1048. return false;
  1049. }
  1050. };
  1051. var isConstructorLegacy = function isConstructor(argument) {
  1052. if (!isCallable(argument)) return false;
  1053. switch (classof$2(argument)) {
  1054. case 'AsyncFunction':
  1055. case 'GeneratorFunction':
  1056. case 'AsyncGeneratorFunction': return false;
  1057. }
  1058. try {
  1059. // we can't check .prototype since constructors produced by .bind haven't it
  1060. // `Function#toString` throws on some built-it function in some legacy engines
  1061. // (for example, `DOMQuad` and similar in FF41-)
  1062. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1063. } catch (error) {
  1064. return true;
  1065. }
  1066. };
  1067. isConstructorLegacy.sham = true;
  1068. // `IsConstructor` abstract operation
  1069. // https://tc39.es/ecma262/#sec-isconstructor
  1070. var isConstructor$1 = !construct || fails$4(function () {
  1071. var called;
  1072. return isConstructorModern(isConstructorModern.call)
  1073. || !isConstructorModern(Object)
  1074. || !isConstructorModern(function () { called = true; })
  1075. || called;
  1076. }) ? isConstructorLegacy : isConstructorModern;
  1077. var isArray$1 = isArray$2;
  1078. var isConstructor = isConstructor$1;
  1079. var isObject$1 = isObject$7;
  1080. var wellKnownSymbol$2 = wellKnownSymbol$6;
  1081. var SPECIES$1 = wellKnownSymbol$2('species');
  1082. var $Array = Array;
  1083. // a part of `ArraySpeciesCreate` abstract operation
  1084. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1085. var arraySpeciesConstructor$1 = function (originalArray) {
  1086. var C;
  1087. if (isArray$1(originalArray)) {
  1088. C = originalArray.constructor;
  1089. // cross-realm fallback
  1090. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1091. else if (isObject$1(C)) {
  1092. C = C[SPECIES$1];
  1093. if (C === null) C = undefined;
  1094. }
  1095. } return C === undefined ? $Array : C;
  1096. };
  1097. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1098. // `ArraySpeciesCreate` abstract operation
  1099. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1100. var arraySpeciesCreate$2 = function (originalArray, length) {
  1101. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1102. };
  1103. var fails$3 = fails$d;
  1104. var wellKnownSymbol$1 = wellKnownSymbol$6;
  1105. var V8_VERSION$1 = engineV8Version;
  1106. var SPECIES = wellKnownSymbol$1('species');
  1107. var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
  1108. // We can't use this feature detection in V8 since it causes
  1109. // deoptimization and serious performance degradation
  1110. // https://github.com/zloirock/core-js/issues/677
  1111. return V8_VERSION$1 >= 51 || !fails$3(function () {
  1112. var array = [];
  1113. var constructor = array.constructor = {};
  1114. constructor[SPECIES] = function () {
  1115. return { foo: 1 };
  1116. };
  1117. return array[METHOD_NAME](Boolean).foo !== 1;
  1118. });
  1119. };
  1120. var $$3 = _export;
  1121. var fails$2 = fails$d;
  1122. var isArray = isArray$2;
  1123. var isObject = isObject$7;
  1124. var toObject$1 = toObject$3;
  1125. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1126. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1127. var createProperty = createProperty$1;
  1128. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1129. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
  1130. var wellKnownSymbol = wellKnownSymbol$6;
  1131. var V8_VERSION = engineV8Version;
  1132. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1133. // We can't use this feature detection in V8 since it causes
  1134. // deoptimization and serious performance degradation
  1135. // https://github.com/zloirock/core-js/issues/679
  1136. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
  1137. var array = [];
  1138. array[IS_CONCAT_SPREADABLE] = false;
  1139. return array.concat()[0] !== array;
  1140. });
  1141. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('concat');
  1142. var isConcatSpreadable = function (O) {
  1143. if (!isObject(O)) return false;
  1144. var spreadable = O[IS_CONCAT_SPREADABLE];
  1145. return spreadable !== undefined ? !!spreadable : isArray(O);
  1146. };
  1147. var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1148. // `Array.prototype.concat` method
  1149. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1150. // with adding support of @@isConcatSpreadable and @@species
  1151. $$3({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
  1152. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1153. concat: function concat(arg) {
  1154. var O = toObject$1(this);
  1155. var A = arraySpeciesCreate$1(O, 0);
  1156. var n = 0;
  1157. var i, k, length, len, E;
  1158. for (i = -1, length = arguments.length; i < length; i++) {
  1159. E = i === -1 ? O : arguments[i];
  1160. if (isConcatSpreadable(E)) {
  1161. len = lengthOfArrayLike$1(E);
  1162. doesNotExceedSafeInteger(n + len);
  1163. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1164. } else {
  1165. doesNotExceedSafeInteger(n + 1);
  1166. createProperty(A, n++, E);
  1167. }
  1168. }
  1169. A.length = n;
  1170. return A;
  1171. }
  1172. });
  1173. var uncurryThis$4 = functionUncurryThis;
  1174. var aCallable = aCallable$2;
  1175. var NATIVE_BIND = functionBindNative;
  1176. var bind$1 = uncurryThis$4(uncurryThis$4.bind);
  1177. // optional / simple context binding
  1178. var functionBindContext = function (fn, that) {
  1179. aCallable(fn);
  1180. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1181. return fn.apply(that, arguments);
  1182. };
  1183. };
  1184. var bind = functionBindContext;
  1185. var uncurryThis$3 = functionUncurryThis;
  1186. var IndexedObject$1 = indexedObject;
  1187. var toObject = toObject$3;
  1188. var lengthOfArrayLike = lengthOfArrayLike$3;
  1189. var arraySpeciesCreate = arraySpeciesCreate$2;
  1190. var push = uncurryThis$3([].push);
  1191. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1192. var createMethod$1 = function (TYPE) {
  1193. var IS_MAP = TYPE == 1;
  1194. var IS_FILTER = TYPE == 2;
  1195. var IS_SOME = TYPE == 3;
  1196. var IS_EVERY = TYPE == 4;
  1197. var IS_FIND_INDEX = TYPE == 6;
  1198. var IS_FILTER_REJECT = TYPE == 7;
  1199. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  1200. return function ($this, callbackfn, that, specificCreate) {
  1201. var O = toObject($this);
  1202. var self = IndexedObject$1(O);
  1203. var boundFunction = bind(callbackfn, that);
  1204. var length = lengthOfArrayLike(self);
  1205. var index = 0;
  1206. var create = specificCreate || arraySpeciesCreate;
  1207. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1208. var value, result;
  1209. for (;length > index; index++) if (NO_HOLES || index in self) {
  1210. value = self[index];
  1211. result = boundFunction(value, index, O);
  1212. if (TYPE) {
  1213. if (IS_MAP) target[index] = result; // map
  1214. else if (result) switch (TYPE) {
  1215. case 3: return true; // some
  1216. case 5: return value; // find
  1217. case 6: return index; // findIndex
  1218. case 2: push(target, value); // filter
  1219. } else switch (TYPE) {
  1220. case 4: return false; // every
  1221. case 7: push(target, value); // filterReject
  1222. }
  1223. }
  1224. }
  1225. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1226. };
  1227. };
  1228. var arrayIteration = {
  1229. // `Array.prototype.forEach` method
  1230. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1231. forEach: createMethod$1(0),
  1232. // `Array.prototype.map` method
  1233. // https://tc39.es/ecma262/#sec-array.prototype.map
  1234. map: createMethod$1(1),
  1235. // `Array.prototype.filter` method
  1236. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1237. filter: createMethod$1(2),
  1238. // `Array.prototype.some` method
  1239. // https://tc39.es/ecma262/#sec-array.prototype.some
  1240. some: createMethod$1(3),
  1241. // `Array.prototype.every` method
  1242. // https://tc39.es/ecma262/#sec-array.prototype.every
  1243. every: createMethod$1(4),
  1244. // `Array.prototype.find` method
  1245. // https://tc39.es/ecma262/#sec-array.prototype.find
  1246. find: createMethod$1(5),
  1247. // `Array.prototype.findIndex` method
  1248. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1249. findIndex: createMethod$1(6),
  1250. // `Array.prototype.filterReject` method
  1251. // https://github.com/tc39/proposal-array-filtering
  1252. filterReject: createMethod$1(7)
  1253. };
  1254. var $$2 = _export;
  1255. var $filter = arrayIteration.filter;
  1256. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
  1257. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1258. // `Array.prototype.filter` method
  1259. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1260. // with adding support of @@species
  1261. $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1262. filter: function filter(callbackfn /* , thisArg */) {
  1263. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1264. }
  1265. });
  1266. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1267. var classof$1 = classof$3;
  1268. // `Object.prototype.toString` method implementation
  1269. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1270. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1271. return '[object ' + classof$1(this) + ']';
  1272. };
  1273. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1274. var defineBuiltIn = defineBuiltIn$2;
  1275. var toString$3 = objectToString;
  1276. // `Object.prototype.toString` method
  1277. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1278. if (!TO_STRING_TAG_SUPPORT) {
  1279. defineBuiltIn(Object.prototype, 'toString', toString$3, { unsafe: true });
  1280. }
  1281. var fails$1 = fails$d;
  1282. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1283. var method = [][METHOD_NAME];
  1284. return !!method && fails$1(function () {
  1285. // eslint-disable-next-line no-useless-call -- required for testing
  1286. method.call(null, argument || function () { return 1; }, 1);
  1287. });
  1288. };
  1289. var $$1 = _export;
  1290. var uncurryThis$2 = functionUncurryThis;
  1291. var IndexedObject = indexedObject;
  1292. var toIndexedObject = toIndexedObject$4;
  1293. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1294. var un$Join = uncurryThis$2([].join);
  1295. var ES3_STRINGS = IndexedObject != Object;
  1296. var STRICT_METHOD = arrayMethodIsStrict('join', ',');
  1297. // `Array.prototype.join` method
  1298. // https://tc39.es/ecma262/#sec-array.prototype.join
  1299. $$1({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
  1300. join: function join(separator) {
  1301. return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
  1302. }
  1303. });
  1304. var classof = classof$3;
  1305. var $String = String;
  1306. var toString$2 = function (argument) {
  1307. if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
  1308. return $String(argument);
  1309. };
  1310. // a string of all valid unicode whitespaces
  1311. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  1312. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1313. var uncurryThis$1 = functionUncurryThis;
  1314. var requireObjectCoercible = requireObjectCoercible$3;
  1315. var toString$1 = toString$2;
  1316. var whitespaces$1 = whitespaces$2;
  1317. var replace = uncurryThis$1(''.replace);
  1318. var whitespace = '[' + whitespaces$1 + ']';
  1319. var ltrim = RegExp('^' + whitespace + whitespace + '*');
  1320. var rtrim = RegExp(whitespace + whitespace + '*$');
  1321. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  1322. var createMethod = function (TYPE) {
  1323. return function ($this) {
  1324. var string = toString$1(requireObjectCoercible($this));
  1325. if (TYPE & 1) string = replace(string, ltrim, '');
  1326. if (TYPE & 2) string = replace(string, rtrim, '');
  1327. return string;
  1328. };
  1329. };
  1330. var stringTrim = {
  1331. // `String.prototype.{ trimLeft, trimStart }` methods
  1332. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  1333. start: createMethod(1),
  1334. // `String.prototype.{ trimRight, trimEnd }` methods
  1335. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  1336. end: createMethod(2),
  1337. // `String.prototype.trim` method
  1338. // https://tc39.es/ecma262/#sec-string.prototype.trim
  1339. trim: createMethod(3)
  1340. };
  1341. var global$1 = global$b;
  1342. var fails = fails$d;
  1343. var uncurryThis = functionUncurryThis;
  1344. var toString = toString$2;
  1345. var trim = stringTrim.trim;
  1346. var whitespaces = whitespaces$2;
  1347. var $parseInt$1 = global$1.parseInt;
  1348. var Symbol$1 = global$1.Symbol;
  1349. var ITERATOR = Symbol$1 && Symbol$1.iterator;
  1350. var hex = /^[+-]?0x/i;
  1351. var exec = uncurryThis(hex.exec);
  1352. var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
  1353. // MS Edge 18- broken with boxed symbols
  1354. || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
  1355. // `parseInt` method
  1356. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1357. var numberParseInt = FORCED ? function parseInt(string, radix) {
  1358. var S = trim(toString(string));
  1359. return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
  1360. } : $parseInt$1;
  1361. var $ = _export;
  1362. var $parseInt = numberParseInt;
  1363. // `parseInt` method
  1364. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1365. $({ global: true, forced: parseInt != $parseInt }, {
  1366. parseInt: $parseInt
  1367. });
  1368. /**
  1369. * @author: YL
  1370. * @update: zhixin wen <wenzhixin2010@gmail.com>
  1371. */
  1372. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
  1373. treeEnable: false,
  1374. treeShowField: null,
  1375. idField: 'id',
  1376. parentIdField: 'pid',
  1377. rootParentId: null
  1378. });
  1379. $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1380. _inherits(_class, _$$BootstrapTable);
  1381. var _super = _createSuper(_class);
  1382. function _class() {
  1383. _classCallCheck(this, _class);
  1384. return _super.apply(this, arguments);
  1385. }
  1386. _createClass(_class, [{
  1387. key: "init",
  1388. value: function init() {
  1389. var _get2;
  1390. this._rowStyle = this.options.rowStyle;
  1391. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1392. args[_key] = arguments[_key];
  1393. }
  1394. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  1395. }
  1396. }, {
  1397. key: "initHeader",
  1398. value: function initHeader() {
  1399. var _get3;
  1400. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1401. args[_key2] = arguments[_key2];
  1402. }
  1403. (_get3 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get3, [this].concat(args));
  1404. var treeShowField = this.options.treeShowField;
  1405. if (treeShowField) {
  1406. var _iterator = _createForOfIteratorHelper(this.header.fields),
  1407. _step;
  1408. try {
  1409. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  1410. var field = _step.value;
  1411. if (treeShowField === field) {
  1412. this.treeEnable = true;
  1413. break;
  1414. }
  1415. }
  1416. } catch (err) {
  1417. _iterator.e(err);
  1418. } finally {
  1419. _iterator.f();
  1420. }
  1421. }
  1422. }
  1423. }, {
  1424. key: "initBody",
  1425. value: function initBody() {
  1426. var _get4;
  1427. if (this.treeEnable) {
  1428. this.options.virtualScroll = false;
  1429. }
  1430. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1431. args[_key3] = arguments[_key3];
  1432. }
  1433. (_get4 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get4, [this].concat(args));
  1434. }
  1435. }, {
  1436. key: "initTr",
  1437. value: function initTr(item, idx, data, parentDom) {
  1438. var _this = this;
  1439. var nodes = data.filter(function (it) {
  1440. return item[_this.options.idField] === it[_this.options.parentIdField];
  1441. });
  1442. parentDom.append(_get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom)); // init sub node
  1443. var len = nodes.length - 1;
  1444. for (var i = 0; i <= len; i++) {
  1445. var node = nodes[i];
  1446. var defaultItem = $__default["default"].extend(true, {}, item);
  1447. node._level = defaultItem._level + 1;
  1448. node._parent = defaultItem;
  1449. if (i === len) {
  1450. node._last = 1;
  1451. } // jquery.treegrid.js
  1452. this.options.rowStyle = function (item, idx) {
  1453. var res = _this._rowStyle(item, idx);
  1454. var id = item[_this.options.idField] ? item[_this.options.idField] : 0;
  1455. var pid = item[_this.options.parentIdField] ? item[_this.options.parentIdField] : 0;
  1456. res.classes = [res.classes || '', "treegrid-".concat(id), "treegrid-parent-".concat(pid)].join(' ');
  1457. return res;
  1458. };
  1459. this.initTr(node, $__default["default"].inArray(node, data), data, parentDom);
  1460. }
  1461. }
  1462. }, {
  1463. key: "initRow",
  1464. value: function initRow(item, idx, data, parentDom) {
  1465. var _this2 = this;
  1466. if (this.treeEnable) {
  1467. var parentId = parseInt(item[this.options.parentIdField], 10);
  1468. if (this.options.rootParentId === parentId || !parentId) {
  1469. if (item._level === undefined) {
  1470. item._level = 0;
  1471. } // jquery.treegrid.js
  1472. this.options.rowStyle = function (item, idx) {
  1473. var res = _this2._rowStyle(item, idx);
  1474. var x = item[_this2.options.idField] ? item[_this2.options.idField] : 0;
  1475. res.classes = [res.classes || '', "treegrid-".concat(x)].join(' ');
  1476. return res;
  1477. };
  1478. this.initTr(item, idx, data, parentDom);
  1479. return true;
  1480. }
  1481. return false;
  1482. }
  1483. return _get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom);
  1484. }
  1485. }, {
  1486. key: "destroy",
  1487. value: function destroy() {
  1488. var _get5;
  1489. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1490. args[_key4] = arguments[_key4];
  1491. }
  1492. (_get5 = _get(_getPrototypeOf(_class.prototype), "destroy", this)).call.apply(_get5, [this].concat(args));
  1493. this.options.rowStyle = this._rowStyle;
  1494. }
  1495. }]);
  1496. return _class;
  1497. }($__default["default"].BootstrapTable);
  1498. }));