@swagger-api/apidom-ns-openapi-3-1 0.76.0 → 0.76.1
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/CHANGELOG.md +4 -0
- package/cjs/refractor/plugins/normalize-header-examples.cjs +2 -2
- package/cjs/refractor/plugins/normalize-operation-ids.cjs +1 -1
- package/cjs/refractor/plugins/normalize-parameter-examples.cjs +2 -2
- package/cjs/refractor/plugins/normalize-security-requirements.cjs +1 -1
- package/cjs/refractor/plugins/normalize-servers.cjs +1 -1
- package/cjs/refractor/plugins/replace-empty-element.cjs +2 -2
- package/cjs/refractor/visitors/open-api-3-1/schema/index.cjs +2 -2
- package/dist/apidom-ns-openapi-3-1.browser.js +988 -84
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/package.json +5 -5
|
@@ -3066,6 +3066,16 @@ const keyMap = _objectSpread({
|
|
|
3066
3066
|
TagElement: ['content']
|
|
3067
3067
|
}, _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.keyMapDefault);
|
|
3068
3068
|
|
|
3069
|
+
/***/ }),
|
|
3070
|
+
|
|
3071
|
+
/***/ 60042:
|
|
3072
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3073
|
+
|
|
3074
|
+
var parent = __webpack_require__(35846);
|
|
3075
|
+
|
|
3076
|
+
module.exports = parent;
|
|
3077
|
+
|
|
3078
|
+
|
|
3069
3079
|
/***/ }),
|
|
3070
3080
|
|
|
3071
3081
|
/***/ 28385:
|
|
@@ -3140,6 +3150,21 @@ var parent = __webpack_require__(16042);
|
|
|
3140
3150
|
module.exports = parent;
|
|
3141
3151
|
|
|
3142
3152
|
|
|
3153
|
+
/***/ }),
|
|
3154
|
+
|
|
3155
|
+
/***/ 56791:
|
|
3156
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3157
|
+
|
|
3158
|
+
__webpack_require__(4339);
|
|
3159
|
+
__webpack_require__(4242);
|
|
3160
|
+
__webpack_require__(84016);
|
|
3161
|
+
__webpack_require__(98939);
|
|
3162
|
+
__webpack_require__(5454);
|
|
3163
|
+
var path = __webpack_require__(57545);
|
|
3164
|
+
|
|
3165
|
+
module.exports = path.AggregateError;
|
|
3166
|
+
|
|
3167
|
+
|
|
3143
3168
|
/***/ }),
|
|
3144
3169
|
|
|
3145
3170
|
/***/ 92089:
|
|
@@ -3262,6 +3287,27 @@ var WrappedWellKnownSymbolModule = __webpack_require__(89207);
|
|
|
3262
3287
|
module.exports = WrappedWellKnownSymbolModule.f('toPrimitive');
|
|
3263
3288
|
|
|
3264
3289
|
|
|
3290
|
+
/***/ }),
|
|
3291
|
+
|
|
3292
|
+
/***/ 36762:
|
|
3293
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3294
|
+
|
|
3295
|
+
module.exports = __webpack_require__(73028);
|
|
3296
|
+
|
|
3297
|
+
|
|
3298
|
+
/***/ }),
|
|
3299
|
+
|
|
3300
|
+
/***/ 73028:
|
|
3301
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3302
|
+
|
|
3303
|
+
// TODO: remove from `core-js@4`
|
|
3304
|
+
__webpack_require__(12752);
|
|
3305
|
+
|
|
3306
|
+
var parent = __webpack_require__(60042);
|
|
3307
|
+
|
|
3308
|
+
module.exports = parent;
|
|
3309
|
+
|
|
3310
|
+
|
|
3265
3311
|
/***/ }),
|
|
3266
3312
|
|
|
3267
3313
|
/***/ 32747:
|
|
@@ -3691,6 +3737,29 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
3691
3737
|
};
|
|
3692
3738
|
|
|
3693
3739
|
|
|
3740
|
+
/***/ }),
|
|
3741
|
+
|
|
3742
|
+
/***/ 97987:
|
|
3743
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3744
|
+
|
|
3745
|
+
var hasOwn = __webpack_require__(64500);
|
|
3746
|
+
var ownKeys = __webpack_require__(93011);
|
|
3747
|
+
var getOwnPropertyDescriptorModule = __webpack_require__(5141);
|
|
3748
|
+
var definePropertyModule = __webpack_require__(42760);
|
|
3749
|
+
|
|
3750
|
+
module.exports = function (target, source, exceptions) {
|
|
3751
|
+
var keys = ownKeys(source);
|
|
3752
|
+
var defineProperty = definePropertyModule.f;
|
|
3753
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
3754
|
+
for (var i = 0; i < keys.length; i++) {
|
|
3755
|
+
var key = keys[i];
|
|
3756
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
3757
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
};
|
|
3761
|
+
|
|
3762
|
+
|
|
3694
3763
|
/***/ }),
|
|
3695
3764
|
|
|
3696
3765
|
/***/ 4635:
|
|
@@ -3988,6 +4057,65 @@ module.exports = [
|
|
|
3988
4057
|
];
|
|
3989
4058
|
|
|
3990
4059
|
|
|
4060
|
+
/***/ }),
|
|
4061
|
+
|
|
4062
|
+
/***/ 14503:
|
|
4063
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4064
|
+
|
|
4065
|
+
var uncurryThis = __webpack_require__(84120);
|
|
4066
|
+
|
|
4067
|
+
var $Error = Error;
|
|
4068
|
+
var replace = uncurryThis(''.replace);
|
|
4069
|
+
|
|
4070
|
+
var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');
|
|
4071
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
4072
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
4073
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
4074
|
+
|
|
4075
|
+
module.exports = function (stack, dropEntries) {
|
|
4076
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
4077
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
4078
|
+
} return stack;
|
|
4079
|
+
};
|
|
4080
|
+
|
|
4081
|
+
|
|
4082
|
+
/***/ }),
|
|
4083
|
+
|
|
4084
|
+
/***/ 58266:
|
|
4085
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4086
|
+
|
|
4087
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
4088
|
+
var clearErrorStack = __webpack_require__(14503);
|
|
4089
|
+
var ERROR_STACK_INSTALLABLE = __webpack_require__(50274);
|
|
4090
|
+
|
|
4091
|
+
// non-standard V8
|
|
4092
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
4093
|
+
|
|
4094
|
+
module.exports = function (error, C, stack, dropEntries) {
|
|
4095
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
4096
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
4097
|
+
else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
4098
|
+
}
|
|
4099
|
+
};
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
/***/ }),
|
|
4103
|
+
|
|
4104
|
+
/***/ 50274:
|
|
4105
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4106
|
+
|
|
4107
|
+
var fails = __webpack_require__(76192);
|
|
4108
|
+
var createPropertyDescriptor = __webpack_require__(90774);
|
|
4109
|
+
|
|
4110
|
+
module.exports = !fails(function () {
|
|
4111
|
+
var error = Error('a');
|
|
4112
|
+
if (!('stack' in error)) return true;
|
|
4113
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4114
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
4115
|
+
return error.stack !== 7;
|
|
4116
|
+
});
|
|
4117
|
+
|
|
4118
|
+
|
|
3991
4119
|
/***/ }),
|
|
3992
4120
|
|
|
3993
4121
|
/***/ 93085:
|
|
@@ -4271,6 +4399,46 @@ module.exports = function (namespace, method) {
|
|
|
4271
4399
|
};
|
|
4272
4400
|
|
|
4273
4401
|
|
|
4402
|
+
/***/ }),
|
|
4403
|
+
|
|
4404
|
+
/***/ 78703:
|
|
4405
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4406
|
+
|
|
4407
|
+
var classof = __webpack_require__(4696);
|
|
4408
|
+
var getMethod = __webpack_require__(75037);
|
|
4409
|
+
var isNullOrUndefined = __webpack_require__(75646);
|
|
4410
|
+
var Iterators = __webpack_require__(82621);
|
|
4411
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
4412
|
+
|
|
4413
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
4414
|
+
|
|
4415
|
+
module.exports = function (it) {
|
|
4416
|
+
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
4417
|
+
|| getMethod(it, '@@iterator')
|
|
4418
|
+
|| Iterators[classof(it)];
|
|
4419
|
+
};
|
|
4420
|
+
|
|
4421
|
+
|
|
4422
|
+
/***/ }),
|
|
4423
|
+
|
|
4424
|
+
/***/ 61669:
|
|
4425
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4426
|
+
|
|
4427
|
+
var call = __webpack_require__(18922);
|
|
4428
|
+
var aCallable = __webpack_require__(66235);
|
|
4429
|
+
var anObject = __webpack_require__(31138);
|
|
4430
|
+
var tryToString = __webpack_require__(79288);
|
|
4431
|
+
var getIteratorMethod = __webpack_require__(78703);
|
|
4432
|
+
|
|
4433
|
+
var $TypeError = TypeError;
|
|
4434
|
+
|
|
4435
|
+
module.exports = function (argument, usingIterator) {
|
|
4436
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
4437
|
+
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
|
|
4438
|
+
throw $TypeError(tryToString(argument) + ' is not iterable');
|
|
4439
|
+
};
|
|
4440
|
+
|
|
4441
|
+
|
|
4274
4442
|
/***/ }),
|
|
4275
4443
|
|
|
4276
4444
|
/***/ 19202:
|
|
@@ -4420,6 +4588,31 @@ module.exports = fails(function () {
|
|
|
4420
4588
|
} : $Object;
|
|
4421
4589
|
|
|
4422
4590
|
|
|
4591
|
+
/***/ }),
|
|
4592
|
+
|
|
4593
|
+
/***/ 62643:
|
|
4594
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4595
|
+
|
|
4596
|
+
var isCallable = __webpack_require__(16447);
|
|
4597
|
+
var isObject = __webpack_require__(35744);
|
|
4598
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
4599
|
+
|
|
4600
|
+
// makes subclassing work correct for wrapped built-ins
|
|
4601
|
+
module.exports = function ($this, dummy, Wrapper) {
|
|
4602
|
+
var NewTarget, NewTargetPrototype;
|
|
4603
|
+
if (
|
|
4604
|
+
// it can work only with native `setPrototypeOf`
|
|
4605
|
+
setPrototypeOf &&
|
|
4606
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
4607
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
4608
|
+
NewTarget !== Wrapper &&
|
|
4609
|
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
4610
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
4611
|
+
) setPrototypeOf($this, NewTargetPrototype);
|
|
4612
|
+
return $this;
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4615
|
+
|
|
4423
4616
|
/***/ }),
|
|
4424
4617
|
|
|
4425
4618
|
/***/ 19516:
|
|
@@ -4441,6 +4634,23 @@ if (!isCallable(store.inspectSource)) {
|
|
|
4441
4634
|
module.exports = store.inspectSource;
|
|
4442
4635
|
|
|
4443
4636
|
|
|
4637
|
+
/***/ }),
|
|
4638
|
+
|
|
4639
|
+
/***/ 10273:
|
|
4640
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4641
|
+
|
|
4642
|
+
var isObject = __webpack_require__(35744);
|
|
4643
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
4644
|
+
|
|
4645
|
+
// `InstallErrorCause` abstract operation
|
|
4646
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
4647
|
+
module.exports = function (O, options) {
|
|
4648
|
+
if (isObject(options) && 'cause' in options) {
|
|
4649
|
+
createNonEnumerableProperty(O, 'cause', options.cause);
|
|
4650
|
+
}
|
|
4651
|
+
};
|
|
4652
|
+
|
|
4653
|
+
|
|
4444
4654
|
/***/ }),
|
|
4445
4655
|
|
|
4446
4656
|
/***/ 73326:
|
|
@@ -4518,6 +4728,23 @@ module.exports = {
|
|
|
4518
4728
|
};
|
|
4519
4729
|
|
|
4520
4730
|
|
|
4731
|
+
/***/ }),
|
|
4732
|
+
|
|
4733
|
+
/***/ 96109:
|
|
4734
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4735
|
+
|
|
4736
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
4737
|
+
var Iterators = __webpack_require__(82621);
|
|
4738
|
+
|
|
4739
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
4740
|
+
var ArrayPrototype = Array.prototype;
|
|
4741
|
+
|
|
4742
|
+
// check on default Array iterator
|
|
4743
|
+
module.exports = function (it) {
|
|
4744
|
+
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
|
4745
|
+
};
|
|
4746
|
+
|
|
4747
|
+
|
|
4521
4748
|
/***/ }),
|
|
4522
4749
|
|
|
4523
4750
|
/***/ 34770:
|
|
@@ -4696,6 +4923,111 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
4696
4923
|
};
|
|
4697
4924
|
|
|
4698
4925
|
|
|
4926
|
+
/***/ }),
|
|
4927
|
+
|
|
4928
|
+
/***/ 33442:
|
|
4929
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4930
|
+
|
|
4931
|
+
var bind = __webpack_require__(8043);
|
|
4932
|
+
var call = __webpack_require__(18922);
|
|
4933
|
+
var anObject = __webpack_require__(31138);
|
|
4934
|
+
var tryToString = __webpack_require__(79288);
|
|
4935
|
+
var isArrayIteratorMethod = __webpack_require__(96109);
|
|
4936
|
+
var lengthOfArrayLike = __webpack_require__(84104);
|
|
4937
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
4938
|
+
var getIterator = __webpack_require__(61669);
|
|
4939
|
+
var getIteratorMethod = __webpack_require__(78703);
|
|
4940
|
+
var iteratorClose = __webpack_require__(66639);
|
|
4941
|
+
|
|
4942
|
+
var $TypeError = TypeError;
|
|
4943
|
+
|
|
4944
|
+
var Result = function (stopped, result) {
|
|
4945
|
+
this.stopped = stopped;
|
|
4946
|
+
this.result = result;
|
|
4947
|
+
};
|
|
4948
|
+
|
|
4949
|
+
var ResultPrototype = Result.prototype;
|
|
4950
|
+
|
|
4951
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
4952
|
+
var that = options && options.that;
|
|
4953
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
4954
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
4955
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
4956
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
4957
|
+
var fn = bind(unboundFunction, that);
|
|
4958
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
4959
|
+
|
|
4960
|
+
var stop = function (condition) {
|
|
4961
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
4962
|
+
return new Result(true, condition);
|
|
4963
|
+
};
|
|
4964
|
+
|
|
4965
|
+
var callFn = function (value) {
|
|
4966
|
+
if (AS_ENTRIES) {
|
|
4967
|
+
anObject(value);
|
|
4968
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
4969
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
4970
|
+
};
|
|
4971
|
+
|
|
4972
|
+
if (IS_RECORD) {
|
|
4973
|
+
iterator = iterable.iterator;
|
|
4974
|
+
} else if (IS_ITERATOR) {
|
|
4975
|
+
iterator = iterable;
|
|
4976
|
+
} else {
|
|
4977
|
+
iterFn = getIteratorMethod(iterable);
|
|
4978
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
4979
|
+
// optimisation for array iterators
|
|
4980
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
4981
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
4982
|
+
result = callFn(iterable[index]);
|
|
4983
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
4984
|
+
} return new Result(false);
|
|
4985
|
+
}
|
|
4986
|
+
iterator = getIterator(iterable, iterFn);
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4989
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
4990
|
+
while (!(step = call(next, iterator)).done) {
|
|
4991
|
+
try {
|
|
4992
|
+
result = callFn(step.value);
|
|
4993
|
+
} catch (error) {
|
|
4994
|
+
iteratorClose(iterator, 'throw', error);
|
|
4995
|
+
}
|
|
4996
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
4997
|
+
} return new Result(false);
|
|
4998
|
+
};
|
|
4999
|
+
|
|
5000
|
+
|
|
5001
|
+
/***/ }),
|
|
5002
|
+
|
|
5003
|
+
/***/ 66639:
|
|
5004
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5005
|
+
|
|
5006
|
+
var call = __webpack_require__(18922);
|
|
5007
|
+
var anObject = __webpack_require__(31138);
|
|
5008
|
+
var getMethod = __webpack_require__(75037);
|
|
5009
|
+
|
|
5010
|
+
module.exports = function (iterator, kind, value) {
|
|
5011
|
+
var innerResult, innerError;
|
|
5012
|
+
anObject(iterator);
|
|
5013
|
+
try {
|
|
5014
|
+
innerResult = getMethod(iterator, 'return');
|
|
5015
|
+
if (!innerResult) {
|
|
5016
|
+
if (kind === 'throw') throw value;
|
|
5017
|
+
return value;
|
|
5018
|
+
}
|
|
5019
|
+
innerResult = call(innerResult, iterator);
|
|
5020
|
+
} catch (error) {
|
|
5021
|
+
innerError = true;
|
|
5022
|
+
innerResult = error;
|
|
5023
|
+
}
|
|
5024
|
+
if (kind === 'throw') throw value;
|
|
5025
|
+
if (innerError) throw innerResult;
|
|
5026
|
+
anObject(innerResult);
|
|
5027
|
+
return value;
|
|
5028
|
+
};
|
|
5029
|
+
|
|
5030
|
+
|
|
4699
5031
|
/***/ }),
|
|
4700
5032
|
|
|
4701
5033
|
/***/ 25695:
|
|
@@ -4923,6 +5255,18 @@ module.exports = Math.trunc || function trunc(x) {
|
|
|
4923
5255
|
};
|
|
4924
5256
|
|
|
4925
5257
|
|
|
5258
|
+
/***/ }),
|
|
5259
|
+
|
|
5260
|
+
/***/ 36016:
|
|
5261
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5262
|
+
|
|
5263
|
+
var toString = __webpack_require__(44845);
|
|
5264
|
+
|
|
5265
|
+
module.exports = function (argument, $default) {
|
|
5266
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
5267
|
+
};
|
|
5268
|
+
|
|
5269
|
+
|
|
4926
5270
|
/***/ }),
|
|
4927
5271
|
|
|
4928
5272
|
/***/ 52853:
|
|
@@ -5351,6 +5695,27 @@ module.exports = function (input, pref) {
|
|
|
5351
5695
|
};
|
|
5352
5696
|
|
|
5353
5697
|
|
|
5698
|
+
/***/ }),
|
|
5699
|
+
|
|
5700
|
+
/***/ 93011:
|
|
5701
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5702
|
+
|
|
5703
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
5704
|
+
var uncurryThis = __webpack_require__(84120);
|
|
5705
|
+
var getOwnPropertyNamesModule = __webpack_require__(92092);
|
|
5706
|
+
var getOwnPropertySymbolsModule = __webpack_require__(84750);
|
|
5707
|
+
var anObject = __webpack_require__(31138);
|
|
5708
|
+
|
|
5709
|
+
var concat = uncurryThis([].concat);
|
|
5710
|
+
|
|
5711
|
+
// all object keys, includes non-enumerable and symbols
|
|
5712
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
5713
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
5714
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
5715
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
5716
|
+
};
|
|
5717
|
+
|
|
5718
|
+
|
|
5354
5719
|
/***/ }),
|
|
5355
5720
|
|
|
5356
5721
|
/***/ 57545:
|
|
@@ -5359,6 +5724,22 @@ module.exports = function (input, pref) {
|
|
|
5359
5724
|
module.exports = {};
|
|
5360
5725
|
|
|
5361
5726
|
|
|
5727
|
+
/***/ }),
|
|
5728
|
+
|
|
5729
|
+
/***/ 67656:
|
|
5730
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5731
|
+
|
|
5732
|
+
var defineProperty = (__webpack_require__(42760).f);
|
|
5733
|
+
|
|
5734
|
+
module.exports = function (Target, Source, key) {
|
|
5735
|
+
key in Target || defineProperty(Target, key, {
|
|
5736
|
+
configurable: true,
|
|
5737
|
+
get: function () { return Source[key]; },
|
|
5738
|
+
set: function (it) { Source[key] = it; }
|
|
5739
|
+
});
|
|
5740
|
+
};
|
|
5741
|
+
|
|
5742
|
+
|
|
5362
5743
|
/***/ }),
|
|
5363
5744
|
|
|
5364
5745
|
/***/ 13209:
|
|
@@ -5909,6 +6290,176 @@ module.exports = function (name) {
|
|
|
5909
6290
|
};
|
|
5910
6291
|
|
|
5911
6292
|
|
|
6293
|
+
/***/ }),
|
|
6294
|
+
|
|
6295
|
+
/***/ 20426:
|
|
6296
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6297
|
+
|
|
6298
|
+
"use strict";
|
|
6299
|
+
|
|
6300
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
6301
|
+
var hasOwn = __webpack_require__(64500);
|
|
6302
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
6303
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
6304
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
6305
|
+
var copyConstructorProperties = __webpack_require__(97987);
|
|
6306
|
+
var proxyAccessor = __webpack_require__(67656);
|
|
6307
|
+
var inheritIfRequired = __webpack_require__(62643);
|
|
6308
|
+
var normalizeStringArgument = __webpack_require__(36016);
|
|
6309
|
+
var installErrorCause = __webpack_require__(10273);
|
|
6310
|
+
var installErrorStack = __webpack_require__(58266);
|
|
6311
|
+
var DESCRIPTORS = __webpack_require__(50069);
|
|
6312
|
+
var IS_PURE = __webpack_require__(85546);
|
|
6313
|
+
|
|
6314
|
+
module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
6315
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
6316
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
6317
|
+
var path = FULL_NAME.split('.');
|
|
6318
|
+
var ERROR_NAME = path[path.length - 1];
|
|
6319
|
+
var OriginalError = getBuiltIn.apply(null, path);
|
|
6320
|
+
|
|
6321
|
+
if (!OriginalError) return;
|
|
6322
|
+
|
|
6323
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
6324
|
+
|
|
6325
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
6326
|
+
if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
6327
|
+
|
|
6328
|
+
if (!FORCED) return OriginalError;
|
|
6329
|
+
|
|
6330
|
+
var BaseError = getBuiltIn('Error');
|
|
6331
|
+
|
|
6332
|
+
var WrappedError = wrapper(function (a, b) {
|
|
6333
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
6334
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
6335
|
+
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
6336
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
6337
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
6338
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
6339
|
+
return result;
|
|
6340
|
+
});
|
|
6341
|
+
|
|
6342
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
6343
|
+
|
|
6344
|
+
if (ERROR_NAME !== 'Error') {
|
|
6345
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
6346
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
6347
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
6348
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
6349
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
6350
|
+
}
|
|
6351
|
+
|
|
6352
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
6353
|
+
|
|
6354
|
+
if (!IS_PURE) try {
|
|
6355
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
6356
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
6357
|
+
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
6358
|
+
}
|
|
6359
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
6360
|
+
} catch (error) { /* empty */ }
|
|
6361
|
+
|
|
6362
|
+
return WrappedError;
|
|
6363
|
+
};
|
|
6364
|
+
|
|
6365
|
+
|
|
6366
|
+
/***/ }),
|
|
6367
|
+
|
|
6368
|
+
/***/ 84016:
|
|
6369
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
6370
|
+
|
|
6371
|
+
var $ = __webpack_require__(93085);
|
|
6372
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
6373
|
+
var apply = __webpack_require__(86298);
|
|
6374
|
+
var fails = __webpack_require__(76192);
|
|
6375
|
+
var wrapErrorConstructorWithCause = __webpack_require__(20426);
|
|
6376
|
+
|
|
6377
|
+
var AGGREGATE_ERROR = 'AggregateError';
|
|
6378
|
+
var $AggregateError = getBuiltIn(AGGREGATE_ERROR);
|
|
6379
|
+
|
|
6380
|
+
var FORCED = !fails(function () {
|
|
6381
|
+
return $AggregateError([1]).errors[0] !== 1;
|
|
6382
|
+
}) && fails(function () {
|
|
6383
|
+
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
|
|
6384
|
+
});
|
|
6385
|
+
|
|
6386
|
+
// https://tc39.es/ecma262/#sec-aggregate-error
|
|
6387
|
+
$({ global: true, constructor: true, arity: 2, forced: FORCED }, {
|
|
6388
|
+
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {
|
|
6389
|
+
// eslint-disable-next-line no-unused-vars -- required for functions `.length`
|
|
6390
|
+
return function AggregateError(errors, message) { return apply(init, this, arguments); };
|
|
6391
|
+
}, FORCED, true)
|
|
6392
|
+
});
|
|
6393
|
+
|
|
6394
|
+
|
|
6395
|
+
/***/ }),
|
|
6396
|
+
|
|
6397
|
+
/***/ 93820:
|
|
6398
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
6399
|
+
|
|
6400
|
+
"use strict";
|
|
6401
|
+
|
|
6402
|
+
var $ = __webpack_require__(93085);
|
|
6403
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
6404
|
+
var getPrototypeOf = __webpack_require__(89341);
|
|
6405
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
6406
|
+
var copyConstructorProperties = __webpack_require__(97987);
|
|
6407
|
+
var create = __webpack_require__(52853);
|
|
6408
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
6409
|
+
var createPropertyDescriptor = __webpack_require__(90774);
|
|
6410
|
+
var installErrorCause = __webpack_require__(10273);
|
|
6411
|
+
var installErrorStack = __webpack_require__(58266);
|
|
6412
|
+
var iterate = __webpack_require__(33442);
|
|
6413
|
+
var normalizeStringArgument = __webpack_require__(36016);
|
|
6414
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
6415
|
+
|
|
6416
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
6417
|
+
var $Error = Error;
|
|
6418
|
+
var push = [].push;
|
|
6419
|
+
|
|
6420
|
+
var $AggregateError = function AggregateError(errors, message /* , options */) {
|
|
6421
|
+
var isInstance = isPrototypeOf(AggregateErrorPrototype, this);
|
|
6422
|
+
var that;
|
|
6423
|
+
if (setPrototypeOf) {
|
|
6424
|
+
that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);
|
|
6425
|
+
} else {
|
|
6426
|
+
that = isInstance ? this : create(AggregateErrorPrototype);
|
|
6427
|
+
createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');
|
|
6428
|
+
}
|
|
6429
|
+
if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));
|
|
6430
|
+
installErrorStack(that, $AggregateError, that.stack, 1);
|
|
6431
|
+
if (arguments.length > 2) installErrorCause(that, arguments[2]);
|
|
6432
|
+
var errorsArray = [];
|
|
6433
|
+
iterate(errors, push, { that: errorsArray });
|
|
6434
|
+
createNonEnumerableProperty(that, 'errors', errorsArray);
|
|
6435
|
+
return that;
|
|
6436
|
+
};
|
|
6437
|
+
|
|
6438
|
+
if (setPrototypeOf) setPrototypeOf($AggregateError, $Error);
|
|
6439
|
+
else copyConstructorProperties($AggregateError, $Error, { name: true });
|
|
6440
|
+
|
|
6441
|
+
var AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {
|
|
6442
|
+
constructor: createPropertyDescriptor(1, $AggregateError),
|
|
6443
|
+
message: createPropertyDescriptor(1, ''),
|
|
6444
|
+
name: createPropertyDescriptor(1, 'AggregateError')
|
|
6445
|
+
});
|
|
6446
|
+
|
|
6447
|
+
// `AggregateError` constructor
|
|
6448
|
+
// https://tc39.es/ecma262/#sec-aggregate-error-constructor
|
|
6449
|
+
$({ global: true, constructor: true, arity: 2 }, {
|
|
6450
|
+
AggregateError: $AggregateError
|
|
6451
|
+
});
|
|
6452
|
+
|
|
6453
|
+
|
|
6454
|
+
/***/ }),
|
|
6455
|
+
|
|
6456
|
+
/***/ 4242:
|
|
6457
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
6458
|
+
|
|
6459
|
+
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
6460
|
+
__webpack_require__(93820);
|
|
6461
|
+
|
|
6462
|
+
|
|
5912
6463
|
/***/ }),
|
|
5913
6464
|
|
|
5914
6465
|
/***/ 59106:
|
|
@@ -6084,6 +6635,69 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
|
|
|
6084
6635
|
// empty
|
|
6085
6636
|
|
|
6086
6637
|
|
|
6638
|
+
/***/ }),
|
|
6639
|
+
|
|
6640
|
+
/***/ 4339:
|
|
6641
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
6642
|
+
|
|
6643
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
6644
|
+
var $ = __webpack_require__(93085);
|
|
6645
|
+
var global = __webpack_require__(98576);
|
|
6646
|
+
var apply = __webpack_require__(86298);
|
|
6647
|
+
var wrapErrorConstructorWithCause = __webpack_require__(20426);
|
|
6648
|
+
|
|
6649
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
6650
|
+
var WebAssembly = global[WEB_ASSEMBLY];
|
|
6651
|
+
|
|
6652
|
+
var FORCED = Error('e', { cause: 7 }).cause !== 7;
|
|
6653
|
+
|
|
6654
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6655
|
+
var O = {};
|
|
6656
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
6657
|
+
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
6658
|
+
};
|
|
6659
|
+
|
|
6660
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6661
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
6662
|
+
var O = {};
|
|
6663
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
6664
|
+
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
6665
|
+
}
|
|
6666
|
+
};
|
|
6667
|
+
|
|
6668
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
6669
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
6670
|
+
return function Error(message) { return apply(init, this, arguments); };
|
|
6671
|
+
});
|
|
6672
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
6673
|
+
return function EvalError(message) { return apply(init, this, arguments); };
|
|
6674
|
+
});
|
|
6675
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
6676
|
+
return function RangeError(message) { return apply(init, this, arguments); };
|
|
6677
|
+
});
|
|
6678
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
6679
|
+
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
6680
|
+
});
|
|
6681
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
6682
|
+
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
6683
|
+
});
|
|
6684
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
6685
|
+
return function TypeError(message) { return apply(init, this, arguments); };
|
|
6686
|
+
});
|
|
6687
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
6688
|
+
return function URIError(message) { return apply(init, this, arguments); };
|
|
6689
|
+
});
|
|
6690
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
6691
|
+
return function CompileError(message) { return apply(init, this, arguments); };
|
|
6692
|
+
});
|
|
6693
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
6694
|
+
return function LinkError(message) { return apply(init, this, arguments); };
|
|
6695
|
+
});
|
|
6696
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
6697
|
+
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
6698
|
+
});
|
|
6699
|
+
|
|
6700
|
+
|
|
6087
6701
|
/***/ }),
|
|
6088
6702
|
|
|
6089
6703
|
/***/ 59704:
|
|
@@ -6804,6 +7418,15 @@ var defineWellKnownSymbol = __webpack_require__(48332);
|
|
|
6804
7418
|
defineWellKnownSymbol('unscopables');
|
|
6805
7419
|
|
|
6806
7420
|
|
|
7421
|
+
/***/ }),
|
|
7422
|
+
|
|
7423
|
+
/***/ 12752:
|
|
7424
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
7425
|
+
|
|
7426
|
+
// TODO: Remove from `core-js@4`
|
|
7427
|
+
__webpack_require__(4242);
|
|
7428
|
+
|
|
7429
|
+
|
|
6807
7430
|
/***/ }),
|
|
6808
7431
|
|
|
6809
7432
|
/***/ 17148:
|
|
@@ -7008,6 +7631,20 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
7008
7631
|
}
|
|
7009
7632
|
|
|
7010
7633
|
|
|
7634
|
+
/***/ }),
|
|
7635
|
+
|
|
7636
|
+
/***/ 35846:
|
|
7637
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7638
|
+
|
|
7639
|
+
// TODO: remove from `core-js@4`
|
|
7640
|
+
__webpack_require__(12752);
|
|
7641
|
+
|
|
7642
|
+
var parent = __webpack_require__(56791);
|
|
7643
|
+
__webpack_require__(80162);
|
|
7644
|
+
|
|
7645
|
+
module.exports = parent;
|
|
7646
|
+
|
|
7647
|
+
|
|
7011
7648
|
/***/ }),
|
|
7012
7649
|
|
|
7013
7650
|
/***/ 26174:
|
|
@@ -13843,8 +14480,12 @@ var trimCharsStart = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.curry)(function (char
|
|
|
13843
14480
|
/***/ 68322:
|
|
13844
14481
|
/***/ ((module) => {
|
|
13845
14482
|
|
|
14483
|
+
"use strict";
|
|
14484
|
+
|
|
13846
14485
|
var ShortUniqueId = (() => {
|
|
13847
14486
|
var __defProp = Object.defineProperty;
|
|
14487
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14488
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13848
14489
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
13849
14490
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13850
14491
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -13860,22 +14501,34 @@ var ShortUniqueId = (() => {
|
|
|
13860
14501
|
}
|
|
13861
14502
|
return a;
|
|
13862
14503
|
};
|
|
13863
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
13864
14504
|
var __export = (target, all) => {
|
|
13865
|
-
__markAsModule(target);
|
|
13866
14505
|
for (var name in all)
|
|
13867
14506
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13868
14507
|
};
|
|
14508
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14509
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14510
|
+
for (let key of __getOwnPropNames(from))
|
|
14511
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14512
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14513
|
+
}
|
|
14514
|
+
return to;
|
|
14515
|
+
};
|
|
14516
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14517
|
+
var __publicField = (obj, key, value) => {
|
|
14518
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14519
|
+
return value;
|
|
14520
|
+
};
|
|
13869
14521
|
|
|
13870
14522
|
// src/index.ts
|
|
13871
14523
|
var src_exports = {};
|
|
13872
14524
|
__export(src_exports, {
|
|
14525
|
+
DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
|
|
13873
14526
|
DEFAULT_UUID_LENGTH: () => DEFAULT_UUID_LENGTH,
|
|
13874
14527
|
default: () => ShortUniqueId
|
|
13875
14528
|
});
|
|
13876
14529
|
|
|
13877
14530
|
// package.json
|
|
13878
|
-
var version = "
|
|
14531
|
+
var version = "5.0.2";
|
|
13879
14532
|
|
|
13880
14533
|
// src/index.ts
|
|
13881
14534
|
var DEFAULT_UUID_LENGTH = 6;
|
|
@@ -13883,54 +14536,70 @@ var ShortUniqueId = (() => {
|
|
|
13883
14536
|
dictionary: "alphanum",
|
|
13884
14537
|
shuffle: true,
|
|
13885
14538
|
debug: false,
|
|
13886
|
-
length: DEFAULT_UUID_LENGTH
|
|
14539
|
+
length: DEFAULT_UUID_LENGTH,
|
|
14540
|
+
counter: 0
|
|
13887
14541
|
};
|
|
13888
|
-
var _ShortUniqueId = class
|
|
14542
|
+
var _ShortUniqueId = class _ShortUniqueId {
|
|
13889
14543
|
constructor(argOptions = {}) {
|
|
13890
|
-
|
|
13891
|
-
this
|
|
13892
|
-
this
|
|
13893
|
-
this
|
|
13894
|
-
this
|
|
13895
|
-
this
|
|
13896
|
-
this
|
|
13897
|
-
this
|
|
13898
|
-
this
|
|
13899
|
-
this
|
|
13900
|
-
this
|
|
13901
|
-
this
|
|
13902
|
-
this
|
|
13903
|
-
this
|
|
14544
|
+
__publicField(this, "counter");
|
|
14545
|
+
__publicField(this, "debug");
|
|
14546
|
+
__publicField(this, "dict");
|
|
14547
|
+
__publicField(this, "version");
|
|
14548
|
+
__publicField(this, "dictIndex", 0);
|
|
14549
|
+
__publicField(this, "dictRange", []);
|
|
14550
|
+
__publicField(this, "lowerBound", 0);
|
|
14551
|
+
__publicField(this, "upperBound", 0);
|
|
14552
|
+
__publicField(this, "dictLength", 0);
|
|
14553
|
+
__publicField(this, "uuidLength");
|
|
14554
|
+
__publicField(this, "_digit_first_ascii", 48);
|
|
14555
|
+
__publicField(this, "_digit_last_ascii", 58);
|
|
14556
|
+
__publicField(this, "_alpha_lower_first_ascii", 97);
|
|
14557
|
+
__publicField(this, "_alpha_lower_last_ascii", 123);
|
|
14558
|
+
__publicField(this, "_hex_last_ascii", 103);
|
|
14559
|
+
__publicField(this, "_alpha_upper_first_ascii", 65);
|
|
14560
|
+
__publicField(this, "_alpha_upper_last_ascii", 91);
|
|
14561
|
+
__publicField(this, "_number_dict_ranges", {
|
|
13904
14562
|
digits: [this._digit_first_ascii, this._digit_last_ascii]
|
|
13905
|
-
};
|
|
13906
|
-
this
|
|
14563
|
+
});
|
|
14564
|
+
__publicField(this, "_alpha_dict_ranges", {
|
|
13907
14565
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
13908
14566
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
13909
|
-
};
|
|
13910
|
-
this
|
|
14567
|
+
});
|
|
14568
|
+
__publicField(this, "_alpha_lower_dict_ranges", {
|
|
13911
14569
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
13912
|
-
};
|
|
13913
|
-
this
|
|
14570
|
+
});
|
|
14571
|
+
__publicField(this, "_alpha_upper_dict_ranges", {
|
|
13914
14572
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
13915
|
-
};
|
|
13916
|
-
this
|
|
14573
|
+
});
|
|
14574
|
+
__publicField(this, "_alphanum_dict_ranges", {
|
|
13917
14575
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
13918
14576
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
13919
14577
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
13920
|
-
};
|
|
13921
|
-
this
|
|
14578
|
+
});
|
|
14579
|
+
__publicField(this, "_alphanum_lower_dict_ranges", {
|
|
13922
14580
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
13923
14581
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
13924
|
-
};
|
|
13925
|
-
this
|
|
14582
|
+
});
|
|
14583
|
+
__publicField(this, "_alphanum_upper_dict_ranges", {
|
|
13926
14584
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
13927
14585
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
13928
|
-
};
|
|
13929
|
-
this
|
|
14586
|
+
});
|
|
14587
|
+
__publicField(this, "_hex_dict_ranges", {
|
|
13930
14588
|
decDigits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
13931
14589
|
alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
|
|
13932
|
-
};
|
|
13933
|
-
this
|
|
14590
|
+
});
|
|
14591
|
+
__publicField(this, "_dict_ranges", {
|
|
14592
|
+
_number_dict_ranges: this._number_dict_ranges,
|
|
14593
|
+
_alpha_dict_ranges: this._alpha_dict_ranges,
|
|
14594
|
+
_alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
|
|
14595
|
+
_alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
|
|
14596
|
+
_alphanum_dict_ranges: this._alphanum_dict_ranges,
|
|
14597
|
+
_alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
|
|
14598
|
+
_alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
|
|
14599
|
+
_hex_dict_ranges: this._hex_dict_ranges
|
|
14600
|
+
});
|
|
14601
|
+
/* tslint:disable consistent-return */
|
|
14602
|
+
__publicField(this, "log", (...args) => {
|
|
13934
14603
|
const finalArgs = [...args];
|
|
13935
14604
|
finalArgs[0] = `[short-unique-id] ${args[0]}`;
|
|
13936
14605
|
if (this.debug === true) {
|
|
@@ -13938,8 +14607,10 @@ var ShortUniqueId = (() => {
|
|
|
13938
14607
|
return console.log(...finalArgs);
|
|
13939
14608
|
}
|
|
13940
14609
|
}
|
|
13941
|
-
};
|
|
13942
|
-
|
|
14610
|
+
});
|
|
14611
|
+
/* tslint:enable consistent-return */
|
|
14612
|
+
/** Change the dictionary after initialization. */
|
|
14613
|
+
__publicField(this, "setDictionary", (dictionary, shuffle) => {
|
|
13943
14614
|
let finalDict;
|
|
13944
14615
|
if (dictionary && Array.isArray(dictionary) && dictionary.length > 1) {
|
|
13945
14616
|
finalDict = dictionary;
|
|
@@ -13948,7 +14619,7 @@ var ShortUniqueId = (() => {
|
|
|
13948
14619
|
let i;
|
|
13949
14620
|
this.dictIndex = i = 0;
|
|
13950
14621
|
const rangesName = `_${dictionary}_dict_ranges`;
|
|
13951
|
-
const ranges = this[rangesName];
|
|
14622
|
+
const ranges = this._dict_ranges[rangesName];
|
|
13952
14623
|
Object.keys(ranges).forEach((rangeType) => {
|
|
13953
14624
|
const rangeTypeKey = rangeType;
|
|
13954
14625
|
this.dictRange = ranges[rangeTypeKey];
|
|
@@ -13965,12 +14636,16 @@ var ShortUniqueId = (() => {
|
|
|
13965
14636
|
}
|
|
13966
14637
|
this.dict = finalDict;
|
|
13967
14638
|
this.dictLength = this.dict.length;
|
|
13968
|
-
this.
|
|
13969
|
-
};
|
|
13970
|
-
this
|
|
14639
|
+
this.setCounter(0);
|
|
14640
|
+
});
|
|
14641
|
+
__publicField(this, "seq", () => {
|
|
13971
14642
|
return this.sequentialUUID();
|
|
13972
|
-
};
|
|
13973
|
-
|
|
14643
|
+
});
|
|
14644
|
+
/**
|
|
14645
|
+
* Generates UUID based on internal counter that's incremented after each ID generation.
|
|
14646
|
+
* @alias `const uid = new ShortUniqueId(); uid.seq();`
|
|
14647
|
+
*/
|
|
14648
|
+
__publicField(this, "sequentialUUID", () => {
|
|
13974
14649
|
let counterDiv;
|
|
13975
14650
|
let counterRem;
|
|
13976
14651
|
let id = "";
|
|
@@ -13982,8 +14657,15 @@ var ShortUniqueId = (() => {
|
|
|
13982
14657
|
} while (counterDiv !== 0);
|
|
13983
14658
|
this.counter += 1;
|
|
13984
14659
|
return id;
|
|
13985
|
-
};
|
|
13986
|
-
this
|
|
14660
|
+
});
|
|
14661
|
+
__publicField(this, "rnd", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
14662
|
+
return this.randomUUID(uuidLength);
|
|
14663
|
+
});
|
|
14664
|
+
/**
|
|
14665
|
+
* Generates UUID by creating each part randomly.
|
|
14666
|
+
* @alias `const uid = new ShortUniqueId(); uid.rnd(uuidLength: number);`
|
|
14667
|
+
*/
|
|
14668
|
+
__publicField(this, "randomUUID", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
13987
14669
|
let id;
|
|
13988
14670
|
let randomPartIdx;
|
|
13989
14671
|
let j;
|
|
@@ -13993,44 +14675,234 @@ var ShortUniqueId = (() => {
|
|
|
13993
14675
|
const isPositive = uuidLength >= 0;
|
|
13994
14676
|
id = "";
|
|
13995
14677
|
for (j = 0; j < uuidLength; j += 1) {
|
|
13996
|
-
randomPartIdx = parseInt(
|
|
14678
|
+
randomPartIdx = parseInt(
|
|
14679
|
+
(Math.random() * this.dictLength).toFixed(0),
|
|
14680
|
+
10
|
|
14681
|
+
) % this.dictLength;
|
|
13997
14682
|
id += this.dict[randomPartIdx];
|
|
13998
14683
|
}
|
|
13999
14684
|
return id;
|
|
14000
|
-
};
|
|
14001
|
-
this
|
|
14002
|
-
return
|
|
14003
|
-
};
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
14685
|
+
});
|
|
14686
|
+
__publicField(this, "fmt", (format, date) => {
|
|
14687
|
+
return this.formattedUUID(format, date);
|
|
14688
|
+
});
|
|
14689
|
+
/**
|
|
14690
|
+
* Generates custom UUID with the provided format string.
|
|
14691
|
+
* @alias `const uid = new ShortUniqueId(); uid.fmt(format: string);`
|
|
14692
|
+
*/
|
|
14693
|
+
__publicField(this, "formattedUUID", (format, date) => {
|
|
14694
|
+
const fnMap = {
|
|
14695
|
+
"$r": this.randomUUID,
|
|
14696
|
+
"$s": this.sequentialUUID,
|
|
14697
|
+
"$t": this.stamp
|
|
14698
|
+
};
|
|
14699
|
+
const result = format.replace(
|
|
14700
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
14701
|
+
(m) => {
|
|
14702
|
+
const fn = m.slice(0, 2);
|
|
14703
|
+
const len = parseInt(m.slice(2), 10);
|
|
14704
|
+
if (fn === "$s") {
|
|
14705
|
+
return fnMap[fn]().padStart(len, "0");
|
|
14706
|
+
}
|
|
14707
|
+
if (fn === "$t" && date) {
|
|
14708
|
+
return fnMap[fn](len, date);
|
|
14709
|
+
}
|
|
14710
|
+
return fnMap[fn](len);
|
|
14711
|
+
}
|
|
14712
|
+
);
|
|
14713
|
+
return result;
|
|
14714
|
+
});
|
|
14715
|
+
/**
|
|
14716
|
+
* Calculates total number of possible UUIDs.
|
|
14717
|
+
*
|
|
14718
|
+
* Given that:
|
|
14719
|
+
*
|
|
14720
|
+
* - `H` is the total number of possible UUIDs
|
|
14721
|
+
* - `n` is the number of unique characters in the dictionary
|
|
14722
|
+
* - `l` is the UUID length
|
|
14723
|
+
*
|
|
14724
|
+
* Then `H` is defined as `n` to the power of `l`:
|
|
14725
|
+
*
|
|
14726
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
14727
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20H=n%5El"/>
|
|
14728
|
+
* </div>
|
|
14729
|
+
*
|
|
14730
|
+
* This function returns `H`.
|
|
14731
|
+
*/
|
|
14732
|
+
__publicField(this, "availableUUIDs", (uuidLength = this.uuidLength) => {
|
|
14733
|
+
return parseFloat(
|
|
14734
|
+
Math.pow([...new Set(this.dict)].length, uuidLength).toFixed(0)
|
|
14735
|
+
);
|
|
14736
|
+
});
|
|
14737
|
+
/**
|
|
14738
|
+
* Calculates approximate number of hashes before first collision.
|
|
14739
|
+
*
|
|
14740
|
+
* Given that:
|
|
14741
|
+
*
|
|
14742
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
14743
|
+
* the result of running `availableUUIDs()`
|
|
14744
|
+
* - the expected number of values we have to choose before finding the
|
|
14745
|
+
* first collision can be expressed as the quantity `Q(H)`
|
|
14746
|
+
*
|
|
14747
|
+
* Then `Q(H)` can be approximated as the square root of the product of half
|
|
14748
|
+
* of pi times `H`:
|
|
14749
|
+
*
|
|
14750
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
14751
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20Q(H)%5Capprox%5Csqrt%7B%5Cfrac%7B%5Cpi%7D%7B2%7DH%7D"/>
|
|
14752
|
+
* </div>
|
|
14753
|
+
*
|
|
14754
|
+
* This function returns `Q(H)`.
|
|
14755
|
+
*
|
|
14756
|
+
* (see [Poisson distribution](https://en.wikipedia.org/wiki/Poisson_distribution))
|
|
14757
|
+
*/
|
|
14758
|
+
__publicField(this, "approxMaxBeforeCollision", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
14759
|
+
return parseFloat(
|
|
14760
|
+
Math.sqrt(Math.PI / 2 * rounds).toFixed(20)
|
|
14761
|
+
);
|
|
14762
|
+
});
|
|
14763
|
+
/**
|
|
14764
|
+
* Calculates probability of generating duplicate UUIDs (a collision) in a
|
|
14765
|
+
* given number of UUID generation rounds.
|
|
14766
|
+
*
|
|
14767
|
+
* Given that:
|
|
14768
|
+
*
|
|
14769
|
+
* - `r` is the maximum number of times that `randomUUID()` will be called,
|
|
14770
|
+
* or better said the number of _rounds_
|
|
14771
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
14772
|
+
* the result of running `availableUUIDs()`
|
|
14773
|
+
*
|
|
14774
|
+
* Then the probability of collision `p(r; H)` can be approximated as the result
|
|
14775
|
+
* of dividing the square root of the product of half of pi times `r` by `H`:
|
|
14776
|
+
*
|
|
14777
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
14778
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20p(r%3B%20H)%5Capprox%5Cfrac%7B%5Csqrt%7B%5Cfrac%7B%5Cpi%7D%7B2%7Dr%7D%7D%7BH%7D"/>
|
|
14779
|
+
* </div>
|
|
14780
|
+
*
|
|
14781
|
+
* This function returns `p(r; H)`.
|
|
14782
|
+
*
|
|
14783
|
+
* (see [Poisson distribution](https://en.wikipedia.org/wiki/Poisson_distribution))
|
|
14784
|
+
*
|
|
14785
|
+
* (Useful if you are wondering _"If I use this lib and expect to perform at most
|
|
14786
|
+
* `r` rounds of UUID generations, what is the probability that I will hit a duplicate UUID?"_.)
|
|
14787
|
+
*/
|
|
14788
|
+
__publicField(this, "collisionProbability", (rounds = this.availableUUIDs(this.uuidLength), uuidLength = this.uuidLength) => {
|
|
14789
|
+
return parseFloat(
|
|
14790
|
+
(this.approxMaxBeforeCollision(rounds) / this.availableUUIDs(uuidLength)).toFixed(20)
|
|
14791
|
+
);
|
|
14792
|
+
});
|
|
14793
|
+
/**
|
|
14794
|
+
* Calculate a "uniqueness" score (from 0 to 1) of UUIDs based on size of
|
|
14795
|
+
* dictionary and chosen UUID length.
|
|
14796
|
+
*
|
|
14797
|
+
* Given that:
|
|
14798
|
+
*
|
|
14799
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
14800
|
+
* the result of running `availableUUIDs()`
|
|
14801
|
+
* - `Q(H)` is the approximate number of hashes before first collision,
|
|
14802
|
+
* or in terms of this library, the result of running `approxMaxBeforeCollision()`
|
|
14803
|
+
*
|
|
14804
|
+
* Then `uniqueness` can be expressed as the additive inverse of the probability of
|
|
14805
|
+
* generating a "word" I had previously generated (a duplicate) at any given iteration
|
|
14806
|
+
* up to the the total number of possible UUIDs expressed as the quotiend of `Q(H)` and `H`:
|
|
14807
|
+
*
|
|
14808
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
14809
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%201-%5Cfrac%7BQ(H)%7D%7BH%7D"/>
|
|
14810
|
+
* </div>
|
|
14811
|
+
*
|
|
14812
|
+
* (Useful if you need a value to rate the "quality" of the combination of given dictionary
|
|
14813
|
+
* and UUID length. The closer to 1, higher the uniqueness and thus better the quality.)
|
|
14814
|
+
*/
|
|
14815
|
+
__publicField(this, "uniqueness", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
14816
|
+
const score = parseFloat(
|
|
14817
|
+
(1 - this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20)
|
|
14818
|
+
);
|
|
14012
14819
|
return score > 1 ? 1 : score < 0 ? 0 : score;
|
|
14013
|
-
};
|
|
14014
|
-
|
|
14820
|
+
});
|
|
14821
|
+
/**
|
|
14822
|
+
* Return the version of this module.
|
|
14823
|
+
*/
|
|
14824
|
+
__publicField(this, "getVersion", () => {
|
|
14015
14825
|
return this.version;
|
|
14016
|
-
};
|
|
14017
|
-
|
|
14826
|
+
});
|
|
14827
|
+
/**
|
|
14828
|
+
* Generates a UUID with a timestamp that can be extracted using `uid.parseStamp(stampString);`.
|
|
14829
|
+
*
|
|
14830
|
+
* ```js
|
|
14831
|
+
* const uidWithTimestamp = uid.stamp(32);
|
|
14832
|
+
* console.log(uidWithTimestamp);
|
|
14833
|
+
* // GDa608f973aRCHLXQYPTbKDbjDeVsSb3
|
|
14834
|
+
*
|
|
14835
|
+
* console.log(uid.parseStamp(uidWithTimestamp));
|
|
14836
|
+
* // 2021-05-03T06:24:58.000Z
|
|
14837
|
+
* ```
|
|
14838
|
+
*/
|
|
14839
|
+
__publicField(this, "stamp", (finalLength, date) => {
|
|
14840
|
+
const hexStamp = Math.floor(+(date || /* @__PURE__ */ new Date()) / 1e3).toString(16);
|
|
14841
|
+
if (typeof finalLength === "number" && finalLength === 0) {
|
|
14842
|
+
return hexStamp;
|
|
14843
|
+
}
|
|
14018
14844
|
if (typeof finalLength !== "number" || finalLength < 10) {
|
|
14019
|
-
throw new Error(
|
|
14845
|
+
throw new Error(
|
|
14846
|
+
[
|
|
14847
|
+
"Param finalLength must be a number greater than or equal to 10,",
|
|
14848
|
+
"or 0 if you want the raw hexadecimal timestamp"
|
|
14849
|
+
].join("\n")
|
|
14850
|
+
);
|
|
14020
14851
|
}
|
|
14021
|
-
const hexStamp = Math.floor(+new Date() / 1e3).toString(16);
|
|
14022
14852
|
const idLength = finalLength - 9;
|
|
14023
14853
|
const rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
|
|
14024
14854
|
const id = this.randomUUID(idLength);
|
|
14025
|
-
return `${id.
|
|
14026
|
-
};
|
|
14027
|
-
|
|
14855
|
+
return `${id.substring(0, rndIdx)}${hexStamp}${id.substring(rndIdx)}${rndIdx.toString(16)}`;
|
|
14856
|
+
});
|
|
14857
|
+
/**
|
|
14858
|
+
* Extracts the date embeded in a UUID generated using the `uid.stamp(finalLength);` method.
|
|
14859
|
+
*
|
|
14860
|
+
* ```js
|
|
14861
|
+
* const uidWithTimestamp = uid.stamp(32);
|
|
14862
|
+
* console.log(uidWithTimestamp);
|
|
14863
|
+
* // GDa608f973aRCHLXQYPTbKDbjDeVsSb3
|
|
14864
|
+
*
|
|
14865
|
+
* console.log(uid.parseStamp(uidWithTimestamp));
|
|
14866
|
+
* // 2021-05-03T06:24:58.000Z
|
|
14867
|
+
* ```
|
|
14868
|
+
*/
|
|
14869
|
+
__publicField(this, "parseStamp", (suid, format) => {
|
|
14870
|
+
if (format && !/t0|t[1-9]\d{1,}/.test(format)) {
|
|
14871
|
+
throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");
|
|
14872
|
+
}
|
|
14873
|
+
const stamp = format ? format.replace(
|
|
14874
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
14875
|
+
(m) => {
|
|
14876
|
+
const fnMap = {
|
|
14877
|
+
"$r": (len2) => [...Array(len2)].map(() => "r").join(""),
|
|
14878
|
+
"$s": (len2) => [...Array(len2)].map(() => "s").join(""),
|
|
14879
|
+
"$t": (len2) => [...Array(len2)].map(() => "t").join("")
|
|
14880
|
+
};
|
|
14881
|
+
const fn = m.slice(0, 2);
|
|
14882
|
+
const len = parseInt(m.slice(2), 10);
|
|
14883
|
+
return fnMap[fn](len);
|
|
14884
|
+
}
|
|
14885
|
+
).replace(
|
|
14886
|
+
/^(.*?)(t{8,})(.*)$/g,
|
|
14887
|
+
(_m, p1, p2) => {
|
|
14888
|
+
return suid.substring(p1.length, p1.length + p2.length);
|
|
14889
|
+
}
|
|
14890
|
+
) : suid;
|
|
14891
|
+
if (stamp.length === 8) {
|
|
14892
|
+
return new Date(parseInt(stamp, 16) * 1e3);
|
|
14893
|
+
}
|
|
14028
14894
|
if (stamp.length < 10) {
|
|
14029
14895
|
throw new Error("Stamp length invalid");
|
|
14030
14896
|
}
|
|
14031
|
-
const rndIdx = parseInt(stamp.
|
|
14032
|
-
return new Date(parseInt(stamp.
|
|
14033
|
-
};
|
|
14897
|
+
const rndIdx = parseInt(stamp.substring(stamp.length - 1), 16);
|
|
14898
|
+
return new Date(parseInt(stamp.substring(rndIdx, rndIdx + 8), 16) * 1e3);
|
|
14899
|
+
});
|
|
14900
|
+
/**
|
|
14901
|
+
* Set the counter to a specific value.
|
|
14902
|
+
*/
|
|
14903
|
+
__publicField(this, "setCounter", (counter) => {
|
|
14904
|
+
this.counter = counter;
|
|
14905
|
+
});
|
|
14034
14906
|
const options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
|
|
14035
14907
|
this.counter = 0;
|
|
14036
14908
|
this.debug = false;
|
|
@@ -14039,21 +14911,40 @@ var ShortUniqueId = (() => {
|
|
|
14039
14911
|
const {
|
|
14040
14912
|
dictionary,
|
|
14041
14913
|
shuffle,
|
|
14042
|
-
length
|
|
14914
|
+
length,
|
|
14915
|
+
counter
|
|
14043
14916
|
} = options;
|
|
14044
14917
|
this.uuidLength = length;
|
|
14045
14918
|
this.setDictionary(dictionary, shuffle);
|
|
14919
|
+
this.setCounter(counter);
|
|
14046
14920
|
this.debug = options.debug;
|
|
14047
14921
|
this.log(this.dict);
|
|
14048
|
-
this.log(
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14922
|
+
this.log(
|
|
14923
|
+
`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
|
|
14924
|
+
);
|
|
14925
|
+
this.log = this.log.bind(this);
|
|
14926
|
+
this.setDictionary = this.setDictionary.bind(this);
|
|
14927
|
+
this.setCounter = this.setCounter.bind(this);
|
|
14928
|
+
this.seq = this.seq.bind(this);
|
|
14929
|
+
this.sequentialUUID = this.sequentialUUID.bind(this);
|
|
14930
|
+
this.rnd = this.rnd.bind(this);
|
|
14931
|
+
this.randomUUID = this.randomUUID.bind(this);
|
|
14932
|
+
this.fmt = this.fmt.bind(this);
|
|
14933
|
+
this.formattedUUID = this.formattedUUID.bind(this);
|
|
14934
|
+
this.availableUUIDs = this.availableUUIDs.bind(this);
|
|
14935
|
+
this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this);
|
|
14936
|
+
this.collisionProbability = this.collisionProbability.bind(this);
|
|
14937
|
+
this.uniqueness = this.uniqueness.bind(this);
|
|
14938
|
+
this.getVersion = this.getVersion.bind(this);
|
|
14939
|
+
this.stamp = this.stamp.bind(this);
|
|
14940
|
+
this.parseStamp = this.parseStamp.bind(this);
|
|
14941
|
+
return this;
|
|
14052
14942
|
}
|
|
14053
14943
|
};
|
|
14944
|
+
/** @hidden */
|
|
14945
|
+
__publicField(_ShortUniqueId, "default", _ShortUniqueId);
|
|
14054
14946
|
var ShortUniqueId = _ShortUniqueId;
|
|
14055
|
-
|
|
14056
|
-
return src_exports;
|
|
14947
|
+
return __toCommonJS(src_exports);
|
|
14057
14948
|
})();
|
|
14058
14949
|
//# sourceMappingURL=short-unique-id.js.map
|
|
14059
14950
|
true&&(module.exports=ShortUniqueId.default),'undefined'!=typeof window&&(ShortUniqueId=ShortUniqueId.default);
|
|
@@ -14067,6 +14958,13 @@ var ShortUniqueId = (() => {
|
|
|
14067
14958
|
|
|
14068
14959
|
/***/ }),
|
|
14069
14960
|
|
|
14961
|
+
/***/ 21427:
|
|
14962
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
14963
|
+
|
|
14964
|
+
module.exports = __webpack_require__(36762);
|
|
14965
|
+
|
|
14966
|
+
/***/ }),
|
|
14967
|
+
|
|
14070
14968
|
/***/ 28936:
|
|
14071
14969
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
14072
14970
|
|
|
@@ -15511,7 +16409,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15511
16409
|
/* harmony export */ });
|
|
15512
16410
|
/* harmony import */ var short_unique_id__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68322);
|
|
15513
16411
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67952);
|
|
15514
|
-
// @ts-ignore
|
|
15515
16412
|
|
|
15516
16413
|
|
|
15517
16414
|
|
|
@@ -15532,7 +16429,7 @@ const plugin = ({
|
|
|
15532
16429
|
visitor: {
|
|
15533
16430
|
enter(element) {
|
|
15534
16431
|
// eslint-disable-next-line no-param-reassign
|
|
15535
|
-
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid());
|
|
16432
|
+
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid.randomUUID());
|
|
15536
16433
|
}
|
|
15537
16434
|
},
|
|
15538
16435
|
post() {
|
|
@@ -15554,7 +16451,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15554
16451
|
/* harmony export */ });
|
|
15555
16452
|
/* harmony import */ var short_unique_id__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68322);
|
|
15556
16453
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67952);
|
|
15557
|
-
// @ts-ignore
|
|
15558
16454
|
|
|
15559
16455
|
|
|
15560
16456
|
|
|
@@ -15578,7 +16474,7 @@ const plugin = ({
|
|
|
15578
16474
|
enter(element) {
|
|
15579
16475
|
if (!predicates.isPrimitiveElement(element)) {
|
|
15580
16476
|
// eslint-disable-next-line no-param-reassign
|
|
15581
|
-
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid());
|
|
16477
|
+
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid.randomUUID());
|
|
15582
16478
|
}
|
|
15583
16479
|
}
|
|
15584
16480
|
},
|
|
@@ -16723,12 +17619,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16723
17619
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16724
17620
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16725
17621
|
/* harmony export */ });
|
|
16726
|
-
/* harmony import */ var
|
|
17622
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39723);
|
|
16727
17623
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13776);
|
|
17624
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21427);
|
|
17625
|
+
var _globalThis$Aggregate;
|
|
16728
17626
|
|
|
16729
17627
|
|
|
17628
|
+
// @ts-ignore
|
|
17629
|
+
|
|
17630
|
+
const AggregateError = (_globalThis$Aggregate = globalThis.AggregateError) !== null && _globalThis$Aggregate !== void 0 ? _globalThis$Aggregate : _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_1__;
|
|
17631
|
+
/**
|
|
17632
|
+
* ApiDOMAggregateError is using polyfill of AggregateError from core-js-pure
|
|
17633
|
+
* in environments which don't support global AggregateError symbol.
|
|
17634
|
+
*/
|
|
16730
17635
|
class ApiDOMAggregateError extends AggregateError {
|
|
16731
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16732
17636
|
constructor(errors, message, options) {
|
|
16733
17637
|
super(errors, message, options);
|
|
16734
17638
|
this.name = this.constructor.name;
|
|
@@ -16745,7 +17649,7 @@ class ApiDOMAggregateError extends AggregateError {
|
|
|
16745
17649
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
16746
17650
|
* Node.js is >= 16.9.0 supports error causes natively.
|
|
16747
17651
|
*/
|
|
16748
|
-
if ((0,
|
|
17652
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(options) && (0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', options) && !(0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', this)) {
|
|
16749
17653
|
const {
|
|
16750
17654
|
cause
|
|
16751
17655
|
} = options;
|