@dereekb/model 11.1.8 → 12.0.0

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.
package/index.esm.js CHANGED
@@ -2,39 +2,6 @@ import { ZIP_CODE_STRING_REGEX, US_STATE_CODE_STRING_REGEX, splitJoinRemainder,
2
2
  import { Expose, Transform, plainToInstance } from 'class-transformer';
3
3
  import { IsString, IsNotEmpty, MaxLength, IsOptional, Matches, MinLength, validate, registerDecorator, buildMessage } from 'class-validator';
4
4
 
5
- function _initializerDefineProperty(target, property, descriptor, context) {
6
- if (!descriptor) return;
7
- Object.defineProperty(target, property, {
8
- enumerable: descriptor.enumerable,
9
- configurable: descriptor.configurable,
10
- writable: descriptor.writable,
11
- value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
12
- });
13
- }
14
- function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
15
- var desc = {};
16
- Object.keys(descriptor).forEach(function (key) {
17
- desc[key] = descriptor[key];
18
- });
19
- desc.enumerable = !!desc.enumerable;
20
- desc.configurable = !!desc.configurable;
21
- if ('value' in desc || desc.initializer) {
22
- desc.writable = true;
23
- }
24
- desc = decorators.slice().reverse().reduce(function (desc, decorator) {
25
- return decorator(target, property, desc) || desc;
26
- }, desc);
27
- if (context && desc.initializer !== void 0) {
28
- desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
29
- desc.initializer = undefined;
30
- }
31
- if (desc.initializer === void 0) {
32
- Object.defineProperty(target, property, desc);
33
- desc = null;
34
- }
35
- return desc;
36
- }
37
-
38
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
39
6
 
40
7
  var fails$g = function (exec) {
@@ -57,22 +24,22 @@ var functionBindNative = !fails$f(function () {
57
24
  var NATIVE_BIND$3 = functionBindNative;
58
25
 
59
26
  var FunctionPrototype$2 = Function.prototype;
60
- var call$e = FunctionPrototype$2.call;
61
- var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$e, call$e);
27
+ var call$f = FunctionPrototype$2.call;
28
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$f, call$f);
62
29
 
63
30
  var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
64
31
  return function () {
65
- return call$e.apply(fn, arguments);
32
+ return call$f.apply(fn, arguments);
66
33
  };
67
34
  };
68
35
 
69
36
  var uncurryThis$f = functionUncurryThis;
70
37
 
71
- var toString$3 = uncurryThis$f({}.toString);
38
+ var toString$4 = uncurryThis$f({}.toString);
72
39
  var stringSlice$2 = uncurryThis$f(''.slice);
73
40
 
74
41
  var classofRaw$2 = function (it) {
75
- return stringSlice$2(toString$3(it), 8, -1);
42
+ return stringSlice$2(toString$4(it), 8, -1);
76
43
  };
77
44
 
78
45
  var uncurryThis$e = functionUncurryThis;
@@ -103,17 +70,17 @@ var $TypeError$c = TypeError;
103
70
 
104
71
  // `RequireObjectCoercible` abstract operation
