jquery.dgtable 0.5.49 → 0.5.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jquery.dgtable 0.5.49
2
+ * jquery.dgtable 0.5.50
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
5
  'use strict';
@@ -19,7 +19,7 @@ var check = function (it) {
19
19
  };
20
20
 
21
21
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22
- var global$n =
22
+ var global$o =
23
23
  // eslint-disable-next-line es/no-global-this -- safe
24
24
  check(typeof globalThis == 'object' && globalThis) ||
25
25
  check(typeof window == 'object' && window) ||
@@ -31,7 +31,7 @@ var global$n =
31
31
 
32
32
  var objectGetOwnPropertyDescriptor = {};
33
33
 
34
- var fails$7 = function (exec) {
34
+ var fails$8 = function (exec) {
35
35
  try {
36
36
  return !!exec();
37
37
  } catch (error) {
@@ -39,10 +39,10 @@ var fails$7 = function (exec) {
39
39
  }
40
40
  };
41
41
 
42
- var fails$6 = fails$7;
42
+ var fails$7 = fails$8;
43
43
 
44
44
  // Detect IE8's incomplete defineProperty implementation
45
- var descriptors = !fails$6(function () {
45
+ var descriptors = !fails$7(function () {
46
46
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
47
47
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
48
48
  });
@@ -69,7 +69,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
69
69
  return !!descriptor && descriptor.enumerable;
70
70
  } : $propertyIsEnumerable;
71
71
 
72
- var createPropertyDescriptor$2 = function (bitmap, value) {
72
+ var createPropertyDescriptor$3 = function (bitmap, value) {
73
73
  return {
74
74
  enumerable: !(bitmap & 1),
75
75
  configurable: !(bitmap & 2),
@@ -81,35 +81,35 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
81
81
  var FunctionPrototype$1 = Function.prototype;
82
82
  var bind = FunctionPrototype$1.bind;
83
83
  var call$3 = FunctionPrototype$1.call;
84
- var callBind = bind && bind.bind(call$3);
84
+ var uncurryThis$a = bind && bind.bind(call$3, call$3);
85
85
 
86
86
  var functionUncurryThis = bind ? function (fn) {
87
- return fn && callBind(call$3, fn);
87
+ return fn && uncurryThis$a(fn);
88
88
  } : function (fn) {
89
89
  return fn && function () {
90
90
  return call$3.apply(fn, arguments);
91
91
  };
92
92
  };
93
93
 
94
- var uncurryThis$a = functionUncurryThis;
94
+ var uncurryThis$9 = functionUncurryThis;
95
95
 
96
- var toString$3 = uncurryThis$a({}.toString);
97
- var stringSlice = uncurryThis$a(''.slice);
96
+ var toString$3 = uncurryThis$9({}.toString);
97
+ var stringSlice = uncurryThis$9(''.slice);
98
98
 
99
99
  var classofRaw$1 = function (it) {
100
100
  return stringSlice(toString$3(it), 8, -1);
101
101
  };
102
102
 
103
- var global$m = global$n;
104
- var uncurryThis$9 = functionUncurryThis;
105
- var fails$5 = fails$7;
103
+ var global$n = global$o;
104
+ var uncurryThis$8 = functionUncurryThis;
105
+ var fails$6 = fails$8;
106
106
  var classof$2 = classofRaw$1;
107
107
 
108
- var Object$4 = global$m.Object;
109
- var split = uncurryThis$9(''.split);
108
+ var Object$4 = global$n.Object;
109
+ var split = uncurryThis$8(''.split);
110
110
 
111
111
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$5(function () {
112
+ var indexedObject = fails$6(function () {
113
113
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
114
  // eslint-disable-next-line no-prototype-builtins -- safe
115
115
  return !Object$4('z').propertyIsEnumerable(0);
@@ -117,9 +117,9 @@ var indexedObject = fails$5(function () {
117
117
  return classof$2(it) == 'String' ? split(it, '') : Object$4(it);
118
118
  } : Object$4;
119
119
 
120
- var global$l = global$n;
120
+ var global$m = global$o;
121
121
 
122
- var TypeError$7 = global$l.TypeError;
122
+ var TypeError$7 = global$m.TypeError;
123
123
 
124
124
  // `RequireObjectCoercible` abstract operation
125
125
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
@@ -148,7 +148,7 @@ var isObject$5 = function (it) {
148
148
  return typeof it == 'object' ? it !== null : isCallable$9(it);
149
149
  };
150
150
 
151
- var global$k = global$n;
151
+ var global$l = global$o;
152
152
  var isCallable$8 = isCallable$a;
153
153
 
154
154
  var aFunction = function (argument) {
@@ -156,22 +156,22 @@ var aFunction = function (argument) {
156
156
  };
157
157
 
158
158
  var getBuiltIn$3 = function (namespace, method) {
159
- return arguments.length < 2 ? aFunction(global$k[namespace]) : global$k[namespace] && global$k[namespace][method];
159
+ return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
160
160
  };
161
161
 
162
- var uncurryThis$8 = functionUncurryThis;
162
+ var uncurryThis$7 = functionUncurryThis;
163
163
 
164
- var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
164
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
165
165
 
166
166
  var getBuiltIn$2 = getBuiltIn$3;
167
167
 
168
168
  var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
169
169
 
170
- var global$j = global$n;
170
+ var global$k = global$o;
171
171
  var userAgent$3 = engineUserAgent;
172
172
 
173
- var process = global$j.process;
174
- var Deno = global$j.Deno;
173
+ var process = global$k.process;
174
+ var Deno = global$k.Deno;
175
175
  var versions = process && process.versions || Deno && Deno.version;
176
176
  var v8 = versions && versions.v8;
177
177
  var match, version;
@@ -198,10 +198,10 @@ var engineV8Version = version;
198
198
  /* eslint-disable es/no-symbol -- required for testing */
199
199
 
200
200
  var V8_VERSION = engineV8Version;
201
- var fails$4 = fails$7;
201
+ var fails$5 = fails$8;
202
202
 
203
203
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
204
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$4(function () {
204
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$5(function () {
205
205
  var symbol = Symbol();
206
206
  // Chrome 38 Symbol has incorrect toString conversion
207
207
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -218,13 +218,13 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
218
218
  && !Symbol.sham
219
219
  && typeof Symbol.iterator == 'symbol';
220
220
 
221
- var global$i = global$n;
221
+ var global$j = global$o;
222
222
  var getBuiltIn$1 = getBuiltIn$3;
223
223
  var isCallable$7 = isCallable$a;
224
224
  var isPrototypeOf = objectIsPrototypeOf;
225
225
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
226
226
 
227
- var Object$3 = global$i.Object;
227
+ var Object$3 = global$j.Object;
228
228
 
229
229
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
230
230
  return typeof it == 'symbol';
@@ -233,9 +233,9 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
233
233
  return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
234
234
  };
235
235
 
236
- var global$h = global$n;
236
+ var global$i = global$o;
237
237
 
238
- var String$3 = global$h.String;
238
+ var String$3 = global$i.String;
239
239
 
240
240
  var tryToString$1 = function (argument) {
241
241
  try {
@@ -245,11 +245,11 @@ var tryToString$1 = function (argument) {
245
245
  }
246
246
  };
247
247
 
248
- var global$g = global$n;
248
+ var global$h = global$o;
249
249
  var isCallable$6 = isCallable$a;
250
250
  var tryToString = tryToString$1;
251
251
 
252
- var TypeError$6 = global$g.TypeError;
252
+ var TypeError$6 = global$h.TypeError;
253
253
 
254
254
  // `Assert: IsCallable(argument) is true`
255
255
  var aCallable$2 = function (argument) {
@@ -266,12 +266,12 @@ var getMethod$1 = function (V, P) {
266
266
  return func == null ? undefined : aCallable$1(func);
267
267
  };
268
268
 
269
- var global$f = global$n;
269
+ var global$g = global$o;
270
270
  var call$2 = functionCall;
271
271
  var isCallable$5 = isCallable$a;
272
272
  var isObject$4 = isObject$5;
273
273
 
274
- var TypeError$5 = global$f.TypeError;
274
+ var TypeError$5 = global$g.TypeError;
275
275
 
276
276
  // `OrdinaryToPrimitive` abstract operation
277
277
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
@@ -285,24 +285,24 @@ var ordinaryToPrimitive$1 = function (input, pref) {
285
285
 
286
286
  var shared$3 = {exports: {}};
287
287
 
288
- var global$e = global$n;
288
+ var global$f = global$o;
289
289
 
290
290
  // eslint-disable-next-line es/no-object-defineproperty -- safe
291
291
  var defineProperty = Object.defineProperty;
292
292
 
293
293
  var setGlobal$3 = function (key, value) {
294
294
  try {
295
- defineProperty(global$e, key, { value: value, configurable: true, writable: true });
295
+ defineProperty(global$f, key, { value: value, configurable: true, writable: true });
296
296
  } catch (error) {
297
- global$e[key] = value;
297
+ global$f[key] = value;
298
298
  } return value;
299
299
  };
300
300
 
301
- var global$d = global$n;
301
+ var global$e = global$o;
302
302
  var setGlobal$2 = setGlobal$3;
303
303
 
304
304
  var SHARED = '__core-js_shared__';
305
- var store$3 = global$d[SHARED] || setGlobal$2(SHARED, {});
305
+ var store$3 = global$e[SHARED] || setGlobal$2(SHARED, {});
306
306
 
307
307
  var sharedStore = store$3;
308
308
 
@@ -311,15 +311,15 @@ var store$2 = sharedStore;
311
311
  (shared$3.exports = function (key, value) {
312
312
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
313
313
  })('versions', []).push({
314
- version: '3.19.1',
314
+ version: '3.20.2',
315
315
  mode: 'global',
316
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
316
+ copyright: '© 2022 Denis Pushkarev (zloirock.ru)'
317
317
  });
318
318
 
319
- var global$c = global$n;
319
+ var global$d = global$o;
320
320
  var requireObjectCoercible = requireObjectCoercible$2;
321
321
 
322
- var Object$2 = global$c.Object;
322
+ var Object$2 = global$d.Object;
323
323
 
324
324
  // `ToObject` abstract operation
325
325
  // https://tc39.es/ecma262/#sec-toobject
@@ -327,10 +327,10 @@ var toObject$2 = function (argument) {
327
327
  return Object$2(requireObjectCoercible(argument));
328
328
  };
329
329
 
330
- var uncurryThis$7 = functionUncurryThis;
330
+ var uncurryThis$6 = functionUncurryThis;
331
331
  var toObject$1 = toObject$2;
332
332
 
333
- var hasOwnProperty$1 = uncurryThis$7({}.hasOwnProperty);
333
+ var hasOwnProperty$1 = uncurryThis$6({}.hasOwnProperty);
334
334
 
335
335
  // `HasOwnProperty` abstract operation
336
336
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -338,17 +338,17 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
338
338
  return hasOwnProperty$1(toObject$1(it), key);
339
339
  };
340
340
 
341
- var uncurryThis$6 = functionUncurryThis;
341
+ var uncurryThis$5 = functionUncurryThis;
342
342
 
343
343
  var id = 0;
344
344
  var postfix = Math.random();
345
- var toString$2 = uncurryThis$6(1.0.toString);
345
+ var toString$2 = uncurryThis$5(1.0.toString);
346
346
 
347
347
  var uid$2 = function (key) {
348
348
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
349
349
  };
350
350
 
351
- var global$b = global$n;
351
+ var global$c = global$o;
352
352
  var shared$2 = shared$3.exports;
353
353
  var hasOwn$6 = hasOwnProperty_1;
354
354
  var uid$1 = uid$2;
@@ -356,7 +356,7 @@ var NATIVE_SYMBOL = nativeSymbol;
356
356
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
357
357
 
358
358
  var WellKnownSymbolsStore = shared$2('wks');
359
- var Symbol$1 = global$b.Symbol;
359
+ var Symbol$1 = global$c.Symbol;
360
360
  var symbolFor = Symbol$1 && Symbol$1['for'];
361
361
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
362
362
 
@@ -373,7 +373,7 @@ var wellKnownSymbol$3 = function (name) {
373
373
  } return WellKnownSymbolsStore[name];
374
374
  };
375
375
 
376
- var global$a = global$n;
376
+ var global$b = global$o;
377
377
  var call$1 = functionCall;
378
378
  var isObject$3 = isObject$5;
379
379
  var isSymbol$1 = isSymbol$2;
@@ -381,7 +381,7 @@ var getMethod = getMethod$1;
381
381
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
382
382
  var wellKnownSymbol$2 = wellKnownSymbol$3;
383
383
 
384
- var TypeError$4 = global$a.TypeError;
384
+ var TypeError$4 = global$b.TypeError;
385
385
  var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
386
386
 
387
387
  // `ToPrimitive` abstract operation
@@ -405,15 +405,15 @@ var isSymbol = isSymbol$2;
405
405
 
406
406
  // `ToPropertyKey` abstract operation
407
407
  // https://tc39.es/ecma262/#sec-topropertykey
408
- var toPropertyKey$2 = function (argument) {
408
+ var toPropertyKey$3 = function (argument) {
409
409
  var key = toPrimitive(argument, 'string');
410
410
  return isSymbol(key) ? key : key + '';
411
411
  };
412
412
 
413
- var global$9 = global$n;
413
+ var global$a = global$o;
414
414
  var isObject$2 = isObject$5;
415
415
 
416
- var document$1 = global$9.document;
416
+ var document$1 = global$a.document;
417
417
  // typeof document.createElement is 'object' in old IE
418
418
  var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
419
419
 
@@ -421,48 +421,61 @@ var documentCreateElement = function (it) {
421
421
  return EXISTS$1 ? document$1.createElement(it) : {};
422
422
  };
423
423
 
424
- var DESCRIPTORS$4 = descriptors;
425
- var fails$3 = fails$7;
424
+ var DESCRIPTORS$5 = descriptors;
425
+ var fails$4 = fails$8;
426
426
  var createElement$1 = documentCreateElement;
427
427
 
428
428
  // Thank's IE8 for his funny defineProperty
429
- var ie8DomDefine = !DESCRIPTORS$4 && !fails$3(function () {
430
- // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
429
+ var ie8DomDefine = !DESCRIPTORS$5 && !fails$4(function () {
430
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
431
431
  return Object.defineProperty(createElement$1('div'), 'a', {
432
432
  get: function () { return 7; }
433
433
  }).a != 7;
434
434
  });
435
435
 
436
- var DESCRIPTORS$3 = descriptors;
436
+ var DESCRIPTORS$4 = descriptors;
437
437
  var call = functionCall;
438
438
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
439
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
439
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
440
440
  var toIndexedObject$2 = toIndexedObject$3;
441
- var toPropertyKey$1 = toPropertyKey$2;
441
+ var toPropertyKey$2 = toPropertyKey$3;
442
442
  var hasOwn$5 = hasOwnProperty_1;
443
443
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
444
444
 
445
445
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
446
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
446
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
447
447
 
448
448
  // `Object.getOwnPropertyDescriptor` method
449
449
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
450
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
450
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
451
451
  O = toIndexedObject$2(O);
452
- P = toPropertyKey$1(P);
452
+ P = toPropertyKey$2(P);
453
453
  if (IE8_DOM_DEFINE$1) try {
454
- return $getOwnPropertyDescriptor(O, P);
454
+ return $getOwnPropertyDescriptor$1(O, P);
455
455
  } catch (error) { /* empty */ }
456
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
456
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
457
457
  };
458
458
 
459
459
  var objectDefineProperty = {};
460
460
 
461
- var global$8 = global$n;
461
+ var DESCRIPTORS$3 = descriptors;
462
+ var fails$3 = fails$8;
463
+
464
+ // V8 ~ Chrome 36-
465
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
466
+ var v8PrototypeDefineBug = DESCRIPTORS$3 && fails$3(function () {
467
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
468
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
469
+ value: 42,
470
+ writable: false
471
+ }).prototype != 42;
472
+ });
473
+
474
+ var global$9 = global$o;
462
475
  var isObject$1 = isObject$5;
463
476
 
464
- var String$2 = global$8.String;
465
- var TypeError$3 = global$8.TypeError;
477
+ var String$2 = global$9.String;
478
+ var TypeError$3 = global$9.TypeError;
466
479
 
467
480
  // `Assert: Type(argument) is Object`
468
481
  var anObject$2 = function (argument) {
@@ -470,21 +483,42 @@ var anObject$2 = function (argument) {
470
483
  throw TypeError$3(String$2(argument) + ' is not an object');
471
484
  };
472
485
 
473
- var global$7 = global$n;
486
+ var global$8 = global$o;
474
487
  var DESCRIPTORS$2 = descriptors;
475
488
  var IE8_DOM_DEFINE = ie8DomDefine;
489
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
476
490
  var anObject$1 = anObject$2;
477
- var toPropertyKey = toPropertyKey$2;
491
+ var toPropertyKey$1 = toPropertyKey$3;
478
492
 
479
- var TypeError$2 = global$7.TypeError;
493
+ var TypeError$2 = global$8.TypeError;
480
494
  // eslint-disable-next-line es/no-object-defineproperty -- safe
481
495
  var $defineProperty = Object.defineProperty;
496
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
497
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
498
+ var ENUMERABLE = 'enumerable';
499
+ var CONFIGURABLE$1 = 'configurable';
500
+ var WRITABLE = 'writable';
482
501
 
483
502
  // `Object.defineProperty` method
484
503
  // https://tc39.es/ecma262/#sec-object.defineproperty
485
- objectDefineProperty.f = DESCRIPTORS$2 ? $defineProperty : function defineProperty(O, P, Attributes) {
504
+ objectDefineProperty.f = DESCRIPTORS$2 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
486
505
  anObject$1(O);
487
- P = toPropertyKey(P);
506
+ P = toPropertyKey$1(P);
507
+ anObject$1(Attributes);
508
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
509
+ var current = $getOwnPropertyDescriptor(O, P);
510
+ if (current && current[WRITABLE]) {
511
+ O[P] = Attributes.value;
512
+ Attributes = {
513
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
514
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
515
+ writable: false
516
+ };
517
+ }
518
+ } return $defineProperty(O, P, Attributes);
519
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
520
+ anObject$1(O);
521
+ P = toPropertyKey$1(P);
488
522
  anObject$1(Attributes);
489
523
  if (IE8_DOM_DEFINE) try {
490
524
  return $defineProperty(O, P, Attributes);
@@ -495,11 +529,11 @@ objectDefineProperty.f = DESCRIPTORS$2 ? $defineProperty : function defineProper
495
529
  };
496
530
 
497
531
  var DESCRIPTORS$1 = descriptors;
498
- var definePropertyModule$1 = objectDefineProperty;
499
- var createPropertyDescriptor = createPropertyDescriptor$2;
532
+ var definePropertyModule$2 = objectDefineProperty;
533
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
500
534
 
501
535
  var createNonEnumerableProperty$3 = DESCRIPTORS$1 ? function (object, key, value) {
502
- return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value));
536
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$1(1, value));
503
537
  } : function (object, key, value) {
504
538
  object[key] = value;
505
539
  return object;
@@ -507,11 +541,11 @@ var createNonEnumerableProperty$3 = DESCRIPTORS$1 ? function (object, key, value
507
541
 
508
542
  var redefine$1 = {exports: {}};
509
543
 
510
- var uncurryThis$5 = functionUncurryThis;
544
+ var uncurryThis$4 = functionUncurryThis;
511
545
  var isCallable$4 = isCallable$a;
512
546
  var store$1 = sharedStore;
513
547
 
514
- var functionToString = uncurryThis$5(Function.toString);
548
+ var functionToString = uncurryThis$4(Function.toString);
515
549
 
516
550
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
517
551
  if (!isCallable$4(store$1.inspectSource)) {
@@ -522,11 +556,11 @@ if (!isCallable$4(store$1.inspectSource)) {
522
556
 
523
557
  var inspectSource$2 = store$1.inspectSource;
524
558
 
525
- var global$6 = global$n;
559
+ var global$7 = global$o;
526
560
  var isCallable$3 = isCallable$a;
527
561
  var inspectSource$1 = inspectSource$2;
528
562
 
529
- var WeakMap$1 = global$6.WeakMap;
563
+ var WeakMap$1 = global$7.WeakMap;
530
564
 
531
565
  var nativeWeakMap = isCallable$3(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
532
566
 
@@ -542,8 +576,8 @@ var sharedKey$1 = function (key) {
542
576
  var hiddenKeys$3 = {};
543
577
 
544
578
  var NATIVE_WEAK_MAP = nativeWeakMap;
545
- var global$5 = global$n;
546
- var uncurryThis$4 = functionUncurryThis;
579
+ var global$6 = global$o;
580
+ var uncurryThis$3 = functionUncurryThis;
547
581
  var isObject = isObject$5;
548
582
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
549
583
  var hasOwn$4 = hasOwnProperty_1;
@@ -552,8 +586,8 @@ var sharedKey = sharedKey$1;
552
586
  var hiddenKeys$2 = hiddenKeys$3;
553
587
 
554
588
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
555
- var TypeError$1 = global$5.TypeError;
556
- var WeakMap = global$5.WeakMap;
589
+ var TypeError$1 = global$6.TypeError;
590
+ var WeakMap = global$6.WeakMap;
557
591
  var set, get, has;
558
592
 
559
593
  var enforce = function (it) {
@@ -571,9 +605,9 @@ var getterFor = function (TYPE) {
571
605
 
572
606
  if (NATIVE_WEAK_MAP || shared.state) {
573
607
  var store = shared.state || (shared.state = new WeakMap());
574
- var wmget = uncurryThis$4(store.get);
575
- var wmhas = uncurryThis$4(store.has);
576
- var wmset = uncurryThis$4(store.set);
608
+ var wmget = uncurryThis$3(store.get);
609
+ var wmhas = uncurryThis$3(store.has);
610
+ var wmset = uncurryThis$3(store.set);
577
611
  set = function (it, metadata) {
578
612
  if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
579
613
  metadata.facade = it;
@@ -629,7 +663,7 @@ var functionName = {
629
663
  CONFIGURABLE: CONFIGURABLE
630
664
  };
631
665
 
632
- var global$4 = global$n;
666
+ var global$5 = global$o;
633
667
  var isCallable$2 = isCallable$a;
634
668
  var hasOwn$2 = hasOwnProperty_1;
635
669
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
@@ -660,7 +694,7 @@ var TEMPLATE = String(String).split('String');
660
694
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
661
695
  }
662
696
  }
663
- if (O === global$4) {
697
+ if (O === global$5) {
664
698
  if (simple) O[key] = value;
665
699
  else setGlobal$1(key, value);
666
700
  return;
@@ -691,15 +725,15 @@ var toIntegerOrInfinity$2 = function (argument) {
691
725
 
692
726
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
693
727
 
694
- var max = Math.max;
728
+ var max$1 = Math.max;
695
729
  var min$1 = Math.min;
696
730
 
697
731
  // Helper for a popular repeating case of the spec:
698
732
  // Let integer be ? ToInteger(index).
699
733
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
700
- var toAbsoluteIndex$1 = function (index, length) {
734
+ var toAbsoluteIndex$2 = function (index, length) {
701
735
  var integer = toIntegerOrInfinity$1(index);
702
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
736
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
703
737
  };
704
738
 
705
739
  var toIntegerOrInfinity = toIntegerOrInfinity$2;
@@ -716,20 +750,20 @@ var toLength = toLength$1;
716
750
 
717
751
  // `LengthOfArrayLike` abstract operation
718
752
  // https://tc39.es/ecma262/#sec-lengthofarraylike
719
- var lengthOfArrayLike$2 = function (obj) {
753
+ var lengthOfArrayLike$3 = function (obj) {
720
754
  return toLength(obj.length);
721
755
  };
722
756
 
723
757
  var toIndexedObject$1 = toIndexedObject$3;
724
- var toAbsoluteIndex = toAbsoluteIndex$1;
725
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
758
+ var toAbsoluteIndex$1 = toAbsoluteIndex$2;
759
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
726
760
 
727
761
  // `Array.prototype.{ indexOf, includes }` methods implementation
728
762
  var createMethod = function (IS_INCLUDES) {
729
763
  return function ($this, el, fromIndex) {
730
764
  var O = toIndexedObject$1($this);
731
- var length = lengthOfArrayLike$1(O);
732
- var index = toAbsoluteIndex(fromIndex, length);
765
+ var length = lengthOfArrayLike$2(O);
766
+ var index = toAbsoluteIndex$1(fromIndex, length);
733
767
  var value;
734
768
  // Array#includes uses SameValueZero equality algorithm
735
769
  // eslint-disable-next-line no-self-compare -- NaN check
@@ -753,13 +787,13 @@ var arrayIncludes = {
753
787
  indexOf: createMethod(false)
754
788
  };
755
789
 
756
- var uncurryThis$3 = functionUncurryThis;
790
+ var uncurryThis$2 = functionUncurryThis;
757
791
  var hasOwn$1 = hasOwnProperty_1;
758
792
  var toIndexedObject = toIndexedObject$3;
759
793
  var indexOf$1 = arrayIncludes.indexOf;
760
794
  var hiddenKeys$1 = hiddenKeys$3;
761
795
 
762
- var push$1 = uncurryThis$3([].push);
796
+ var push$1 = uncurryThis$2([].push);
763
797
 
764
798
  var objectKeysInternal = function (object, names) {
765
799
  var O = toIndexedObject(object);
@@ -803,12 +837,12 @@ var objectGetOwnPropertySymbols = {};
803
837
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
804
838
 
805
839
  var getBuiltIn = getBuiltIn$3;
806
- var uncurryThis$2 = functionUncurryThis;
840
+ var uncurryThis$1 = functionUncurryThis;
807
841
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
808
842
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
809
843
  var anObject = anObject$2;
810
844
 
811
- var concat = uncurryThis$2([].concat);
845
+ var concat = uncurryThis$1([].concat);
812
846
 
813
847
  // all object keys, includes non-enumerable and symbols
814
848
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -820,19 +854,21 @@ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
820
854
  var hasOwn = hasOwnProperty_1;
821
855
  var ownKeys = ownKeys$1;
822
856
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
823
- var definePropertyModule = objectDefineProperty;
857
+ var definePropertyModule$1 = objectDefineProperty;
824
858
 
825
- var copyConstructorProperties$1 = function (target, source) {
859
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
826
860
  var keys = ownKeys(source);
827
- var defineProperty = definePropertyModule.f;
861
+ var defineProperty = definePropertyModule$1.f;
828
862
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
829
863
  for (var i = 0; i < keys.length; i++) {
830
864
  var key = keys[i];
831
- if (!hasOwn(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
865
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
866
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
867
+ }
832
868
  }
833
869
  };
834
870
 
835
- var fails$2 = fails$7;
871
+ var fails$2 = fails$8;
836
872
  var isCallable$1 = isCallable$a;
837
873
 
838
874
  var replacement = /#|\.prototype\./;
@@ -855,7 +891,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
855
891
 
856
892
  var isForced_1 = isForced$1;
857
893
 
858
- var global$3 = global$n;
894
+ var global$4 = global$o;
859
895
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
860
896
  var createNonEnumerableProperty = createNonEnumerableProperty$3;
861
897
  var redefine = redefine$1.exports;
@@ -884,11 +920,11 @@ var _export = function (options, source) {
884
920
  var STATIC = options.stat;
885
921
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
886
922
  if (GLOBAL) {
887
- target = global$3;
923
+ target = global$4;
888
924
  } else if (STATIC) {
889
- target = global$3[TARGET] || setGlobal(TARGET, {});
925
+ target = global$4[TARGET] || setGlobal(TARGET, {});
890
926
  } else {
891
- target = (global$3[TARGET] || {}).prototype;
927
+ target = (global$4[TARGET] || {}).prototype;
892
928
  }
893
929
  if (target) for (key in source) {
894
930
  sourceProperty = source[key];
@@ -920,14 +956,14 @@ test$1[TO_STRING_TAG$1] = 'z';
920
956
 
921
957
  var toStringTagSupport = String(test$1) === '[object z]';
922
958
 
923
- var global$2 = global$n;
959
+ var global$3 = global$o;
924
960
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
925
961
  var isCallable = isCallable$a;
926
962
  var classofRaw = classofRaw$1;
927
963
  var wellKnownSymbol = wellKnownSymbol$3;
928
964
 
929
965
  var TO_STRING_TAG = wellKnownSymbol('toStringTag');
930
- var Object$1 = global$2.Object;
966
+ var Object$1 = global$3.Object;
931
967
 
932
968
  // ES3 wrong here
933
969
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
@@ -951,21 +987,45 @@ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
951
987
  : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
952
988
  };
953
989
 
954
- var global$1 = global$n;
990
+ var global$2 = global$o;
955
991
  var classof = classof$1;
956
992
 
957
- var String$1 = global$1.String;
993
+ var String$1 = global$2.String;
958
994
 
959
995
  var toString$1 = function (argument) {
960
996
  if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
961
997
  return String$1(argument);
962
998
  };
963
999
 
964
- var uncurryThis$1 = functionUncurryThis;
1000
+ var toPropertyKey = toPropertyKey$3;
1001
+ var definePropertyModule = objectDefineProperty;
1002
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1003
+
1004
+ var createProperty$1 = function (object, key, value) {
1005
+ var propertyKey = toPropertyKey(key);
1006
+ if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1007
+ else object[propertyKey] = value;
1008
+ };
1009
+
1010
+ var global$1 = global$o;
1011
+ var toAbsoluteIndex = toAbsoluteIndex$2;
1012
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1013
+ var createProperty = createProperty$1;
965
1014
 
966
- var arraySlice$1 = uncurryThis$1([].slice);
1015
+ var Array$1 = global$1.Array;
1016
+ var max = Math.max;
1017
+
1018
+ var arraySliceSimple = function (O, start, end) {
1019
+ var length = lengthOfArrayLike$1(O);
1020
+ var k = toAbsoluteIndex(start, length);
1021
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
1022
+ var result = Array$1(max(fin - k, 0));
1023
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
1024
+ result.length = n;
1025
+ return result;
1026
+ };
967
1027
 
968
- var arraySlice = arraySlice$1;
1028
+ var arraySlice = arraySliceSimple;
969
1029
 
970
1030
  var floor = Math.floor;
971
1031
 
@@ -1010,7 +1070,7 @@ var merge = function (array, left, right, comparefn) {
1010
1070
 
1011
1071
  var arraySort = mergeSort;
1012
1072
 
1013
- var fails$1 = fails$7;
1073
+ var fails$1 = fails$8;
1014
1074
 
1015
1075
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1016
1076
  var method = [][METHOD_NAME];
@@ -1040,9 +1100,9 @@ var $$1 = _export;
1040
1100
  var uncurryThis = functionUncurryThis;
1041
1101
  var aCallable = aCallable$2;
1042
1102
  var toObject = toObject$2;
1043
- var lengthOfArrayLike = lengthOfArrayLike$2;
1103
+ var lengthOfArrayLike = lengthOfArrayLike$3;
1044
1104
  var toString = toString$1;
1045
- var fails = fails$7;
1105
+ var fails = fails$8;
1046
1106
  var internalSort = arraySort;
1047
1107
  var arrayMethodIsStrict = arrayMethodIsStrict$1;
1048
1108
  var FF = engineFfVersion;
@@ -1597,6 +1657,8 @@ let hasIeDragAndDropBug = ieVersion && ieVersion < 10;
1597
1657
  let createElement = document.createElement.bind(document);
1598
1658
  const hasOwnProperty = Object.prototype.hasOwnProperty;
1599
1659
 
1660
+ const IsSafeSymbol = 'safe';
1661
+
1600
1662
  function webkitRenderBugfix(el) {
1601
1663
  // BUGFIX: WebKit has a bug where it does not relayout, and this affects us because scrollbars
1602
1664
  // are still calculated even though they are not there yet. This is the last resort.
@@ -2684,12 +2746,15 @@ DGTable.prototype.removeColumn = function (column, render) {
2684
2746
  * @returns {DGTable} self
2685
2747
  */
2686
2748
  DGTable.prototype.setCellFormatter = function (formatter) {
2749
+ if (!formatter) {
2750
+ formatter = (val) => typeof val === 'string' ? htmlEncode(val) : val;
2751
+ formatter[IsSafeSymbol] = true;
2752
+ }
2753
+
2687
2754
  /**
2688
2755
  * @private
2689
2756
  * @field {Function} cellFormatter */
2690
- this.o.cellFormatter = formatter || function (val) {
2691
- return typeof val === 'string' ? htmlEncode(val) : val;
2692
- };
2757
+ this.o.cellFormatter = formatter;
2693
2758
 
2694
2759
  return this;
2695
2760
  };
@@ -3369,7 +3434,21 @@ DGTable.prototype._getHtmlForCell = function (rowData, column) {
3369
3434
  colValue = colValue && colValue[dataPath[dataPathIndex]];
3370
3435
  }
3371
3436
 
3372
- let content = this.o.cellFormatter(colValue, column.name, rowData);
3437
+ const formatter = this.o.cellFormatter;
3438
+ let content;
3439
+
3440
+ if (formatter[IsSafeSymbol]) {
3441
+ content = formatter(colValue, column.name, rowData);
3442
+ } else {
3443
+ try {
3444
+ content = formatter(colValue, column.name, rowData);
3445
+ } catch (err) {
3446
+ content = '[ERROR]';
3447
+ // eslint-disable-next-line no-console
3448
+ console.error('Failed to generate content for cell ' + column.name, err);
3449
+ }
3450
+ }
3451
+
3373
3452
  if (content === undefined || content === null) {
3374
3453
  content = '';
3375
3454
  }