105
72
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
106
- var requireObjectCoercible$2 = function (it) {
73
+ var requireObjectCoercible$3 = function (it) {
107
74
  if (isNullOrUndefined$3(it)) throw new $TypeError$c("Can't call method on " + it);
108
75
  return it;
109
76
  };
110
77
 
111
78
  // toObject with fallback for non-array-like ES3 strings
112
79
  var IndexedObject$1 = indexedObject;
113
- var requireObjectCoercible$1 = requireObjectCoercible$2;
80
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
114
81
 
115
82
  var toIndexedObject$5 = function (it) {
116
- return IndexedObject$1(requireObjectCoercible$1(it));
83
+ return IndexedObject$1(requireObjectCoercible$2(it));
117
84
  };
118
85
 
119
86
  var check = function (it) {
@@ -121,7 +88,7 @@ var check = function (it) {
121
88
  };
122
89
 
123
90
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
124
- var global$m =
91
+ var global$l =
125
92
  // eslint-disable-next-line es/no-global-this -- safe
126
93
  check(typeof globalThis == 'object' && globalThis) ||
127
94
  check(typeof window == 'object' && window) ||
@@ -132,49 +99,51 @@ var global$m =
132
99
  // eslint-disable-next-line no-new-func -- fallback
133
100
  (function () { return this; })() || Function('return this')();
134
101
 
135
- var shared$4 = {exports: {}};
102
+ var sharedStore = {exports: {}};
136
103
 
137
- var global$l = global$m;
104
+ var global$k = global$l;
138
105
 
139
106
  // eslint-disable-next-line es/no-object-defineproperty -- safe
140
107
  var defineProperty$6 = Object.defineProperty;
141
108
 
142
109
  var defineGlobalProperty$3 = function (key, value) {
143
110
  try {
144
- defineProperty$6(global$l, key, { value: value, configurable: true, writable: true });
111
+ defineProperty$6(global$k, key, { value: value, configurable: true, writable: true });
145
112
  } catch (error) {
146
- global$l[key] = value;
113
+ global$k[key] = value;
147
114
  } return value;
148
115
  };
149
116
 
150
- var global$k = global$m;
117
+ var globalThis$1 = global$l;
151
118
  var defineGlobalProperty$2 = defineGlobalProperty$3;
152
119
 
153
120
  var SHARED = '__core-js_shared__';
154
- var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {});
155
-
156
- var sharedStore = store$3;
121
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
157
122
 
158
- var store$2 = sharedStore;
159
-
160
- (shared$4.exports = function (key, value) {
161
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
162
- })('versions', []).push({
163
- version: '3.35.1',
123
+ (store$3.versions || (store$3.versions = [])).push({
124
+ version: '3.36.1',
164
125
  mode: 'global',
165
126
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
166
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
127
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
167
128
  source: 'https://github.com/zloirock/core-js'
168
129
  });
169
130
 
170
- var requireObjectCoercible = requireObjectCoercible$2;
131
+ var sharedStoreExports = sharedStore.exports;
132
+
133
+ var store$2 = sharedStoreExports;
134
+
135
+ var shared$4 = function (key, value) {
136
+ return store$2[key] || (store$2[key] = value || {});
137
+ };
138
+
139
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
171
140
 
172
141
  var $Object$3 = Object;
173
142
 
174
143
  // `ToObject` abstract operation
175
144
  // https://tc39.es/ecma262/#sec-toobject
176
145
  var toObject$3 = function (argument) {
177
- return $Object$3(requireObjectCoercible(argument));
146
+ return $Object$3(requireObjectCoercible$1(argument));
178
147
  };
179
148
 
180
149
  var uncurryThis$d = functionUncurryThis;
@@ -193,15 +162,15 @@ var uncurryThis$c = functionUncurryThis;
193
162
 
194
163
  var id = 0;
195
164
  var postfix = Math.random();
196
- var toString$2 = uncurryThis$c(1.0.toString);
165
+ var toString$3 = uncurryThis$c(1.0.toString);
197
166
 
198
167
  var uid$2 = function (key) {
199
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
168
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
200
169
  };
201
170
 
202
171
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
203
172
 
204
- var global$j = global$m;
173
+ var global$j = global$l;
205
174
  var userAgent$3 = engineUserAgent;
206
175
 
207
176
  var process$3 = global$j.process;
@@ -232,7 +201,7 @@ var engineV8Version = version;
232
201
  /* eslint-disable es/no-symbol -- required for testing */
233
202
  var V8_VERSION$1 = engineV8Version;
234
203
  var fails$d = fails$g;
235
- var global$i = global$m;
204
+ var global$i = global$l;
236
205
 
237
206
  var $String$5 = global$i.String;
238
207
 
@@ -255,8 +224,8 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
255
224
  && !Symbol.sham
256
225
  && typeof Symbol.iterator == 'symbol';
257
226
 
258
- var global$h = global$m;
259
- var shared$3 = shared$4.exports;
227
+ var global$h = global$l;
228
+ var shared$3 = shared$4;
260
229
  var hasOwn$9 = hasOwnProperty_1;
261
230
  var uid$1 = uid$2;
262
231
  var NATIVE_SYMBOL = symbolConstructorDetection;
@@ -280,26 +249,26 @@ var documentAll = typeof document == 'object' && document.all;
280
249
  // `IsCallable` abstract operation
281
250
  // https://tc39.es/ecma262/#sec-iscallable
282
251
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
283
- var isCallable$j = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
252
+ var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
284
253
  return typeof argument == 'function' || argument === documentAll;
285
254
  } : function (argument) {
286
255
  return typeof argument == 'function';
287
256
  };
288
257
 
289
- var isCallable$i = isCallable$j;
258
+ var isCallable$j = isCallable$k;
290
259
 
291
- var isObject$9 = function (it) {
292
- return typeof it == 'object' ? it !== null : isCallable$i(it);
260
+ var isObject$a = function (it) {
261
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
293
262
  };
294
263
 
295
- var isObject$8 = isObject$9;
264
+ var isObject$9 = isObject$a;
296
265
 
297
266
  var $String$4 = String;
298
267
  var $TypeError$b = TypeError;
299
268
 
300
269
  // `Assert: Type(argument) is Object`
301
270
  var anObject$b = function (argument) {
302
- if (isObject$8(argument)) return argument;
271
+ if (isObject$9(argument)) return argument;
303
272
  throw new $TypeError$b($String$4(argument) + ' is not an object');
304
273
  };
305
274
 
@@ -328,12 +297,12 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$b(function () {
328
297
 
329
298
  var objectDefineProperty = {};
330
299
 
331
- var global$g = global$m;
332
- var isObject$7 = isObject$9;
300
+ var global$g = global$l;
301
+ var isObject$8 = isObject$a;
333
302
 
334
303
  var document$3 = global$g.document;
335
304
  // typeof document.createElement is 'object' in old IE
336
- var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
305
+ var EXISTS$1 = isObject$8(document$3) && isObject$8(document$3.createElement);
337
306
 
338
307
  var documentCreateElement$2 = function (it) {
339
308
  return EXISTS$1 ? document$3.createElement(it) : {};
@@ -353,17 +322,17 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$a(function () {
353
322
 
354
323
  var NATIVE_BIND$2 = functionBindNative;
355
324
 
356
- var call$d = Function.prototype.call;
325
+ var call$e = Function.prototype.call;
357
326
 
358
- var functionCall = NATIVE_BIND$2 ? call$d.bind(call$d) : function () {
359
- return call$d.apply(call$d, arguments);
327
+ var functionCall = NATIVE_BIND$2 ? call$e.bind(call$e) : function () {
328
+ return call$e.apply(call$e, arguments);
360
329
  };
361
330
 
362
- var global$f = global$m;
363
- var isCallable$h = isCallable$j;
331
+ var global$f = global$l;
332
+ var isCallable$i = isCallable$k;
364
333
 
365
334
  var aFunction = function (argument) {
366
- return isCallable$h(argument) ? argument : undefined;
335
+ return isCallable$i(argument) ? argument : undefined;
367
336
  };
368
337
 
369
338
  var getBuiltIn$7 = function (namespace, method) {
@@ -375,7 +344,7 @@ var uncurryThis$b = functionUncurryThis;
375
344
  var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
376
345
 
377
346
  var getBuiltIn$6 = getBuiltIn$7;
378
- var isCallable$g = isCallable$j;
347
+ var isCallable$h = isCallable$k;
379
348
  var isPrototypeOf$2 = objectIsPrototypeOf;
380
349
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
381
350
 
@@ -385,7 +354,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
385
354
  return typeof it == 'symbol';
386
355
  } : function (it) {
387
356
  var $Symbol = getBuiltIn$6('Symbol');
388
- return isCallable$g($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
357
+ return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
389
358
  };
390
359
 
391
360
  var $String$3 = String;
@@ -398,14 +367,14 @@ var tryToString$4 = function (argument) {
398
367
  }
399
368
  };
400
369
 
401
- var isCallable$f = isCallable$j;
370
+ var isCallable$g = isCallable$k;
402
371
  var tryToString$3 = tryToString$4;
403
372
 
404
373
  var $TypeError$a = TypeError;
405
374
 
406
375
  // `Assert: IsCallable(argument) is true`
407
376
  var aCallable$8 = function (argument) {
408
- if (isCallable$f(argument)) return argument;
377
+ if (isCallable$g(argument)) return argument;
409
378
  throw new $TypeError$a(tryToString$3(argument) + ' is not a function');
410
379
  };
411
380
 
@@ -419,9 +388,9 @@ var getMethod$3 = function (V, P) {
419
388
  return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
420
389
  };
421
390
 
422
- var call$c = functionCall;
423
- var isCallable$e = isCallable$j;
424
- var isObject$6 = isObject$9;
391
+ var call$d = functionCall;
392
+ var isCallable$f = isCallable$k;
393
+ var isObject$7 = isObject$a;
425
394
 
426
395
  var $TypeError$9 = TypeError;
427
396
 
@@ -429,14 +398,14 @@ var $TypeError$9 = TypeError;
429
398
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
430
399
  var ordinaryToPrimitive$1 = function (input, pref) {
431
400
  var fn, val;
432
- if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$6(val = call$c(fn, input))) return val;
433
- if (isCallable$e(fn = input.valueOf) && !isObject$6(val = call$c(fn, input))) return val;
434
- if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$6(val = call$c(fn, input))) return val;
401
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$d(fn, input))) return val;
402
+ if (isCallable$f(fn = input.valueOf) && !isObject$7(val = call$d(fn, input))) return val;
403
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$7(val = call$d(fn, input))) return val;
435
404
  throw new $TypeError$9("Can't convert object to primitive value");
436
405
  };
437
406
 
438
- var call$b = functionCall;
439
- var isObject$5 = isObject$9;
407
+ var call$c = functionCall;
408
+ var isObject$6 = isObject$a;
440
409
  var isSymbol$1 = isSymbol$2;
441
410
  var getMethod$2 = getMethod$3;
442
411
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -448,13 +417,13 @@ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
448
417
  // `ToPrimitive` abstract operation
449
418
  // https://tc39.es/ecma262/#sec-toprimitive
450
419
  var toPrimitive$1 = function (input, pref) {
451
- if (!isObject$5(input) || isSymbol$1(input)) return input;
420
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
452
421
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
453
422
  var result;
454
423
  if (exoticToPrim) {
455
424
  if (pref === undefined) pref = 'default';
456
- result = call$b(exoticToPrim, input, pref);
457
- if (!isObject$5(result) || isSymbol$1(result)) return result;
425
+ result = call$c(exoticToPrim, input, pref);
426
+ if (!isObject$6(result) || isSymbol$1(result)) return result;
458
427
  throw new $TypeError$8("Can't convert object to primitive value");
459
428
  }
460
429
  if (pref === undefined) pref = 'number';
@@ -577,6 +546,7 @@ var createMethod = function (IS_INCLUDES) {
577
546
  return function ($this, el, fromIndex) {
578
547
  var O = toIndexedObject$4($this);
579
548
  var length = lengthOfArrayLike$1(O);
549
+ if (length === 0) return !IS_INCLUDES && -1;
580
550
  var index = toAbsoluteIndex(fromIndex, length);
581
551
  var value;
582
552
  // Array#includes uses SameValueZero equality algorithm
@@ -670,7 +640,7 @@ var getBuiltIn$5 = getBuiltIn$7;
670
640
 
671
641
  var html$2 = getBuiltIn$5('document', 'documentElement');
672
642
 
673
- var shared$2 = shared$4.exports;
643
+ var shared$2 = shared$4;
674
644
  var uid = uid$2;
675
645
 
676
646
  var keys = shared$2('keys');
@@ -786,12 +756,12 @@ var addToUnscopables$1 = function (key) {
786
756
 
787
757
  var iterators = {};
788
758
 
789
- var global$e = global$m;
790
- var isCallable$d = isCallable$j;
759
+ var global$e = global$l;
760
+ var isCallable$e = isCallable$k;
791
761
 
792
762
  var WeakMap$1 = global$e.WeakMap;
793
763
 
794
- var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
764
+ var weakMapBasicDetection = isCallable$e(WeakMap$1) && /native code/.test(String(WeakMap$1));
795
765
 
796
766
  var createPropertyDescriptor$3 = function (bitmap, value) {
797
767
  return {
@@ -814,11 +784,11 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value
814
784
  };
815
785
 
816
786
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
817
- var global$d = global$m;
818
- var isObject$4 = isObject$9;
787
+ var global$d = global$l;
788
+ var isObject$5 = isObject$a;
819
789
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
820
790
  var hasOwn$7 = hasOwnProperty_1;
821
- var shared$1 = sharedStore;
791
+ var shared$1 = sharedStoreExports;
822
792
  var sharedKey$1 = sharedKey$3;
823
793
  var hiddenKeys$1 = hiddenKeys$4;
824
794
 
@@ -834,7 +804,7 @@ var enforce = function (it) {
834
804
  var getterFor = function (TYPE) {
835
805
  return function (it) {
836
806
  var state;
837
- if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
807
+ if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
838
808
  throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
839
809
  } return state;
840
810
  };
@@ -903,7 +873,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
903
873
  } : $propertyIsEnumerable;
904
874
 
905
875
  var DESCRIPTORS$6 = descriptors;
906
- var call$a = functionCall;
876
+ var call$b = functionCall;
907
877
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
908
878
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
909
879
  var toIndexedObject$1 = toIndexedObject$5;
@@ -922,7 +892,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : f
922
892
  if (IE8_DOM_DEFINE) try {
923
893
  return $getOwnPropertyDescriptor(O, P);
924
894
  } catch (error) { /* empty */ }
925
- if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
895
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
926
896
  };
927
897
 
928
898
  var makeBuiltIn$3 = {exports: {}};
@@ -946,13 +916,13 @@ var functionName = {
946
916
  };
947
917
 
948
918
  var uncurryThis$9 = functionUncurryThis;
949
- var isCallable$c = isCallable$j;
950
- var store = sharedStore;
919
+ var isCallable$d = isCallable$k;
920
+ var store = sharedStoreExports;
951
921
 
952
922
  var functionToString = uncurryThis$9(Function.toString);
953
923
 
954
924
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
955
- if (!isCallable$c(store.inspectSource)) {
925
+ if (!isCallable$d(store.inspectSource)) {
956
926
  store.inspectSource = function (it) {
957
927
  return functionToString(it);
958
928
  };
@@ -962,7 +932,7 @@ var inspectSource$3 = store.inspectSource;
962
932
 
963
933
  var uncurryThis$8 = functionUncurryThis;
964
934
  var fails$9 = fails$g;
965
- var isCallable$b = isCallable$j;
935
+ var isCallable$c = isCallable$k;
966
936
  var hasOwn$4 = hasOwnProperty_1;
967
937
  var DESCRIPTORS$4 = descriptors;
968
938
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
@@ -1012,19 +982,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
1012
982
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1013
983
  // eslint-disable-next-line no-extend-native -- required
1014
984
  Function.prototype.toString = makeBuiltIn$2(function toString() {
1015
- return isCallable$b(this) && getInternalState$2(this).source || inspectSource$2(this);
985
+ return isCallable$c(this) && getInternalState$2(this).source || inspectSource$2(this);
1016
986
  }, 'toString');
1017
987
 
1018
- var isCallable$a = isCallable$j;
988
+ var makeBuiltInExports = makeBuiltIn$3.exports;
989
+
990
+ var isCallable$b = isCallable$k;
1019
991
  var definePropertyModule$1 = objectDefineProperty;
1020
- var makeBuiltIn$1 = makeBuiltIn$3.exports;
992
+ var makeBuiltIn$1 = makeBuiltInExports;
1021
993
  var defineGlobalProperty$1 = defineGlobalProperty$3;
1022
994
 
1023
995
  var defineBuiltIn$5 = function (O, key, value, options) {
1024
996
  if (!options) options = {};
1025
997
  var simple = options.enumerable;
1026
998
  var name = options.name !== undefined ? options.name : key;
1027
- if (isCallable$a(value)) makeBuiltIn$1(value, name, options);
999
+ if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
1028
1000
  if (options.global) {
1029
1001
  if (simple) O[key] = value;
1030
1002
  else defineGlobalProperty$1(key, value);
@@ -1095,7 +1067,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1095
1067
  };
1096
1068
 
1097
1069
  var fails$8 = fails$g;
1098
- var isCallable$9 = isCallable$j;
1070
+ var isCallable$a = isCallable$k;
1099
1071
 
1100
1072
  var replacement = /#|\.prototype\./;
1101
1073
 
@@ -1103,7 +1075,7 @@ var isForced$2 = function (feature, detection) {
1103
1075
  var value = data[normalize(feature)];
1104
1076
  return value === POLYFILL ? true
1105
1077
  : value === NATIVE ? false
1106
- : isCallable$9(detection) ? fails$8(detection)
1078
+ : isCallable$a(detection) ? fails$8(detection)
1107
1079
  : !!detection;
1108
1080
  };
1109
1081
 
@@ -1117,7 +1089,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
1117
1089
 
1118
1090
  var isForced_1 = isForced$2;
1119
1091
 
1120
- var global$c = global$m;
1092
+ var global$c = global$l;
1121
1093
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1122
1094
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1123
1095
  var defineBuiltIn$4 = defineBuiltIn$5;
@@ -1182,7 +1154,7 @@ var correctPrototypeGetter = !fails$7(function () {
1182
1154
  });
1183
1155
 
1184
1156
  var hasOwn$2 = hasOwnProperty_1;
1185
- var isCallable$8 = isCallable$j;
1157
+ var isCallable$9 = isCallable$k;
1186
1158
  var toObject$1 = toObject$3;
1187
1159
  var sharedKey = sharedKey$3;
1188
1160
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
@@ -1198,14 +1170,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1198
1170
  var object = toObject$1(O);
1199
1171
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1200
1172
  var constructor = object.constructor;
1201
- if (isCallable$8(constructor) && object instanceof constructor) {
1173
+ if (isCallable$9(constructor) && object instanceof constructor) {
1202
1174
  return constructor.prototype;
1203
1175
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1204
1176
  };
1205
1177
 
1206
1178
  var fails$6 = fails$g;
1207
- var isCallable$7 = isCallable$j;
1208
- var isObject$3 = isObject$9;
1179
+ var isCallable$8 = isCallable$k;
1180
+ var isObject$4 = isObject$a;
1209
1181
  var getPrototypeOf$1 = objectGetPrototypeOf;
1210
1182
  var defineBuiltIn$3 = defineBuiltIn$5;
1211
1183
  var wellKnownSymbol$b = wellKnownSymbol$e;
@@ -1228,7 +1200,7 @@ if ([].keys) {
1228
1200
  }
1229
1201
  }
1230
1202
 
1231
- var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$6(function () {
1203
+ var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$6(function () {
1232
1204
  var test = {};
1233
1205
  // FF44- legacy iterators case
1234
1206
  return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
@@ -1238,7 +1210,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1238
1210
 
1239
1211
  // `%IteratorPrototype%[@@iterator]()` method
1240
1212
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1241
- if (!isCallable$7(IteratorPrototype$2[ITERATOR$5])) {
1213
+ if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) {
1242
1214
  defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
1243
1215
  return this;
1244
1216
  });
@@ -1288,10 +1260,10 @@ var functionUncurryThisAccessor = function (object, key, method) {
1288
1260
  } catch (error) { /* empty */ }
1289
1261
  };
1290
1262
 
1291
- var isObject$2 = isObject$9;
1263
+ var isObject$3 = isObject$a;
1292
1264
 
1293
1265
  var isPossiblePrototype$1 = function (argument) {
1294
- return isObject$2(argument) || argument === null;
1266
+ return isObject$3(argument) || argument === null;
1295
1267
  };
1296
1268
 
1297
1269
  var isPossiblePrototype = isPossiblePrototype$1;
@@ -1306,7 +1278,8 @@ var aPossiblePrototype$1 = function (argument) {
1306
1278
 
1307
1279
  /* eslint-disable no-proto -- safe */
1308
1280
  var uncurryThisAccessor = functionUncurryThisAccessor;
1309
- var anObject$6 = anObject$b;
1281
+ var isObject$2 = isObject$a;
1282
+ var requireObjectCoercible = requireObjectCoercible$3;
1310
1283
  var aPossiblePrototype = aPossiblePrototype$1;
1311
1284
 
1312
1285
  // `Object.setPrototypeOf` method
@@ -1323,18 +1296,19 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1323
1296
  CORRECT_SETTER = test instanceof Array;
1324
1297
  } catch (error) { /* empty */ }
1325
1298
  return function setPrototypeOf(O, proto) {
1326
- anObject$6(O);
1299
+ requireObjectCoercible(O);
1327
1300
  aPossiblePrototype(proto);
1301
+ if (!isObject$2(O)) return O;
1328
1302
  if (CORRECT_SETTER) setter(O, proto);
1329
1303
  else O.__proto__ = proto;
1330
1304
  return O;
1331
1305
  };
1332
1306
  }() : undefined);
1333
1307
 
1334
- var $$8 = _export;
1335
- var call$9 = functionCall;
1308
+ var $$9 = _export;
1309
+ var call$a = functionCall;
1336
1310
  var FunctionName = functionName;
1337
- var isCallable$6 = isCallable$j;
1311
+ var isCallable$7 = isCallable$k;
1338
1312
  var createIteratorConstructor = iteratorCreateConstructor;
1339
1313
  var getPrototypeOf = objectGetPrototypeOf;
1340
1314
  var setPrototypeOf$1 = objectSetPrototypeOf;
@@ -1389,7 +1363,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1389
1363
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1390
1364
  if (setPrototypeOf$1) {
1391
1365
  setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1392
- } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1366
+ } else if (!isCallable$7(CurrentIteratorPrototype[ITERATOR$4])) {
1393
1367
  defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1394
1368
  }
1395
1369
  }
@@ -1404,7 +1378,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1404
1378
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1405
1379
  } else {
1406
1380
  INCORRECT_VALUES_NAME = true;
1407
- defaultIterator = function values() { return call$9(nativeIterator, this); };
1381
+ defaultIterator = function values() { return call$a(nativeIterator, this); };
1408
1382
  }
1409
1383
  }
1410
1384
 
@@ -1419,7 +1393,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1419
1393
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1420
1394
  defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1421
1395
  }
1422
- } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1396
+ } else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1423
1397
  }
1424
1398
 
1425
1399
  // define iterator
@@ -1542,7 +1516,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1542
1516
 
1543
1517
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1544
1518
 
1545
- var global$b = global$m;
1519
+ var global$b = global$l;
1546
1520
  var DOMIterables = domIterables;
1547
1521
  var DOMTokenListPrototype = domTokenListPrototype;
1548
1522
  var ArrayIteratorMethods = es_array_iterator;
@@ -1579,71 +1553,77 @@ for (var COLLECTION_NAME in DOMIterables) {
1579
1553
 
1580
1554
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1581
1555
 
1582
- var _dec$2, _dec2$2, _dec3$2, _dec4$2, _dec5$2, _dec6$2, _dec7$2, _dec8$2, _dec9$2, _dec10$2, _dec11$2, _dec12$1, _dec13$1, _dec14$1, _dec15$1, _dec16$1, _dec17$1, _dec18$1, _dec19$1, _dec20$1, _dec21$1, _class$2, _descriptor$2, _descriptor2$2, _descriptor3$1, _descriptor4$1, _dec22$1, _dec23, _dec24, _dec25, _dec26, _dec27, _class2, _descriptor5, _dec28, _dec29, _dec30, _dec31, _dec32, _class3, _descriptor6;
1556
+ /******************************************************************************
1557
+ Copyright (c) Microsoft Corporation.
1558
+
1559
+ Permission to use, copy, modify, and/or distribute this software for any
1560
+ purpose with or without fee is hereby granted.
1561
+
1562
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1563
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1564
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1565
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1566
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1567
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1568
+ PERFORMANCE OF THIS SOFTWARE.
1569
+ ***************************************************************************** */
1570
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1571
+
1572
+
1573
+ function __decorate(decorators, target, key, desc) {
1574
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1575
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1576
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1577
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1578
+ }
1579
+
1580
+ function __metadata(metadataKey, metadataValue) {
1581
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
1582
+ }
1583
+
1584
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1585
+ var e = new Error(message);
1586
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1587
+ };
1588
+
1583
1589
  const ADDRESS_LINE_MAX_LENGTH = 50;
1584
1590
  const ADDRESS_CITY_MAX_LENGTH = 80;
1585
1591
  const ADDRESS_STATE_MAX_LENGTH = 30;
1586
1592
  const ADDRESS_STATE_CODE_MAX_LENGTH = 2;
1587
1593
  const ADDRESS_ZIP_MAX_LENGTH = 11;
1588
1594
  const ADDRESS_COUNTRY_MAX_LENGTH = 80;
1589
- let AbstractUnitedStatesAddressWithoutStateParams = (_dec$2 = Expose(), _dec2$2 = IsString(), _dec3$2 = IsNotEmpty(), _dec4$2 = MaxLength(ADDRESS_LINE_MAX_LENGTH), _dec5$2 = Reflect.metadata("design:type", typeof AddressLineString === "undefined" ? Object : AddressLineString), _dec6$2 = Expose(), _dec7$2 = IsOptional(), _dec8$2 = IsString(), _dec9$2 = MaxLength(ADDRESS_LINE_MAX_LENGTH), _dec10$2 = Reflect.metadata("design:type", typeof AddressLineString === "undefined" ? Object : AddressLineString), _dec11$2 = Expose(), _dec12$1 = IsString(), _dec13$1 = IsNotEmpty(), _dec14$1 = MaxLength(ADDRESS_CITY_MAX_LENGTH), _dec15$1 = Reflect.metadata("design:type", typeof CityString === "undefined" ? Object : CityString), _dec16$1 = Expose(), _dec17$1 = IsString(), _dec18$1 = IsNotEmpty(), _dec19$1 = Matches(ZIP_CODE_STRING_REGEX), _dec20$1 = MaxLength(ADDRESS_ZIP_MAX_LENGTH), _dec21$1 = Reflect.metadata("design:type", typeof ZipCodeString === "undefined" ? Object : ZipCodeString), (_class$2 = class AbstractUnitedStatesAddressWithoutStateParams {
1595
+ class AbstractUnitedStatesAddressWithoutStateParams {
1590
1596
  constructor() {
1591
- _initializerDefineProperty(this, "line1", _descriptor$2, this);
1592
- _initializerDefineProperty(this, "line2", _descriptor2$2, this);
1593
- _initializerDefineProperty(this, "city", _descriptor3$1, this);
1594
- _initializerDefineProperty(this, "zip", _descriptor4$1, this);
1597
+ this.line1 = void 0;
1598
+ this.line2 = void 0;
1599
+ this.city = void 0;
1600
+ this.zip = void 0;
1595
1601
  }
1596
- }, (_descriptor$2 = _applyDecoratedDescriptor(_class$2.prototype, "line1", [_dec$2, _dec2$2, _dec3$2, _dec4$2, _dec5$2], {
1597
- configurable: true,
1598
- enumerable: true,
1599
- writable: true,
1600
- initializer: null
1601
- }), _descriptor2$2 = _applyDecoratedDescriptor(_class$2.prototype, "line2", [_dec6$2, _dec7$2, _dec8$2, _dec9$2, _dec10$2], {
1602
- configurable: true,
1603
- enumerable: true,
1604
- writable: true,
1605
- initializer: null
1606
- }), _descriptor3$1 = _applyDecoratedDescriptor(_class$2.prototype, "city", [_dec11$2, _dec12$1, _dec13$1, _dec14$1, _dec15$1], {
1607
- configurable: true,
1608
- enumerable: true,
1609
- writable: true,
1610
- initializer: null
1611
- }), _descriptor4$1 = _applyDecoratedDescriptor(_class$2.prototype, "zip", [_dec16$1, _dec17$1, _dec18$1, _dec19$1, _dec20$1, _dec21$1], {
1612
- configurable: true,
1613
- enumerable: true,
1614
- writable: true,
1615
- initializer: null
1616
- })), _class$2));
1617
-
1602
+ }
1603
+ __decorate([Expose(), IsString(), IsNotEmpty(), MaxLength(ADDRESS_LINE_MAX_LENGTH), __metadata("design:type", String)], AbstractUnitedStatesAddressWithoutStateParams.prototype, "line1", void 0);
1604
+ __decorate([Expose(), IsOptional(), IsString(), MaxLength(ADDRESS_LINE_MAX_LENGTH), __metadata("design:type", String)], AbstractUnitedStatesAddressWithoutStateParams.prototype, "line2", void 0);
1605
+ __decorate([Expose(), IsString(), IsNotEmpty(), MaxLength(ADDRESS_CITY_MAX_LENGTH), __metadata("design:type", String)], AbstractUnitedStatesAddressWithoutStateParams.prototype, "city", void 0);
1606
+ __decorate([Expose(), IsString(), IsNotEmpty(), Matches(ZIP_CODE_STRING_REGEX), MaxLength(ADDRESS_ZIP_MAX_LENGTH), __metadata("design:type", String)], AbstractUnitedStatesAddressWithoutStateParams.prototype, "zip", void 0);
1618
1607
  /**
1619
1608
  * UnitedStatesAddress that enforces a StateCode for the state value.
1620
1609
  */
1621
- let UnitedStatesAddressWithStateCodeParams = (_dec22$1 = Expose(), _dec23 = IsString(), _dec24 = Matches(US_STATE_CODE_STRING_REGEX), _dec25 = MinLength(ADDRESS_STATE_CODE_MAX_LENGTH), _dec26 = MaxLength(ADDRESS_STATE_CODE_MAX_LENGTH), _dec27 = Reflect.metadata("design:type", typeof StateCodeString === "undefined" ? Object : StateCodeString), (_class2 = class UnitedStatesAddressWithStateCodeParams extends AbstractUnitedStatesAddressWithoutStateParams {
1610
+ class UnitedStatesAddressWithStateCodeParams extends AbstractUnitedStatesAddressWithoutStateParams {
1622
1611
  constructor(...args) {
1623
1612
  super(...args);
1624
- _initializerDefineProperty(this, "state", _descriptor5, this);
1613
+ this.state = void 0;
1625
1614
  }
1626
- }, (_descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "state", [_dec22$1, _dec23, _dec24, _dec25, _dec26, _dec27], {
1627
- configurable: true,
1628
- enumerable: true,
1629
- writable: true,
1630
- initializer: null
1631
- })), _class2));
1632
-
1615
+ }
1616
+ __decorate([Expose(), IsString(), Matches(US_STATE_CODE_STRING_REGEX), MinLength(ADDRESS_STATE_CODE_MAX_LENGTH), MaxLength(ADDRESS_STATE_CODE_MAX_LENGTH), __metadata("design:type", String)], UnitedStatesAddressWithStateCodeParams.prototype, "state", void 0);
1633
1617
  /**
1634
1618
  * UnitedStatesAddress that enforces a State for the state value.
1635
1619
  */
1636
- let UnitedStatesAddressWithStateStringParams = (_dec28 = Expose(), _dec29 = IsString(), _dec30 = IsNotEmpty(), _dec31 = MaxLength(ADDRESS_STATE_MAX_LENGTH), _dec32 = Reflect.metadata("design:type", typeof StateString === "undefined" ? Object : StateString), (_class3 = class UnitedStatesAddressWithStateStringParams extends AbstractUnitedStatesAddressWithoutStateParams {
1620
+ class UnitedStatesAddressWithStateStringParams extends AbstractUnitedStatesAddressWithoutStateParams {
1637
1621
  constructor(...args) {
1638
1622
  super(...args);
1639
- _initializerDefineProperty(this, "state", _descriptor6, this);
1623
+ this.state = void 0;
1640
1624
  }
1641
- }, (_descriptor6 = _applyDecoratedDescriptor(_class3.prototype, "state", [_dec28, _dec29, _dec30, _dec31, _dec32], {
1642
- configurable: true,
1643
- enumerable: true,
1644
- writable: true,
1645
- initializer: null
1646
- })), _class3));
1625
+ }
1626
+ __decorate([Expose(), IsString(), IsNotEmpty(), MaxLength(ADDRESS_STATE_MAX_LENGTH), __metadata("design:type", String)], UnitedStatesAddressWithStateStringParams.prototype, "state", void 0);
1647
1627
 
1648
1628
  var wellKnownSymbol$7 = wellKnownSymbol$e;
1649
1629
 
@@ -1655,7 +1635,7 @@ test[TO_STRING_TAG$1] = 'z';
1655
1635
  var toStringTagSupport = String(test) === '[object z]';
1656
1636
 
1657
1637
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1658
- var isCallable$5 = isCallable$j;
1638
+ var isCallable$6 = isCallable$k;
1659
1639
  var classofRaw$1 = classofRaw$2;
1660
1640
  var wellKnownSymbol$6 = wellKnownSymbol$e;
1661
1641
 
@@ -1681,24 +1661,24 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1681
1661
  // builtinTag case
1682
1662
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1683
1663
  // ES3 arguments fallback
1684
- : (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1664
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
1685
1665
  };
1686
1666
 
1687
1667
  var classof$3 = classof$4;
1688
1668
 
1689
1669
  var $String = String;
1690
1670
 
1691
- var toString$1 = function (argument) {
1671
+ var toString$2 = function (argument) {
1692
1672
  if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1693
1673
  return $String(argument);
1694
1674
  };
1695
1675
 
1696
- var anObject$5 = anObject$b;
1676
+ var anObject$6 = anObject$b;
1697
1677
 
1698
1678
  // `RegExp.prototype.flags` getter implementation
1699
1679
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1700
1680
  var regexpFlags$1 = function () {
1701
- var that = anObject$5(this);
1681
+ var that = anObject$6(this);
1702
1682
  var result = '';
1703
1683
  if (that.hasIndices) result += 'd';
1704
1684
  if (that.global) result += 'g';
@@ -1712,7 +1692,7 @@ var regexpFlags$1 = function () {
1712
1692
  };
1713
1693
 
1714
1694
  var fails$5 = fails$g;
1715
- var global$a = global$m;
1695
+ var global$a = global$l;
1716
1696
 
1717
1697
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1718
1698
  var $RegExp$2 = global$a.RegExp;
@@ -1743,7 +1723,7 @@ var regexpStickyHelpers = {
1743
1723
  };
1744
1724
 
1745
1725
  var fails$4 = fails$g;
1746
- var global$9 = global$m;
1726
+ var global$9 = global$l;
1747
1727
 
1748
1728
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1749
1729
  var $RegExp$1 = global$9.RegExp;
@@ -1754,7 +1734,7 @@ var regexpUnsupportedDotAll = fails$4(function () {
1754
1734
  });
1755
1735
 
1756
1736
  var fails$3 = fails$g;
1757
- var global$8 = global$m;
1737
+ var global$8 = global$l;
1758
1738
 
1759
1739
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1760
1740
  var $RegExp = global$8.RegExp;
@@ -1767,12 +1747,12 @@ var regexpUnsupportedNcg = fails$3(function () {
1767
1747
 
1768
1748
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1769
1749
  /* eslint-disable regexp/no-useless-quantifier -- testing */
1770
- var call$8 = functionCall;
1750
+ var call$9 = functionCall;
1771
1751
  var uncurryThis$5 = functionUncurryThis;
1772
- var toString = toString$1;
1752
+ var toString$1 = toString$2;
1773
1753
  var regexpFlags = regexpFlags$1;
1774
1754
  var stickyHelpers = regexpStickyHelpers;
1775
- var shared = shared$4.exports;
1755
+ var shared = shared$4;
1776
1756
  var create = objectCreate;
1777
1757
  var getInternalState = internalState.get;
1778
1758
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
@@ -1789,8 +1769,8 @@ var stringSlice = uncurryThis$5(''.slice);
1789
1769
  var UPDATES_LAST_INDEX_WRONG = (function () {
1790
1770
  var re1 = /a/;
1791
1771
  var re2 = /b*/g;
1792
- call$8(nativeExec, re1, 'a');
1793
- call$8(nativeExec, re2, 'a');
1772
+ call$9(nativeExec, re1, 'a');
1773
+ call$9(nativeExec, re2, 'a');
1794
1774
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1795
1775
  })();
1796
1776
 
@@ -1805,20 +1785,20 @@ if (PATCH) {
1805
1785
  patchedExec = function exec(string) {
1806
1786
  var re = this;
1807
1787
  var state = getInternalState(re);
1808
- var str = toString(string);
1788
+ var str = toString$1(string);
1809
1789
  var raw = state.raw;
1810
1790
  var result, reCopy, lastIndex, match, i, object, group;
1811
1791
 
1812
1792
  if (raw) {
1813
1793
  raw.lastIndex = re.lastIndex;
1814
- result = call$8(patchedExec, raw, str);
1794
+ result = call$9(patchedExec, raw, str);
1815
1795
  re.lastIndex = raw.lastIndex;
1816
1796
  return result;
1817
1797
  }
1818
1798
 
1819
1799
  var groups = state.groups;
1820
1800
  var sticky = UNSUPPORTED_Y && re.sticky;
1821
- var flags = call$8(regexpFlags, re);
1801
+ var flags = call$9(regexpFlags, re);
1822
1802
  var source = re.source;
1823
1803
  var charsAdded = 0;
1824
1804
  var strCopy = str;
@@ -1846,7 +1826,7 @@ if (PATCH) {
1846
1826
  }
1847
1827
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1848
1828
 
1849
- match = call$8(nativeExec, sticky ? reCopy : re, strCopy);
1829
+ match = call$9(nativeExec, sticky ? reCopy : re, strCopy);
1850
1830
 
1851
1831
  if (sticky) {
1852
1832
  if (match) {
@@ -1861,7 +1841,7 @@ if (PATCH) {
1861
1841
  if (NPCG_INCLUDED && match && match.length > 1) {
1862
1842
  // Fix browsers whose `exec` methods don't consistently return `undefined`
1863
1843
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1864
- call$8(nativeReplace, match[0], reCopy, function () {
1844
+ call$9(nativeReplace, match[0], reCopy, function () {
1865
1845
  for (i = 1; i < arguments.length - 2; i++) {
1866
1846
  if (arguments[i] === undefined) match[i] = undefined;
1867
1847
  }
@@ -1882,23 +1862,55 @@ if (PATCH) {
1882
1862
 
1883
1863
  var regexpExec = patchedExec;
1884
1864
 
1885
- var $$7 = _export;
1865
+ var $$8 = _export;
1886
1866
  var exec$1 = regexpExec;
1887
1867
 
1888
1868
  // `RegExp.prototype.exec` method
1889
1869
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1890
- $$7({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1870
+ $$8({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1891
1871
  exec: exec$1
1892
1872
  });
1893
1873
 
1894
- var _dec$1, _dec2$1, _dec3$1, _dec4$1, _dec5$1, _dec6$1, _dec7$1, _dec8$1, _dec9$1, _dec10$1, _dec11$1, _class$1, _descriptor$1, _descriptor2$1;
1895
- const UNKNOWN_WEBSITE_LINK_TYPE = 'u';
1874
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1896
1875
 
1876
+ var $$7 = _export;
1877
+ var call$8 = functionCall;
1878
+ var isCallable$5 = isCallable$k;
1879
+ var anObject$5 = anObject$b;
1880
+ var toString = toString$2;
1881
+
1882
+ var DELEGATES_TO_EXEC = function () {
1883
+ var execCalled = false;
1884
+ var re = /[ac]/;
1885
+ re.exec = function () {
1886
+ execCalled = true;
1887
+ return /./.exec.apply(this, arguments);
1888
+ };
1889
+ return re.test('abc') === true && execCalled;
1890
+ }();
1891
+
1892
+ var nativeTest = /./.test;
1893
+
1894
+ // `RegExp.prototype.test` method
1895
+ // https://tc39.es/ecma262/#sec-regexp.prototype.test
1896
+ $$7({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
1897
+ test: function (S) {
1898
+ var R = anObject$5(this);
1899
+ var string = toString(S);
1900
+ var exec = R.exec;
1901
+ if (!isCallable$5(exec)) return call$8(nativeTest, R, string);
1902
+ var result = call$8(exec, R, string);
1903
+ if (result === null) return false;
1904
+ anObject$5(result);
1905
+ return true;
1906
+ }
1907
+ });
1908
+
1909
+ const UNKNOWN_WEBSITE_LINK_TYPE = 'u';
1897
1910
  /**
1898
1911
  * Max length of WebsiteLink's data type.
1899
1912
  */
1900
1913
  const WEBSITE_LINK_TYPE_MAX_LENGTH = 32;
1901
-
1902
1914
  /**
1903
1915
  * Alpha-numeric type between 1 and 32 characters only allowed.
1904
1916
  */
@@ -1910,86 +1922,50 @@ function isValidWebsiteLinkType(input) {
1910
1922
  * Default max length of WebsiteLink's data string.
1911
1923
  */
1912
1924
  const WEBSITE_LINK_ENCODED_DATA_MAX_LENGTH = 1000;
1913
- let WebsiteLink = (_dec$1 = Expose(), _dec2$1 = IsString(), _dec3$1 = IsNotEmpty(), _dec4$1 = Matches(WEBSITE_LINK_TYPE_REGEX), _dec5$1 = MaxLength(WEBSITE_LINK_TYPE_MAX_LENGTH), _dec6$1 = Reflect.metadata("design:type", typeof WebsiteLinkType === "undefined" ? Object : WebsiteLinkType), _dec7$1 = Expose(), _dec8$1 = IsString(), _dec9$1 = IsNotEmpty(), _dec10$1 = MaxLength(WEBSITE_LINK_ENCODED_DATA_MAX_LENGTH), _dec11$1 = Reflect.metadata("design:type", typeof WebsiteLinkEncodedData === "undefined" ? Object : WebsiteLinkEncodedData), (_class$1 = class WebsiteLink {
1925
+ class WebsiteLink {
1914
1926
  constructor(template) {
1915
- _initializerDefineProperty(this, "t", _descriptor$1, this);
1916
- _initializerDefineProperty(this, "d", _descriptor2$1, this);
1927
+ this.t = void 0;
1928
+ this.d = void 0;
1917
1929
  if (template != null) {
1918
1930
  this.t = template.t;
1919
1931
  this.d = template.d;
1920
1932
  }
1921
1933
  }
1922
- }, (_descriptor$1 = _applyDecoratedDescriptor(_class$1.prototype, "t", [_dec$1, _dec2$1, _dec3$1, _dec4$1, _dec5$1, _dec6$1], {
1923
- configurable: true,
1924
- enumerable: true,
1925
- writable: true,
1926
- initializer: null
1927
- }), _descriptor2$1 = _applyDecoratedDescriptor(_class$1.prototype, "d", [_dec7$1, _dec8$1, _dec9$1, _dec10$1, _dec11$1], {
1928
- configurable: true,
1929
- enumerable: true,
1930
- writable: true,
1931
- initializer: null
1932
- })), _class$1));
1933
-
1934
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;
1935
-
1936
- /**
1937
- * Arbitrary file link type.
1938
- */
1934
+ }
1935
+ __decorate([Expose(), IsString(), IsNotEmpty(), Matches(WEBSITE_LINK_TYPE_REGEX), MaxLength(WEBSITE_LINK_TYPE_MAX_LENGTH), __metadata("design:type", String)], WebsiteLink.prototype, "t", void 0);
1936
+ __decorate([Expose(), IsString(), IsNotEmpty(), MaxLength(WEBSITE_LINK_ENCODED_DATA_MAX_LENGTH), __metadata("design:type", String)], WebsiteLink.prototype, "d", void 0);
1939
1937
 
1940
1938
  /**
1941
1939
  * Max length of WebsiteLink's data type.
1942
1940
  */
1943
1941
  const WEBSITE_FILE_LINK_TYPE_MAX_LENGTH = WEBSITE_LINK_TYPE_MAX_LENGTH;
1944
-
1945
1942
  /**
1946
1943
  * Has the same regex as WebsiteLinkType
1947
1944
  */
1948
1945
  const WEBSITE_FILE_LINK_TYPE_REGEX = WEBSITE_LINK_TYPE_REGEX;
1949
-
1950
- /**
1951
- * WebsiteFileLink's mime type.
1952
- */
1953
-
1954
1946
  /**
1955
1947
  * Max length of WebsiteLink's data type.
1956
1948
  */
1957
1949
  const WEBSITE_FILE_LINK_MIME_TYPE_MAX_LENGTH = 128;
1958
-
1959
1950
  /**
1960
1951
  * Default max length of WebsiteLink's data string.
1961
1952
  */
1962
1953
  const WEBSITE_FILE_LINK_MIME_TYPE_REGEX = /^\w+\/[-+.\w]+$/;
1963
-
1964
- /**
1965
- * Arbitrary name. Has no pattern restriction, but must be 128 characters or less.
1966
- */
1967
-
1968
1954
  /**
1969
1955
  * Max length of WebsiteLink's data type.
1970
1956
  */
1971
1957
  const WEBSITE_FILE_LINK_NAME_MAX_LENGTH = 128;
1972
-
1973
- /**
1974
- * WebsiteFileLink data. Typically a URL.
1975
- */
1976
-
1977
1958
  /**
1978
1959
  * Max length of WebsiteLink's data type.
1979
1960
  */
1980
1961
  const WEBSITE_FILE_LINK_DATA_MAX_LENGTH = WEBSITE_LINK_ENCODED_DATA_MAX_LENGTH - 3 - WEBSITE_FILE_LINK_TYPE_MAX_LENGTH - WEBSITE_FILE_LINK_MIME_TYPE_MAX_LENGTH - WEBSITE_FILE_LINK_NAME_MAX_LENGTH;
1981
1962
  const WEBSITE_FILE_LINK_DATA_REGEX = /^[^|]+$/;
1982
-
1983
- /**
1984
- * A decoded WebsiteLink that points to a file somewhere.
1985
- */
1986
-
1987
- let WebsiteFileLink = (_dec = Expose(), _dec2 = IsOptional(), _dec3 = IsString(), _dec4 = Matches(WEBSITE_FILE_LINK_TYPE_REGEX), _dec5 = MaxLength(WEBSITE_LINK_TYPE_MAX_LENGTH), _dec6 = Reflect.metadata("design:type", typeof WebsiteFileLinkType === "undefined" ? Object : WebsiteFileLinkType), _dec7 = Expose(), _dec8 = IsOptional(), _dec9 = IsString(), _dec10 = Matches(WEBSITE_FILE_LINK_MIME_TYPE_REGEX), _dec11 = MaxLength(WEBSITE_FILE_LINK_MIME_TYPE_MAX_LENGTH), _dec12 = Reflect.metadata("design:type", typeof WebsiteFileLinkType === "undefined" ? Object : WebsiteFileLinkType), _dec13 = Expose(), _dec14 = IsOptional(), _dec15 = IsString(), _dec16 = MaxLength(WEBSITE_FILE_LINK_NAME_MAX_LENGTH), _dec17 = Reflect.metadata("design:type", typeof WebsiteFileLinkName === "undefined" ? Object : WebsiteFileLinkName), _dec18 = IsString(), _dec19 = IsNotEmpty(), _dec20 = Matches(WEBSITE_FILE_LINK_DATA_REGEX), _dec21 = MaxLength(WEBSITE_FILE_LINK_DATA_MAX_LENGTH), _dec22 = Reflect.metadata("design:type", typeof WebsiteFileLinkData === "undefined" ? Object : WebsiteFileLinkData), (_class = class WebsiteFileLink {
1963
+ class WebsiteFileLink {
1988
1964
  constructor(template) {
1989
- _initializerDefineProperty(this, "type", _descriptor, this);
1990
- _initializerDefineProperty(this, "mime", _descriptor2, this);
1991
- _initializerDefineProperty(this, "name", _descriptor3, this);
1992
- _initializerDefineProperty(this, "data", _descriptor4, this);
1965
+ this.type = void 0;
1966
+ this.mime = void 0;
1967
+ this.name = void 0;
1968
+ this.data = void 0;
1993
1969
  if (template != null) {
1994
1970
  this.type = template.type;
1995
1971
  this.mime = template.mime;
@@ -1997,27 +1973,11 @@ let WebsiteFileLink = (_dec = Expose(), _dec2 = IsOptional(), _dec3 = IsString()
1997
1973
  this.data = template.data;
1998
1974
  }
1999
1975
  }
2000
- }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "type", [_dec, _dec2, _dec3, _dec4, _dec5, _dec6], {
2001
- configurable: true,
2002
- enumerable: true,
2003
- writable: true,
2004
- initializer: null
2005
- }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "mime", [_dec7, _dec8, _dec9, _dec10, _dec11, _dec12], {
2006
- configurable: true,
2007
- enumerable: true,
2008
- writable: true,
2009
- initializer: null
2010
- }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "name", [_dec13, _dec14, _dec15, _dec16, _dec17], {
2011
- configurable: true,
2012
- enumerable: true,
2013
- writable: true,
2014
- initializer: null
2015
- }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "data", [_dec18, _dec19, _dec20, _dec21, _dec22], {
2016
- configurable: true,
2017
- enumerable: true,
2018
- writable: true,
2019
- initializer: null
2020
- })), _class));
1976
+ }
1977
+ __decorate([Expose(), IsOptional(), IsString(), Matches(WEBSITE_FILE_LINK_TYPE_REGEX), MaxLength(WEBSITE_LINK_TYPE_MAX_LENGTH), __metadata("design:type", String)], WebsiteFileLink.prototype, "type", void 0);
1978
+ __decorate([Expose(), IsOptional(), IsString(), Matches(WEBSITE_FILE_LINK_MIME_TYPE_REGEX), MaxLength(WEBSITE_FILE_LINK_MIME_TYPE_MAX_LENGTH), __metadata("design:type", String)], WebsiteFileLink.prototype, "mime", void 0);
1979
+ __decorate([Expose(), IsOptional(), IsString(), MaxLength(WEBSITE_FILE_LINK_NAME_MAX_LENGTH), __metadata("design:type", String)], WebsiteFileLink.prototype, "name", void 0);
1980
+ __decorate([IsString(), IsNotEmpty(), Matches(WEBSITE_FILE_LINK_DATA_REGEX), MaxLength(WEBSITE_FILE_LINK_DATA_MAX_LENGTH), __metadata("design:type", String)], WebsiteFileLink.prototype, "data", void 0);
2021
1981
  const WEBSITE_FILE_LINK_WEBSITE_LINK_TYPE = 'f';
2022
1982
  function websiteFileLinkToWebsiteLink(input) {
2023
1983
  return {
@@ -2069,7 +2029,6 @@ function usernameFromUsernameOrWebsiteWithOneOffBaseUrlUsername(input, isolateFn
2069
2029
  function usernameOrWebsiteUrlToWebsiteUrl(input) {
2070
2030
  return hasWebsiteDomain(input) ? input : toAbsoluteSlashPathStartType(removeHttpFromUrl(input));
2071
2031
  }
2072
-
2073
2032
  // MARK: Website
2074
2033
  const WEBSITE_URL_WEBSITE_LINK_TYPE = 'w';
2075
2034
  function websiteUrlToWebsiteLink(input) {
@@ -2078,7 +2037,6 @@ function websiteUrlToWebsiteLink(input) {
2078
2037
  d: removeHttpFromUrl(input) // website urls are stored as-is without http/https
2079
2038
  };
2080
2039
  }
2081
-
2082
2040
  // MARK: Email
2083
2041
  const EMAIL_URL_WEBSITE_LINK_TYPE = 'e';
2084
2042
  function emailAddressToWebsiteLink(input) {
@@ -2087,7 +2045,6 @@ function emailAddressToWebsiteLink(input) {
2087
2045
  d: input
2088
2046
  };
2089
2047
  }
2090
-
2091
2048
  // MARK: Phone
2092
2049
  const PHONE_URL_WEBSITE_LINK_TYPE = 'p';
2093
2050
  function phoneNumberToWebsiteLink(input) {
@@ -2096,7 +2053,6 @@ function phoneNumberToWebsiteLink(input) {
2096
2053
  d: input
2097
2054
  };
2098
2055
  }
2099
-
2100
2056
  // MARK: Facebook
2101
2057
  const FACEBOOK_BASE_URL = `https://www.facebook.com`;
2102
2058
  const FACEBOOK_WEBSITE_LINK_TYPE = 'fb';
@@ -2109,7 +2065,6 @@ function facebookProfileUrlToWebsiteLink(input) {
2109
2065
  function facebookProfileUrl(profileId) {
2110
2066
  return `${FACEBOOK_BASE_URL}/${profileId}`;
2111
2067
  }
2112
-
2113
2068
  // MARK: Instagram
2114
2069
  const INSTAGRAM_BASE_URL = `https://www.instagram.com`;
2115
2070
  const INSTAGRAM_WEBSITE_LINK_TYPE = 'ig';
@@ -2122,7 +2077,6 @@ function instagramProfileUrlToWebsiteLink(input) {
2122
2077
  function instagramProfileUrl(profileId) {
2123
2078
  return `${INSTAGRAM_BASE_URL}/${profileId}`;
2124
2079
  }
2125
-
2126
2080
  // MARK: Twitter
2127
2081
  const TWITTER_BASE_URL = `https://www.twitter.com`;
2128
2082
  const TWITTER_WEBSITE_LINK_TYPE = 'tw';
@@ -2135,7 +2089,6 @@ function twitterProfileUrlToWebsiteLink(input) {
2135
2089
  function twitterProfileUrl(profileId) {
2136
2090
  return `${TWITTER_BASE_URL}/${profileId}`;
2137
2091
  }
2138
-
2139
2092
  // MARK: Tiktok
2140
2093
  const TIKTOK_BASE_URL = `https://tiktok.com`;
2141
2094
  const TIKTOK_USERNAME_PREFIX = '@';
@@ -2149,7 +2102,6 @@ function tiktokProfileUrlToWebsiteLink(input) {
2149
2102
  function tiktokProfileUrl(profileId) {
2150
2103
  return `${TIKTOK_BASE_URL}/@${profileId}`;
2151
2104
  }
2152
-
2153
2105
  // MARK: Snapchat
2154
2106
  const SNAPCHAT_BASE_URL = `https://snapchat.com`;
2155
2107
  const SNAPCHAT_WEBSITE_LINK_TYPE = 'sc';
@@ -2168,7 +2120,6 @@ function snapchatProfileUrlToWebsiteLink(input) {
2168
2120
  function snapchatProfileUrl(profileId) {
2169
2121
  return `${SNAPCHAT_BASE_URL}/add/${profileId}`;
2170
2122
  }
2171
-
2172
2123
  // MARK: YouTube
2173
2124
  const YOUTUBE_BASE_URL = `https://youtube.com`;
2174
2125
  const YOUTUBE_WEBSITE_LINK_TYPE = 'yt';
@@ -2187,7 +2138,6 @@ function youtubeProfileUrlToWebsiteLink(input) {
2187
2138
  function youtubeProfileUrl(profileId) {
2188
2139
  return `${YOUTUBE_BASE_URL}/c/${profileId}`;
2189
2140
  }
2190
-
2191
2141
  // MARK: PayPal
2192
2142
  const PAYPAL_BASE_URL = `https://paypal.me`;
2193
2143
  const PAYPAL_WEBSITE_LINK_TYPE = 'pp';
@@ -2200,7 +2150,6 @@ function paypalProfileUrlToWebsiteLink(input) {
2200
2150
  function paypalProfileUrl(profileId) {
2201
2151
  return `${PAYPAL_BASE_URL}/${profileId}`;
2202
2152
  }
2203
-
2204
2153
  // MARK: Cashapp
2205
2154
  const CASHAPP_BASE_URL = `https://cash.app`;
2206
2155
  const CASHAPP_USERNAME_PREFIX = '$';
@@ -2214,7 +2163,6 @@ function cashappProfileUrlToWebsiteLink(input) {
2214
2163
  function cashappProfileUrl(profileId) {
2215
2164
  return `${CASHAPP_BASE_URL}/$${profileId}`;
2216
2165
  }
2217
-
2218
2166
  // MARK: Venmo
2219
2167
  const VENMO_BASE_URL = `https://account.venmo.com`;
2220
2168
  const VENMO_WEBSITE_LINK_TYPE = 'vn';
@@ -2233,7 +2181,6 @@ function venmoProfileUrlToWebsiteLink(input) {
2233
2181
  function venmoProfileUrl(profileId) {
2234
2182
  return `${VENMO_BASE_URL}/u/${profileId}`;
2235
2183
  }
2236
-
2237
2184
  // MARK: Spotify
2238
2185
  const SPOTIFY_BASE_URL = `https://open.spotify.com/`;
2239
2186
  const SPOTIFY_WEBSITE_LINK_TYPE = 'sp';
@@ -2253,28 +2200,9 @@ function spotifyProfileUrl(profileId) {
2253
2200
  return `${SPOTIFY_BASE_URL}/user/${profileId}`;
2254
2201
  }
2255
2202
 
2256
- /**
2257
- * A granted role for a model.
2258
- */
2259
-
2260
- /**
2261
- * Communicates that the current context is a system admin.
2262
- */
2263
-
2264
2203
  const GRANTED_SYS_ADMIN_ROLE_KEY = 'sysadmin';
2265
-
2266
- /**
2267
- * Communicates that the current context is an admin/owner.
2268
- */
2269
-
2270
2204
  const GRANTED_OWNER_ROLE_KEY = 'owner';
2271
-
2272
- /**
2273
- * Communicates that the current context is an admin.
2274
- */
2275
-
2276
2205
  const GRANTED_ADMIN_ROLE_KEY = 'admin';
2277
-
2278
2206
  /**
2279
2207
  * Returns true if the input role is a GrantedAdminRole or a GrantedOwnerRole.
2280
2208
  *
@@ -2284,30 +2212,10 @@ const GRANTED_ADMIN_ROLE_KEY = 'admin';
2284
2212
  function isGrantedAdminLevelRole(role) {
2285
2213
  return role === GRANTED_ADMIN_ROLE_KEY || role === GRANTED_OWNER_ROLE_KEY;
2286
2214
  }
2287
-
2288
- /**
2289
- * Communicates that the current context has read access to a model.
2290
- */
2291
-
2292
2215
  const GRANTED_READ_ROLE_KEY = 'read';
2293
-
2294
- /**
2295
- * Communicates that the current context has update access to a model.
2296
- */
2297
-
2298
2216
  const GRANTED_UPDATE_ROLE_KEY = 'update';
2299
-
2300
- /**
2301
- * Communicates that the current context has delete access to a model.
2302
- */
2303
-
2304
2217
  const GRANTED_DELETE_ROLE_KEY = 'delete';
2305
2218
  const FULL_ACCESS_ROLE_KEY = '__FULL__';
2306
-
2307
- /**
2308
- * Communicates that the current context has full access to a model.
2309
- */
2310
-
2311
2219
  const NO_ACCESS_ROLE_KEY = '__EMPTY__';
2312
2220
  function noAccessRoleMap() {
2313
2221
  return {
@@ -2325,19 +2233,6 @@ function fullAccessRoleMap() {
2325
2233
  function isFullAccessRoleMap(input) {
2326
2234
  return input[FULL_ACCESS_ROLE_KEY] === true;
2327
2235
  }
2328
-
2329
- /**
2330
- * Values keyed by roles.
2331
- */
2332
-
2333
- /**
2334
- * Output that removes the keys of all roles that are not contained.
2335
- */
2336
-
2337
- /**
2338
- * Reader used for parsing/reading role values from a given context.
2339
- */
2340
-
2341
2236
  /**
2342
2237
  * Creates a GrantedRoleMapReader.
2343
2238
  *
@@ -2401,7 +2296,6 @@ class GrantedRoleMapReaderInstance {
2401
2296
  return true;
2402
2297
  }
2403
2298
  }
2404
-
2405
2299
  /**
2406
2300
  * Converts the input array of roles to a GrantedRoleKeysMap.
2407
2301
  *
@@ -2412,12 +2306,12 @@ function grantedRoleKeysMapFromArray(roles, value = true) {
2412
2306
  return arrayToObject(roles, x => x, () => value);
2413
2307
  }
2414
2308
 
2415
- var global$7 = global$m;
2309
+ var global$7 = global$l;
2416
2310
  var classof$2 = classofRaw$2;
2417
2311
 
2418
2312
  var engineIsNode = classof$2(global$7.process) === 'process';
2419
2313
 
2420
- var makeBuiltIn = makeBuiltIn$3.exports;
2314
+ var makeBuiltIn = makeBuiltInExports;
2421
2315
  var defineProperty$1 = objectDefineProperty;
2422
2316
 
2423
2317
  var defineBuiltInAccessor$1 = function (target, name, descriptor) {
@@ -2455,7 +2349,7 @@ var anInstance$1 = function (it, Prototype) {
2455
2349
 
2456
2350
  var uncurryThis$4 = functionUncurryThis;
2457
2351
  var fails$2 = fails$g;
2458
- var isCallable$4 = isCallable$j;
2352
+ var isCallable$4 = isCallable$k;
2459
2353
  var classof$1 = classof$4;
2460
2354
  var getBuiltIn$2 = getBuiltIn$7;
2461
2355
  var inspectSource$1 = inspectSource$3;
@@ -2582,10 +2476,10 @@ var userAgent$2 = engineUserAgent;
2582
2476
  // eslint-disable-next-line redos/no-vulnerable -- safe
2583
2477
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2584
2478
 
2585
- var global$6 = global$m;
2479
+ var global$6 = global$l;
2586
2480
  var apply = functionApply;
2587
2481
  var bind$3 = functionBindContext;
2588
- var isCallable$3 = isCallable$j;
2482
+ var isCallable$3 = isCallable$k;
2589
2483
  var hasOwn = hasOwnProperty_1;
2590
2484
  var fails$1 = fails$g;
2591
2485
  var html = html$2;
@@ -2699,7 +2593,7 @@ var task$1 = {
2699
2593
  clear: clear
2700
2594
  };
2701
2595
 
2702
- var global$5 = global$m;
2596
+ var global$5 = global$l;
2703
2597
  var DESCRIPTORS$1 = descriptors;
2704
2598
 
2705
2599
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -2745,7 +2639,7 @@ var userAgent = engineUserAgent;
2745
2639
 
2746
2640
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2747
2641
 
2748
- var global$4 = global$m;
2642
+ var global$4 = global$l;
2749
2643
  var safeGetBuiltIn = safeGetBuiltIn$1;
2750
2644
  var bind$2 = functionBindContext;
2751
2645
  var macrotask = task$1.set;
@@ -2839,7 +2733,7 @@ var perform$3 = function (exec) {
2839
2733
  }
2840
2734
  };
2841
2735
 
2842
- var global$3 = global$m;
2736
+ var global$3 = global$l;
2843
2737
 
2844
2738
  var promiseNativeConstructor = global$3.Promise;
2845
2739
 
@@ -2853,9 +2747,9 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2853
2747
  && typeof window == 'object'
2854
2748
  && typeof document == 'object';
2855
2749
 
2856
- var global$2 = global$m;
2750
+ var global$2 = global$l;
2857
2751
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2858
- var isCallable$2 = isCallable$j;
2752
+ var isCallable$2 = isCallable$k;
2859
2753
  var isForced = isForced_1;
2860
2754
  var inspectSource = inspectSource$3;
2861
2755
  var wellKnownSymbol$3 = wellKnownSymbol$e;
@@ -2923,15 +2817,15 @@ newPromiseCapability$2.f = function (C) {
2923
2817
 
2924
2818
  var $$6 = _export;
2925
2819
  var IS_NODE = engineIsNode;
2926
- var global$1 = global$m;
2820
+ var global$1 = global$l;
2927
2821
  var call$6 = functionCall;
2928
2822
  var defineBuiltIn$1 = defineBuiltIn$5;
2929
2823
  var setPrototypeOf = objectSetPrototypeOf;
2930
2824
  var setToStringTag = setToStringTag$4;
2931
2825
  var setSpecies = setSpecies$1;
2932
2826
  var aCallable$3 = aCallable$8;
2933
- var isCallable$1 = isCallable$j;
2934
- var isObject$1 = isObject$9;
2827
+ var isCallable$1 = isCallable$k;
2828
+ var isObject$1 = isObject$a;
2935
2829
  var anInstance = anInstance$1;
2936
2830
  var speciesConstructor = speciesConstructor$1;
2937
2831
  var task = task$1.set;
@@ -3432,7 +3326,7 @@ var $$4 = _export;
3432
3326
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3433
3327
  var NativePromiseConstructor = promiseNativeConstructor;
3434
3328
  var getBuiltIn$1 = getBuiltIn$7;
3435
- var isCallable = isCallable$j;
3329
+ var isCallable = isCallable$k;
3436
3330
  var defineBuiltIn = defineBuiltIn$5;
3437
3331
 
3438
3332
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
@@ -3495,7 +3389,7 @@ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3495
3389
  });
3496
3390
 
3497
3391
  var anObject = anObject$b;
3498
- var isObject = isObject$9;
3392
+ var isObject = isObject$a;
3499
3393
  var newPromiseCapability = newPromiseCapability$2;
3500
3394
 
3501
3395
  var promiseResolve$1 = function (C, x) {
@@ -3522,10 +3416,6 @@ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3522
3416
  }
3523
3417
  });
3524
3418
 
3525
- /**
3526
- * Object that contains granted roles, a model, and the context the roles were granted in.
3527
- */
3528
-
3529
3419
  function noAccessContextGrantedModelRoles(context, data) {
3530
3420
  return contextGrantedModelRoles(context, data, noAccessRoleMap());
3531
3421
  }
@@ -3540,18 +3430,6 @@ function contextGrantedModelRoles(context, data, roles) {
3540
3430
  };
3541
3431
  }
3542
3432
 
3543
- /**
3544
- * Full model permission service that can read permissions for models by key or for an input model.
3545
- */
3546
-
3547
- /**
3548
- * Used for retrieving permissions for a specific model.
3549
- */
3550
-
3551
- /**
3552
- * Used for retrieving permissions for a specific model by their key.
3553
- */
3554
-
3555
3433
  /**
3556
3434
  * Abstract ModelPermissionService implementation.
3557
3435
  */
@@ -3592,28 +3470,6 @@ class AbstractModelPermissionService {
3592
3470
  }
3593
3471
  }
3594
3472
 
3595
- /**
3596
- * Used to retrieve a ModelPermissionService for a specific type.
3597
- */
3598
-
3599
- // MARK: InContext
3600
- /**
3601
- * Used for retrieving permissions for a specific model.
3602
- */
3603
-
3604
- /**
3605
- * Used for retrieving permissions for a specific model by their key.
3606
- */
3607
-
3608
- /**
3609
- * ModelsPermissionService that has a context.
3610
- */
3611
-
3612
- // MARK: InModelContext
3613
- /**
3614
- * Used for retrieving permissions from the in-context model.
3615
- */
3616
-
3617
3473
  // MARK: String
3618
3474
  function transformStringToBoolean(defaultValue) {
3619
3475
  return params => {
@@ -3633,7 +3489,6 @@ function transformStringToBoolean(defaultValue) {
3633
3489
  }
3634
3490
  };
3635
3491
  }
3636
-
3637
3492
  // MARK: Comma Separated Values
3638
3493
  function transformCommaSeparatedValueToArray(mapFn) {
3639
3494
  return params => {
@@ -3726,12 +3581,6 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
3726
3581
  assign: assign
3727
3582
  });
3728
3583
 
3729
- // MARK: Transform and Validate Object
3730
-
3731
- /**
3732
- * transformAndValidateObject() configuration that also provides error handling.
3733
- */
3734
-
3735
3584
  function transformAndValidateObject(config) {
3736
3585
  const transformToResult = transformAndValidateObjectResult(config.classType, config.fn, config.optionsForContext);
3737
3586
  const {
@@ -3751,16 +3600,6 @@ function transformAndValidateObject(config) {
3751
3600
  };
3752
3601
  });
3753
3602
  }
3754
-
3755
- // MARK: Transform and Validate Factory
3756
- /**
3757
- * Configuration for the transformAndValidateObject function from transformAndValidateObjectFactory().
3758
- */
3759
-
3760
- /**
3761
- * Factory for generating TransformAndValidateObjectFunction functions.
3762
- */
3763
-
3764
3603
  /**
3765
3604
  * Creates a new TransformAndValidateObjectFactory.
3766
3605
  *
@@ -3782,9 +3621,6 @@ function transformAndValidateObjectFactory(defaults) {
3782
3621
  return transformAndValidateObject(config);
3783
3622
  };
3784
3623
  }
3785
-
3786
- // MARK: Transform And Validate Object Result
3787
-
3788
3624
  /**
3789
3625
  * Factory function that wraps the input class type and handler function to first transform the input object to a the given class, and then validate it.
3790
3626
  *
@@ -3821,12 +3657,6 @@ function transformAndValidateObjectResult(classType, fn, inputOptionsForContext)
3821
3657
  };
3822
3658
  }
3823
3659
 
3824
- // MARK: Transform and Validate Function Result
3825
-
3826
- /**
3827
- * A TransformAndValidate result for a function with the parsed object attached as "params".
3828
- */
3829
-
3830
3660
  function transformAndValidateFunctionResultFactory(defaults) {
3831
3661
  return toTransformAndValidateFunctionResultFactory(transformAndValidateObjectFactory(defaults));
3832
3662
  }
@@ -3850,11 +3680,6 @@ function toTransformAndValidateFunctionResult(objectOutput) {
3850
3680
  });
3851
3681
  }
3852
3682
 
3853
- // MARK: Transform and Validate Result
3854
- /**
3855
- * A TransformAndValidate function that returns only the result.
3856
- */
3857
-
3858
3683
  function transformAndValidateResultFactory(defaults) {
3859
3684
  const factory = transformAndValidateObjectFactory(defaults);
3860
3685
  return (classType, fn, handleValidationError) => {
@@ -3921,7 +3746,6 @@ function IsE164PhoneNumber(validationOptions) {
3921
3746
  });
3922
3747
  };
3923
3748
  }
3924
-
3925
3749
  /**
3926
3750
  * isE164PhoneNumber validator that allows extensions.
3927
3751
  *
@@ -3942,7 +3766,6 @@ function IsE164PhoneNumberWithOptionalExtension(validationOptions) {
3942
3766
  });
3943
3767
  };
3944
3768
  }
3945
-
3946
3769
  /**
3947
3770
  * isE164PhoneNumberWithExtension validator
3948
3771
  *
@@ -4000,7 +3823,6 @@ function IsWebsiteUrl(validationOptions) {
4000
3823
  });
4001
3824
  };
4002
3825
  }
4003
-
4004
3826
  /**
4005
3827
  * isWebsiteUrlWithPrefix validator
4006
3828
  */