@nevware21/ts-utils
Advanced tools
Comparing version 0.10.3 to 0.10.4
@@ -82,2 +82,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function readArgs(theArgs, start, end) { | ||
@@ -84,0 +85,0 @@ if (!_iterSymbol) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _createIs(theType) { | ||
@@ -33,2 +34,3 @@ return function (value) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _createObjIs(theName) { | ||
@@ -63,2 +65,3 @@ var theType = "[object " + theName + "]"; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objToString(value) { | ||
@@ -74,2 +77,3 @@ return ObjProto.toString[CALL](value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isTypeof(value, theType) { | ||
@@ -127,2 +131,3 @@ return typeof value === theType; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isUndefined(value) { | ||
@@ -153,2 +158,3 @@ return typeof value === UNDEFINED || value === UNDEFINED; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isStrictUndefined(arg) { | ||
@@ -181,2 +187,3 @@ return !isDefined(arg); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isNullOrUndefined(value) { | ||
@@ -210,2 +217,3 @@ return value === NULL_VALUE || isUndefined(value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isStrictNullOrUndefined(value) { | ||
@@ -238,2 +246,3 @@ return value === NULL_VALUE || !isDefined(value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isDefined(arg) { | ||
@@ -292,2 +301,3 @@ return !!arg || arg !== UNDEF_VALUE; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPrimitive(value) { | ||
@@ -343,2 +353,3 @@ return value === NULL_VALUE || isPrimitiveType(typeof value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPrimitiveType(theType) { | ||
@@ -397,2 +408,3 @@ return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isObject(value) { | ||
@@ -505,2 +517,3 @@ if (!value && isNullOrUndefined(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPromiseLike(value) { | ||
@@ -523,2 +536,3 @@ return !!(value && value.then && isFunction(value.then)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPromise(value) { | ||
@@ -534,2 +548,3 @@ return !!(value && value.then && value.catch && isFunction(value.then) && isFunction(value.catch)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isNotTruthy(value) { | ||
@@ -545,2 +560,3 @@ return !value || !safeGet(function () { return (value && (0 + value)); }, value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isTruthy(value) { | ||
@@ -547,0 +563,0 @@ // Objects created with no prototype (Object.create(null)) cannot be converted to primitives |
@@ -29,3 +29,3 @@ /* | ||
} | ||
var _safeSetName = function (baseClass, name) { | ||
function _safeSetName(baseClass, name) { | ||
try { | ||
@@ -38,4 +38,4 @@ name && (baseClass[NAME] = name); | ||
} | ||
}; | ||
var _safeDefineName = function (target, name) { | ||
} | ||
function _safeDefineName(target, name) { | ||
try { | ||
@@ -47,3 +47,3 @@ objDefine(target, NAME, { v: name, c: true, e: false }); | ||
} | ||
}; | ||
} | ||
/** | ||
@@ -118,2 +118,3 @@ * Create a Custom Error class which may be used to throw custom errors. | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createCustomError(name, constructCb, errorBase) { | ||
@@ -120,0 +121,0 @@ var theBaseClass = errorBase || Error; |
@@ -24,2 +24,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function utcNow() { | ||
@@ -45,2 +46,3 @@ return (Date.now || polyUtcNow)(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyUtcNow() { | ||
@@ -47,0 +49,0 @@ return new Date().getTime(); |
@@ -20,2 +20,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function dumpObj(object, format) { | ||
@@ -22,0 +23,0 @@ var propertyValueDump = EMPTY; |
@@ -69,2 +69,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function normalizeJsName(jsName, camelCase) { | ||
@@ -113,2 +114,3 @@ var result = asString(jsName).replace(INVALID_JS_NAME, "_"); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function encodeAsJson(value, format) { | ||
@@ -162,2 +164,3 @@ var result; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function encodeAsHtml(value) { | ||
@@ -164,0 +167,0 @@ !_htmlEntityCache && (_htmlEntityCache = getLazy(function () { |
@@ -42,2 +42,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createEnum(values) { | ||
@@ -80,2 +81,3 @@ return _createKeyValueMap(values, 1 /* eMapValues.Value */, 0 /* eMapValues.Key */, objDeepFreeze); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createEnumKeyMap(values) { | ||
@@ -120,2 +122,3 @@ return _createKeyValueMap(values, 0 /* eMapValues.Key */, 0 /* eMapValues.Key */, objDeepFreeze); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createEnumValueMap(values) { | ||
@@ -156,2 +159,3 @@ return _createKeyValueMap(values, 1 /* eMapValues.Value */, 1 /* eMapValues.Value */, objDeepFreeze); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createSimpleMap(values) { | ||
@@ -237,2 +241,3 @@ var mapClass = {}; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createTypeMap(values) { | ||
@@ -239,0 +244,0 @@ return createSimpleMap(values); |
@@ -48,2 +48,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function lazySafeGetInst(name) { | ||
@@ -68,2 +69,3 @@ return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getGlobal(useCached) { | ||
@@ -94,2 +96,3 @@ (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getInst(name, useCached) { | ||
@@ -112,2 +115,3 @@ var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasDocument() { | ||
@@ -121,2 +125,3 @@ return !!getDocument(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getDocument() { | ||
@@ -131,2 +136,3 @@ (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document")); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasWindow() { | ||
@@ -140,2 +146,3 @@ return !!getWindow(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getWindow() { | ||
@@ -150,2 +157,3 @@ (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasNavigator() { | ||
@@ -159,2 +167,3 @@ return !!getNavigator(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getNavigator() { | ||
@@ -169,2 +178,3 @@ (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator")); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasHistory() { | ||
@@ -178,2 +188,3 @@ return !!getHistory(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getHistory() { | ||
@@ -180,0 +191,0 @@ (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history")); |
@@ -21,5 +21,20 @@ /* | ||
} | ||
/** | ||
* Create a new object by merging the passed arguments, this is effectively the same as calling `objExtend({}, ...theArgs)` where | ||
* all of the arguments are added to a new object that is returned. | ||
* @group Object | ||
* @param target - The original object to be extended. | ||
* @param objN - The optional number of arguments to be copied | ||
* @returns - A new object or the original | ||
*/ | ||
export function deepExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) { | ||
return _doExtend(objDeepCopy(target) || {}, arrSlice(arguments)); | ||
} | ||
/** | ||
* Extend the target object by merging the passed arguments into it | ||
* @group Object | ||
* @param target - The object to be extended or overwritten | ||
* @param objN - The optional number of arguments to be copied | ||
* @returns - A new object or the original | ||
*/ | ||
export function objExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) { | ||
@@ -26,0 +41,0 @@ return _doExtend(target || {}, arrSlice(arguments)); |
@@ -51,2 +51,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getValueByKey(target, path, defValue) { | ||
@@ -108,2 +109,3 @@ if (!path || !target) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getValueByIter(target, iter, defValue) { | ||
@@ -110,0 +112,0 @@ if (!iter || !target) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getIntValue(value, defValue) { | ||
@@ -21,0 +22,0 @@ if (!isNullOrUndefined(value)) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasPerformance() { | ||
@@ -33,2 +34,3 @@ return !!getPerformance(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getPerformance() { | ||
@@ -53,2 +55,3 @@ (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance")); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function perfNow() { | ||
@@ -78,2 +81,3 @@ var perf = getPerformance(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function elapsedTime(startTime) { | ||
@@ -80,0 +84,0 @@ return perfNow() - startTime; |
@@ -64,2 +64,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createWildcardRegex(value, ignoreCase, fullMatch) { | ||
@@ -113,2 +114,3 @@ return _createRegExp(asString(value), /([-+|^$#.\?{}()\[\]\\/\"\'])/g, function (value) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createFilenameRegex(value, ignoreCase, fullMatch) { | ||
@@ -186,2 +188,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, function (value) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function makeGlobRegex(value, ignoreCase, fullMatch) { | ||
@@ -188,0 +191,0 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, function (value) { |
@@ -12,2 +12,3 @@ /* | ||
import { LENGTH } from "../internal/constants"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _checkLength(value, props) { | ||
@@ -24,2 +25,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _hasValue(value, depth) { | ||
@@ -166,2 +168,3 @@ var result = value === false || value === 0; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasValue(value) { | ||
@@ -168,0 +171,0 @@ return _hasValue(value, 0); |
@@ -17,2 +17,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _getGlobalValue() { | ||
@@ -41,2 +42,3 @@ var result; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _getGlobalConfig() { | ||
@@ -43,0 +45,0 @@ if (!_globalCfg) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _createKeyValueMap(values, keyType, valueType, completeFn) { | ||
@@ -21,0 +22,0 @@ var theMap = {}; |
@@ -9,2 +9,3 @@ /* | ||
import { LENGTH } from "./constants"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function makePolyFn(poly) { | ||
@@ -11,0 +12,0 @@ return function () { |
@@ -85,2 +85,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _unwrapProp(propName) { | ||
@@ -87,0 +88,0 @@ return function (thisArg) { |
@@ -33,2 +33,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createArrayIterator(values) { | ||
@@ -35,0 +36,0 @@ var idx = -1; |
@@ -54,2 +54,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createIterable(ctx) { | ||
@@ -143,2 +144,3 @@ return makeIterable({}, ctx); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createIterator(ctx) { | ||
@@ -145,0 +147,0 @@ var isDone = false; |
@@ -30,2 +30,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isIterator(value) { | ||
@@ -51,2 +52,3 @@ return !!value && isFunction(value.next); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isIterable(value) { | ||
@@ -53,0 +55,0 @@ return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 /* WellKnownSymbols.iterator */)]); |
@@ -105,2 +105,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createRangeIterator(start, end, step) { | ||
@@ -107,0 +108,0 @@ var nextValue = start; |
@@ -18,2 +18,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function mathToInt(value, throwInfinity) { | ||
@@ -20,0 +21,0 @@ var result = +value; |
@@ -32,2 +32,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyMathTrunc(value) { | ||
@@ -34,0 +35,0 @@ var theValue = +value; |
@@ -257,2 +257,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objDeepCopy(source, handler) { | ||
@@ -259,0 +260,0 @@ var ctx = { |
@@ -26,2 +26,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjCreate(obj) { | ||
@@ -28,0 +29,0 @@ if (!obj) { |
@@ -32,2 +32,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createProp(value) { | ||
@@ -34,0 +35,0 @@ var prop = {}; |
@@ -41,2 +41,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objHasOwnProperty(obj, prop) { | ||
@@ -43,0 +44,0 @@ return obj && ObjProto.hasOwnProperty[CALL](obj, prop); |
@@ -85,2 +85,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjHasOwn(obj, prop) { | ||
@@ -87,0 +88,0 @@ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop); |
@@ -50,2 +50,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPlainObject(value) { | ||
@@ -52,0 +53,0 @@ if (!value || typeof value !== OBJECT) { |
@@ -17,2 +17,3 @@ /* | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getProto(value) { | ||
@@ -93,2 +94,3 @@ return value[__PROTO__] || NULL_VALUE; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objKeys(value) { | ||
@@ -95,0 +97,0 @@ if (!isObject(value) || value === NULL_VALUE) { |
@@ -22,2 +22,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyIsArray(value) { | ||
@@ -46,2 +47,3 @@ if (isNullOrUndefined(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyArrIncludes(theArray, searchElement, fromIndex) { | ||
@@ -48,0 +50,0 @@ return arrIndexOf(theArray, searchElement, fromIndex) !== -1; |
@@ -20,2 +20,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjKeys(obj) { | ||
@@ -54,2 +55,3 @@ if (!isObject(obj) || obj === NULL_VALUE) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjEntries(value) { | ||
@@ -83,2 +85,3 @@ var result = []; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjValues(value) { | ||
@@ -85,0 +88,0 @@ var result = []; |
@@ -53,2 +53,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrSymSplit(value, splitter, limit) { | ||
@@ -55,0 +56,0 @@ var splitFn = splitter && splitter[getKnownSymbol(9 /* WellKnownSymbols.split */)]; |
@@ -18,2 +18,3 @@ /* | ||
var _polySymbols; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _globalSymbolRegistry() { | ||
@@ -26,3 +27,3 @@ if (!_polySymbols) { | ||
} | ||
var _wellKnownSymbolCache = {}; | ||
var _wellKnownSymbolCache; | ||
/** | ||
@@ -39,2 +40,3 @@ * Returns a new (polyfill) Symbol object for the provided description that's guaranteed to be unique. | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyNewSymbol(description) { | ||
@@ -56,2 +58,3 @@ var theSymbol = { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polySymbolFor(key) { | ||
@@ -75,2 +78,3 @@ var registry = _globalSymbolRegistry(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polySymbolKeyFor(sym) { | ||
@@ -103,3 +107,5 @@ if (!sym || !sym.toString || !strStartsWith(sym.toString(), SYMBOL)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyGetKnownSymbol(name) { | ||
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {}); | ||
var result; | ||
@@ -106,0 +112,0 @@ var knownName = _wellKnownSymbolMap[name]; |
@@ -12,2 +12,3 @@ /* | ||
import { EMPTY } from "../internal/constants"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createTrimFn(exp) { | ||
@@ -14,0 +15,0 @@ return function _doTrim(value) { |
@@ -21,2 +21,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _convertCase(value, newPrefix, upperWord) { | ||
@@ -50,2 +51,3 @@ return strTrim(asString(value)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g, function (_match, _g1, _g2, wordStart, upperPrefix, upperLetter) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strLetterCase(value) { | ||
@@ -86,2 +88,3 @@ return asString(value).replace(/(_|\b)\w/g, strUpper); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strCamelCase(value, upperFirst) { | ||
@@ -118,2 +121,3 @@ var result = _convertCase(value, "", true); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strKebabCase(value, scream) { | ||
@@ -154,2 +158,3 @@ var result = _convertCase(value, "-"); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strSnakeCase(value, scream) { | ||
@@ -156,0 +161,0 @@ var result = _convertCase(value, "_"); |
@@ -31,2 +31,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrEndsWith(value, searchString, length) { | ||
@@ -33,0 +34,0 @@ if (!isString(value)) { |
@@ -64,2 +64,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrIncludes(value, searchString, position) { | ||
@@ -66,0 +67,0 @@ if (isRegExp(searchString)) { |
@@ -17,2 +17,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strIsNullOrWhiteSpace(value) { | ||
@@ -30,2 +31,3 @@ if (isString(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strIsNullOrEmpty(value) { | ||
@@ -32,0 +34,0 @@ if (isString(value)) { |
@@ -16,2 +16,3 @@ /* | ||
import { strSubstring } from "./substring"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _padValue(value, targetLength, padString) { | ||
@@ -74,2 +75,3 @@ var result = EMPTY; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrPadStart(value, targetLength, padString) { | ||
@@ -90,2 +92,3 @@ return _padValue(value, targetLength, padString) + value; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrPadEnd(value, targetLength, padString) { | ||
@@ -92,0 +95,0 @@ return value + _padValue(value, targetLength, padString); |
@@ -39,2 +39,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrRepeat(value, count) { | ||
@@ -41,0 +42,0 @@ if (isNullOrUndefined(value)) { |
@@ -35,2 +35,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrStartsWith(value, searchString, position) { | ||
@@ -37,0 +38,0 @@ if (!isString(value)) { |
@@ -82,2 +82,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrSubstr(value, start, length) { | ||
@@ -124,2 +125,3 @@ if (isNullOrUndefined(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strLeft(value, count) { | ||
@@ -152,2 +154,3 @@ return strSubstring(value, 0, count); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strRight(value, count) { | ||
@@ -154,0 +157,0 @@ var len = value[LENGTH]; |
@@ -18,2 +18,3 @@ /* | ||
var _symbolKeyFor; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getSymbolValue(name) { | ||
@@ -36,2 +37,3 @@ return safeGetLazy(function () { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasSymbol() { | ||
@@ -66,2 +68,3 @@ return !!getSymbol(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getKnownSymbol(name, noPoly) { | ||
@@ -81,2 +84,3 @@ var knownName = _wellKnownSymbolMap[name]; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function newSymbol(description, noPoly) { | ||
@@ -94,2 +98,3 @@ // Cause lazy _symbol to get initialized | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function symbolFor(key) { | ||
@@ -107,2 +112,3 @@ // Cause lazy symbol to get initialized | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function symbolKeyFor(sym) { | ||
@@ -109,0 +115,0 @@ // Cause lazy symbol to get initialized |
@@ -31,2 +31,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasIdleCallback() { | ||
@@ -33,0 +34,0 @@ !_hasIdleCallback && (_hasIdleCallback = safeGetLazy(function () { return isDefined(requestIdleCallback); }, false)); |
@@ -11,2 +11,34 @@ /* | ||
import { _createTimerHandler } from "./handler"; | ||
/** | ||
* Repeatedly calls a function or executes a code snippet, with a fixed time delay between each call. | ||
* | ||
* @since 0.4.4 | ||
* @group Timer | ||
* | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel or refresh the interval. | ||
* @example | ||
* ```ts | ||
* let intervalCalled = 0; | ||
* let theIntervalTimer = scheduleInvertal(() => { | ||
* // This callback will be called every 100ms as this uses setInterval() | ||
* intervalCalled++; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearInterval() with the returned value from setInterval() the returned | ||
* // handler instance can be used instead to cancel the timer | ||
* theIntervalTimer.cancel(); | ||
* theIntervalTimer.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theIntervalTimer.enabled = true; | ||
* | ||
* // Or you can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theIntervalTimer.refresh(); | ||
* ``` | ||
*/ | ||
export function scheduleInterval(callback, timeout) { | ||
@@ -13,0 +45,0 @@ var self = this; |
@@ -37,11 +37,232 @@ /* | ||
} | ||
/** | ||
* Creates and starts a timer which executes a function or specified piece of code once the timer expires, this is simular | ||
* to using `setTimeout` but provides a return object for cancelling and restarting (refresh) the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.4.4 | ||
* @group Timer | ||
* | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* let theTimeout = scheduleTimeout(() => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearTimeout() with the returned value from setTimeout() the returned | ||
* // handler instance can be used instead to cancel the timer | ||
* theTimeout.cancel(); | ||
* theTimeout.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theTimeout.enabled = true; | ||
* | ||
* // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theTimeout.refresh(); | ||
* ``` | ||
*/ | ||
export function scheduleTimeout(callback, timeout) { | ||
return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments)); | ||
} | ||
/** | ||
* Creates and starts a timer which executes a function or specified piece of code once the timer expires. The overrideFn will be | ||
* used to create the timer, this is simular to using `setTimeout` but provides a return object for cancelling and restarting | ||
* (refresh) the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.4.4 | ||
* @group Timer | ||
* | ||
* @param overrideFn - setTimeout override function this will be called instead of the `setTimeout`, if the value | ||
* of `overrideFn` is null or undefined it will revert back to the native `setTimeout`. May also be an array with contains | ||
* both the setTimeout and clearTimeout override functions, if either is not provided the default native functions will be used | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* let theTimeout = scheduleTimeoutWith(newSetTimeoutFn, () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearTimeout() with the returned value from setTimeout() the returned | ||
* // handler instance can be used instead to cancel the timer | ||
* theTimeout.cancel(); | ||
* theTimeout.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theTimeout.enabled = true; | ||
* | ||
* // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theTimeout.refresh(); | ||
* ``` | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* // Your own "clearTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newClearTimeoutFn(timeoutId: number) { | ||
* overrideCalled ++; | ||
* return clearTimeout( timeout); | ||
* } | ||
* | ||
* let theTimeout = scheduleTimeoutWith([newSetTimeoutFn, newClearTimeoutFn], () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearTimeout() with the returned value from setTimeout() the returned | ||
* // handler instance can be used instead to cancel the timer, internally this will call the newClearTimeoutFn | ||
* theTimeout.cancel(); | ||
* theTimeout.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theTimeout.enabled = true; | ||
* | ||
* // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theTimeout.refresh(); | ||
* ``` | ||
*/ | ||
export function scheduleTimeoutWith(overrideFn, callback, timeout) { | ||
return _createTimeoutWith(this, true, overrideFn, arrSlice(arguments, 1)); | ||
} | ||
/** | ||
* Creates a non-running (paused) timer which will execute a function or specified piece of code when enabled and the timer expires, | ||
* this is simular to using `scheduleTimeout` but the timer is not enabled (running) and you MUST call `refresh` to start the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.7.0 | ||
* @group Timer | ||
* | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* let theTimeout = createTimeout(() => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // As the timer is not started you will need to call "refresh" to start the timer | ||
* theTimeout.refresh(); | ||
* | ||
* // or set enabled to true | ||
* theTimeout.enabled = true; | ||
* ``` | ||
*/ | ||
export function createTimeout(callback, timeout) { | ||
return _createTimeoutWith(this, false, UNDEF_VALUE, arrSlice(arguments)); | ||
} | ||
/** | ||
* Creates a non-running (paused) timer which will execute a function or specified piece of code when enabled once the timer expires. | ||
* The overrideFn will be used to create the timer, this is simular to using `scheduleTimeoutWith` but the timer is not enabled (running) | ||
* and you MUST call `refresh` to start the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.7.0 | ||
* @group Timer | ||
* | ||
* @param overrideFn - setTimeout override function this will be called instead of the `setTimeout`, if the value | ||
* of `overrideFn` is null or undefined it will revert back to the native `setTimeout`. May also be an array with contains | ||
* both the setTimeout and clearTimeout override functions, if either is not provided the default native functions will be used | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* let theTimeout = createTimeoutWith(newSetTimeoutFn, () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // As the timer is not started you will need to call "refresh" to start the timer | ||
* theTimeout.refresh(); | ||
* | ||
* // or set enabled to true | ||
* theTimeout.enabled = true; | ||
* ``` | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* // Your own "clearTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newClearTimeoutFn(timeoutId: number) { | ||
* overrideCalled ++; | ||
* return clearTimeout( timeout); | ||
* } | ||
* | ||
* let theTimeout = createTimeoutWith([newSetTimeoutFn, newClearTimeoutFn], () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // As the timer is not started you will need to call "refresh" to start the timer | ||
* theTimeout.refresh(); | ||
* | ||
* // or set enabled to true | ||
* theTimeout.enabled = true; | ||
* ``` | ||
*/ | ||
export function createTimeoutWith(overrideFn, callback, timeout) { | ||
@@ -48,0 +269,0 @@ return _createTimeoutWith(this, false, overrideFn, arrSlice(arguments, 1)); |
@@ -82,2 +82,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function readArgs(theArgs, start, end) { | ||
@@ -84,0 +85,0 @@ if (!_iterSymbol) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _createIs(theType) { | ||
@@ -33,2 +34,3 @@ return function (value) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _createObjIs(theName) { | ||
@@ -63,2 +65,3 @@ const theType = "[object " + theName + "]"; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objToString(value) { | ||
@@ -74,2 +77,3 @@ return ObjProto.toString[CALL](value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isTypeof(value, theType) { | ||
@@ -127,2 +131,3 @@ return typeof value === theType; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isUndefined(value) { | ||
@@ -153,2 +158,3 @@ return typeof value === UNDEFINED || value === UNDEFINED; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isStrictUndefined(arg) { | ||
@@ -181,2 +187,3 @@ return !isDefined(arg); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isNullOrUndefined(value) { | ||
@@ -210,2 +217,3 @@ return value === NULL_VALUE || isUndefined(value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isStrictNullOrUndefined(value) { | ||
@@ -238,2 +246,3 @@ return value === NULL_VALUE || !isDefined(value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isDefined(arg) { | ||
@@ -292,2 +301,3 @@ return !!arg || arg !== UNDEF_VALUE; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPrimitive(value) { | ||
@@ -343,2 +353,3 @@ return value === NULL_VALUE || isPrimitiveType(typeof value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPrimitiveType(theType) { | ||
@@ -397,2 +408,3 @@ return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isObject(value) { | ||
@@ -505,2 +517,3 @@ if (!value && isNullOrUndefined(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPromiseLike(value) { | ||
@@ -523,2 +536,3 @@ return !!(value && value.then && isFunction(value.then)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPromise(value) { | ||
@@ -534,2 +548,3 @@ return !!(value && value.then && value.catch && isFunction(value.then) && isFunction(value.catch)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isNotTruthy(value) { | ||
@@ -545,2 +560,3 @@ return !value || !safeGet(() => (value && (0 + value)), value); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isTruthy(value) { | ||
@@ -547,0 +563,0 @@ // Objects created with no prototype (Object.create(null)) cannot be converted to primitives |
@@ -29,3 +29,3 @@ /* | ||
} | ||
const _safeSetName = (baseClass, name) => { | ||
function _safeSetName(baseClass, name) { | ||
try { | ||
@@ -38,4 +38,4 @@ name && (baseClass[NAME] = name); | ||
} | ||
}; | ||
const _safeDefineName = (target, name) => { | ||
} | ||
function _safeDefineName(target, name) { | ||
try { | ||
@@ -47,3 +47,3 @@ objDefine(target, NAME, { v: name, c: true, e: false }); | ||
} | ||
}; | ||
} | ||
/** | ||
@@ -118,2 +118,3 @@ * Create a Custom Error class which may be used to throw custom errors. | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createCustomError(name, constructCb, errorBase) { | ||
@@ -120,0 +121,0 @@ let theBaseClass = errorBase || Error; |
@@ -24,2 +24,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function utcNow() { | ||
@@ -45,2 +46,3 @@ return (Date.now || polyUtcNow)(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyUtcNow() { | ||
@@ -47,0 +49,0 @@ return new Date().getTime(); |
@@ -20,2 +20,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function dumpObj(object, format) { | ||
@@ -22,0 +23,0 @@ let propertyValueDump = EMPTY; |
@@ -69,2 +69,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function normalizeJsName(jsName, camelCase) { | ||
@@ -113,2 +114,3 @@ let result = asString(jsName).replace(INVALID_JS_NAME, "_"); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function encodeAsJson(value, format) { | ||
@@ -162,2 +164,3 @@ let result; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function encodeAsHtml(value) { | ||
@@ -164,0 +167,0 @@ !_htmlEntityCache && (_htmlEntityCache = getLazy(() => { |
@@ -42,2 +42,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createEnum(values) { | ||
@@ -80,2 +81,3 @@ return _createKeyValueMap(values, 1 /* eMapValues.Value */, 0 /* eMapValues.Key */, objDeepFreeze); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createEnumKeyMap(values) { | ||
@@ -120,2 +122,3 @@ return _createKeyValueMap(values, 0 /* eMapValues.Key */, 0 /* eMapValues.Key */, objDeepFreeze); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createEnumValueMap(values) { | ||
@@ -156,2 +159,3 @@ return _createKeyValueMap(values, 1 /* eMapValues.Value */, 1 /* eMapValues.Value */, objDeepFreeze); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createSimpleMap(values) { | ||
@@ -237,2 +241,3 @@ let mapClass = {}; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createTypeMap(values) { | ||
@@ -239,0 +244,0 @@ return createSimpleMap(values); |
@@ -48,2 +48,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function lazySafeGetInst(name) { | ||
@@ -68,2 +69,3 @@ return safeGetLazy(() => getInst(name) || UNDEF_VALUE, UNDEF_VALUE); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getGlobal(useCached) { | ||
@@ -94,2 +96,3 @@ (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getInst(name, useCached) { | ||
@@ -112,2 +115,3 @@ const gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasDocument() { | ||
@@ -121,2 +125,3 @@ return !!getDocument(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getDocument() { | ||
@@ -131,2 +136,3 @@ (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document")); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasWindow() { | ||
@@ -140,2 +146,3 @@ return !!getWindow(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getWindow() { | ||
@@ -150,2 +157,3 @@ (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW)); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasNavigator() { | ||
@@ -159,2 +167,3 @@ return !!getNavigator(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getNavigator() { | ||
@@ -169,2 +178,3 @@ (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator")); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasHistory() { | ||
@@ -178,2 +188,3 @@ return !!getHistory(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getHistory() { | ||
@@ -180,0 +191,0 @@ (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history")); |
@@ -21,5 +21,20 @@ /* | ||
} | ||
/** | ||
* Create a new object by merging the passed arguments, this is effectively the same as calling `objExtend({}, ...theArgs)` where | ||
* all of the arguments are added to a new object that is returned. | ||
* @group Object | ||
* @param target - The original object to be extended. | ||
* @param objN - The optional number of arguments to be copied | ||
* @returns - A new object or the original | ||
*/ | ||
export function deepExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) { | ||
return _doExtend(objDeepCopy(target) || {}, arrSlice(arguments)); | ||
} | ||
/** | ||
* Extend the target object by merging the passed arguments into it | ||
* @group Object | ||
* @param target - The object to be extended or overwritten | ||
* @param objN - The optional number of arguments to be copied | ||
* @returns - A new object or the original | ||
*/ | ||
export function objExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) { | ||
@@ -26,0 +41,0 @@ return _doExtend(target || {}, arrSlice(arguments)); |
@@ -51,2 +51,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getValueByKey(target, path, defValue) { | ||
@@ -108,2 +109,3 @@ if (!path || !target) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getValueByIter(target, iter, defValue) { | ||
@@ -110,0 +112,0 @@ if (!iter || !target) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getIntValue(value, defValue) { | ||
@@ -21,0 +22,0 @@ if (!isNullOrUndefined(value)) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasPerformance() { | ||
@@ -33,2 +34,3 @@ return !!getPerformance(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getPerformance() { | ||
@@ -53,2 +55,3 @@ (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance")); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function perfNow() { | ||
@@ -78,2 +81,3 @@ let perf = getPerformance(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function elapsedTime(startTime) { | ||
@@ -80,0 +84,0 @@ return perfNow() - startTime; |
@@ -64,2 +64,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createWildcardRegex(value, ignoreCase, fullMatch) { | ||
@@ -113,2 +114,3 @@ return _createRegExp(asString(value), /([-+|^$#.\?{}()\[\]\\/\"\'])/g, (value) => { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createFilenameRegex(value, ignoreCase, fullMatch) { | ||
@@ -186,2 +188,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, (value) => { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function makeGlobRegex(value, ignoreCase, fullMatch) { | ||
@@ -188,0 +191,0 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, (value) => { |
@@ -12,2 +12,3 @@ /* | ||
import { LENGTH } from "../internal/constants"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _checkLength(value, props) { | ||
@@ -24,2 +25,3 @@ let result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _hasValue(value, depth) { | ||
@@ -166,2 +168,3 @@ let result = value === false || value === 0; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasValue(value) { | ||
@@ -168,0 +171,0 @@ return _hasValue(value, 0); |
@@ -17,2 +17,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _getGlobalValue() { | ||
@@ -41,2 +42,3 @@ let result; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _getGlobalConfig() { | ||
@@ -43,0 +45,0 @@ if (!_globalCfg) { |
@@ -19,2 +19,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _createKeyValueMap(values, keyType, valueType, completeFn) { | ||
@@ -21,0 +22,0 @@ let theMap = {}; |
@@ -9,2 +9,3 @@ /* | ||
import { LENGTH } from "./constants"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function makePolyFn(poly) { | ||
@@ -11,0 +12,0 @@ return function () { |
@@ -85,2 +85,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function _unwrapProp(propName) { | ||
@@ -87,0 +88,0 @@ return function (thisArg) { |
@@ -33,2 +33,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createArrayIterator(values) { | ||
@@ -35,0 +36,0 @@ let idx = -1; |
@@ -54,2 +54,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createIterable(ctx) { | ||
@@ -143,2 +144,3 @@ return makeIterable({}, ctx); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createIterator(ctx) { | ||
@@ -145,0 +147,0 @@ let isDone = false; |
@@ -30,2 +30,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isIterator(value) { | ||
@@ -51,2 +52,3 @@ return !!value && isFunction(value.next); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isIterable(value) { | ||
@@ -53,0 +55,0 @@ return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 /* WellKnownSymbols.iterator */)]); |
@@ -105,2 +105,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function createRangeIterator(start, end, step) { | ||
@@ -107,0 +108,0 @@ let nextValue = start; |
@@ -18,2 +18,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function mathToInt(value, throwInfinity) { | ||
@@ -20,0 +21,0 @@ let result = +value; |
@@ -32,2 +32,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyMathTrunc(value) { | ||
@@ -34,0 +35,0 @@ let theValue = +value; |
@@ -257,2 +257,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objDeepCopy(source, handler) { | ||
@@ -259,0 +260,0 @@ let ctx = { |
@@ -26,2 +26,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjCreate(obj) { | ||
@@ -28,0 +29,0 @@ if (!obj) { |
@@ -32,2 +32,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createProp(value) { | ||
@@ -34,0 +35,0 @@ let prop = {}; |
@@ -41,2 +41,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objHasOwnProperty(obj, prop) { | ||
@@ -43,0 +44,0 @@ return obj && ObjProto.hasOwnProperty[CALL](obj, prop); |
@@ -85,2 +85,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjHasOwn(obj, prop) { | ||
@@ -87,0 +88,0 @@ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop); |
@@ -50,2 +50,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function isPlainObject(value) { | ||
@@ -52,0 +53,0 @@ if (!value || typeof value !== OBJECT) { |
@@ -17,2 +17,3 @@ /* | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getProto(value) { | ||
@@ -93,2 +94,3 @@ return value[__PROTO__] || NULL_VALUE; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function objKeys(value) { | ||
@@ -95,0 +97,0 @@ if (!isObject(value) || value === NULL_VALUE) { |
@@ -22,2 +22,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyIsArray(value) { | ||
@@ -46,2 +47,3 @@ if (isNullOrUndefined(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyArrIncludes(theArray, searchElement, fromIndex) { | ||
@@ -48,0 +50,0 @@ return arrIndexOf(theArray, searchElement, fromIndex) !== -1; |
@@ -20,2 +20,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjKeys(obj) { | ||
@@ -54,2 +55,3 @@ if (!isObject(obj) || obj === NULL_VALUE) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjEntries(value) { | ||
@@ -83,2 +85,3 @@ let result = []; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyObjValues(value) { | ||
@@ -85,0 +88,0 @@ let result = []; |
@@ -53,2 +53,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrSymSplit(value, splitter, limit) { | ||
@@ -55,0 +56,0 @@ let splitFn = splitter && splitter[getKnownSymbol(9 /* WellKnownSymbols.split */)]; |
@@ -18,2 +18,3 @@ /* | ||
let _polySymbols; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _globalSymbolRegistry() { | ||
@@ -26,3 +27,3 @@ if (!_polySymbols) { | ||
} | ||
let _wellKnownSymbolCache = {}; | ||
let _wellKnownSymbolCache; | ||
/** | ||
@@ -39,2 +40,3 @@ * Returns a new (polyfill) Symbol object for the provided description that's guaranteed to be unique. | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyNewSymbol(description) { | ||
@@ -56,2 +58,3 @@ let theSymbol = { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polySymbolFor(key) { | ||
@@ -75,2 +78,3 @@ let registry = _globalSymbolRegistry(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polySymbolKeyFor(sym) { | ||
@@ -103,3 +107,5 @@ if (!sym || !sym.toString || !strStartsWith(sym.toString(), SYMBOL)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyGetKnownSymbol(name) { | ||
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {}); | ||
let result; | ||
@@ -106,0 +112,0 @@ let knownName = _wellKnownSymbolMap[name]; |
@@ -12,2 +12,3 @@ /* | ||
import { EMPTY } from "../internal/constants"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createTrimFn(exp) { | ||
@@ -14,0 +15,0 @@ return function _doTrim(value) { |
@@ -21,2 +21,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _convertCase(value, newPrefix, upperWord) { | ||
@@ -50,2 +51,3 @@ return strTrim(asString(value)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g, (_match, _g1, _g2, wordStart, upperPrefix, upperLetter) => { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strLetterCase(value) { | ||
@@ -86,2 +88,3 @@ return asString(value).replace(/(_|\b)\w/g, strUpper); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strCamelCase(value, upperFirst) { | ||
@@ -118,2 +121,3 @@ let result = _convertCase(value, "", true); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strKebabCase(value, scream) { | ||
@@ -154,2 +158,3 @@ let result = _convertCase(value, "-"); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strSnakeCase(value, scream) { | ||
@@ -156,0 +161,0 @@ let result = _convertCase(value, "_"); |
@@ -31,2 +31,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrEndsWith(value, searchString, length) { | ||
@@ -33,0 +34,0 @@ if (!isString(value)) { |
@@ -64,2 +64,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrIncludes(value, searchString, position) { | ||
@@ -66,0 +67,0 @@ if (isRegExp(searchString)) { |
@@ -17,2 +17,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strIsNullOrWhiteSpace(value) { | ||
@@ -30,2 +31,3 @@ if (isString(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strIsNullOrEmpty(value) { | ||
@@ -32,0 +34,0 @@ if (isString(value)) { |
@@ -16,2 +16,3 @@ /* | ||
import { strSubstring } from "./substring"; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _padValue(value, targetLength, padString) { | ||
@@ -74,2 +75,3 @@ let result = EMPTY; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrPadStart(value, targetLength, padString) { | ||
@@ -90,2 +92,3 @@ return _padValue(value, targetLength, padString) + value; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrPadEnd(value, targetLength, padString) { | ||
@@ -92,0 +95,0 @@ return value + _padValue(value, targetLength, padString); |
@@ -39,2 +39,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrRepeat(value, count) { | ||
@@ -41,0 +42,0 @@ if (isNullOrUndefined(value)) { |
@@ -35,2 +35,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrStartsWith(value, searchString, position) { | ||
@@ -37,0 +38,0 @@ if (!isString(value)) { |
@@ -82,2 +82,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function polyStrSubstr(value, start, length) { | ||
@@ -124,2 +125,3 @@ if (isNullOrUndefined(value)) { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strLeft(value, count) { | ||
@@ -152,2 +154,3 @@ return strSubstring(value, 0, count); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function strRight(value, count) { | ||
@@ -154,0 +157,0 @@ let len = value[LENGTH]; |
@@ -18,2 +18,3 @@ /* | ||
let _symbolKeyFor; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getSymbolValue(name) { | ||
@@ -36,2 +37,3 @@ return safeGetLazy(function () { | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasSymbol() { | ||
@@ -66,2 +68,3 @@ return !!getSymbol(); | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function getKnownSymbol(name, noPoly) { | ||
@@ -81,2 +84,3 @@ let knownName = _wellKnownSymbolMap[name]; | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function newSymbol(description, noPoly) { | ||
@@ -94,2 +98,3 @@ // Cause lazy _symbol to get initialized | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function symbolFor(key) { | ||
@@ -107,2 +112,3 @@ // Cause lazy symbol to get initialized | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function symbolKeyFor(sym) { | ||
@@ -109,0 +115,0 @@ // Cause lazy symbol to get initialized |
@@ -31,2 +31,3 @@ /* | ||
*/ | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
export function hasIdleCallback() { | ||
@@ -33,0 +34,0 @@ !_hasIdleCallback && (_hasIdleCallback = safeGetLazy(() => isDefined(requestIdleCallback), false)); |
@@ -11,2 +11,34 @@ /* | ||
import { _createTimerHandler } from "./handler"; | ||
/** | ||
* Repeatedly calls a function or executes a code snippet, with a fixed time delay between each call. | ||
* | ||
* @since 0.4.4 | ||
* @group Timer | ||
* | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel or refresh the interval. | ||
* @example | ||
* ```ts | ||
* let intervalCalled = 0; | ||
* let theIntervalTimer = scheduleInvertal(() => { | ||
* // This callback will be called every 100ms as this uses setInterval() | ||
* intervalCalled++; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearInterval() with the returned value from setInterval() the returned | ||
* // handler instance can be used instead to cancel the timer | ||
* theIntervalTimer.cancel(); | ||
* theIntervalTimer.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theIntervalTimer.enabled = true; | ||
* | ||
* // Or you can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theIntervalTimer.refresh(); | ||
* ``` | ||
*/ | ||
export function scheduleInterval(callback, timeout) { | ||
@@ -13,0 +45,0 @@ let self = this; |
@@ -37,11 +37,232 @@ /* | ||
} | ||
/** | ||
* Creates and starts a timer which executes a function or specified piece of code once the timer expires, this is simular | ||
* to using `setTimeout` but provides a return object for cancelling and restarting (refresh) the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.4.4 | ||
* @group Timer | ||
* | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* let theTimeout = scheduleTimeout(() => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearTimeout() with the returned value from setTimeout() the returned | ||
* // handler instance can be used instead to cancel the timer | ||
* theTimeout.cancel(); | ||
* theTimeout.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theTimeout.enabled = true; | ||
* | ||
* // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theTimeout.refresh(); | ||
* ``` | ||
*/ | ||
export function scheduleTimeout(callback, timeout) { | ||
return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments)); | ||
} | ||
/** | ||
* Creates and starts a timer which executes a function or specified piece of code once the timer expires. The overrideFn will be | ||
* used to create the timer, this is simular to using `setTimeout` but provides a return object for cancelling and restarting | ||
* (refresh) the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.4.4 | ||
* @group Timer | ||
* | ||
* @param overrideFn - setTimeout override function this will be called instead of the `setTimeout`, if the value | ||
* of `overrideFn` is null or undefined it will revert back to the native `setTimeout`. May also be an array with contains | ||
* both the setTimeout and clearTimeout override functions, if either is not provided the default native functions will be used | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* let theTimeout = scheduleTimeoutWith(newSetTimeoutFn, () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearTimeout() with the returned value from setTimeout() the returned | ||
* // handler instance can be used instead to cancel the timer | ||
* theTimeout.cancel(); | ||
* theTimeout.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theTimeout.enabled = true; | ||
* | ||
* // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theTimeout.refresh(); | ||
* ``` | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* // Your own "clearTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newClearTimeoutFn(timeoutId: number) { | ||
* overrideCalled ++; | ||
* return clearTimeout( timeout); | ||
* } | ||
* | ||
* let theTimeout = scheduleTimeoutWith([newSetTimeoutFn, newClearTimeoutFn], () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // Instead of calling clearTimeout() with the returned value from setTimeout() the returned | ||
* // handler instance can be used instead to cancel the timer, internally this will call the newClearTimeoutFn | ||
* theTimeout.cancel(); | ||
* theTimeout.enabled; // false | ||
* | ||
* // You can start the timer via enabled | ||
* theTimeout.enabled = true; | ||
* | ||
* // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()` | ||
* theTimeout.refresh(); | ||
* ``` | ||
*/ | ||
export function scheduleTimeoutWith(overrideFn, callback, timeout) { | ||
return _createTimeoutWith(this, true, overrideFn, arrSlice(arguments, 1)); | ||
} | ||
/** | ||
* Creates a non-running (paused) timer which will execute a function or specified piece of code when enabled and the timer expires, | ||
* this is simular to using `scheduleTimeout` but the timer is not enabled (running) and you MUST call `refresh` to start the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.7.0 | ||
* @group Timer | ||
* | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* let theTimeout = createTimeout(() => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // As the timer is not started you will need to call "refresh" to start the timer | ||
* theTimeout.refresh(); | ||
* | ||
* // or set enabled to true | ||
* theTimeout.enabled = true; | ||
* ``` | ||
*/ | ||
export function createTimeout(callback, timeout) { | ||
return _createTimeoutWith(this, false, UNDEF_VALUE, arrSlice(arguments)); | ||
} | ||
/** | ||
* Creates a non-running (paused) timer which will execute a function or specified piece of code when enabled once the timer expires. | ||
* The overrideFn will be used to create the timer, this is simular to using `scheduleTimeoutWith` but the timer is not enabled (running) | ||
* and you MUST call `refresh` to start the timer. | ||
* | ||
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or | ||
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler} | ||
* instance | ||
* | ||
* @since 0.7.0 | ||
* @group Timer | ||
* | ||
* @param overrideFn - setTimeout override function this will be called instead of the `setTimeout`, if the value | ||
* of `overrideFn` is null or undefined it will revert back to the native `setTimeout`. May also be an array with contains | ||
* both the setTimeout and clearTimeout override functions, if either is not provided the default native functions will be used | ||
* @param callback - The function to be executed after the timer expires. | ||
* @param timeout - The time, in milliseconds that the timer should wait before the specified | ||
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning | ||
* execute "immediately", or more accurately, the next event cycle. | ||
* @param args - Additional arguments which are passed through to the function specified by `callback`. | ||
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout. | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* let theTimeout = createTimeoutWith(newSetTimeoutFn, () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // As the timer is not started you will need to call "refresh" to start the timer | ||
* theTimeout.refresh(); | ||
* | ||
* // or set enabled to true | ||
* theTimeout.enabled = true; | ||
* ``` | ||
* @example | ||
* ```ts | ||
* let timeoutCalled = false; | ||
* // Your own "setTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newSetTimeoutFn(callback: TimeoutOverrideFn) { | ||
* overrideCalled ++; | ||
* return setTimeout(callback, timeout); | ||
* } | ||
* | ||
* // Your own "clearTimeout" implementation to allow you to perform additional operations or possible wrap | ||
* // the callback to add timings. | ||
* function newClearTimeoutFn(timeoutId: number) { | ||
* overrideCalled ++; | ||
* return clearTimeout( timeout); | ||
* } | ||
* | ||
* let theTimeout = createTimeoutWith([newSetTimeoutFn, newClearTimeoutFn], () => { | ||
* // This callback will be called after 100ms as this uses setTimeout() | ||
* timeoutCalled = true; | ||
* }, 100); | ||
* | ||
* // As the timer is not started you will need to call "refresh" to start the timer | ||
* theTimeout.refresh(); | ||
* | ||
* // or set enabled to true | ||
* theTimeout.enabled = true; | ||
* ``` | ||
*/ | ||
export function createTimeoutWith(overrideFn, callback, timeout) { | ||
@@ -48,0 +269,0 @@ return _createTimeoutWith(this, false, overrideFn, arrSlice(arguments, 1)); |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
define(["exports"],function(n){"use strict";var s=void 0,v=null,a="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",c="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],Q=String,t=Q[f],u=Math,X=Array,i=X[f];function Y(n,r){try{r=n()}catch(n){}return r}var nn=[B,R,L,r,"symbol","bigint"];function rn(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||tn(n)!==r)}}function tn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function en(n){return n===v||!un(n)}function un(n){return!!n||n!==s}function on(n){return n!==W&&!!~nn.indexOf(n)}var d=rn(B),b=rn(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=X.isArray,cn=o("Date"),an=rn(R),fn=rn(L),sn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),ln=o("ArrayBuffer"),vn=o("Error");function pn(n){return!!(n&&n.then&&b(n.then))}var yn=pn;function dn(n){return!(!n||Y(function(){return!(n&&0+n)},!n))}var bn=e.getOwnPropertyDescriptor;function hn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var gn=e.hasOwn||mn;function mn(n,r){return hn(n,r)||!!bn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(gn(n,e)&&-1===r[p](t||n,e,n[e]))break}function Sn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function wn(n){throw new RangeError(n)}function In(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var Tn=e.freeze;function jn(n){return n}var On=e.assign;function En(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function xn(n){return Tn&&m(n,function(n,r){(g(r)||h(r))&&Tn(r)}),Fn(n)}var Fn=Tn||jn,Pn=e.seal||jn,Cn=e.getPrototypeOf||function(n){return n[K]||v},zn=e.entries||In;function Dn(n){return Sn(n,0,0,xn)}function kn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),xn(t)}var An,w,Nn=Dn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Q,Ln="__tsUtils$gblCfg";function _n(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Rn(){var n;return An||(n=_n()||{},An=n[Ln]=n[Ln]||{}),An}function T(n,r){var t=a;if(vn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?an(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return tn(n)+": "+t}function Wn(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Kn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));Wn(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);Wn(e,n)}}function Bn(r){return function(n){return n[r]}}var Q=u.min,Gn=u.max,Hn=j(J,t),Un=j("substring",t),$n=O("substr",t,Mn);function Mn(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?a:((r=r||0)<0&&(r=Gn(r+n[c],0)),l(t)?Hn(n,r):Hn(n,r,r+t))}var Vn=O("startsWith",t,qn);function qn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[c],t=0<t?t:0;return Un(n,t,t+e)===r}var Jn,Zn="_urid";function Qn(){var n;return Jn||(n=Rn(),Jn=n.gblSym=n.gblSym||{k:{},s:{}}),Jn}var Xn={};function Yn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function nr(n){var r,t,e=Qn();return gn(e.k,n)||(r=Yn(n),t=En(e.s).length,r[Zn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Zn]()]=I(n)),e.k[n]}function rr(n){n&&n.toString&&Vn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Zn]&&n[Zn]();return n?Qn().s[n]:void 0}function tr(n){n=Nn[n];return n?Xn[n]=Xn[n]||Yn(H+"."+n):void 0}var er={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function ur(r){var n,t={};return t[er.c]=!0,t[er.e]=!0,r.l&&(t.get=function(){return r.l.v},n=bn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[er[n]]=l(r)?t[er[n]]:r}),t}var E,x=e.defineProperty,or=e.defineProperties;function ir(n,r,t){return x(n,r,ur(t))}var cr=function(){E=Rn(),cr=v};function ar(r){var t={};return cr&&cr(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return ar(function(){return Y(n,r)})}var fr,sr,lr,vr,pr,yr,dr,P,br,hr,gr="window";function C(n){return F(function(){return Sr(n)||s},s)}function mr(n){return(fr=!fr||!1===n||E&&E.lzy&&!fr.b?F(_n,v):fr).v}function Sr(n,r){r=fr&&!1!==r?fr.v:mr(r);return r&&r[n]?r[n]:n===gr&&sr?sr.v:v}function wr(){return(lr=!lr||E&&E.lzy&&!lr.b?C("document"):lr).v}function Ir(){return(sr=!sr||E&&E.lzy&&!sr.b?C(gr):sr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("navigator"):vr).v}function jr(){return(pr=!pr||E&&E.lzy&&!pr.b?C("history"):pr).v}function Or(n){return F(function(){return P.v?P.v[n]:s},s)}var Er,xr=rn("symbol");function Fr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),br&&!n||(br=Or("for")),hr&&!n||(hr=Or("keyFor")),P.v}function Pr(n,r){var t=Nn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:tr(n)}function Cr(n){return!!n&&b(n.next)}function zr(n){return!en(n)&&b(n[Pr(3)])}function Dr(r,n,t){if(r&&(Cr(r)||(r=r[(Er=Er||ar(function(){return Pr(3)})).v]?r[Er.v]():null),Cr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Kn("apply"),kr=j("every",i),Ar=j("filter",i);function k(n,r,t){if(n)for(var e=n[c]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Nr=j(U,i),Lr=j($,i),_r=j("map",i),A=j(J,i);function Rr(n,r,t){return-1!==Nr(n,r,t)}function Wr(n,r,t){r=Kr(n,r,t);return-1!==r?n[r]:void 0}function Kr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Br(n,r,t){r=Gr(n,r,t);return-1!==r?n[r]:void 0}function Gr(n,r,t){for(var e=-1,u=(n[c]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Hr(n,t,e){var r,u;return g(n)?(r=A(n),t?_r(r,t,e):r):(u=[],Dr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Ur,$r=O("find",i,Wr),Mr=O("findIndex",i,Kr),Vr=O("findLast",i,Br),qr=O("findLastIndex",i,Gr),X=X.from||Hr,Jr=O("includes",i,Rr),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Kn("bind"),nt=Kn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||ar(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function ct(n,r){try{ir(n,q,{v:r,c:!0,e:!1})}catch(n){}}function at(e,u,n){var r,t,o=n||Error,i=o[f][q],c=Error.captureStackTrace,n=o;return ct(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Cn(n))!==Cn(t)&&ot(t,r),c&&c(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(a[f]=n[f],new a),t;function a(){this.constructor=t,ct(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,a):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,c){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||a;return c&&(e=N(e)),(u||a)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&wn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&wn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=a;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=a,n=(r=Et(r,!0),n[c]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[c]?xt(e,jt(r/e[c])):e)[c]>r?Un(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!Ir()||Ir())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Cn(n),r=(r=!t)||(t=hn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],c={handler:e.handler,src:e.src,path:r},a=typeof n,f=!1,s=!1,l=(n&&a===W?f=Rt(n):s=n===v||on(a),{type:a,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?c:e,r)},copyTo:function(n,r){return Gt(t,n,r,c)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,a=function(r){ir(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),a(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!cn(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Bn(c);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":a)+t(n.replace(r,"\\$1"))+(u?"$":a),e?"i":"")}function ee(n,r){return n[Pr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||ir(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Pr(9)];return r?r(n,t):[n]}var ie=j("split",t),ce=O("split",t,z()?null:oe),ae=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[c],u=n[c],t=!l(t)&&t<u?t:u;return Un(n,t-e,t)===r}var se=j(U,t),U=j($,t),$=O("includes",t,le),t=$;function le(n,r,t){return sn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return c=!1,a&&a[ye]&&a[ye](),i}function u(){return a=r(a),c||e(),i}function o(){a&&t(a),a=v}var i,c=!0,a=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return a&&a[de]?a[de]():c},n[pe]=function(){return c=!0,a&&a[pe]&&a[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!a},set:function(n){!n&&a&&o(),n&&!a&&u()}}),{h:i,dn:function(){a=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,c=(1<o?t[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(c,r,[n])}return D(i,r,e)},function(n){D(c,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return un(requestIdleCallback)},!1)).v||!requestIdleCallback)}n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Cr(n)||zr(n)?Dr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=kr,n.arrFilter=Ar,n.arrFind=$r,n.arrFindIndex=Mr,n.arrFindLast=Vr,n.arrFindLastIndex=qr,n.arrForEach=k,n.arrFrom=X,n.arrIncludes=Jr,n.arrIndexOf=Nr,n.arrLastIndexOf=Lr,n.arrMap=_r,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[c],n={n:function(){return e<=++r}};return ir(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=at,n.createEnum=function(n){return Sn(n,1,0,xn)},n.createEnumKeyMap=Dn,n.createEnumValueMap=function(n){return Sn(n,1,1,xn)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return ir(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=kn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=kn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||ar(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?an(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=wr,n.getGlobal=mr,n.getHistory=jr,n.getInst=Sr,n.getIntValue=function(n,r){return y(n)?r:an(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Pr,n.getLazy=ar,n.getLength=Qt,n.getNavigator=Tr,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(Dr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=Ir,n.hasDocument=function(){return!!wr()},n.hasHistory=function(){return!!jr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Tr()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=Fr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[c];else if(cn(r))o=!isNaN(r.getTime());else{if(fn(r))return!0;if(h(r)){try{e=r,k([c,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(fn(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!En(r)[c]}o=dn(r)}return o}(n,0)},n.hasWindow=function(){return!!Ir()},n.isArray=g,n.isArrayBuffer=ln,n.isBlob=L,n.isBoolean=fn,n.isDate=cn,n.isDefined=un,n.isError=vn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=zr,n.isIterator=Cr,n.isNode=function(){return(dr=dr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Y(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=an,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||on(typeof n)},n.isPrimitiveType=on,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=pn,n.isRegExp=sn,n.isStrictNullOrUndefined=en,n.isStrictUndefined=function(n){return!un(n)},n.isString=d,n.isSymbol=xr,n.isThenable=yn,n.isTruthy=dn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(yr=yr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=Dr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Gn,n.mathMin=Q,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Yn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=On,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=xn,n.objDefine=ir,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,ur(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,ur(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=or,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=ur(r)}),or(n,t)},n.objEntries=zn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=Fn,n.objGetOwnPropertyDescriptor=bn,n.objGetPrototypeOf=Cn,n.objHasOwn=gn,n.objHasOwnProperty=hn,n.objKeys=En,n.objSeal=Pn,n.objSetPrototypeOf=ot,n.objToString=tn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Wr,n.polyArrFindIndex=Kr,n.polyArrFindLast=Br,n.polyArrFindLastIndex=Gr,n.polyArrFrom=Hr,n.polyArrIncludes=Rr,n.polyGetKnownSymbol=tr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===tn(n)},n.polyNewSymbol=Yn,n.polyObjEntries=In,n.polyObjHasOwn=mn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)gn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=Mn,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=nr,n.polySymbolKeyFor=rr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Ur=Ur||ar(function(){return Fr()&&Pr(3)}),!gn(n,c)){var e=Ur.v&&n[Ur.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(Dr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Y,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){cr&&cr(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(Dr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ae,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===a:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,a)===a:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Un(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[c];return r<=0?a:r<t?Un(n,t-r):n},n.strSlice=Hn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Vn,n.strSubstr=$n,n.strSubstring=Un,n.strSymSplit=ce,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.symbolKeyFor=function(n){return hr&&(!E.lzy||P.b)||z(),(hr.v||rr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=wn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||at("UnsupportedError"))(n)},n.utcNow=ft}); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
define(["exports"],function(n){"use strict";var s=void 0,v=null,a="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",c="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],Q=String,t=Q[f],u=Math,X=Array,i=X[f];function Y(n,r){try{r=n()}catch(n){}return r}var nn=[B,R,L,r,"symbol","bigint"];function rn(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||tn(n)!==r)}}function tn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function en(n){return n===v||!un(n)}function un(n){return!!n||n!==s}function on(n){return n!==W&&!!~nn.indexOf(n)}var d=rn(B),b=rn(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=X.isArray,cn=o("Date"),an=rn(R),fn=rn(L),sn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),ln=o("ArrayBuffer"),vn=o("Error");function pn(n){return!!(n&&n.then&&b(n.then))}var yn=pn;function dn(n){return!(!n||Y(function(){return!(n&&0+n)},!n))}var bn=e.getOwnPropertyDescriptor;function hn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var gn=e.hasOwn||mn;function mn(n,r){return hn(n,r)||!!bn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(gn(n,e)&&-1===r[p](t||n,e,n[e]))break}function Sn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function wn(n){throw new RangeError(n)}function In(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var Tn=e.freeze;function jn(n){return n}var On=e.assign;function En(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function xn(n){return Tn&&m(n,function(n,r){(g(r)||h(r))&&Tn(r)}),Fn(n)}var Fn=Tn||jn,Pn=e.seal||jn,Cn=e.getPrototypeOf||function(n){return n[K]||v},zn=e.entries||In;function Dn(n){return Sn(n,0,0,xn)}function kn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),xn(t)}var An,w,Nn=Dn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Q,Ln="__tsUtils$gblCfg";function _n(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Rn(){var n;return An||(n=_n()||{},An=n[Ln]=n[Ln]||{}),An}function T(n,r){var t=a;if(vn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?an(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return tn(n)+": "+t}function Wn(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Kn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));Wn(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);Wn(e,n)}}function Bn(r){return function(n){return n[r]}}var Q=u.min,Gn=u.max,Hn=j(J,t),Un=j("substring",t),$n=O("substr",t,Mn);function Mn(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?a:((r=r||0)<0&&(r=Gn(r+n[c],0)),l(t)?Hn(n,r):Hn(n,r,r+t))}var Vn=O("startsWith",t,qn);function qn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[c],t=0<t?t:0;return Un(n,t,t+e)===r}var Jn,Zn,Qn="_urid";function Xn(){var n;return Jn||(n=Rn(),Jn=n.gblSym=n.gblSym||{k:{},s:{}}),Jn}function Yn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function nr(n){var r,t,e=Xn();return gn(e.k,n)||(r=Yn(n),t=En(e.s).length,r[Qn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Qn]()]=I(n)),e.k[n]}function rr(n){n&&n.toString&&Vn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Qn]&&n[Qn]();return n?Xn().s[n]:void 0}function tr(n){Zn=Zn||{};n=Nn[n];return n?Zn[n]=Zn[n]||Yn(H+"."+n):void 0}var er={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function ur(r){var n,t={};return t[er.c]=!0,t[er.e]=!0,r.l&&(t.get=function(){return r.l.v},n=bn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[er[n]]=l(r)?t[er[n]]:r}),t}var E,x=e.defineProperty,or=e.defineProperties;function ir(n,r,t){return x(n,r,ur(t))}var cr=function(){E=Rn(),cr=v};function ar(r){var t={};return cr&&cr(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return ar(function(){return Y(n,r)})}var fr,sr,lr,vr,pr,yr,dr,P,br,hr,gr="window";function C(n){return F(function(){return Sr(n)||s},s)}function mr(n){return(fr=!fr||!1===n||E&&E.lzy&&!fr.b?F(_n,v):fr).v}function Sr(n,r){r=fr&&!1!==r?fr.v:mr(r);return r&&r[n]?r[n]:n===gr&&sr?sr.v:v}function wr(){return(lr=!lr||E&&E.lzy&&!lr.b?C("document"):lr).v}function Ir(){return(sr=!sr||E&&E.lzy&&!sr.b?C(gr):sr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("navigator"):vr).v}function jr(){return(pr=!pr||E&&E.lzy&&!pr.b?C("history"):pr).v}function Or(n){return F(function(){return P.v?P.v[n]:s},s)}var Er,xr=rn("symbol");function Fr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),br&&!n||(br=Or("for")),hr&&!n||(hr=Or("keyFor")),P.v}function Pr(n,r){var t=Nn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:tr(n)}function Cr(n){return!!n&&b(n.next)}function zr(n){return!en(n)&&b(n[Pr(3)])}function Dr(r,n,t){if(r&&(Cr(r)||(r=r[(Er=Er||ar(function(){return Pr(3)})).v]?r[Er.v]():null),Cr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Kn("apply"),kr=j("every",i),Ar=j("filter",i);function k(n,r,t){if(n)for(var e=n[c]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Nr=j(U,i),Lr=j($,i),_r=j("map",i),A=j(J,i);function Rr(n,r,t){return-1!==Nr(n,r,t)}function Wr(n,r,t){r=Kr(n,r,t);return-1!==r?n[r]:void 0}function Kr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Br(n,r,t){r=Gr(n,r,t);return-1!==r?n[r]:void 0}function Gr(n,r,t){for(var e=-1,u=(n[c]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Hr(n,t,e){var r,u;return g(n)?(r=A(n),t?_r(r,t,e):r):(u=[],Dr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Ur,$r=O("find",i,Wr),Mr=O("findIndex",i,Kr),Vr=O("findLast",i,Br),qr=O("findLastIndex",i,Gr),X=X.from||Hr,Jr=O("includes",i,Rr),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Kn("bind"),nt=Kn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||ar(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function ct(n,r){try{ir(n,q,{v:r,c:!0,e:!1})}catch(n){}}function at(e,u,n){var r,t,o=n||Error,i=o[f][q],c=Error.captureStackTrace,n=o;return ct(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Cn(n))!==Cn(t)&&ot(t,r),c&&c(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(a[f]=n[f],new a),t;function a(){this.constructor=t,ct(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,a):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,c){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||a;return c&&(e=N(e)),(u||a)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&wn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&wn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=a;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=a,n=(r=Et(r,!0),n[c]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[c]?xt(e,jt(r/e[c])):e)[c]>r?Un(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!Ir()||Ir())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Cn(n),r=(r=!t)||(t=hn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],c={handler:e.handler,src:e.src,path:r},a=typeof n,f=!1,s=!1,l=(n&&a===W?f=Rt(n):s=n===v||on(a),{type:a,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?c:e,r)},copyTo:function(n,r){return Gt(t,n,r,c)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,a=function(r){ir(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),a(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!cn(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Bn(c);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":a)+t(n.replace(r,"\\$1"))+(u?"$":a),e?"i":"")}function ee(n,r){return n[Pr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||ir(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Pr(9)];return r?r(n,t):[n]}var ie=j("split",t),ce=O("split",t,z()?null:oe),ae=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[c],u=n[c],t=!l(t)&&t<u?t:u;return Un(n,t-e,t)===r}var se=j(U,t),U=j($,t),$=O("includes",t,le),t=$;function le(n,r,t){return sn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return c=!1,a&&a[ye]&&a[ye](),i}function u(){return a=r(a),c||e(),i}function o(){a&&t(a),a=v}var i,c=!0,a=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return a&&a[de]?a[de]():c},n[pe]=function(){return c=!0,a&&a[pe]&&a[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!a},set:function(n){!n&&a&&o(),n&&!a&&u()}}),{h:i,dn:function(){a=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,c=(1<o?t[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(c,r,[n])}return D(i,r,e)},function(n){D(c,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return un(requestIdleCallback)},!1)).v||!requestIdleCallback)}n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Cr(n)||zr(n)?Dr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=kr,n.arrFilter=Ar,n.arrFind=$r,n.arrFindIndex=Mr,n.arrFindLast=Vr,n.arrFindLastIndex=qr,n.arrForEach=k,n.arrFrom=X,n.arrIncludes=Jr,n.arrIndexOf=Nr,n.arrLastIndexOf=Lr,n.arrMap=_r,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[c],n={n:function(){return e<=++r}};return ir(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=at,n.createEnum=function(n){return Sn(n,1,0,xn)},n.createEnumKeyMap=Dn,n.createEnumValueMap=function(n){return Sn(n,1,1,xn)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return ir(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=kn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=kn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||ar(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?an(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=wr,n.getGlobal=mr,n.getHistory=jr,n.getInst=Sr,n.getIntValue=function(n,r){return y(n)?r:an(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Pr,n.getLazy=ar,n.getLength=Qt,n.getNavigator=Tr,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(Dr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=Ir,n.hasDocument=function(){return!!wr()},n.hasHistory=function(){return!!jr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Tr()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=Fr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[c];else if(cn(r))o=!isNaN(r.getTime());else{if(fn(r))return!0;if(h(r)){try{e=r,k([c,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(fn(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!En(r)[c]}o=dn(r)}return o}(n,0)},n.hasWindow=function(){return!!Ir()},n.isArray=g,n.isArrayBuffer=ln,n.isBlob=L,n.isBoolean=fn,n.isDate=cn,n.isDefined=un,n.isError=vn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=zr,n.isIterator=Cr,n.isNode=function(){return(dr=dr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Y(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=an,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||on(typeof n)},n.isPrimitiveType=on,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=pn,n.isRegExp=sn,n.isStrictNullOrUndefined=en,n.isStrictUndefined=function(n){return!un(n)},n.isString=d,n.isSymbol=xr,n.isThenable=yn,n.isTruthy=dn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(yr=yr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=Dr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Gn,n.mathMin=Q,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Yn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=On,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=xn,n.objDefine=ir,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,ur(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,ur(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=or,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=ur(r)}),or(n,t)},n.objEntries=zn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=Fn,n.objGetOwnPropertyDescriptor=bn,n.objGetPrototypeOf=Cn,n.objHasOwn=gn,n.objHasOwnProperty=hn,n.objKeys=En,n.objSeal=Pn,n.objSetPrototypeOf=ot,n.objToString=tn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Wr,n.polyArrFindIndex=Kr,n.polyArrFindLast=Br,n.polyArrFindLastIndex=Gr,n.polyArrFrom=Hr,n.polyArrIncludes=Rr,n.polyGetKnownSymbol=tr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===tn(n)},n.polyNewSymbol=Yn,n.polyObjEntries=In,n.polyObjHasOwn=mn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)gn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=Mn,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=nr,n.polySymbolKeyFor=rr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Ur=Ur||ar(function(){return Fr()&&Pr(3)}),!gn(n,c)){var e=Ur.v&&n[Ur.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(Dr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Y,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){cr&&cr(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(Dr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ae,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===a:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,a)===a:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Un(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[c];return r<=0?a:r<t?Un(n,t-r):n},n.strSlice=Hn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Vn,n.strSubstr=$n,n.strSubstring=Un,n.strSymSplit=ce,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.symbolKeyFor=function(n){return hr&&(!E.lzy||P.b)||z(),(hr.v||rr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=wn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||at("UnsupportedError"))(n)},n.utcNow=ft}); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,2 +0,2 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
/* | ||
@@ -49,2 +49,3 @@ * Copyright (c) NevWare21 and contributors. All rights reserved. | ||
var PRIMITIVE_TYPES = [STRING, NUMBER, BOOLEAN, UNDEFINED, "symbol", "bigint"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createIs(theType) { | ||
@@ -55,2 +56,3 @@ return function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createObjIs(theName) { | ||
@@ -62,26 +64,35 @@ var theType = "[object " + theName + "]"; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objToString(value) { | ||
return ObjProto.toString[CALL](value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTypeof(value, theType) { | ||
return typeof value === theType; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isUndefined(value) { | ||
return typeof value === UNDEFINED || value === UNDEFINED; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictUndefined(arg) { | ||
return !isDefined(arg); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNullOrUndefined(value) { | ||
return value === NULL_VALUE || isUndefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictNullOrUndefined(value) { | ||
return value === NULL_VALUE || !isDefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isDefined(arg) { | ||
return !!arg || arg !== UNDEF_VALUE; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitive(value) { | ||
return value === NULL_VALUE || isPrimitiveType(typeof value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitiveType(theType) { | ||
@@ -92,2 +103,3 @@ return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1; | ||
var isFunction = ( /*#__PURE__*/_createIs(FUNCTION)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isObject(value) { | ||
@@ -109,2 +121,3 @@ if (!value && isNullOrUndefined(value)) { | ||
var isError = ( /*#__PURE__*/_createObjIs("Error")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromiseLike(value) { | ||
@@ -114,8 +127,11 @@ return !!(value && value.then && isFunction(value.then)); | ||
var isThenable = isPromiseLike; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromise(value) { | ||
return !!(value && value.then && value.catch && isFunction(value.then) && isFunction(value.catch)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNotTruthy(value) { | ||
return !value || !safeGet(function () { return (value && (0 + value)); }, value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTruthy(value) { | ||
@@ -127,2 +143,3 @@ return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objHasOwnProperty(obj, prop) { | ||
@@ -133,2 +150,3 @@ return obj && ObjProto.hasOwnProperty[CALL](obj, prop); | ||
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjHasOwn(obj, prop) { | ||
@@ -150,2 +168,3 @@ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createKeyValueMap(values, keyType, valueType, completeFn) { | ||
@@ -170,2 +189,3 @@ var theMap = {}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjKeys(obj) { | ||
@@ -183,2 +203,3 @@ if (!isObject(obj) || obj === NULL_VALUE) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjEntries(value) { | ||
@@ -196,2 +217,3 @@ var result = []; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getProto(value) { | ||
@@ -201,2 +223,3 @@ return value[__PROTO__] || NULL_VALUE; | ||
var objAssign = ObjClass["assign"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objKeys(value) { | ||
@@ -223,11 +246,15 @@ if (!isObject(value) || value === NULL_VALUE) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnum(values) { | ||
return _createKeyValueMap(values, 1 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumKeyMap(values) { | ||
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumValueMap(values) { | ||
return _createKeyValueMap(values, 1 , 1 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createSimpleMap(values) { | ||
@@ -241,2 +268,3 @@ var mapClass = {}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createTypeMap(values) { | ||
@@ -266,2 +294,3 @@ return createSimpleMap(values); | ||
var _globalCfg; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalValue() { | ||
@@ -283,2 +312,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalConfig() { | ||
@@ -292,2 +322,3 @@ if (!_globalCfg) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function dumpObj(object, format) { | ||
@@ -345,2 +376,3 @@ var propertyValueDump = EMPTY; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _unwrapProp(propName) { | ||
@@ -359,2 +391,3 @@ return function (thisArg) { | ||
var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSubstr(value, start, length) { | ||
@@ -376,5 +409,7 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLeft(value, count) { | ||
return strSubstring(value, 0, count); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strRight(value, count) { | ||
@@ -389,2 +424,3 @@ var len = value[LENGTH]; | ||
var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrStartsWith(value, searchString, position) { | ||
@@ -402,2 +438,3 @@ if (!isString(value)) { | ||
var _polySymbols; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _globalSymbolRegistry() { | ||
@@ -410,3 +447,4 @@ if (!_polySymbols) { | ||
} | ||
var _wellKnownSymbolCache = {}; | ||
var _wellKnownSymbolCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyNewSymbol(description) { | ||
@@ -420,2 +458,3 @@ var theSymbol = { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolFor(key) { | ||
@@ -432,2 +471,3 @@ var registry = _globalSymbolRegistry(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolKeyFor(sym) { | ||
@@ -440,3 +480,5 @@ if (!sym || !sym.toString || !strStartsWith(sym.toString(), SYMBOL)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyGetKnownSymbol(name) { | ||
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {}); | ||
var result; | ||
@@ -458,2 +500,3 @@ var knownName = _wellKnownSymbolMap[name]; | ||
}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createProp(value) { | ||
@@ -558,5 +601,7 @@ var prop = {}; | ||
var _isNode; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function lazySafeGetInst(name) { | ||
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getGlobal(useCached) { | ||
@@ -566,2 +611,3 @@ (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getInst(name, useCached) { | ||
@@ -577,5 +623,7 @@ var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasDocument() { | ||
return !!getDocument(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getDocument() { | ||
@@ -585,5 +633,7 @@ (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasWindow() { | ||
return !!getWindow(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getWindow() { | ||
@@ -593,5 +643,7 @@ (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasNavigator() { | ||
return !!getNavigator(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getNavigator() { | ||
@@ -601,5 +653,7 @@ (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasHistory() { | ||
return !!getHistory(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getHistory() { | ||
@@ -621,2 +675,3 @@ (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history")); | ||
var _symbolKeyFor; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getSymbolValue(name) { | ||
@@ -628,2 +683,3 @@ return safeGetLazy(function () { | ||
var isSymbol = ( /*#__PURE__*/_createIs("symbol")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasSymbol() { | ||
@@ -639,2 +695,3 @@ return !!getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getKnownSymbol(name, noPoly) { | ||
@@ -645,2 +702,3 @@ var knownName = _wellKnownSymbolMap[name]; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function newSymbol(description, noPoly) { | ||
@@ -650,2 +708,3 @@ (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolFor(key) { | ||
@@ -655,2 +714,3 @@ (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolKeyFor(sym) { | ||
@@ -661,5 +721,7 @@ (!_symbolKeyFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterator(value) { | ||
return !!value && isFunction(value.next); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterable(value) { | ||
@@ -753,2 +815,3 @@ return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyIsArray(value) { | ||
@@ -760,2 +823,3 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyArrIncludes(theArray, searchElement, fromIndex) { | ||
@@ -849,2 +913,3 @@ return arrIndexOf(theArray, searchElement, fromIndex) !== -1; | ||
var _iterSymbol; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function readArgs(theArgs, start, end) { | ||
@@ -878,2 +943,3 @@ if (!_iterSymbol) { | ||
var objCreate = ObjClass["create"] || polyObjCreate; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjCreate(obj) { | ||
@@ -915,3 +981,3 @@ if (!obj) { | ||
} | ||
var _safeSetName = function (baseClass, name) { | ||
function _safeSetName(baseClass, name) { | ||
try { | ||
@@ -922,4 +988,4 @@ name && (baseClass[NAME] = name); | ||
} | ||
}; | ||
var _safeDefineName = function (target, name) { | ||
} | ||
function _safeDefineName(target, name) { | ||
try { | ||
@@ -930,3 +996,4 @@ objDefine(target, NAME, { v: name, c: true, e: false }); | ||
} | ||
}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createCustomError(name, constructCb, errorBase) { | ||
@@ -964,5 +1031,7 @@ var theBaseClass = errorBase || Error; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function utcNow() { | ||
return (Date.now || polyUtcNow)(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyUtcNow() { | ||
@@ -972,2 +1041,3 @@ return new Date().getTime(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createTrimFn(exp) { | ||
@@ -997,2 +1067,3 @@ return function _doTrim(value) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _convertCase(value, newPrefix, upperWord) { | ||
@@ -1007,5 +1078,7 @@ return strTrim(asString(value)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g, function (_match, _g1, _g2, wordStart, upperPrefix, upperLetter) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLetterCase(value) { | ||
return asString(value).replace(/(_|\b)\w/g, strUpper); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strCamelCase(value, upperFirst) { | ||
@@ -1015,2 +1088,3 @@ var result = _convertCase(value, "", true); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strKebabCase(value, scream) { | ||
@@ -1020,2 +1094,3 @@ var result = _convertCase(value, "-"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strSnakeCase(value, scream) { | ||
@@ -1030,2 +1105,3 @@ var result = _convertCase(value, "_"); | ||
var mathTrunc = MathCls.trunc || polyMathTrunc; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyMathTrunc(value) { | ||
@@ -1036,2 +1112,3 @@ var theValue = +value; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function mathToInt(value, throwInfinity) { | ||
@@ -1046,2 +1123,3 @@ var result = +value; | ||
var strRepeat = ( /*#__PURE__*/_unwrapFunctionWithPoly("repeat", StrProto, polyStrRepeat)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrRepeat(value, count) { | ||
@@ -1065,2 +1143,3 @@ if (isNullOrUndefined(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _padValue(value, targetLength, padString) { | ||
@@ -1085,5 +1164,7 @@ var result = EMPTY; | ||
var strPadEnd = ( /*#__PURE__*/_unwrapFunctionWithPoly("padEnd", StrProto, polyStrPadEnd)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadStart(value, targetLength, padString) { | ||
return _padValue(value, targetLength, padString) + value; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadEnd(value, targetLength, padString) { | ||
@@ -1096,2 +1177,3 @@ return value + _padValue(value, targetLength, padString); | ||
var _htmlEntityCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function normalizeJsName(jsName, camelCase) { | ||
@@ -1101,2 +1183,3 @@ var result = asString(jsName).replace(INVALID_JS_NAME, "_"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsJson(value, format) { | ||
@@ -1123,2 +1206,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsHtml(value) { | ||
@@ -1142,2 +1226,3 @@ !_htmlEntityCache && (_htmlEntityCache = getLazy(function () { | ||
var _gblWindow; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPlainObject(value) { | ||
@@ -1267,2 +1352,3 @@ if (!value || typeof value !== OBJECT) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objDeepCopy(source, handler) { | ||
@@ -1324,2 +1410,3 @@ var ctx = { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getIntValue(value, defValue) { | ||
@@ -1337,5 +1424,7 @@ if (!isNullOrUndefined(value)) { | ||
var _perf; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasPerformance() { | ||
return !!getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getPerformance() { | ||
@@ -1345,2 +1434,3 @@ (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function perfNow() { | ||
@@ -1353,2 +1443,3 @@ var perf = getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function elapsedTime(startTime) { | ||
@@ -1363,2 +1454,3 @@ return perfNow() - startTime; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createWildcardRegex(value, ignoreCase, fullMatch) { | ||
@@ -1369,2 +1461,3 @@ return _createRegExp(asString(value), /([-+|^$#.\?{}()\[\]\\/\"\'])/g, function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createFilenameRegex(value, ignoreCase, fullMatch) { | ||
@@ -1380,2 +1473,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function makeGlobRegex(value, ignoreCase, fullMatch) { | ||
@@ -1398,2 +1492,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, function (value) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _checkLength(value, props) { | ||
@@ -1410,2 +1505,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _hasValue(value, depth) { | ||
@@ -1443,2 +1539,3 @@ var result = value === false || value === 0; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasValue(value) { | ||
@@ -1448,2 +1545,3 @@ return _hasValue(value, 0); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterable(ctx) { | ||
@@ -1460,2 +1558,3 @@ return makeIterable({}, ctx); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterator(ctx) { | ||
@@ -1505,2 +1604,3 @@ var isDone = false; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createArrayIterator(values) { | ||
@@ -1526,2 +1626,3 @@ var idx = -1; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createRangeIterator(start, end, step) { | ||
@@ -1558,2 +1659,3 @@ var nextValue = start; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSymSplit(value, splitter, limit) { | ||
@@ -1567,2 +1669,3 @@ var splitFn = splitter && splitter[getKnownSymbol(9 )]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByKey(target, path, defValue) { | ||
@@ -1579,2 +1682,3 @@ if (!path || !target) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByIter(target, iter, defValue) { | ||
@@ -1622,2 +1726,3 @@ if (!iter || !target) { | ||
var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrEndsWith(value, searchString, length) { | ||
@@ -1639,2 +1744,3 @@ if (!isString(value)) { | ||
var strContains = strIncludes; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrIncludes(value, searchString, position) { | ||
@@ -1647,2 +1753,3 @@ if (isRegExp(searchString)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrWhiteSpace(value) { | ||
@@ -1654,2 +1761,3 @@ if (isString(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrEmpty(value) { | ||
@@ -1763,2 +1871,3 @@ if (isString(value)) { | ||
var _maxExecutionTime = 50; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasIdleCallback() { | ||
@@ -1765,0 +1874,0 @@ !_hasIdleCallback && (_hasIdleCallback = safeGetLazy(function () { return isDefined(requestIdleCallback); }, false)); |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
"use strict";var f=void 0,l=null,c="",L="boolean",_="function",R="number",W="object",a="prototype",K="__proto__",B="string",t="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",s="length",M="done",V="value",q="name",J="slice",x="call",e=Object,Z=e[a],Q=String,r=Q[a],n=Math,X=Array,i=X[a];function Y(r,t){try{t=r()}catch(r){}return t}var rr=[B,R,L,t,"symbol","bigint"];function tr(t){return function(r){return typeof r===t}}function o(r){var t="[object "+r+"]";return function(r){return!(!r||nr(r)!==t)}}function nr(r){return Z.toString[x](r)}function u(r){return typeof r===t||r===t}function p(r){return r===l||u(r)}function er(r){return r===l||!or(r)}function or(r){return!!r||r!==f}function ur(r){return r!==W&&!!~rr.indexOf(r)}var v=tr(B),y=tr(_);function d(r){return!(!r&&p(r)||!r||typeof r!==W)}var b=X.isArray,ir=o("Date"),sr=tr(R),cr=tr(L),ar=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),fr=o("ArrayBuffer"),pr=o("Error");function lr(r){return!!(r&&r.then&&y(r.then))}var xr=lr;function vr(r){return!(!r||Y(function(){return!(r&&0+r)},!r))}var yr=e.getOwnPropertyDescriptor;function dr(r,t){return r&&Z.hasOwnProperty[x](r,t)}var br=e.hasOwn||hr;function hr(r,t){return dr(r,t)||!!yr(r,t)}function h(r,t,n){if(r&&d(r))for(var e in r)if(br(r,e)&&-1===t[x](n||r,e,r[e]))break}function gr(r,n,e,t){var o={};return h(r,function(r,t){o[r]=n?t:r,o[t]=e?t:r}),t(o)}function g(r){throw new TypeError(r)}function mr(r){throw new RangeError(r)}function Sr(r){var n=[];return h(r,function(r,t){n.push([r,t])}),n}var wr=e.freeze;function Ir(r){return r}var Tr=e.assign;function jr(r){return d(r)&&r!==l||g("objKeys called on non-object"),e.keys(r)}function Or(r){return wr&&h(r,function(r,t){(b(t)||d(t))&&wr(t)}),Er(r)}var Er=wr||Ir,Fr=e.seal||Ir,Pr=e.getPrototypeOf||function(r){return r[K]||l},Cr=e.entries||Sr;function zr(r){return gr(r,0,0,Or)}function Dr(r){var n={};return h(r,function(r,t){n[r]=t[1],n[t[0]]=t[1]}),Or(n)}var kr,m,Ar=zr({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),S=Q,Nr="__tsUtils$gblCfg";function Lr(){var r;return(r=(r=(r=typeof globalThis!==t?globalThis:r)||typeof self===t?r:self)||typeof window===t?r:window)||typeof global===t?r:global}function _r(){var r;return kr||(r=Lr()||{},kr=r[Nr]=r[Nr]||{}),kr}function w(r,t){var n=c;if(pr(r))n="{ stack: '"+r.stack+"', message: '"+r.message+"', name: '"+r.name+"'";else try{n=JSON.stringify(r,l,t?sr(t)?t:4:f)}catch(r){n=" - "+w(r,t)}return nr(r)+": "+n}function Rr(r,t){g("'"+S(r)+"' not defined for "+w(t))}function Wr(t){return m=m||i[J],function(r){return r[t].apply(r,m[x](arguments,1))}}function I(n,r){m=m||i[J];var e=r&&r[n];return function(r){var t=r&&r[n]||e;if(t)return t.apply(r,m[x](arguments,1));Rr(n,r)}}function T(e,r,o){m=m||i[J];var u=r&&r[e];return function(r){var t,n=r&&r[e]||u;if(n||o)return t=arguments,(n||o).apply(r,n?m[x](t,1):t);Rr(e,r)}}function Kr(t){return function(r){return r[t]}}var Q=n.min,Br=n.max,Gr=I(J,r),j=I("substring",r),Hr=T("substr",r,Ur);function Ur(r,t,n){return p(r)&&g("'polyStrSubstr called with invalid "+w(r)),n<0?c:((t=t||0)<0&&(t=Br(t+r[s],0)),u(n)?Gr(r,t):Gr(r,t,t+n))}var $r=T("startsWith",r,Mr);function Mr(r,t,n){v(r)||g("'"+w(r)+"' is not a string");var t=v(t)?t:S(t),e=t[s],n=0<n?n:0;return j(r,n,n+e)===t}var Vr,qr="_urid";function Jr(){var r;return Vr||(r=_r(),Vr=r.gblSym=r.gblSym||{k:{},s:{}}),Vr}var Zr={};function Qr(r){return{description:S(r),toString:function(){return H+"("+r+")"},_polyfill:!0}}function Xr(r){var t,n,e=Jr();return br(e.k,r)||(t=Qr(r),n=jr(e.s).length,t[qr]=function(){return n+"_"+t.toString()},e.k[r]=t,e.s[t[qr]()]=S(r)),e.k[r]}function Yr(r){r&&r.toString&&$r(r.toString(),H)||g(r+" is not a symbol");r=r._polyfill&&r[qr]&&r[qr]();return r?Jr().s[r]:void 0}function rt(r){r=Ar[r];return r?Zr[r]=Zr[r]||Qr(H+"."+r):void 0}var tt={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function nt(t){var r,n={};return n[tt.c]=!0,n[tt.e]=!0,t.l&&(n.get=function(){return t.l.v},r=yr(t.l,"v"))&&r.set&&(n.set=function(r){t.l.v=r}),h(t,function(r,t){n[tt[r]]=u(t)?n[tt[r]]:t}),n}var O,E=e.defineProperty,et=e.defineProperties;function ot(r,t,n){return E(r,t,nt(n))}var ut=function(){O=_r(),ut=l};function it(t){var n={};return ut&&ut(),n.b=O.lzy,E(n,"v",{configurable:!0,get:function(){var r=t();return O.lzy||(E(n,"v",{value:r}),n.b&&delete n.b),O.lzy&&n.b!==O.lzy&&(n.b=O.lzy),r}}),n}function F(r,t){return it(function(){return Y(r,t)})}var st,ct,at,ft,pt,lt,xt,P,vt,yt,dt="window";function C(r){return F(function(){return ht(r)||f},f)}function bt(r){return(st=!st||!1===r||O&&O.lzy&&!st.b?F(Lr,l):st).v}function ht(r,t){t=st&&!1!==t?st.v:bt(t);return t&&t[r]?t[r]:r===dt&&ct?ct.v:l}function gt(){return(at=!at||O&&O.lzy&&!at.b?C("document"):at).v}function mt(){return(ct=!ct||O&&O.lzy&&!ct.b?C(dt):ct).v}function St(){return(ft=!ft||O&&O.lzy&&!ft.b?C("navigator"):ft).v}function wt(){return(pt=!pt||O&&O.lzy&&!pt.b?C("history"):pt).v}function It(r){return F(function(){return P.v?P.v[r]:f},f)}var Tt,jt=tr("symbol");function Ot(){return!!z()}function z(){var r=!P||O&&O.lzy&&!P.b;return r&&(P=C(H)),vt&&!r||(vt=It("for")),yt&&!r||(yt=It("keyFor")),P.v}function Et(r,t){var n=Ar[r];return P&&(!O.lzy||P.b)||z(),P.v?P.v[n||r]:t?f:rt(r)}function Ft(r){return!!r&&y(r.next)}function Pt(r){return!er(r)&&y(r[Et(3)])}function Ct(t,r,n){if(t&&(Ft(t)||(t=t[(Tt=Tt||it(function(){return Et(3)})).v]?t[Tt.v]():null),Ft(t))){var e=void 0,o=void 0;try{for(var u=0;!(o=t.next())[M]&&-1!==r[x](n||t,o[V],u,t);)u++}catch(r){e={e:r},t.throw&&(o=null,t.throw(e))}finally{try{o&&!o[M]&&t.return&&t.return(o)}finally{if(e)throw e.e}}}}var D=Wr("apply"),zt=I("every",i),Dt=I("filter",i);function k(r,t,n){if(r)for(var e=r[s]>>>0,o=0;o<e&&!(o in r&&-1===t[x](n||r,r[o],o,r));o++);}var kt=I(U,i),At=I($,i),Nt=I("map",i),A=I(J,i);function Lt(r,t,n){return-1!==kt(r,t,n)}function _t(r,t,n){t=Rt(r,t,n);return-1!==t?r[t]:void 0}function Rt(n,e,o){var u=-1;return k(n,function(r,t){if(e[x](o|n,r,t,n))return u=t,-1}),u}function Wt(r,t,n){t=Kt(r,t,n);return-1!==t?r[t]:void 0}function Kt(r,t,n){for(var e=-1,o=(r[s]>>>0)-1;0<=o;o--)if(o in r&&t[x](n|r,r[o],o,r)){e=o;break}return e}function Bt(r,n,e){var t,o;return b(r)?(t=A(r),n?Nt(t,n,e):t):(o=[],Ct(r,function(r,t){return o.push(n?n[x](e,r,t):r)}),o)}var Gt,Ht=T("find",i,_t),Ut=T("findIndex",i,Rt),$t=T("findLast",i,Wt),Mt=T("findLastIndex",i,Kt),X=X.from||Bt,Vt=T("includes",i,Lt),qt=Vt,Jt=I("reduce",i),Zt=I("some",i),Qt=Wr("bind"),Xt=Wr(x);function Yt(n,e){return function(){var r=A(arguments),t=n();return D(t[e],t,r)}}var rn,tn,nn=e.create||function(r){if(!r)return{};var t=typeof r;if(t!==W&&t!=_)throw new TypeError("Prototype must be an Object or function: "+w(r));function n(){}return n[a]=r,new n};function en(r,t){return(e.setPrototypeOf||function(n,r){(rn=rn||it(function(){var r={};return r[K]=[],r instanceof Array})).v?n[K]=r:h(r,function(r,t){return n[r]=t})})(r,t)}function on(r,t){try{t&&(r[q]=t)}catch(r){}}function un(r,t){try{ot(r,q,{v:t,c:!0,e:!1})}catch(r){}}function sn(e,o,r){var t,n,u=r||Error,i=u[a][q],s=Error.captureStackTrace,r=u;return un(n=function(){var r=this;try{on(u,e);var t,n=D(u,r,A(arguments))||r;return n!==r&&(t=Pr(r))!==Pr(n)&&en(n,t),s&&s(n,r[G]),o&&o(n,arguments),n}finally{on(u,i)}},t=e),(n=en(n,r))[a]=r===l?nn(r):(c[a]=r[a],new c),n;function c(){this.constructor=n,un(this,t)}}function cn(){return(Date.now||an)()}function an(){return(new Date).getTime()}function fn(t){return function(r){return p(r)&&g("strTrim called ["+w(r)+"]"),r&&r.replace?r.replace(t,c):r}}var pn=fn(/^\s+|(?=\s)\s+$/g),ln=fn(/^\s+/g),xn=fn(/(?=\s)\s+$/g),vn=T("trim",r,pn),yn=T("trimStart",r,ln),dn=yn,bn=T("trimEnd",r,xn),hn=bn,N=I("toUpperCase",r),gn=I("toLowerCase",r);function mn(r,i,s){return vn(S(r)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(r,t,n,e,o,u){e=e||u||c;return s&&(e=N(e)),(o||c)+i+e})}function Sn(r,t){return mn(r,"",!0).replace(/^\w/,t?N:gn)}var wn=n.floor,In=n.ceil,Tn=n.trunc||function(r){r=+r;return(0<r?wn:In)(r)};function jn(r,t){var n=+r;return n==1/0&&t&&mr("invalid value ["+w(r)+"]"),n!=n||0==n?0:Tn(n)}var On=T("repeat",r,En);function En(r,t){p(r)&&g("can't convert ["+w(r)+"]"),(t=jn(t,!0))<0&&mr("invalid count must be >= 0 && < Infinity");for(var n=v(r)?r:S(r),e=c;0<t;(t>>>=1)&&(n+=n))1&t&&(e+=n);return e}function Fn(r,t,n){var e=c,r=(t=jn(t,!0),r[s]);return r<(t>>=0)&&(e=(t-=r)>(e=p(n)?" ":S(n))[s]?On(e,In(t/e[s])):e)[s]>t?j(e,0,t):e}var Pn=T("padStart",r,Cn),n=T("padEnd",r,zn);function Cn(r,t,n){return Fn(r,t,n)+r}function zn(r,t,n){return r+Fn(r,t,n)}var Dn,kn,An,Nn,Ln=/([^\w\d_$])/g;function _n(r){if(!r||typeof r!==W)return!1;var t=!1;if(r!==(Nn=Nn||!mt()||mt())){An||(kn=Function[a].toString,An=kn[x](e));try{var n=Pr(r),t=(t=!n)||(n=dr(n,G)?n[G]:n)&&typeof n==_&&kn[x](n)===An}catch(r){}}return t}var Rn=function(r){return r.value&&Vn(r),!0},Wn=[Un,Vn,Mn,$n];function Kn(n,r,e,t){var o,u,i=e.handler,t=e.path?t?e.path.concat(t):e.path:[],s={handler:e.handler,src:e.src,path:t},c=typeof r,a=!1,f=!1,p=(r&&c===W?a=_n(r):f=r===l||ur(c),{type:c,isPrim:f,isPlain:a,value:r,result:r,path:t,origin:e.src,copy:function(r,t){return Kn(n,r,t?s:e,t)},copyTo:function(r,t){return Bn(n,r,t,s)}});return p.isPrim?i&&i[x](e,p)?p.result:r:(o=r,c=function(t){ot(p,"result",{g:function(){return t.v},s:function(r){t.v=r}});for(var r=0,n=i;!(n||(r<Wn.length?Wn[r++]:Rn))[x](e,p);)n=l},k(f=n,function(r){if(r.k===o)return u=r,-1}),u||(u={k:o,v:o},f.push(u),c(u)),u.v)}function Bn(r,t,n,e){if(!p(n))for(var o in n)t[o]=Kn(r,n[o],e,o);return t}function Gn(r,t,n){return Bn([],r,t,{handler:n,src:t,path:[]})}function Hn(r,t){return Kn([],r,{handler:t,src:r})}function Un(r){var t,n=r.value;return!!b(n)&&((t=r.result=[]).length=n.length,r.copyTo(t,n),!0)}function $n(r){var t=r.value;return!!ir(t)&&(r.result=new Date(t.getTime()),!0)}function Mn(r){return r.type===_}function Vn(r){var t,n=r.value;return!(!n||!r.isPlain||(t=r.result={},r.copyTo(t,n),0))}function qn(t,r){return k(r,function(r){Gn(t,r)}),t}var Jn,Zn=Kr(s);function Qn(){return(Jn=!Jn||!Jn.b&&O&&O.lzy?C("performance"):Jn).v}function Xn(){var r=Qn();return r&&r.now?r.now():cn()}function Yn(r){return Xn()-r}var re="(.*)";function te(r,t,n,e,o){return RegExp((o?"^":c)+n(r.replace(t,"\\$1"))+(o?"$":c),e?"i":"")}function ne(r,t){return r[Et(3)]=function(){return ee(t)},r}function ee(n){var e=!1;function t(){return n.v}var r={next:function(){e=e||!n.n||n.n(arguments),(r={})[M]=e;var r;return e||ot(r,V,{g:t}),r}};return n.r&&(r.return=function(r){var t;return e=!0,(t={})[M]=!0,t[V]=n.r&&n.r(r),t}),n.t&&(r.throw=function(r){var t;return e=!0,(t={})[M]=!0,t[V]=n.t&&n.t(r),t}),r}function oe(r,t,n){t=t&&t[Et(9)];return t?t(r,n):[r]}var ue=I("split",r),ie=T("split",r,z()?null:oe),se=T("endsWith",r,ce);function ce(r,t,n){v(r)||g("'"+w(r)+"' is not a string");var t=v(t)?t:S(t),e=t[s],o=r[s],n=!u(n)&&n<o?n:o;return j(r,n-e,n)===t}var ae=I(U,r),U=I($,r),$=T("includes",r,fe),r=$;function fe(r,t,n){return ar(t)&&g("'searchString' must not be a regular expression"+w(t)),-1!==ae(r,S(t),n)}var pe,le="ref",xe="un"+le,ve="hasRef",ye="enabled";function de(r,t,n){function e(){return s=!1,c&&c[xe]&&c[xe](),i}function o(){return c=t(c),s||e(),i}function u(){c&&n(c),c=l}var i,s=!0,c=r?t(l):l,r={cancel:u,refresh:o};return r[ve]=function(){return c&&c[ve]?c[ve]():s},r[le]=function(){return s=!0,c&&c[le]&&c[le](),i},r[xe]=e,r[ye]=!1,E(i=r,ye,{get:function(){return!!c},set:function(r){!r&&c&&u(),r&&!c&&o()}}),{h:i,dn:function(){c=l}}}function be(t,r,n,e){var o=b(n),u=o?n.length:0,i=(0<u?n[0]:o?f:n)||setTimeout,s=(1<u?n[1]:f)||clearTimeout,c=e[0],a=(e[0]=function(){a.dn(),D(c,t,A(arguments))},de(r,function(r){if(r){if(r.refresh)return r.refresh(),r;D(s,t,[r])}return D(i,t,e)},function(r){D(s,t,[r])}));return a.h}function he(r,t){return be(this,!0,f,A(arguments))}var ge=100,me=50;function Se(){return!(!(pe=pe||F(function(){return or(requestIdleCallback)},!1)).v||!requestIdleCallback)}exports.arrAppend=function(t,r){return!u(r)&&t&&(b(r)?D(t.push,t,r):Ft(r)||Pt(r)?Ct(r,function(r){t.push(r)}):t.push(r)),t},exports.arrContains=qt,exports.arrEvery=zt,exports.arrFilter=Dt,exports.arrFind=Ht,exports.arrFindIndex=Ut,exports.arrFindLast=$t,exports.arrFindLastIndex=Mt,exports.arrForEach=k,exports.arrFrom=X,exports.arrIncludes=Vt,exports.arrIndexOf=kt,exports.arrLastIndexOf=At,exports.arrMap=Nt,exports.arrReduce=Jt,exports.arrSlice=A,exports.arrSome=Zt,exports.arrayDeepCopyHandler=Un,exports.asString=S,exports.createArrayIterator=function(r){var t=-1,n=r?r.slice():[],e=n[s],r={n:function(){return e<=++t}};return ot(r,"v",{g:function(){if(0<=t&&t<e)return n[t]}}),ee(r)},exports.createCustomError=sn,exports.createEnum=function(r){return gr(r,1,0,Or)},exports.createEnumKeyMap=zr,exports.createEnumValueMap=function(r){return gr(r,1,1,Or)},exports.createFilenameRegex=function(r,t,n){return te(S(r),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(r){return r.replace(/(\\\\|\\\/|\*|\?)/g,function(r,t){return"\\/"==t||"\\\\"==t?"[\\\\\\/]{1}":"*"==t?re:"(.)"})},!!t,n)},exports.createFnDeferredProxy=Yt,exports.createIterable=function(r){return ne({},r)},exports.createIterator=ee,exports.createProxyFuncs=function(n,e,r){var o;return n&&e&&b(r)&&(o=y(e),k(r,function(r){var t=r.as||r.n;!1===r.rp&&n[t]||(n[t]=o?Yt(e,r.n):Qt(e[r.n],e))})),n},exports.createRangeIterator=function(r,t,n){var e=r,o=f,u=(p(t)&&(t=r),n||(r<=t?1:-1)),n={n:function(){var r;return(r=0<u?t<e:e<t)||(o=e,e+=u),r}};return ot(n,"v",{g:function(){return o}}),ee(n)},exports.createSimpleMap=Dr,exports.createTimeout=function(r,t){return be(this,!1,f,A(arguments))},exports.createTimeoutWith=function(r,t,n){return be(this,!1,r,A(arguments,1))},exports.createTypeMap=Dr,exports.createWildcardRegex=function(r,t,n){return te(S(r),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(r){return r.replace(/\*/g,re)},!!t,n)},exports.dateDeepCopyHandler=$n,exports.deepExtend=function(r,t,n,e,o,u,i){return qn(Hn(r)||{},A(arguments))},exports.dumpObj=w,exports.elapsedTime=Yn,exports.encodeAsHtml=function(r){return Dn=Dn||it(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),S(r).replace(/[&<>"']/g,function(r){return"&"+Dn.v[r]+";"})},exports.encodeAsJson=function(r,t){var n;if(v(r))n='"'+r.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(r){return'"'===r||"\\"===r?"\\"+r:(r=r.charCodeAt(0).toString(16),"\\u"+Pn(N(r),4,"0"))})+'"';else try{n=JSON.stringify(r,l,t?sr(t)?t:4:f)}catch(r){n='"'+w(r)+'"'}return n},exports.fnApply=D,exports.fnBind=Qt,exports.fnCall=Xt,exports.functionDeepCopyHandler=Mn,exports.getDocument=gt,exports.getGlobal=bt,exports.getHistory=wt,exports.getInst=ht,exports.getIntValue=function(r,t){return p(r)?t:sr(r)?r:isNaN(r=parseInt(r,10))?t:r},exports.getKnownSymbol=Et,exports.getLazy=it,exports.getLength=Zn,exports.getNavigator=St,exports.getPerformance=Qn,exports.getSymbol=z,exports.getValueByIter=function(t,r,n){return r&&t&&(Ct(r,function(r){if(p(t))return-1;t=t[r]}),!p(t))?t:n},exports.getValueByKey=function(r,t,n){if(!t||!r)return n;for(var e=ue(t,"."),o=e.length,u=0;u<o&&!p(r);u++)r=r[e[u]];return p(r)?n:r},exports.getWindow=mt,exports.hasDocument=function(){return!!gt()},exports.hasHistory=function(){return!!wt()},exports.hasIdleCallback=Se,exports.hasNavigator=function(){return!!St()},exports.hasPerformance=function(){return!!Qn()},exports.hasSymbol=Ot,exports.hasValue=function(r){return function r(t,n){var e,o,u=!1===t||0===t;if(!u&&!p(t))if(b(t))u=0<t[s];else if(ir(t))u=!isNaN(t.getTime());else{if(cr(t))return!0;if(d(t)){try{e=t,k([s,"byteLength","size","count"],function(r){if(r in e)return r=e[r],o=0<(y(r)?r():r),-1});var i=o;if(cr(i))return i;if(y(t.valueOf)&&n<5)return r(t.valueOf(),++n)}catch(r){}return!!jr(t)[s]}u=vr(t)}return u}(r,0)},exports.hasWindow=function(){return!!mt()},exports.isArray=b,exports.isArrayBuffer=fr,exports.isBlob=L,exports.isBoolean=cr,exports.isDate=ir,exports.isDefined=or,exports.isError=pr,exports.isFile=B,exports.isFormData=R,exports.isFunction=y,exports.isIterable=Pt,exports.isIterator=Ft,exports.isNode=function(){return(xt=xt||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},exports.isNotTruthy=function(r){return!r||!Y(function(){return r&&0+r},r)},exports.isNullOrUndefined=p,exports.isNumber=sr,exports.isObject=d,exports.isPlainObject=_n,exports.isPrimitive=function(r){return r===l||ur(typeof r)},exports.isPrimitiveType=ur,exports.isPromise=function(r){return!!(r&&r.then&&r.catch&&y(r.then)&&y(r.catch))},exports.isPromiseLike=lr,exports.isRegExp=ar,exports.isStrictNullOrUndefined=er,exports.isStrictUndefined=function(r){return!or(r)},exports.isString=v,exports.isSymbol=jt,exports.isThenable=xr,exports.isTruthy=vr,exports.isTypeof=function(r,t){return typeof r===t},exports.isUndefined=u,exports.isWebWorker=function(){return(lt=lt||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},exports.iterForOf=Ct,exports.lazySafeGetInst=C,exports.makeGlobRegex=function(r,t,n){return te(S(r),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(r){return r.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(r,t){return"**\\/"==t||"**\\\\"==t?"(.*[\\\\\\/])*":"\\/"===t||"\\\\"==t?"[\\\\\\/]{1}":"**"===t?re:"*"===t?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!t,n)},exports.makeIterable=ne,exports.mathCeil=In,exports.mathFloor=wn,exports.mathMax=Br,exports.mathMin=Q,exports.mathToInt=jn,exports.mathTrunc=Tn,exports.newSymbol=function(r,t){return P&&(!O.lzy||P.b)||z(),P.v?P.v(r):t?l:Qr(r)},exports.normalizeJsName=function(r,t){r=S(r).replace(Ln,"_");return u(t)?r:Sn(r,!t)},exports.objAssign=Tr,exports.objCopyProps=Gn,exports.objCreate=nn,exports.objDeepCopy=Hn,exports.objDeepFreeze=Or,exports.objDefine=ot,exports.objDefineAccessors=function(r,t,n,e,o,u){u={e:u,c:o};return n&&(u.g=n),e&&(u.s=e),E(r,t,nt(u))},exports.objDefineGet=function(r,t,n,e,o){return E(r,t,nt(((r={e:o,c:e})[y(n)?"g":"v"]=n,r)))},exports.objDefineProp=E,exports.objDefineProperties=et,exports.objDefineProps=function(r,t){var n={};return h(t,function(r,t){n[r]=nt(t)}),et(r,n)},exports.objEntries=Cr,exports.objExtend=function(r,t,n,e,o,u,i){return qn(r||{},A(arguments))},exports.objForEachKey=h,exports.objFreeze=Er,exports.objGetOwnPropertyDescriptor=yr,exports.objGetPrototypeOf=Pr,exports.objHasOwn=br,exports.objHasOwnProperty=dr,exports.objKeys=jr,exports.objSeal=Fr,exports.objSetPrototypeOf=en,exports.objToString=nr,exports.perfNow=Xn,exports.plainObjDeepCopyHandler=Vn,exports.polyArrFind=_t,exports.polyArrFindIndex=Rt,exports.polyArrFindLast=Wt,exports.polyArrFindLastIndex=Kt,exports.polyArrFrom=Bt,exports.polyArrIncludes=Lt,exports.polyGetKnownSymbol=rt,exports.polyIsArray=function(r){return!p(r)&&"[object Array]"===nr(r)},exports.polyNewSymbol=Qr,exports.polyObjEntries=Sr,exports.polyObjHasOwn=hr,exports.polyObjKeys=function(r){if(!d(r)||r===l)throw new TypeError("polyObjKeys called on non-object");var t,n=[];for(t in r)br(r,t)&&n.push(t);return n},exports.polyStrIncludes=fe,exports.polyStrSubstr=Ur,exports.polyStrSymSplit=oe,exports.polyStrTrim=pn,exports.polyStrTrimEnd=xn,exports.polyStrTrimStart=ln,exports.polySymbolFor=Xr,exports.polySymbolKeyFor=Yr,exports.polyUtcNow=an,exports.readArgs=function(r,t,n){if(Gt=Gt||it(function(){return Ot()&&Et(3)}),!br(r,s)){var e=Gt.v&&r[Gt.v];if(e){var o=[],u=t===f||t<0?0:t,i=n<0||t<0?f:n;if(Ct(e[x](r),function(r,t){if(i!==f&&i<=t)return-1;u<=t&&o.push(r)}),(t===f||0<=t)&&(n===f||0<=n))return o;r=o}}return A(r,t,n)},exports.safeGet=Y,exports.safeGetLazy=F,exports.scheduleIdleCallback=function(t,n){function e(r){var t=Xn();return{didTimeout:r,timeRemaining:function(){return me-Yn(t)}}}var o,r;return Se()?(o=de(!0,function(r){return r&&cancelIdleCallback(r),requestIdleCallback(function(r){o.dn(),t(r||e(!1))},n)},function(r){cancelIdleCallback(r)})).h:he(function(){t(e(!0))},u(r=(n||{}).timeout)?ge:r)},exports.scheduleInterval=function(r,t){var n=this,e=A(arguments);return de(!0,function(r){return r&&clearInterval(r),D(setInterval,n,e)},function(r){D(clearInterval,n,[r])}).h},exports.scheduleTimeout=he,exports.scheduleTimeoutWith=function(r,t,n){return be(this,!0,r,A(arguments,1))},exports.setBypassLazyCache=function(r){ut&&ut(),O.lzy=r},exports.setDefaultIdleTimeout=function(r){ge=r},exports.setDefaultMaxExecutionTime=function(r){me=r},exports.setValueByIter=function(t,r,n){var e;t&&r&&(Ct(r,function(r){e&&(p(t[e])&&(t[e]={}),t=t[e]),e=r}),t[e]=n)},exports.setValueByKey=function(t,r,n){var e;t&&r&&(e=(r=ue(r,".")).pop(),k(r,function(r){p(t[r])&&(t[r]={}),t=t[r]}),t[e]=n)},exports.strCamelCase=Sn,exports.strContains=r,exports.strEndsWith=se,exports.strIncludes=$,exports.strIndexOf=ae,exports.strIsNullOrEmpty=function(r){return v(r)?r===c:p(r)},exports.strIsNullOrWhiteSpace=function(r){return v(r)?r.replace(/[\s\t\r\n\f]+/g,c)===c:p(r)},exports.strKebabCase=function(r,t){r=mn(r,"-");return(t?N:gn)(r)},exports.strLastIndexOf=U,exports.strLeft=function(r,t){return j(r,0,t)},exports.strLetterCase=function(r){return S(r).replace(/(_|\b)\w/g,N)},exports.strLower=gn,exports.strPadEnd=n,exports.strPadStart=Pn,exports.strRepeat=On,exports.strRight=function(r,t){var n=r[s];return t<=0?c:t<n?j(r,n-t):r},exports.strSlice=Gr,exports.strSnakeCase=function(r,t){r=mn(r,"_");return(t?N:gn)(r)},exports.strSplit=ue,exports.strStartsWith=$r,exports.strSubstr=Hr,exports.strSubstring=j,exports.strSymSplit=ie,exports.strTrim=vn,exports.strTrimEnd=bn,exports.strTrimLeft=dn,exports.strTrimRight=hn,exports.strTrimStart=yn,exports.strUpper=N,exports.symbolFor=function(r){return vt&&(!O.lzy||P.b)||z(),(vt.v||Xr)(r)},exports.symbolKeyFor=function(r){return yt&&(!O.lzy||P.b)||z(),(yt.v||Yr)(r)},exports.throwError=function(r){throw Error(r)},exports.throwRangeError=mr,exports.throwTypeError=g,exports.throwUnsupported=function(r){throw new(tn=tn||sn("UnsupportedError"))(r)},exports.utcNow=cn; | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
"use strict";var f=void 0,l=null,c="",L="boolean",_="function",R="number",W="object",a="prototype",K="__proto__",B="string",t="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",s="length",M="done",V="value",q="name",J="slice",x="call",e=Object,Z=e[a],Q=String,r=Q[a],n=Math,X=Array,i=X[a];function Y(r,t){try{t=r()}catch(r){}return t}var rr=[B,R,L,t,"symbol","bigint"];function tr(t){return function(r){return typeof r===t}}function o(r){var t="[object "+r+"]";return function(r){return!(!r||nr(r)!==t)}}function nr(r){return Z.toString[x](r)}function u(r){return typeof r===t||r===t}function p(r){return r===l||u(r)}function er(r){return r===l||!or(r)}function or(r){return!!r||r!==f}function ur(r){return r!==W&&!!~rr.indexOf(r)}var v=tr(B),y=tr(_);function d(r){return!(!r&&p(r)||!r||typeof r!==W)}var b=X.isArray,ir=o("Date"),sr=tr(R),cr=tr(L),ar=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),fr=o("ArrayBuffer"),pr=o("Error");function lr(r){return!!(r&&r.then&&y(r.then))}var xr=lr;function vr(r){return!(!r||Y(function(){return!(r&&0+r)},!r))}var yr=e.getOwnPropertyDescriptor;function dr(r,t){return r&&Z.hasOwnProperty[x](r,t)}var br=e.hasOwn||hr;function hr(r,t){return dr(r,t)||!!yr(r,t)}function h(r,t,n){if(r&&d(r))for(var e in r)if(br(r,e)&&-1===t[x](n||r,e,r[e]))break}function gr(r,n,e,t){var o={};return h(r,function(r,t){o[r]=n?t:r,o[t]=e?t:r}),t(o)}function g(r){throw new TypeError(r)}function mr(r){throw new RangeError(r)}function Sr(r){var n=[];return h(r,function(r,t){n.push([r,t])}),n}var wr=e.freeze;function Ir(r){return r}var Tr=e.assign;function jr(r){return d(r)&&r!==l||g("objKeys called on non-object"),e.keys(r)}function Or(r){return wr&&h(r,function(r,t){(b(t)||d(t))&&wr(t)}),Er(r)}var Er=wr||Ir,Fr=e.seal||Ir,Pr=e.getPrototypeOf||function(r){return r[K]||l},Cr=e.entries||Sr;function zr(r){return gr(r,0,0,Or)}function Dr(r){var n={};return h(r,function(r,t){n[r]=t[1],n[t[0]]=t[1]}),Or(n)}var kr,m,Ar=zr({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),S=Q,Nr="__tsUtils$gblCfg";function Lr(){var r;return(r=(r=(r=typeof globalThis!==t?globalThis:r)||typeof self===t?r:self)||typeof window===t?r:window)||typeof global===t?r:global}function _r(){var r;return kr||(r=Lr()||{},kr=r[Nr]=r[Nr]||{}),kr}function w(r,t){var n=c;if(pr(r))n="{ stack: '"+r.stack+"', message: '"+r.message+"', name: '"+r.name+"'";else try{n=JSON.stringify(r,l,t?sr(t)?t:4:f)}catch(r){n=" - "+w(r,t)}return nr(r)+": "+n}function Rr(r,t){g("'"+S(r)+"' not defined for "+w(t))}function Wr(t){return m=m||i[J],function(r){return r[t].apply(r,m[x](arguments,1))}}function I(n,r){m=m||i[J];var e=r&&r[n];return function(r){var t=r&&r[n]||e;if(t)return t.apply(r,m[x](arguments,1));Rr(n,r)}}function T(e,r,o){m=m||i[J];var u=r&&r[e];return function(r){var t,n=r&&r[e]||u;if(n||o)return t=arguments,(n||o).apply(r,n?m[x](t,1):t);Rr(e,r)}}function Kr(t){return function(r){return r[t]}}var Q=n.min,Br=n.max,Gr=I(J,r),j=I("substring",r),Hr=T("substr",r,Ur);function Ur(r,t,n){return p(r)&&g("'polyStrSubstr called with invalid "+w(r)),n<0?c:((t=t||0)<0&&(t=Br(t+r[s],0)),u(n)?Gr(r,t):Gr(r,t,t+n))}var $r=T("startsWith",r,Mr);function Mr(r,t,n){v(r)||g("'"+w(r)+"' is not a string");var t=v(t)?t:S(t),e=t[s],n=0<n?n:0;return j(r,n,n+e)===t}var Vr,qr,Jr="_urid";function Zr(){var r;return Vr||(r=_r(),Vr=r.gblSym=r.gblSym||{k:{},s:{}}),Vr}function Qr(r){return{description:S(r),toString:function(){return H+"("+r+")"},_polyfill:!0}}function Xr(r){var t,n,e=Zr();return br(e.k,r)||(t=Qr(r),n=jr(e.s).length,t[Jr]=function(){return n+"_"+t.toString()},e.k[r]=t,e.s[t[Jr]()]=S(r)),e.k[r]}function Yr(r){r&&r.toString&&$r(r.toString(),H)||g(r+" is not a symbol");r=r._polyfill&&r[Jr]&&r[Jr]();return r?Zr().s[r]:void 0}function rt(r){qr=qr||{};r=Ar[r];return r?qr[r]=qr[r]||Qr(H+"."+r):void 0}var tt={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function nt(t){var r,n={};return n[tt.c]=!0,n[tt.e]=!0,t.l&&(n.get=function(){return t.l.v},r=yr(t.l,"v"))&&r.set&&(n.set=function(r){t.l.v=r}),h(t,function(r,t){n[tt[r]]=u(t)?n[tt[r]]:t}),n}var O,E=e.defineProperty,et=e.defineProperties;function ot(r,t,n){return E(r,t,nt(n))}var ut=function(){O=_r(),ut=l};function it(t){var n={};return ut&&ut(),n.b=O.lzy,E(n,"v",{configurable:!0,get:function(){var r=t();return O.lzy||(E(n,"v",{value:r}),n.b&&delete n.b),O.lzy&&n.b!==O.lzy&&(n.b=O.lzy),r}}),n}function F(r,t){return it(function(){return Y(r,t)})}var st,ct,at,ft,pt,lt,xt,P,vt,yt,dt="window";function C(r){return F(function(){return ht(r)||f},f)}function bt(r){return(st=!st||!1===r||O&&O.lzy&&!st.b?F(Lr,l):st).v}function ht(r,t){t=st&&!1!==t?st.v:bt(t);return t&&t[r]?t[r]:r===dt&&ct?ct.v:l}function gt(){return(at=!at||O&&O.lzy&&!at.b?C("document"):at).v}function mt(){return(ct=!ct||O&&O.lzy&&!ct.b?C(dt):ct).v}function St(){return(ft=!ft||O&&O.lzy&&!ft.b?C("navigator"):ft).v}function wt(){return(pt=!pt||O&&O.lzy&&!pt.b?C("history"):pt).v}function It(r){return F(function(){return P.v?P.v[r]:f},f)}var Tt,jt=tr("symbol");function Ot(){return!!z()}function z(){var r=!P||O&&O.lzy&&!P.b;return r&&(P=C(H)),vt&&!r||(vt=It("for")),yt&&!r||(yt=It("keyFor")),P.v}function Et(r,t){var n=Ar[r];return P&&(!O.lzy||P.b)||z(),P.v?P.v[n||r]:t?f:rt(r)}function Ft(r){return!!r&&y(r.next)}function Pt(r){return!er(r)&&y(r[Et(3)])}function Ct(t,r,n){if(t&&(Ft(t)||(t=t[(Tt=Tt||it(function(){return Et(3)})).v]?t[Tt.v]():null),Ft(t))){var e=void 0,o=void 0;try{for(var u=0;!(o=t.next())[M]&&-1!==r[x](n||t,o[V],u,t);)u++}catch(r){e={e:r},t.throw&&(o=null,t.throw(e))}finally{try{o&&!o[M]&&t.return&&t.return(o)}finally{if(e)throw e.e}}}}var D=Wr("apply"),zt=I("every",i),Dt=I("filter",i);function k(r,t,n){if(r)for(var e=r[s]>>>0,o=0;o<e&&!(o in r&&-1===t[x](n||r,r[o],o,r));o++);}var kt=I(U,i),At=I($,i),Nt=I("map",i),A=I(J,i);function Lt(r,t,n){return-1!==kt(r,t,n)}function _t(r,t,n){t=Rt(r,t,n);return-1!==t?r[t]:void 0}function Rt(n,e,o){var u=-1;return k(n,function(r,t){if(e[x](o|n,r,t,n))return u=t,-1}),u}function Wt(r,t,n){t=Kt(r,t,n);return-1!==t?r[t]:void 0}function Kt(r,t,n){for(var e=-1,o=(r[s]>>>0)-1;0<=o;o--)if(o in r&&t[x](n|r,r[o],o,r)){e=o;break}return e}function Bt(r,n,e){var t,o;return b(r)?(t=A(r),n?Nt(t,n,e):t):(o=[],Ct(r,function(r,t){return o.push(n?n[x](e,r,t):r)}),o)}var Gt,Ht=T("find",i,_t),Ut=T("findIndex",i,Rt),$t=T("findLast",i,Wt),Mt=T("findLastIndex",i,Kt),X=X.from||Bt,Vt=T("includes",i,Lt),qt=Vt,Jt=I("reduce",i),Zt=I("some",i),Qt=Wr("bind"),Xt=Wr(x);function Yt(n,e){return function(){var r=A(arguments),t=n();return D(t[e],t,r)}}var rn,tn,nn=e.create||function(r){if(!r)return{};var t=typeof r;if(t!==W&&t!=_)throw new TypeError("Prototype must be an Object or function: "+w(r));function n(){}return n[a]=r,new n};function en(r,t){return(e.setPrototypeOf||function(n,r){(rn=rn||it(function(){var r={};return r[K]=[],r instanceof Array})).v?n[K]=r:h(r,function(r,t){return n[r]=t})})(r,t)}function on(r,t){try{t&&(r[q]=t)}catch(r){}}function un(r,t){try{ot(r,q,{v:t,c:!0,e:!1})}catch(r){}}function sn(e,o,r){var t,n,u=r||Error,i=u[a][q],s=Error.captureStackTrace,r=u;return un(n=function(){var r=this;try{on(u,e);var t,n=D(u,r,A(arguments))||r;return n!==r&&(t=Pr(r))!==Pr(n)&&en(n,t),s&&s(n,r[G]),o&&o(n,arguments),n}finally{on(u,i)}},t=e),(n=en(n,r))[a]=r===l?nn(r):(c[a]=r[a],new c),n;function c(){this.constructor=n,un(this,t)}}function cn(){return(Date.now||an)()}function an(){return(new Date).getTime()}function fn(t){return function(r){return p(r)&&g("strTrim called ["+w(r)+"]"),r&&r.replace?r.replace(t,c):r}}var pn=fn(/^\s+|(?=\s)\s+$/g),ln=fn(/^\s+/g),xn=fn(/(?=\s)\s+$/g),vn=T("trim",r,pn),yn=T("trimStart",r,ln),dn=yn,bn=T("trimEnd",r,xn),hn=bn,N=I("toUpperCase",r),gn=I("toLowerCase",r);function mn(r,i,s){return vn(S(r)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(r,t,n,e,o,u){e=e||u||c;return s&&(e=N(e)),(o||c)+i+e})}function Sn(r,t){return mn(r,"",!0).replace(/^\w/,t?N:gn)}var wn=n.floor,In=n.ceil,Tn=n.trunc||function(r){r=+r;return(0<r?wn:In)(r)};function jn(r,t){var n=+r;return n==1/0&&t&&mr("invalid value ["+w(r)+"]"),n!=n||0==n?0:Tn(n)}var On=T("repeat",r,En);function En(r,t){p(r)&&g("can't convert ["+w(r)+"]"),(t=jn(t,!0))<0&&mr("invalid count must be >= 0 && < Infinity");for(var n=v(r)?r:S(r),e=c;0<t;(t>>>=1)&&(n+=n))1&t&&(e+=n);return e}function Fn(r,t,n){var e=c,r=(t=jn(t,!0),r[s]);return r<(t>>=0)&&(e=(t-=r)>(e=p(n)?" ":S(n))[s]?On(e,In(t/e[s])):e)[s]>t?j(e,0,t):e}var Pn=T("padStart",r,Cn),n=T("padEnd",r,zn);function Cn(r,t,n){return Fn(r,t,n)+r}function zn(r,t,n){return r+Fn(r,t,n)}var Dn,kn,An,Nn,Ln=/([^\w\d_$])/g;function _n(r){if(!r||typeof r!==W)return!1;var t=!1;if(r!==(Nn=Nn||!mt()||mt())){An||(kn=Function[a].toString,An=kn[x](e));try{var n=Pr(r),t=(t=!n)||(n=dr(n,G)?n[G]:n)&&typeof n==_&&kn[x](n)===An}catch(r){}}return t}var Rn=function(r){return r.value&&Vn(r),!0},Wn=[Un,Vn,Mn,$n];function Kn(n,r,e,t){var o,u,i=e.handler,t=e.path?t?e.path.concat(t):e.path:[],s={handler:e.handler,src:e.src,path:t},c=typeof r,a=!1,f=!1,p=(r&&c===W?a=_n(r):f=r===l||ur(c),{type:c,isPrim:f,isPlain:a,value:r,result:r,path:t,origin:e.src,copy:function(r,t){return Kn(n,r,t?s:e,t)},copyTo:function(r,t){return Bn(n,r,t,s)}});return p.isPrim?i&&i[x](e,p)?p.result:r:(o=r,c=function(t){ot(p,"result",{g:function(){return t.v},s:function(r){t.v=r}});for(var r=0,n=i;!(n||(r<Wn.length?Wn[r++]:Rn))[x](e,p);)n=l},k(f=n,function(r){if(r.k===o)return u=r,-1}),u||(u={k:o,v:o},f.push(u),c(u)),u.v)}function Bn(r,t,n,e){if(!p(n))for(var o in n)t[o]=Kn(r,n[o],e,o);return t}function Gn(r,t,n){return Bn([],r,t,{handler:n,src:t,path:[]})}function Hn(r,t){return Kn([],r,{handler:t,src:r})}function Un(r){var t,n=r.value;return!!b(n)&&((t=r.result=[]).length=n.length,r.copyTo(t,n),!0)}function $n(r){var t=r.value;return!!ir(t)&&(r.result=new Date(t.getTime()),!0)}function Mn(r){return r.type===_}function Vn(r){var t,n=r.value;return!(!n||!r.isPlain||(t=r.result={},r.copyTo(t,n),0))}function qn(t,r){return k(r,function(r){Gn(t,r)}),t}var Jn,Zn=Kr(s);function Qn(){return(Jn=!Jn||!Jn.b&&O&&O.lzy?C("performance"):Jn).v}function Xn(){var r=Qn();return r&&r.now?r.now():cn()}function Yn(r){return Xn()-r}var re="(.*)";function te(r,t,n,e,o){return RegExp((o?"^":c)+n(r.replace(t,"\\$1"))+(o?"$":c),e?"i":"")}function ne(r,t){return r[Et(3)]=function(){return ee(t)},r}function ee(n){var e=!1;function t(){return n.v}var r={next:function(){e=e||!n.n||n.n(arguments),(r={})[M]=e;var r;return e||ot(r,V,{g:t}),r}};return n.r&&(r.return=function(r){var t;return e=!0,(t={})[M]=!0,t[V]=n.r&&n.r(r),t}),n.t&&(r.throw=function(r){var t;return e=!0,(t={})[M]=!0,t[V]=n.t&&n.t(r),t}),r}function oe(r,t,n){t=t&&t[Et(9)];return t?t(r,n):[r]}var ue=I("split",r),ie=T("split",r,z()?null:oe),se=T("endsWith",r,ce);function ce(r,t,n){v(r)||g("'"+w(r)+"' is not a string");var t=v(t)?t:S(t),e=t[s],o=r[s],n=!u(n)&&n<o?n:o;return j(r,n-e,n)===t}var ae=I(U,r),U=I($,r),$=T("includes",r,fe),r=$;function fe(r,t,n){return ar(t)&&g("'searchString' must not be a regular expression"+w(t)),-1!==ae(r,S(t),n)}var pe,le="ref",xe="un"+le,ve="hasRef",ye="enabled";function de(r,t,n){function e(){return s=!1,c&&c[xe]&&c[xe](),i}function o(){return c=t(c),s||e(),i}function u(){c&&n(c),c=l}var i,s=!0,c=r?t(l):l,r={cancel:u,refresh:o};return r[ve]=function(){return c&&c[ve]?c[ve]():s},r[le]=function(){return s=!0,c&&c[le]&&c[le](),i},r[xe]=e,r[ye]=!1,E(i=r,ye,{get:function(){return!!c},set:function(r){!r&&c&&u(),r&&!c&&o()}}),{h:i,dn:function(){c=l}}}function be(t,r,n,e){var o=b(n),u=o?n.length:0,i=(0<u?n[0]:o?f:n)||setTimeout,s=(1<u?n[1]:f)||clearTimeout,c=e[0],a=(e[0]=function(){a.dn(),D(c,t,A(arguments))},de(r,function(r){if(r){if(r.refresh)return r.refresh(),r;D(s,t,[r])}return D(i,t,e)},function(r){D(s,t,[r])}));return a.h}function he(r,t){return be(this,!0,f,A(arguments))}var ge=100,me=50;function Se(){return!(!(pe=pe||F(function(){return or(requestIdleCallback)},!1)).v||!requestIdleCallback)}exports.arrAppend=function(t,r){return!u(r)&&t&&(b(r)?D(t.push,t,r):Ft(r)||Pt(r)?Ct(r,function(r){t.push(r)}):t.push(r)),t},exports.arrContains=qt,exports.arrEvery=zt,exports.arrFilter=Dt,exports.arrFind=Ht,exports.arrFindIndex=Ut,exports.arrFindLast=$t,exports.arrFindLastIndex=Mt,exports.arrForEach=k,exports.arrFrom=X,exports.arrIncludes=Vt,exports.arrIndexOf=kt,exports.arrLastIndexOf=At,exports.arrMap=Nt,exports.arrReduce=Jt,exports.arrSlice=A,exports.arrSome=Zt,exports.arrayDeepCopyHandler=Un,exports.asString=S,exports.createArrayIterator=function(r){var t=-1,n=r?r.slice():[],e=n[s],r={n:function(){return e<=++t}};return ot(r,"v",{g:function(){if(0<=t&&t<e)return n[t]}}),ee(r)},exports.createCustomError=sn,exports.createEnum=function(r){return gr(r,1,0,Or)},exports.createEnumKeyMap=zr,exports.createEnumValueMap=function(r){return gr(r,1,1,Or)},exports.createFilenameRegex=function(r,t,n){return te(S(r),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(r){return r.replace(/(\\\\|\\\/|\*|\?)/g,function(r,t){return"\\/"==t||"\\\\"==t?"[\\\\\\/]{1}":"*"==t?re:"(.)"})},!!t,n)},exports.createFnDeferredProxy=Yt,exports.createIterable=function(r){return ne({},r)},exports.createIterator=ee,exports.createProxyFuncs=function(n,e,r){var o;return n&&e&&b(r)&&(o=y(e),k(r,function(r){var t=r.as||r.n;!1===r.rp&&n[t]||(n[t]=o?Yt(e,r.n):Qt(e[r.n],e))})),n},exports.createRangeIterator=function(r,t,n){var e=r,o=f,u=(p(t)&&(t=r),n||(r<=t?1:-1)),n={n:function(){var r;return(r=0<u?t<e:e<t)||(o=e,e+=u),r}};return ot(n,"v",{g:function(){return o}}),ee(n)},exports.createSimpleMap=Dr,exports.createTimeout=function(r,t){return be(this,!1,f,A(arguments))},exports.createTimeoutWith=function(r,t,n){return be(this,!1,r,A(arguments,1))},exports.createTypeMap=Dr,exports.createWildcardRegex=function(r,t,n){return te(S(r),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(r){return r.replace(/\*/g,re)},!!t,n)},exports.dateDeepCopyHandler=$n,exports.deepExtend=function(r,t,n,e,o,u,i){return qn(Hn(r)||{},A(arguments))},exports.dumpObj=w,exports.elapsedTime=Yn,exports.encodeAsHtml=function(r){return Dn=Dn||it(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),S(r).replace(/[&<>"']/g,function(r){return"&"+Dn.v[r]+";"})},exports.encodeAsJson=function(r,t){var n;if(v(r))n='"'+r.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(r){return'"'===r||"\\"===r?"\\"+r:(r=r.charCodeAt(0).toString(16),"\\u"+Pn(N(r),4,"0"))})+'"';else try{n=JSON.stringify(r,l,t?sr(t)?t:4:f)}catch(r){n='"'+w(r)+'"'}return n},exports.fnApply=D,exports.fnBind=Qt,exports.fnCall=Xt,exports.functionDeepCopyHandler=Mn,exports.getDocument=gt,exports.getGlobal=bt,exports.getHistory=wt,exports.getInst=ht,exports.getIntValue=function(r,t){return p(r)?t:sr(r)?r:isNaN(r=parseInt(r,10))?t:r},exports.getKnownSymbol=Et,exports.getLazy=it,exports.getLength=Zn,exports.getNavigator=St,exports.getPerformance=Qn,exports.getSymbol=z,exports.getValueByIter=function(t,r,n){return r&&t&&(Ct(r,function(r){if(p(t))return-1;t=t[r]}),!p(t))?t:n},exports.getValueByKey=function(r,t,n){if(!t||!r)return n;for(var e=ue(t,"."),o=e.length,u=0;u<o&&!p(r);u++)r=r[e[u]];return p(r)?n:r},exports.getWindow=mt,exports.hasDocument=function(){return!!gt()},exports.hasHistory=function(){return!!wt()},exports.hasIdleCallback=Se,exports.hasNavigator=function(){return!!St()},exports.hasPerformance=function(){return!!Qn()},exports.hasSymbol=Ot,exports.hasValue=function(r){return function r(t,n){var e,o,u=!1===t||0===t;if(!u&&!p(t))if(b(t))u=0<t[s];else if(ir(t))u=!isNaN(t.getTime());else{if(cr(t))return!0;if(d(t)){try{e=t,k([s,"byteLength","size","count"],function(r){if(r in e)return r=e[r],o=0<(y(r)?r():r),-1});var i=o;if(cr(i))return i;if(y(t.valueOf)&&n<5)return r(t.valueOf(),++n)}catch(r){}return!!jr(t)[s]}u=vr(t)}return u}(r,0)},exports.hasWindow=function(){return!!mt()},exports.isArray=b,exports.isArrayBuffer=fr,exports.isBlob=L,exports.isBoolean=cr,exports.isDate=ir,exports.isDefined=or,exports.isError=pr,exports.isFile=B,exports.isFormData=R,exports.isFunction=y,exports.isIterable=Pt,exports.isIterator=Ft,exports.isNode=function(){return(xt=xt||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},exports.isNotTruthy=function(r){return!r||!Y(function(){return r&&0+r},r)},exports.isNullOrUndefined=p,exports.isNumber=sr,exports.isObject=d,exports.isPlainObject=_n,exports.isPrimitive=function(r){return r===l||ur(typeof r)},exports.isPrimitiveType=ur,exports.isPromise=function(r){return!!(r&&r.then&&r.catch&&y(r.then)&&y(r.catch))},exports.isPromiseLike=lr,exports.isRegExp=ar,exports.isStrictNullOrUndefined=er,exports.isStrictUndefined=function(r){return!or(r)},exports.isString=v,exports.isSymbol=jt,exports.isThenable=xr,exports.isTruthy=vr,exports.isTypeof=function(r,t){return typeof r===t},exports.isUndefined=u,exports.isWebWorker=function(){return(lt=lt||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},exports.iterForOf=Ct,exports.lazySafeGetInst=C,exports.makeGlobRegex=function(r,t,n){return te(S(r),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(r){return r.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(r,t){return"**\\/"==t||"**\\\\"==t?"(.*[\\\\\\/])*":"\\/"===t||"\\\\"==t?"[\\\\\\/]{1}":"**"===t?re:"*"===t?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!t,n)},exports.makeIterable=ne,exports.mathCeil=In,exports.mathFloor=wn,exports.mathMax=Br,exports.mathMin=Q,exports.mathToInt=jn,exports.mathTrunc=Tn,exports.newSymbol=function(r,t){return P&&(!O.lzy||P.b)||z(),P.v?P.v(r):t?l:Qr(r)},exports.normalizeJsName=function(r,t){r=S(r).replace(Ln,"_");return u(t)?r:Sn(r,!t)},exports.objAssign=Tr,exports.objCopyProps=Gn,exports.objCreate=nn,exports.objDeepCopy=Hn,exports.objDeepFreeze=Or,exports.objDefine=ot,exports.objDefineAccessors=function(r,t,n,e,o,u){u={e:u,c:o};return n&&(u.g=n),e&&(u.s=e),E(r,t,nt(u))},exports.objDefineGet=function(r,t,n,e,o){return E(r,t,nt(((r={e:o,c:e})[y(n)?"g":"v"]=n,r)))},exports.objDefineProp=E,exports.objDefineProperties=et,exports.objDefineProps=function(r,t){var n={};return h(t,function(r,t){n[r]=nt(t)}),et(r,n)},exports.objEntries=Cr,exports.objExtend=function(r,t,n,e,o,u,i){return qn(r||{},A(arguments))},exports.objForEachKey=h,exports.objFreeze=Er,exports.objGetOwnPropertyDescriptor=yr,exports.objGetPrototypeOf=Pr,exports.objHasOwn=br,exports.objHasOwnProperty=dr,exports.objKeys=jr,exports.objSeal=Fr,exports.objSetPrototypeOf=en,exports.objToString=nr,exports.perfNow=Xn,exports.plainObjDeepCopyHandler=Vn,exports.polyArrFind=_t,exports.polyArrFindIndex=Rt,exports.polyArrFindLast=Wt,exports.polyArrFindLastIndex=Kt,exports.polyArrFrom=Bt,exports.polyArrIncludes=Lt,exports.polyGetKnownSymbol=rt,exports.polyIsArray=function(r){return!p(r)&&"[object Array]"===nr(r)},exports.polyNewSymbol=Qr,exports.polyObjEntries=Sr,exports.polyObjHasOwn=hr,exports.polyObjKeys=function(r){if(!d(r)||r===l)throw new TypeError("polyObjKeys called on non-object");var t,n=[];for(t in r)br(r,t)&&n.push(t);return n},exports.polyStrIncludes=fe,exports.polyStrSubstr=Ur,exports.polyStrSymSplit=oe,exports.polyStrTrim=pn,exports.polyStrTrimEnd=xn,exports.polyStrTrimStart=ln,exports.polySymbolFor=Xr,exports.polySymbolKeyFor=Yr,exports.polyUtcNow=an,exports.readArgs=function(r,t,n){if(Gt=Gt||it(function(){return Ot()&&Et(3)}),!br(r,s)){var e=Gt.v&&r[Gt.v];if(e){var o=[],u=t===f||t<0?0:t,i=n<0||t<0?f:n;if(Ct(e[x](r),function(r,t){if(i!==f&&i<=t)return-1;u<=t&&o.push(r)}),(t===f||0<=t)&&(n===f||0<=n))return o;r=o}}return A(r,t,n)},exports.safeGet=Y,exports.safeGetLazy=F,exports.scheduleIdleCallback=function(t,n){function e(r){var t=Xn();return{didTimeout:r,timeRemaining:function(){return me-Yn(t)}}}var o,r;return Se()?(o=de(!0,function(r){return r&&cancelIdleCallback(r),requestIdleCallback(function(r){o.dn(),t(r||e(!1))},n)},function(r){cancelIdleCallback(r)})).h:he(function(){t(e(!0))},u(r=(n||{}).timeout)?ge:r)},exports.scheduleInterval=function(r,t){var n=this,e=A(arguments);return de(!0,function(r){return r&&clearInterval(r),D(setInterval,n,e)},function(r){D(clearInterval,n,[r])}).h},exports.scheduleTimeout=he,exports.scheduleTimeoutWith=function(r,t,n){return be(this,!0,r,A(arguments,1))},exports.setBypassLazyCache=function(r){ut&&ut(),O.lzy=r},exports.setDefaultIdleTimeout=function(r){ge=r},exports.setDefaultMaxExecutionTime=function(r){me=r},exports.setValueByIter=function(t,r,n){var e;t&&r&&(Ct(r,function(r){e&&(p(t[e])&&(t[e]={}),t=t[e]),e=r}),t[e]=n)},exports.setValueByKey=function(t,r,n){var e;t&&r&&(e=(r=ue(r,".")).pop(),k(r,function(r){p(t[r])&&(t[r]={}),t=t[r]}),t[e]=n)},exports.strCamelCase=Sn,exports.strContains=r,exports.strEndsWith=se,exports.strIncludes=$,exports.strIndexOf=ae,exports.strIsNullOrEmpty=function(r){return v(r)?r===c:p(r)},exports.strIsNullOrWhiteSpace=function(r){return v(r)?r.replace(/[\s\t\r\n\f]+/g,c)===c:p(r)},exports.strKebabCase=function(r,t){r=mn(r,"-");return(t?N:gn)(r)},exports.strLastIndexOf=U,exports.strLeft=function(r,t){return j(r,0,t)},exports.strLetterCase=function(r){return S(r).replace(/(_|\b)\w/g,N)},exports.strLower=gn,exports.strPadEnd=n,exports.strPadStart=Pn,exports.strRepeat=On,exports.strRight=function(r,t){var n=r[s];return t<=0?c:t<n?j(r,n-t):r},exports.strSlice=Gr,exports.strSnakeCase=function(r,t){r=mn(r,"_");return(t?N:gn)(r)},exports.strSplit=ue,exports.strStartsWith=$r,exports.strSubstr=Hr,exports.strSubstring=j,exports.strSymSplit=ie,exports.strTrim=vn,exports.strTrimEnd=bn,exports.strTrimLeft=dn,exports.strTrimRight=hn,exports.strTrimStart=yn,exports.strUpper=N,exports.symbolFor=function(r){return vt&&(!O.lzy||P.b)||z(),(vt.v||Xr)(r)},exports.symbolKeyFor=function(r){return yt&&(!O.lzy||P.b)||z(),(yt.v||Yr)(r)},exports.throwError=function(r){throw Error(r)},exports.throwRangeError=mr,exports.throwTypeError=g,exports.throwUnsupported=function(r){throw new(tn=tn||sn("UnsupportedError"))(r)},exports.utcNow=cn; | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,2 +0,2 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
/* | ||
@@ -47,2 +47,3 @@ * Copyright (c) NevWare21 and contributors. All rights reserved. | ||
var PRIMITIVE_TYPES = [STRING, NUMBER, BOOLEAN, UNDEFINED, "symbol", "bigint"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createIs(theType) { | ||
@@ -53,2 +54,3 @@ return function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createObjIs(theName) { | ||
@@ -60,26 +62,35 @@ var theType = "[object " + theName + "]"; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objToString(value) { | ||
return ObjProto.toString[CALL](value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTypeof(value, theType) { | ||
return typeof value === theType; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isUndefined(value) { | ||
return typeof value === UNDEFINED || value === UNDEFINED; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictUndefined(arg) { | ||
return !isDefined(arg); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNullOrUndefined(value) { | ||
return value === NULL_VALUE || isUndefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictNullOrUndefined(value) { | ||
return value === NULL_VALUE || !isDefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isDefined(arg) { | ||
return !!arg || arg !== UNDEF_VALUE; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitive(value) { | ||
return value === NULL_VALUE || isPrimitiveType(typeof value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitiveType(theType) { | ||
@@ -90,2 +101,3 @@ return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1; | ||
var isFunction = ( /*#__PURE__*/_createIs(FUNCTION)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isObject(value) { | ||
@@ -107,2 +119,3 @@ if (!value && isNullOrUndefined(value)) { | ||
var isError = ( /*#__PURE__*/_createObjIs("Error")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromiseLike(value) { | ||
@@ -112,8 +125,11 @@ return !!(value && value.then && isFunction(value.then)); | ||
var isThenable = isPromiseLike; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromise(value) { | ||
return !!(value && value.then && value.catch && isFunction(value.then) && isFunction(value.catch)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNotTruthy(value) { | ||
return !value || !safeGet(function () { return (value && (0 + value)); }, value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTruthy(value) { | ||
@@ -125,2 +141,3 @@ return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objHasOwnProperty(obj, prop) { | ||
@@ -131,2 +148,3 @@ return obj && ObjProto.hasOwnProperty[CALL](obj, prop); | ||
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjHasOwn(obj, prop) { | ||
@@ -148,2 +166,3 @@ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createKeyValueMap(values, keyType, valueType, completeFn) { | ||
@@ -168,2 +187,3 @@ var theMap = {}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjKeys(obj) { | ||
@@ -181,2 +201,3 @@ if (!isObject(obj) || obj === NULL_VALUE) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjEntries(value) { | ||
@@ -194,2 +215,3 @@ var result = []; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getProto(value) { | ||
@@ -199,2 +221,3 @@ return value[__PROTO__] || NULL_VALUE; | ||
var objAssign = ObjClass["assign"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objKeys(value) { | ||
@@ -221,11 +244,15 @@ if (!isObject(value) || value === NULL_VALUE) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnum(values) { | ||
return _createKeyValueMap(values, 1 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumKeyMap(values) { | ||
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumValueMap(values) { | ||
return _createKeyValueMap(values, 1 , 1 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createSimpleMap(values) { | ||
@@ -239,2 +266,3 @@ var mapClass = {}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createTypeMap(values) { | ||
@@ -264,2 +292,3 @@ return createSimpleMap(values); | ||
var _globalCfg; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalValue() { | ||
@@ -281,2 +310,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalConfig() { | ||
@@ -290,2 +320,3 @@ if (!_globalCfg) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function dumpObj(object, format) { | ||
@@ -343,2 +374,3 @@ var propertyValueDump = EMPTY; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _unwrapProp(propName) { | ||
@@ -357,2 +389,3 @@ return function (thisArg) { | ||
var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSubstr(value, start, length) { | ||
@@ -374,5 +407,7 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLeft(value, count) { | ||
return strSubstring(value, 0, count); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strRight(value, count) { | ||
@@ -387,2 +422,3 @@ var len = value[LENGTH]; | ||
var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrStartsWith(value, searchString, position) { | ||
@@ -400,2 +436,3 @@ if (!isString(value)) { | ||
var _polySymbols; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _globalSymbolRegistry() { | ||
@@ -408,3 +445,4 @@ if (!_polySymbols) { | ||
} | ||
var _wellKnownSymbolCache = {}; | ||
var _wellKnownSymbolCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyNewSymbol(description) { | ||
@@ -418,2 +456,3 @@ var theSymbol = { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolFor(key) { | ||
@@ -430,2 +469,3 @@ var registry = _globalSymbolRegistry(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolKeyFor(sym) { | ||
@@ -438,3 +478,5 @@ if (!sym || !sym.toString || !strStartsWith(sym.toString(), SYMBOL)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyGetKnownSymbol(name) { | ||
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {}); | ||
var result; | ||
@@ -456,2 +498,3 @@ var knownName = _wellKnownSymbolMap[name]; | ||
}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createProp(value) { | ||
@@ -556,5 +599,7 @@ var prop = {}; | ||
var _isNode; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function lazySafeGetInst(name) { | ||
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getGlobal(useCached) { | ||
@@ -564,2 +609,3 @@ (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getInst(name, useCached) { | ||
@@ -575,5 +621,7 @@ var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasDocument() { | ||
return !!getDocument(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getDocument() { | ||
@@ -583,5 +631,7 @@ (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasWindow() { | ||
return !!getWindow(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getWindow() { | ||
@@ -591,5 +641,7 @@ (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasNavigator() { | ||
return !!getNavigator(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getNavigator() { | ||
@@ -599,5 +651,7 @@ (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasHistory() { | ||
return !!getHistory(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getHistory() { | ||
@@ -619,2 +673,3 @@ (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history")); | ||
var _symbolKeyFor; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getSymbolValue(name) { | ||
@@ -626,2 +681,3 @@ return safeGetLazy(function () { | ||
var isSymbol = ( /*#__PURE__*/_createIs("symbol")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasSymbol() { | ||
@@ -637,2 +693,3 @@ return !!getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getKnownSymbol(name, noPoly) { | ||
@@ -643,2 +700,3 @@ var knownName = _wellKnownSymbolMap[name]; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function newSymbol(description, noPoly) { | ||
@@ -648,2 +706,3 @@ (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolFor(key) { | ||
@@ -653,2 +712,3 @@ (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolKeyFor(sym) { | ||
@@ -659,5 +719,7 @@ (!_symbolKeyFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterator(value) { | ||
return !!value && isFunction(value.next); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterable(value) { | ||
@@ -751,2 +813,3 @@ return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyIsArray(value) { | ||
@@ -758,2 +821,3 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyArrIncludes(theArray, searchElement, fromIndex) { | ||
@@ -847,2 +911,3 @@ return arrIndexOf(theArray, searchElement, fromIndex) !== -1; | ||
var _iterSymbol; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function readArgs(theArgs, start, end) { | ||
@@ -876,2 +941,3 @@ if (!_iterSymbol) { | ||
var objCreate = ObjClass["create"] || polyObjCreate; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjCreate(obj) { | ||
@@ -913,3 +979,3 @@ if (!obj) { | ||
} | ||
var _safeSetName = function (baseClass, name) { | ||
function _safeSetName(baseClass, name) { | ||
try { | ||
@@ -920,4 +986,4 @@ name && (baseClass[NAME] = name); | ||
} | ||
}; | ||
var _safeDefineName = function (target, name) { | ||
} | ||
function _safeDefineName(target, name) { | ||
try { | ||
@@ -928,3 +994,4 @@ objDefine(target, NAME, { v: name, c: true, e: false }); | ||
} | ||
}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createCustomError(name, constructCb, errorBase) { | ||
@@ -962,5 +1029,7 @@ var theBaseClass = errorBase || Error; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function utcNow() { | ||
return (Date.now || polyUtcNow)(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyUtcNow() { | ||
@@ -970,2 +1039,3 @@ return new Date().getTime(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createTrimFn(exp) { | ||
@@ -995,2 +1065,3 @@ return function _doTrim(value) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _convertCase(value, newPrefix, upperWord) { | ||
@@ -1005,5 +1076,7 @@ return strTrim(asString(value)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g, function (_match, _g1, _g2, wordStart, upperPrefix, upperLetter) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLetterCase(value) { | ||
return asString(value).replace(/(_|\b)\w/g, strUpper); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strCamelCase(value, upperFirst) { | ||
@@ -1013,2 +1086,3 @@ var result = _convertCase(value, "", true); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strKebabCase(value, scream) { | ||
@@ -1018,2 +1092,3 @@ var result = _convertCase(value, "-"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strSnakeCase(value, scream) { | ||
@@ -1028,2 +1103,3 @@ var result = _convertCase(value, "_"); | ||
var mathTrunc = MathCls.trunc || polyMathTrunc; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyMathTrunc(value) { | ||
@@ -1034,2 +1110,3 @@ var theValue = +value; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function mathToInt(value, throwInfinity) { | ||
@@ -1044,2 +1121,3 @@ var result = +value; | ||
var strRepeat = ( /*#__PURE__*/_unwrapFunctionWithPoly("repeat", StrProto, polyStrRepeat)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrRepeat(value, count) { | ||
@@ -1063,2 +1141,3 @@ if (isNullOrUndefined(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _padValue(value, targetLength, padString) { | ||
@@ -1083,5 +1162,7 @@ var result = EMPTY; | ||
var strPadEnd = ( /*#__PURE__*/_unwrapFunctionWithPoly("padEnd", StrProto, polyStrPadEnd)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadStart(value, targetLength, padString) { | ||
return _padValue(value, targetLength, padString) + value; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadEnd(value, targetLength, padString) { | ||
@@ -1094,2 +1175,3 @@ return value + _padValue(value, targetLength, padString); | ||
var _htmlEntityCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function normalizeJsName(jsName, camelCase) { | ||
@@ -1099,2 +1181,3 @@ var result = asString(jsName).replace(INVALID_JS_NAME, "_"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsJson(value, format) { | ||
@@ -1121,2 +1204,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsHtml(value) { | ||
@@ -1140,2 +1224,3 @@ !_htmlEntityCache && (_htmlEntityCache = getLazy(function () { | ||
var _gblWindow; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPlainObject(value) { | ||
@@ -1265,2 +1350,3 @@ if (!value || typeof value !== OBJECT) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objDeepCopy(source, handler) { | ||
@@ -1322,2 +1408,3 @@ var ctx = { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getIntValue(value, defValue) { | ||
@@ -1335,5 +1422,7 @@ if (!isNullOrUndefined(value)) { | ||
var _perf; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasPerformance() { | ||
return !!getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getPerformance() { | ||
@@ -1343,2 +1432,3 @@ (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function perfNow() { | ||
@@ -1351,2 +1441,3 @@ var perf = getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function elapsedTime(startTime) { | ||
@@ -1361,2 +1452,3 @@ return perfNow() - startTime; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createWildcardRegex(value, ignoreCase, fullMatch) { | ||
@@ -1367,2 +1459,3 @@ return _createRegExp(asString(value), /([-+|^$#.\?{}()\[\]\\/\"\'])/g, function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createFilenameRegex(value, ignoreCase, fullMatch) { | ||
@@ -1378,2 +1471,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function makeGlobRegex(value, ignoreCase, fullMatch) { | ||
@@ -1396,2 +1490,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, function (value) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _checkLength(value, props) { | ||
@@ -1408,2 +1503,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _hasValue(value, depth) { | ||
@@ -1441,2 +1537,3 @@ var result = value === false || value === 0; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasValue(value) { | ||
@@ -1446,2 +1543,3 @@ return _hasValue(value, 0); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterable(ctx) { | ||
@@ -1458,2 +1556,3 @@ return makeIterable({}, ctx); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterator(ctx) { | ||
@@ -1503,2 +1602,3 @@ var isDone = false; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createArrayIterator(values) { | ||
@@ -1524,2 +1624,3 @@ var idx = -1; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createRangeIterator(start, end, step) { | ||
@@ -1556,2 +1657,3 @@ var nextValue = start; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSymSplit(value, splitter, limit) { | ||
@@ -1565,2 +1667,3 @@ var splitFn = splitter && splitter[getKnownSymbol(9 )]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByKey(target, path, defValue) { | ||
@@ -1577,2 +1680,3 @@ if (!path || !target) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByIter(target, iter, defValue) { | ||
@@ -1620,2 +1724,3 @@ if (!iter || !target) { | ||
var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrEndsWith(value, searchString, length) { | ||
@@ -1637,2 +1742,3 @@ if (!isString(value)) { | ||
var strContains = strIncludes; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrIncludes(value, searchString, position) { | ||
@@ -1645,2 +1751,3 @@ if (isRegExp(searchString)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrWhiteSpace(value) { | ||
@@ -1652,2 +1759,3 @@ if (isString(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrEmpty(value) { | ||
@@ -1761,2 +1869,3 @@ if (isString(value)) { | ||
var _maxExecutionTime = 50; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasIdleCallback() { | ||
@@ -1763,0 +1872,0 @@ !_hasIdleCallback && (_hasIdleCallback = safeGetLazy(function () { return isDefined(requestIdleCallback); }, false)); |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
var f=void 0,v=null,s="",L="boolean",R="function",_="number",W="object",c="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="_polyfill",$="indexOf",M="lastIndexOf",i="length",V="done",q="value",J="name",Z="slice",p="call",e=Object,Q=e[c],X=String,n=X[c],t=Math,Y=Array,o=Y[c];function nn(n,r){try{r=n()}catch(n){}return r}var rn=[B,_,L,r,"symbol","bigint"];function tn(r){return function(n){return typeof n===r}}function a(n){var r="[object "+n+"]";return function(n){return!(!n||en(n)!==r)}}function en(n){return Q.toString[p](n)}function an(n,r){return typeof n===r}function u(n){return typeof n===r||n===r}function un(n){return!sn(n)}function l(n){return n===v||u(n)}function on(n){return n===v||!sn(n)}function sn(n){return!!n||n!==f}function cn(n){return n===v||fn(typeof n)}function fn(n){return n!==W&&!!~rn.indexOf(n)}var y=tn(B),d=tn(R);function b(n){return!(!n&&l(n)||!n||typeof n!==W)}var h=Y.isArray,ln=a("Date"),vn=tn(_),pn=tn(L),yn=a("RegExp"),B=a("File"),_=a("FormData"),L=a("Blob"),dn=a("ArrayBuffer"),bn=a("Error");function hn(n){return!!(n&&n.then&&d(n.then))}var gn=hn;function mn(n){return!!(n&&n.then&&n.catch&&d(n.then)&&d(n.catch))}function Sn(n){return!n||!nn(function(){return n&&0+n},n)}function wn(n){return!(!n||nn(function(){return!(n&&0+n)},!n))}var In=e.getOwnPropertyDescriptor;function Tn(n,r){return n&&Q.hasOwnProperty[p](n,r)}var jn=e.hasOwn||On;function On(n,r){return Tn(n,r)||!!In(n,r)}function g(n,r,t){if(n&&b(n))for(var e in n)if(jn(n,e)&&-1===r[p](t||n,e,n[e]))break}function En(n,t,e,r){var a={};return g(n,function(n,r){a[n]=t?r:n,a[r]=e?r:n}),r(a)}function xn(n){throw Error(n)}function m(n){throw new TypeError(n)}function Fn(n){throw new RangeError(n)}function Pn(n){if(!b(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)jn(n,r)&&t.push(r);return t}function Cn(n){var t=[];return g(n,function(n,r){t.push([n,r])}),t}var zn=e.freeze;function Dn(n){return n}var kn=e.assign;function An(n){return b(n)&&n!==v||m("objKeys called on non-object"),e.keys(n)}function Nn(n){return zn&&g(n,function(n,r){(h(r)||b(r))&&zn(r)}),Ln(n)}var Ln=zn||Dn,Rn=e.seal||Dn,_n=e.getPrototypeOf||function(n){return n[K]||v},Wn=e.entries||Cn;function Kn(n){return En(n,1,0,Nn)}function Bn(n){return En(n,0,0,Nn)}function Gn(n){return En(n,1,1,Nn)}function Hn(n){var t={};return g(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),Nn(t)}function Un(n){return Hn(n)}var $n,S,Mn=Bn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=X,Vn="__tsUtils$gblCfg";function qn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Jn(){var n;return $n||(n=qn()||{},$n=n[Vn]=n[Vn]||{}),$n}function I(n,r){var t=s;if(bn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?vn(r)?r:4:f)}catch(n){t=" - "+I(n,r)}return en(n)+": "+t}function Zn(n,r){m("'"+w(n)+"' not defined for "+I(r))}function Qn(r){return S=S||o[Z],function(n){return n[r].apply(n,S[p](arguments,1))}}function T(t,n){S=S||o[Z];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,S[p](arguments,1));Zn(t,n)}}function j(e,n,a){S=S||o[Z];var u=n&&n[e];return function(n){var r,t=n&&n[e]||u;if(t||a)return r=arguments,(t||a).apply(n,t?S[p](r,1):r);Zn(e,n)}}function Xn(r){return function(n){return n[r]}}var X=t.min,Yn=t.max,nr=T(Z,n),O=T("substring",n),rr=j("substr",n,tr);function tr(n,r,t){return l(n)&&m("'polyStrSubstr called with invalid "+I(n)),t<0?s:((r=r||0)<0&&(r=Yn(r+n[i],0)),u(t)?nr(n,r):nr(n,r,r+t))}function er(n,r){return O(n,0,r)}function ar(n,r){var t=n[i];return r<=0?s:r<t?O(n,t-r):n}var ur=j("startsWith",n,or);function or(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[i],t=0<t?t:0;return O(n,t,t+e)===r}var ir,sr="_urid";function cr(){var n;return ir||(n=Jn(),ir=n.gblSym=n.gblSym||{k:{},s:{}}),ir}var fr={};function lr(n){var r={description:w(n),toString:function(){return H+"("+n+")"}};return r[U]=!0,r}function vr(n){var r,t,e=cr();return jn(e.k,n)||(r=lr(n),t=An(e.s).length,r[sr]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[sr]()]=w(n)),e.k[n]}function pr(n){n&&n.toString&&ur(n.toString(),H)||m(n+" is not a symbol");n=n[U]&&n[sr]&&n[sr]();return n?cr().s[n]:void 0}function yr(n){n=Mn[n];return n?fr[n]=fr[n]||lr(H+"."+n):void 0}var dr={e:"enumerable",c:"configurable",v:q,w:"writable",g:"get",s:"set"};function br(r){var n,t={};return t[dr.c]=!0,t[dr.e]=!0,r.l&&(t.get=function(){return r.l.v},n=In(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),g(r,function(n,r){t[dr[n]]=u(r)?t[dr[n]]:r}),t}var E,x=e.defineProperty,hr=e.defineProperties;function gr(n,r,t,e,a){return x(n,r,br(((n={e:a,c:e})[d(t)?"g":"v"]=t,n)))}function mr(n,r,t,e,a,u){u={e:u,c:a};return t&&(u.g=t),e&&(u.s=e),x(n,r,br(u))}function Sr(n,r,t){return x(n,r,br(t))}function wr(n,r){var t={};return g(r,function(n,r){t[n]=br(r)}),hr(n,t)}var Ir=function(){E=Jn(),Ir=v};function Tr(r){var t={};return Ir&&Ir(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function jr(n){Ir&&Ir(),E.lzy=n}function F(n,r){return Tr(function(){return nn(n,r)})}var Or,Er,xr,Fr,Pr,Cr,zr,P,Dr,kr,Ar="window";function C(n){return F(function(){return Lr(n)||f},f)}function Nr(n){return(Or=!Or||!1===n||E&&E.lzy&&!Or.b?F(qn,v):Or).v}function Lr(n,r){r=Or&&!1!==r?Or.v:Nr(r);return r&&r[n]?r[n]:n===Ar&&Er?Er.v:v}function Rr(){return!!_r()}function _r(){return(xr=!xr||E&&E.lzy&&!xr.b?C("document"):xr).v}function Wr(){return!!Kr()}function Kr(){return(Er=!Er||E&&E.lzy&&!Er.b?C(Ar):Er).v}function Br(){return!!Gr()}function Gr(){return(Fr=!Fr||E&&E.lzy&&!Fr.b?C("navigator"):Fr).v}function Hr(){return!!Ur()}function Ur(){return(Pr=!Pr||E&&E.lzy&&!Pr.b?C("history"):Pr).v}function $r(){return(zr=zr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v}function Mr(){return(Cr=Cr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v}function Vr(n){return F(function(){return P.v?P.v[n]:f},f)}var qr,Jr=tn("symbol");function Zr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),Dr&&!n||(Dr=Vr("for")),kr&&!n||(kr=Vr("keyFor")),P.v}function Qr(n,r){var t=Mn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?f:yr(n)}function Xr(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:lr(n)}function Yr(n){return Dr&&(!E.lzy||P.b)||z(),(Dr.v||vr)(n)}function nt(n){return kr&&(!E.lzy||P.b)||z(),(kr.v||pr)(n)}function rt(n){return!!n&&d(n.next)}function tt(n){return!on(n)&&d(n[Qr(3)])}function et(r,n,t){if(r&&(rt(r)||(r=r[(qr=qr||Tr(function(){return Qr(3)})).v]?r[qr.v]():null),rt(r))){var e=void 0,a=void 0;try{for(var u=0;!(a=r.next())[V]&&-1!==n[p](t||r,a[q],u,r);)u++}catch(n){e={e:n},r.throw&&(a=null,r.throw(e))}finally{try{a&&!a[V]&&r.return&&r.return(a)}finally{if(e)throw e.e}}}}var D=Qn("apply");function at(r,n){return!u(n)&&r&&(h(n)?D(r.push,r,n):rt(n)||tt(n)?et(n,function(n){r.push(n)}):r.push(n)),r}var ut=T("every",o),ot=T("filter",o);function k(n,r,t){if(n)for(var e=n[i]>>>0,a=0;a<e&&!(a in n&&-1===r[p](t||n,n[a],a,n));a++);}var it=T($,o),st=T(M,o),ct=T("map",o),A=T(Z,o);function ft(n){return!l(n)&&"[object Array]"===en(n)}function lt(n,r,t){return-1!==it(n,r,t)}function vt(n,r,t){r=pt(n,r,t);return-1!==r?n[r]:void 0}function pt(t,e,a){var u=-1;return k(t,function(n,r){if(e[p](a|t,n,r,t))return u=r,-1}),u}function yt(n,r,t){r=dt(n,r,t);return-1!==r?n[r]:void 0}function dt(n,r,t){for(var e=-1,a=(n[i]>>>0)-1;0<=a;a--)if(a in n&&r[p](t|n,n[a],a,n)){e=a;break}return e}function bt(n,t,e){var r,a;return h(n)?(r=A(n),t?ct(r,t,e):r):(a=[],et(n,function(n,r){return a.push(t?t[p](e,n,r):n)}),a)}var ht,gt=j("find",o,vt),mt=j("findIndex",o,pt),St=j("findLast",o,yt),wt=j("findLastIndex",o,dt),Y=Y.from||bt,It=j("includes",o,lt),Tt=It,jt=T("reduce",o),Ot=T("some",o),Et=Qn("bind"),xt=Qn(p);function Ft(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}function Pt(t,e,n){var a;return t&&e&&h(n)&&(a=d(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=a?Ft(e,n.n):Et(e[n.n],e))})),t}function Ct(n,r,t){if(ht=ht||Tr(function(){return Zr()&&Qr(3)}),!jn(n,i)){var e=ht.v&&n[ht.v];if(e){var a=[],u=r===f||r<0?0:r,o=t<0||r<0?f:t;if(et(e[p](n),function(n,r){if(o!==f&&o<=r)return-1;u<=r&&a.push(n)}),(r===f||0<=r)&&(t===f||0<=t))return a;n=a}}return A(n,r,t)}var zt,Dt,kt=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=R)throw new TypeError("Prototype must be an Object or function: "+I(n));function t(){}return t[c]=n,new t};function At(n,r){return(e.setPrototypeOf||function(t,n){(zt=zt||Tr(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:g(n,function(n,r){return t[n]=r})})(n,r)}function Nt(n,r){try{r&&(n[J]=r)}catch(n){}}function Lt(n,r){try{Sr(n,J,{v:r,c:!0,e:!1})}catch(n){}}function Rt(e,a,n){var r,t,u=n||Error,o=u[c][J],i=Error.captureStackTrace,n=u;return Lt(t=function(){var n=this;try{Nt(u,e);var r,t=D(u,n,A(arguments))||n;return t!==n&&(r=_n(n))!==_n(t)&&At(t,r),i&&i(t,n[G]),a&&a(t,arguments),t}finally{Nt(u,o)}},r=e),(t=At(t,n))[c]=n===v?kt(n):(s[c]=n[c],new s),t;function s(){this.constructor=t,Lt(this,r)}}function _t(n){throw new(Dt=Dt||Rt("UnsupportedError"))(n)}function Wt(){return(Date.now||Kt)()}function Kt(){return(new Date).getTime()}function Bt(r){return function(n){return l(n)&&m("strTrim called ["+I(n)+"]"),n&&n.replace?n.replace(r,s):n}}var Gt=Bt(/^\s+|(?=\s)\s+$/g),Ht=Bt(/^\s+/g),Ut=Bt(/(?=\s)\s+$/g),$t=j("trim",n,Gt),Mt=j("trimStart",n,Ht),Vt=Mt,qt=j("trimEnd",n,Ut),Jt=qt,N=T("toUpperCase",n),Zt=T("toLowerCase",n);function Qt(n,o,i){return $t(w(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,a,u){e=e||u||s;return i&&(e=N(e)),(a||s)+o+e})}function Xt(n){return w(n).replace(/(_|\b)\w/g,N)}function Yt(n,r){return Qt(n,"",!0).replace(/^\w/,r?N:Zt)}function ne(n,r){n=Qt(n,"-");return(r?N:Zt)(n)}function re(n,r){n=Qt(n,"_");return(r?N:Zt)(n)}var te=t.floor,ee=t.ceil,ae=t.trunc||function(n){n=+n;return(0<n?te:ee)(n)};function ue(n,r){var t=+n;return t==1/0&&r&&Fn("invalid value ["+I(n)+"]"),t!=t||0==t?0:ae(t)}var oe=j("repeat",n,ie);function ie(n,r){l(n)&&m("can't convert ["+I(n)+"]"),(r=ue(r,!0))<0&&Fn("invalid count must be >= 0 && < Infinity");for(var t=y(n)?n:w(n),e=s;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function se(n,r,t){var e=s,n=(r=ue(r,!0),n[i]);return n<(r>>=0)&&(e=(r-=n)>(e=l(t)?" ":w(t))[i]?oe(e,ee(r/e[i])):e)[i]>r?O(e,0,r):e}var ce=j("padStart",n,fe),t=j("padEnd",n,le);function fe(n,r,t){return se(n,r,t)+n}function le(n,r,t){return n+se(n,r,t)}var ve,pe,ye,de,be=/([^\w\d_$])/g;function he(n,r){n=w(n).replace(be,"_");return u(r)?n:Yt(n,!r)}function ge(n,r){var t;if(y(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+ce(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?vn(r)?r:4:f)}catch(n){t='"'+I(n)+'"'}return t}function me(n){return ve=ve||Tr(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),w(n).replace(/[&<>"']/g,function(n){return"&"+ve.v[n]+";"})}function Se(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(de=de||!Kr()||Kr())){ye||(pe=Function[c].toString,ye=pe[p](e));try{var t=_n(n),r=(r=!t)||(t=Tn(t,G)?t[G]:t)&&typeof t==R&&pe[p](t)===ye}catch(n){}}return r}var we=function(n){return n.value&&Ce(n),!0},Ie=[xe,Ce,Pe,Fe];function Te(t,n,e,r){var a,u,o=e.handler,r=e.path?r?e.path.concat(r):e.path:[],i={handler:e.handler,src:e.src,path:r},s=typeof n,c=!1,f=!1,l=(n&&s===W?c=Se(n):f=n===v||fn(s),{type:s,isPrim:f,isPlain:c,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Te(t,n,r?i:e,r)},copyTo:function(n,r){return je(t,n,r,i)}});return l.isPrim?o&&o[p](e,l)?l.result:n:(a=n,s=function(r){Sr(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=o;!(t||(n<Ie.length?Ie[n++]:we))[p](e,l);)t=v},k(f=t,function(n){if(n.k===a)return u=n,-1}),u||(u={k:a,v:a},f.push(u),s(u)),u.v)}function je(n,r,t,e){if(!l(t))for(var a in t)r[a]=Te(n,t[a],e,a);return r}function Oe(n,r,t){return je([],n,r,{handler:t,src:r,path:[]})}function Ee(n,r){return Te([],n,{handler:r,src:n})}function xe(n){var r,t=n.value;return!!h(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Fe(n){var r=n.value;return!!ln(r)&&(n.result=new Date(r.getTime()),!0)}function Pe(n){return n.type===R}function Ce(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function ze(r,n){return k(n,function(n){Oe(r,n)}),r}function De(n,r,t,e,a,u,o){return ze(Ee(n)||{},A(arguments))}function ke(n,r,t,e,a,u,o){return ze(n||{},A(arguments))}var Ae,Ne=Xn(i);function Le(n,r){return l(n)?r:vn(n)?n:isNaN(n=parseInt(n,10))?r:n}function Re(){return!!_e()}function _e(){return(Ae=!Ae||!Ae.b&&E&&E.lzy?C("performance"):Ae).v}function We(){var n=_e();return n&&n.now?n.now():Wt()}function Ke(n){return We()-n}var Be="(.*)";function Ge(n,r,t,e,a){return RegExp((a?"^":s)+t(n.replace(r,"\\$1"))+(a?"$":s),e?"i":"")}function He(n,r,t){return Ge(w(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,Be)},!!r,t)}function Ue(n,r,t){return Ge(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?Be:"(.)"})},!!r,t)}function $e(n,r,t){return Ge(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?Be:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)}function Me(n){return function n(r,t){var e,a,u=!1===r||0===r;if(!u&&!l(r))if(h(r))u=0<r[i];else if(ln(r))u=!isNaN(r.getTime());else{if(pn(r))return!0;if(b(r)){try{e=r,k([i,"byteLength","size","count"],function(n){if(n in e)return n=e[n],a=0<(d(n)?n():n),-1});var o=a;if(pn(o))return o;if(d(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!An(r)[i]}u=wn(r)}return u}(n,0)}function Ve(n){return qe({},n)}function qe(n,r){return n[Qr(3)]=function(){return Je(r)},n}function Je(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[V]=e;var n;return e||Sr(n,q,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.t&&t.t(n),r}),n}function Ze(n){var r=-1,t=n?n.slice():[],e=t[i],n={n:function(){return e<=++r}};return Sr(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),Je(n)}function Qe(n,r,t){var e=n,a=f,u=(l(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<u?r<e:e<r)||(a=e,e+=u),n}};return Sr(t,"v",{g:function(){return a}}),Je(t)}function Xe(n,r,t){r=r&&r[Qr(9)];return r?r(n,t):[n]}var Ye=T("split",n),na=j("split",n,z()?null:Xe);function ra(n,r,t){if(!r||!n)return t;for(var e=Ye(r,"."),a=e.length,u=0;u<a&&!l(n);u++)n=n[e[u]];return l(n)?t:n}function ta(r,n,t){return n&&r&&(et(n,function(n){if(l(r))return-1;r=r[n]}),!l(r))?r:t}function ea(r,n,t){var e;r&&n&&(e=(n=Ye(n,".")).pop(),k(n,function(n){l(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)}function aa(r,n,t){var e;r&&n&&(et(n,function(n){e&&(l(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)}var ua=j("endsWith",n,oa);function oa(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[i],a=n[i],t=!u(t)&&t<a?t:a;return O(n,t-e,t)===r}var ia=T($,n),$=T(M,n),M=j("includes",n,sa),n=M;function sa(n,r,t){return yn(r)&&m("'searchString' must not be a regular expression"+I(r)),-1!==ia(n,w(r),t)}function ca(n){return y(n)?n.replace(/[\s\t\r\n\f]+/g,s)===s:l(n)}function fa(n){return y(n)?n===s:l(n)}var la,va="ref",pa="un"+va,ya="hasRef",da="enabled";function ba(n,r,t){function e(){return i=!1,s&&s[pa]&&s[pa](),o}function a(){return s=r(s),i||e(),o}function u(){s&&t(s),s=v}var o,i=!0,s=n?r(v):v,n={cancel:u,refresh:a};return n[ya]=function(){return s&&s[ya]?s[ya]():i},n[va]=function(){return i=!0,s&&s[va]&&s[va](),o},n[pa]=e,n[da]=!1,x(o=n,da,{get:function(){return!!s},set:function(n){!n&&s&&u(),n&&!s&&a()}}),{h:o,dn:function(){s=v}}}function ha(r,n,t,e){var a=h(t),u=a?t.length:0,o=(0<u?t[0]:a?f:t)||setTimeout,i=(1<u?t[1]:f)||clearTimeout,s=e[0],c=(e[0]=function(){c.dn(),D(s,r,A(arguments))},ba(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(i,r,[n])}return D(o,r,e)},function(n){D(i,r,[n])}));return c.h}function ga(n,r){return ha(this,!0,f,A(arguments))}function ma(n,r,t){return ha(this,!0,n,A(arguments,1))}function Sa(n,r){return ha(this,!1,f,A(arguments))}function wa(n,r,t){return ha(this,!1,n,A(arguments,1))}var Ia=100,Ta=50;function ja(){return!(!(la=la||F(function(){return sn(requestIdleCallback)},!1)).v||!requestIdleCallback)}function Oa(n){Ia=n}function Ea(n){Ta=n}function xa(r,t){function e(n){var r=We();return{didTimeout:n,timeRemaining:function(){return Ta-Ke(r)}}}var a,n;return ja()?(a=ba(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){a.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:ga(function(){r(e(!0))},u(n=(t||{}).timeout)?Ia:n)}function Fa(n,r){var t=this,e=A(arguments);return ba(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h}export{at as arrAppend,Tt as arrContains,ut as arrEvery,ot as arrFilter,gt as arrFind,mt as arrFindIndex,St as arrFindLast,wt as arrFindLastIndex,k as arrForEach,Y as arrFrom,It as arrIncludes,it as arrIndexOf,st as arrLastIndexOf,ct as arrMap,jt as arrReduce,A as arrSlice,Ot as arrSome,xe as arrayDeepCopyHandler,w as asString,Ze as createArrayIterator,Rt as createCustomError,Kn as createEnum,Bn as createEnumKeyMap,Gn as createEnumValueMap,Ue as createFilenameRegex,Ft as createFnDeferredProxy,Ve as createIterable,Je as createIterator,Pt as createProxyFuncs,Qe as createRangeIterator,Hn as createSimpleMap,Sa as createTimeout,wa as createTimeoutWith,Un as createTypeMap,He as createWildcardRegex,Fe as dateDeepCopyHandler,De as deepExtend,I as dumpObj,Ke as elapsedTime,me as encodeAsHtml,ge as encodeAsJson,D as fnApply,Et as fnBind,xt as fnCall,Pe as functionDeepCopyHandler,_r as getDocument,Nr as getGlobal,Ur as getHistory,Lr as getInst,Le as getIntValue,Qr as getKnownSymbol,Tr as getLazy,Ne as getLength,Gr as getNavigator,_e as getPerformance,z as getSymbol,ta as getValueByIter,ra as getValueByKey,Kr as getWindow,Rr as hasDocument,Hr as hasHistory,ja as hasIdleCallback,Br as hasNavigator,Re as hasPerformance,Zr as hasSymbol,Me as hasValue,Wr as hasWindow,h as isArray,dn as isArrayBuffer,L as isBlob,pn as isBoolean,ln as isDate,sn as isDefined,bn as isError,B as isFile,_ as isFormData,d as isFunction,tt as isIterable,rt as isIterator,$r as isNode,Sn as isNotTruthy,l as isNullOrUndefined,vn as isNumber,b as isObject,Se as isPlainObject,cn as isPrimitive,fn as isPrimitiveType,mn as isPromise,hn as isPromiseLike,yn as isRegExp,on as isStrictNullOrUndefined,un as isStrictUndefined,y as isString,Jr as isSymbol,gn as isThenable,wn as isTruthy,an as isTypeof,u as isUndefined,Mr as isWebWorker,et as iterForOf,C as lazySafeGetInst,$e as makeGlobRegex,qe as makeIterable,ee as mathCeil,te as mathFloor,Yn as mathMax,X as mathMin,ue as mathToInt,ae as mathTrunc,Xr as newSymbol,he as normalizeJsName,kn as objAssign,Oe as objCopyProps,kt as objCreate,Ee as objDeepCopy,Nn as objDeepFreeze,Sr as objDefine,mr as objDefineAccessors,gr as objDefineGet,x as objDefineProp,hr as objDefineProperties,wr as objDefineProps,Wn as objEntries,ke as objExtend,g as objForEachKey,Ln as objFreeze,In as objGetOwnPropertyDescriptor,_n as objGetPrototypeOf,jn as objHasOwn,Tn as objHasOwnProperty,An as objKeys,Rn as objSeal,At as objSetPrototypeOf,en as objToString,We as perfNow,Ce as plainObjDeepCopyHandler,vt as polyArrFind,pt as polyArrFindIndex,yt as polyArrFindLast,dt as polyArrFindLastIndex,bt as polyArrFrom,lt as polyArrIncludes,yr as polyGetKnownSymbol,ft as polyIsArray,lr as polyNewSymbol,Cn as polyObjEntries,On as polyObjHasOwn,Pn as polyObjKeys,sa as polyStrIncludes,tr as polyStrSubstr,Xe as polyStrSymSplit,Gt as polyStrTrim,Ut as polyStrTrimEnd,Ht as polyStrTrimStart,vr as polySymbolFor,pr as polySymbolKeyFor,Kt as polyUtcNow,Ct as readArgs,nn as safeGet,F as safeGetLazy,xa as scheduleIdleCallback,Fa as scheduleInterval,ga as scheduleTimeout,ma as scheduleTimeoutWith,jr as setBypassLazyCache,Oa as setDefaultIdleTimeout,Ea as setDefaultMaxExecutionTime,aa as setValueByIter,ea as setValueByKey,Yt as strCamelCase,n as strContains,ua as strEndsWith,M as strIncludes,ia as strIndexOf,fa as strIsNullOrEmpty,ca as strIsNullOrWhiteSpace,ne as strKebabCase,$ as strLastIndexOf,er as strLeft,Xt as strLetterCase,Zt as strLower,t as strPadEnd,ce as strPadStart,oe as strRepeat,ar as strRight,nr as strSlice,re as strSnakeCase,Ye as strSplit,ur as strStartsWith,rr as strSubstr,O as strSubstring,na as strSymSplit,$t as strTrim,qt as strTrimEnd,Vt as strTrimLeft,Jt as strTrimRight,Mt as strTrimStart,N as strUpper,Yr as symbolFor,nt as symbolKeyFor,xn as throwError,Fn as throwRangeError,m as throwTypeError,_t as throwUnsupported,Wt as utcNow}; | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
var f=void 0,v=null,s="",L="boolean",R="function",_="number",W="object",c="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="_polyfill",$="indexOf",M="lastIndexOf",i="length",V="done",q="value",J="name",Z="slice",p="call",e=Object,Q=e[c],X=String,n=X[c],t=Math,Y=Array,o=Y[c];function nn(n,r){try{r=n()}catch(n){}return r}var rn=[B,_,L,r,"symbol","bigint"];function tn(r){return function(n){return typeof n===r}}function a(n){var r="[object "+n+"]";return function(n){return!(!n||en(n)!==r)}}function en(n){return Q.toString[p](n)}function an(n,r){return typeof n===r}function u(n){return typeof n===r||n===r}function un(n){return!sn(n)}function l(n){return n===v||u(n)}function on(n){return n===v||!sn(n)}function sn(n){return!!n||n!==f}function cn(n){return n===v||fn(typeof n)}function fn(n){return n!==W&&!!~rn.indexOf(n)}var y=tn(B),d=tn(R);function b(n){return!(!n&&l(n)||!n||typeof n!==W)}var h=Y.isArray,ln=a("Date"),vn=tn(_),pn=tn(L),yn=a("RegExp"),B=a("File"),_=a("FormData"),L=a("Blob"),dn=a("ArrayBuffer"),bn=a("Error");function hn(n){return!!(n&&n.then&&d(n.then))}var gn=hn;function mn(n){return!!(n&&n.then&&n.catch&&d(n.then)&&d(n.catch))}function Sn(n){return!n||!nn(function(){return n&&0+n},n)}function wn(n){return!(!n||nn(function(){return!(n&&0+n)},!n))}var In=e.getOwnPropertyDescriptor;function Tn(n,r){return n&&Q.hasOwnProperty[p](n,r)}var jn=e.hasOwn||On;function On(n,r){return Tn(n,r)||!!In(n,r)}function g(n,r,t){if(n&&b(n))for(var e in n)if(jn(n,e)&&-1===r[p](t||n,e,n[e]))break}function En(n,t,e,r){var a={};return g(n,function(n,r){a[n]=t?r:n,a[r]=e?r:n}),r(a)}function xn(n){throw Error(n)}function m(n){throw new TypeError(n)}function Fn(n){throw new RangeError(n)}function Pn(n){if(!b(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)jn(n,r)&&t.push(r);return t}function Cn(n){var t=[];return g(n,function(n,r){t.push([n,r])}),t}var zn=e.freeze;function Dn(n){return n}var kn=e.assign;function An(n){return b(n)&&n!==v||m("objKeys called on non-object"),e.keys(n)}function Nn(n){return zn&&g(n,function(n,r){(h(r)||b(r))&&zn(r)}),Ln(n)}var Ln=zn||Dn,Rn=e.seal||Dn,_n=e.getPrototypeOf||function(n){return n[K]||v},Wn=e.entries||Cn;function Kn(n){return En(n,1,0,Nn)}function Bn(n){return En(n,0,0,Nn)}function Gn(n){return En(n,1,1,Nn)}function Hn(n){var t={};return g(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),Nn(t)}function Un(n){return Hn(n)}var $n,S,Mn=Bn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=X,Vn="__tsUtils$gblCfg";function qn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Jn(){var n;return $n||(n=qn()||{},$n=n[Vn]=n[Vn]||{}),$n}function I(n,r){var t=s;if(bn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?vn(r)?r:4:f)}catch(n){t=" - "+I(n,r)}return en(n)+": "+t}function Zn(n,r){m("'"+w(n)+"' not defined for "+I(r))}function Qn(r){return S=S||o[Z],function(n){return n[r].apply(n,S[p](arguments,1))}}function T(t,n){S=S||o[Z];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,S[p](arguments,1));Zn(t,n)}}function j(e,n,a){S=S||o[Z];var u=n&&n[e];return function(n){var r,t=n&&n[e]||u;if(t||a)return r=arguments,(t||a).apply(n,t?S[p](r,1):r);Zn(e,n)}}function Xn(r){return function(n){return n[r]}}var X=t.min,Yn=t.max,nr=T(Z,n),O=T("substring",n),rr=j("substr",n,tr);function tr(n,r,t){return l(n)&&m("'polyStrSubstr called with invalid "+I(n)),t<0?s:((r=r||0)<0&&(r=Yn(r+n[i],0)),u(t)?nr(n,r):nr(n,r,r+t))}function er(n,r){return O(n,0,r)}function ar(n,r){var t=n[i];return r<=0?s:r<t?O(n,t-r):n}var ur=j("startsWith",n,or);function or(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[i],t=0<t?t:0;return O(n,t,t+e)===r}var ir,sr,cr="_urid";function fr(){var n;return ir||(n=Jn(),ir=n.gblSym=n.gblSym||{k:{},s:{}}),ir}function lr(n){var r={description:w(n),toString:function(){return H+"("+n+")"}};return r[U]=!0,r}function vr(n){var r,t,e=fr();return jn(e.k,n)||(r=lr(n),t=An(e.s).length,r[cr]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[cr]()]=w(n)),e.k[n]}function pr(n){n&&n.toString&&ur(n.toString(),H)||m(n+" is not a symbol");n=n[U]&&n[cr]&&n[cr]();return n?fr().s[n]:void 0}function yr(n){sr=sr||{};n=Mn[n];return n?sr[n]=sr[n]||lr(H+"."+n):void 0}var dr={e:"enumerable",c:"configurable",v:q,w:"writable",g:"get",s:"set"};function br(r){var n,t={};return t[dr.c]=!0,t[dr.e]=!0,r.l&&(t.get=function(){return r.l.v},n=In(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),g(r,function(n,r){t[dr[n]]=u(r)?t[dr[n]]:r}),t}var E,x=e.defineProperty,hr=e.defineProperties;function gr(n,r,t,e,a){return x(n,r,br(((n={e:a,c:e})[d(t)?"g":"v"]=t,n)))}function mr(n,r,t,e,a,u){u={e:u,c:a};return t&&(u.g=t),e&&(u.s=e),x(n,r,br(u))}function Sr(n,r,t){return x(n,r,br(t))}function wr(n,r){var t={};return g(r,function(n,r){t[n]=br(r)}),hr(n,t)}var Ir=function(){E=Jn(),Ir=v};function Tr(r){var t={};return Ir&&Ir(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function jr(n){Ir&&Ir(),E.lzy=n}function F(n,r){return Tr(function(){return nn(n,r)})}var Or,Er,xr,Fr,Pr,Cr,zr,P,Dr,kr,Ar="window";function C(n){return F(function(){return Lr(n)||f},f)}function Nr(n){return(Or=!Or||!1===n||E&&E.lzy&&!Or.b?F(qn,v):Or).v}function Lr(n,r){r=Or&&!1!==r?Or.v:Nr(r);return r&&r[n]?r[n]:n===Ar&&Er?Er.v:v}function Rr(){return!!_r()}function _r(){return(xr=!xr||E&&E.lzy&&!xr.b?C("document"):xr).v}function Wr(){return!!Kr()}function Kr(){return(Er=!Er||E&&E.lzy&&!Er.b?C(Ar):Er).v}function Br(){return!!Gr()}function Gr(){return(Fr=!Fr||E&&E.lzy&&!Fr.b?C("navigator"):Fr).v}function Hr(){return!!Ur()}function Ur(){return(Pr=!Pr||E&&E.lzy&&!Pr.b?C("history"):Pr).v}function $r(){return(zr=zr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v}function Mr(){return(Cr=Cr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v}function Vr(n){return F(function(){return P.v?P.v[n]:f},f)}var qr,Jr=tn("symbol");function Zr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),Dr&&!n||(Dr=Vr("for")),kr&&!n||(kr=Vr("keyFor")),P.v}function Qr(n,r){var t=Mn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?f:yr(n)}function Xr(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:lr(n)}function Yr(n){return Dr&&(!E.lzy||P.b)||z(),(Dr.v||vr)(n)}function nt(n){return kr&&(!E.lzy||P.b)||z(),(kr.v||pr)(n)}function rt(n){return!!n&&d(n.next)}function tt(n){return!on(n)&&d(n[Qr(3)])}function et(r,n,t){if(r&&(rt(r)||(r=r[(qr=qr||Tr(function(){return Qr(3)})).v]?r[qr.v]():null),rt(r))){var e=void 0,a=void 0;try{for(var u=0;!(a=r.next())[V]&&-1!==n[p](t||r,a[q],u,r);)u++}catch(n){e={e:n},r.throw&&(a=null,r.throw(e))}finally{try{a&&!a[V]&&r.return&&r.return(a)}finally{if(e)throw e.e}}}}var D=Qn("apply");function at(r,n){return!u(n)&&r&&(h(n)?D(r.push,r,n):rt(n)||tt(n)?et(n,function(n){r.push(n)}):r.push(n)),r}var ut=T("every",o),ot=T("filter",o);function k(n,r,t){if(n)for(var e=n[i]>>>0,a=0;a<e&&!(a in n&&-1===r[p](t||n,n[a],a,n));a++);}var it=T($,o),st=T(M,o),ct=T("map",o),A=T(Z,o);function ft(n){return!l(n)&&"[object Array]"===en(n)}function lt(n,r,t){return-1!==it(n,r,t)}function vt(n,r,t){r=pt(n,r,t);return-1!==r?n[r]:void 0}function pt(t,e,a){var u=-1;return k(t,function(n,r){if(e[p](a|t,n,r,t))return u=r,-1}),u}function yt(n,r,t){r=dt(n,r,t);return-1!==r?n[r]:void 0}function dt(n,r,t){for(var e=-1,a=(n[i]>>>0)-1;0<=a;a--)if(a in n&&r[p](t|n,n[a],a,n)){e=a;break}return e}function bt(n,t,e){var r,a;return h(n)?(r=A(n),t?ct(r,t,e):r):(a=[],et(n,function(n,r){return a.push(t?t[p](e,n,r):n)}),a)}var ht,gt=j("find",o,vt),mt=j("findIndex",o,pt),St=j("findLast",o,yt),wt=j("findLastIndex",o,dt),Y=Y.from||bt,It=j("includes",o,lt),Tt=It,jt=T("reduce",o),Ot=T("some",o),Et=Qn("bind"),xt=Qn(p);function Ft(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}function Pt(t,e,n){var a;return t&&e&&h(n)&&(a=d(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=a?Ft(e,n.n):Et(e[n.n],e))})),t}function Ct(n,r,t){if(ht=ht||Tr(function(){return Zr()&&Qr(3)}),!jn(n,i)){var e=ht.v&&n[ht.v];if(e){var a=[],u=r===f||r<0?0:r,o=t<0||r<0?f:t;if(et(e[p](n),function(n,r){if(o!==f&&o<=r)return-1;u<=r&&a.push(n)}),(r===f||0<=r)&&(t===f||0<=t))return a;n=a}}return A(n,r,t)}var zt,Dt,kt=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=R)throw new TypeError("Prototype must be an Object or function: "+I(n));function t(){}return t[c]=n,new t};function At(n,r){return(e.setPrototypeOf||function(t,n){(zt=zt||Tr(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:g(n,function(n,r){return t[n]=r})})(n,r)}function Nt(n,r){try{r&&(n[J]=r)}catch(n){}}function Lt(n,r){try{Sr(n,J,{v:r,c:!0,e:!1})}catch(n){}}function Rt(e,a,n){var r,t,u=n||Error,o=u[c][J],i=Error.captureStackTrace,n=u;return Lt(t=function(){var n=this;try{Nt(u,e);var r,t=D(u,n,A(arguments))||n;return t!==n&&(r=_n(n))!==_n(t)&&At(t,r),i&&i(t,n[G]),a&&a(t,arguments),t}finally{Nt(u,o)}},r=e),(t=At(t,n))[c]=n===v?kt(n):(s[c]=n[c],new s),t;function s(){this.constructor=t,Lt(this,r)}}function _t(n){throw new(Dt=Dt||Rt("UnsupportedError"))(n)}function Wt(){return(Date.now||Kt)()}function Kt(){return(new Date).getTime()}function Bt(r){return function(n){return l(n)&&m("strTrim called ["+I(n)+"]"),n&&n.replace?n.replace(r,s):n}}var Gt=Bt(/^\s+|(?=\s)\s+$/g),Ht=Bt(/^\s+/g),Ut=Bt(/(?=\s)\s+$/g),$t=j("trim",n,Gt),Mt=j("trimStart",n,Ht),Vt=Mt,qt=j("trimEnd",n,Ut),Jt=qt,N=T("toUpperCase",n),Zt=T("toLowerCase",n);function Qt(n,o,i){return $t(w(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,a,u){e=e||u||s;return i&&(e=N(e)),(a||s)+o+e})}function Xt(n){return w(n).replace(/(_|\b)\w/g,N)}function Yt(n,r){return Qt(n,"",!0).replace(/^\w/,r?N:Zt)}function ne(n,r){n=Qt(n,"-");return(r?N:Zt)(n)}function re(n,r){n=Qt(n,"_");return(r?N:Zt)(n)}var te=t.floor,ee=t.ceil,ae=t.trunc||function(n){n=+n;return(0<n?te:ee)(n)};function ue(n,r){var t=+n;return t==1/0&&r&&Fn("invalid value ["+I(n)+"]"),t!=t||0==t?0:ae(t)}var oe=j("repeat",n,ie);function ie(n,r){l(n)&&m("can't convert ["+I(n)+"]"),(r=ue(r,!0))<0&&Fn("invalid count must be >= 0 && < Infinity");for(var t=y(n)?n:w(n),e=s;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function se(n,r,t){var e=s,n=(r=ue(r,!0),n[i]);return n<(r>>=0)&&(e=(r-=n)>(e=l(t)?" ":w(t))[i]?oe(e,ee(r/e[i])):e)[i]>r?O(e,0,r):e}var ce=j("padStart",n,fe),t=j("padEnd",n,le);function fe(n,r,t){return se(n,r,t)+n}function le(n,r,t){return n+se(n,r,t)}var ve,pe,ye,de,be=/([^\w\d_$])/g;function he(n,r){n=w(n).replace(be,"_");return u(r)?n:Yt(n,!r)}function ge(n,r){var t;if(y(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+ce(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?vn(r)?r:4:f)}catch(n){t='"'+I(n)+'"'}return t}function me(n){return ve=ve||Tr(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),w(n).replace(/[&<>"']/g,function(n){return"&"+ve.v[n]+";"})}function Se(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(de=de||!Kr()||Kr())){ye||(pe=Function[c].toString,ye=pe[p](e));try{var t=_n(n),r=(r=!t)||(t=Tn(t,G)?t[G]:t)&&typeof t==R&&pe[p](t)===ye}catch(n){}}return r}var we=function(n){return n.value&&Ce(n),!0},Ie=[xe,Ce,Pe,Fe];function Te(t,n,e,r){var a,u,o=e.handler,r=e.path?r?e.path.concat(r):e.path:[],i={handler:e.handler,src:e.src,path:r},s=typeof n,c=!1,f=!1,l=(n&&s===W?c=Se(n):f=n===v||fn(s),{type:s,isPrim:f,isPlain:c,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Te(t,n,r?i:e,r)},copyTo:function(n,r){return je(t,n,r,i)}});return l.isPrim?o&&o[p](e,l)?l.result:n:(a=n,s=function(r){Sr(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=o;!(t||(n<Ie.length?Ie[n++]:we))[p](e,l);)t=v},k(f=t,function(n){if(n.k===a)return u=n,-1}),u||(u={k:a,v:a},f.push(u),s(u)),u.v)}function je(n,r,t,e){if(!l(t))for(var a in t)r[a]=Te(n,t[a],e,a);return r}function Oe(n,r,t){return je([],n,r,{handler:t,src:r,path:[]})}function Ee(n,r){return Te([],n,{handler:r,src:n})}function xe(n){var r,t=n.value;return!!h(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Fe(n){var r=n.value;return!!ln(r)&&(n.result=new Date(r.getTime()),!0)}function Pe(n){return n.type===R}function Ce(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function ze(r,n){return k(n,function(n){Oe(r,n)}),r}function De(n,r,t,e,a,u,o){return ze(Ee(n)||{},A(arguments))}function ke(n,r,t,e,a,u,o){return ze(n||{},A(arguments))}var Ae,Ne=Xn(i);function Le(n,r){return l(n)?r:vn(n)?n:isNaN(n=parseInt(n,10))?r:n}function Re(){return!!_e()}function _e(){return(Ae=!Ae||!Ae.b&&E&&E.lzy?C("performance"):Ae).v}function We(){var n=_e();return n&&n.now?n.now():Wt()}function Ke(n){return We()-n}var Be="(.*)";function Ge(n,r,t,e,a){return RegExp((a?"^":s)+t(n.replace(r,"\\$1"))+(a?"$":s),e?"i":"")}function He(n,r,t){return Ge(w(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,Be)},!!r,t)}function Ue(n,r,t){return Ge(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?Be:"(.)"})},!!r,t)}function $e(n,r,t){return Ge(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?Be:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)}function Me(n){return function n(r,t){var e,a,u=!1===r||0===r;if(!u&&!l(r))if(h(r))u=0<r[i];else if(ln(r))u=!isNaN(r.getTime());else{if(pn(r))return!0;if(b(r)){try{e=r,k([i,"byteLength","size","count"],function(n){if(n in e)return n=e[n],a=0<(d(n)?n():n),-1});var o=a;if(pn(o))return o;if(d(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!An(r)[i]}u=wn(r)}return u}(n,0)}function Ve(n){return qe({},n)}function qe(n,r){return n[Qr(3)]=function(){return Je(r)},n}function Je(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[V]=e;var n;return e||Sr(n,q,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.t&&t.t(n),r}),n}function Ze(n){var r=-1,t=n?n.slice():[],e=t[i],n={n:function(){return e<=++r}};return Sr(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),Je(n)}function Qe(n,r,t){var e=n,a=f,u=(l(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<u?r<e:e<r)||(a=e,e+=u),n}};return Sr(t,"v",{g:function(){return a}}),Je(t)}function Xe(n,r,t){r=r&&r[Qr(9)];return r?r(n,t):[n]}var Ye=T("split",n),na=j("split",n,z()?null:Xe);function ra(n,r,t){if(!r||!n)return t;for(var e=Ye(r,"."),a=e.length,u=0;u<a&&!l(n);u++)n=n[e[u]];return l(n)?t:n}function ta(r,n,t){return n&&r&&(et(n,function(n){if(l(r))return-1;r=r[n]}),!l(r))?r:t}function ea(r,n,t){var e;r&&n&&(e=(n=Ye(n,".")).pop(),k(n,function(n){l(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)}function aa(r,n,t){var e;r&&n&&(et(n,function(n){e&&(l(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)}var ua=j("endsWith",n,oa);function oa(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[i],a=n[i],t=!u(t)&&t<a?t:a;return O(n,t-e,t)===r}var ia=T($,n),$=T(M,n),M=j("includes",n,sa),n=M;function sa(n,r,t){return yn(r)&&m("'searchString' must not be a regular expression"+I(r)),-1!==ia(n,w(r),t)}function ca(n){return y(n)?n.replace(/[\s\t\r\n\f]+/g,s)===s:l(n)}function fa(n){return y(n)?n===s:l(n)}var la,va="ref",pa="un"+va,ya="hasRef",da="enabled";function ba(n,r,t){function e(){return i=!1,s&&s[pa]&&s[pa](),o}function a(){return s=r(s),i||e(),o}function u(){s&&t(s),s=v}var o,i=!0,s=n?r(v):v,n={cancel:u,refresh:a};return n[ya]=function(){return s&&s[ya]?s[ya]():i},n[va]=function(){return i=!0,s&&s[va]&&s[va](),o},n[pa]=e,n[da]=!1,x(o=n,da,{get:function(){return!!s},set:function(n){!n&&s&&u(),n&&!s&&a()}}),{h:o,dn:function(){s=v}}}function ha(r,n,t,e){var a=h(t),u=a?t.length:0,o=(0<u?t[0]:a?f:t)||setTimeout,i=(1<u?t[1]:f)||clearTimeout,s=e[0],c=(e[0]=function(){c.dn(),D(s,r,A(arguments))},ba(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(i,r,[n])}return D(o,r,e)},function(n){D(i,r,[n])}));return c.h}function ga(n,r){return ha(this,!0,f,A(arguments))}function ma(n,r,t){return ha(this,!0,n,A(arguments,1))}function Sa(n,r){return ha(this,!1,f,A(arguments))}function wa(n,r,t){return ha(this,!1,n,A(arguments,1))}var Ia=100,Ta=50;function ja(){return!(!(la=la||F(function(){return sn(requestIdleCallback)},!1)).v||!requestIdleCallback)}function Oa(n){Ia=n}function Ea(n){Ta=n}function xa(r,t){function e(n){var r=We();return{didTimeout:n,timeRemaining:function(){return Ta-Ke(r)}}}var a,n;return ja()?(a=ba(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){a.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:ga(function(){r(e(!0))},u(n=(t||{}).timeout)?Ia:n)}function Fa(n,r){var t=this,e=A(arguments);return ba(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h}export{at as arrAppend,Tt as arrContains,ut as arrEvery,ot as arrFilter,gt as arrFind,mt as arrFindIndex,St as arrFindLast,wt as arrFindLastIndex,k as arrForEach,Y as arrFrom,It as arrIncludes,it as arrIndexOf,st as arrLastIndexOf,ct as arrMap,jt as arrReduce,A as arrSlice,Ot as arrSome,xe as arrayDeepCopyHandler,w as asString,Ze as createArrayIterator,Rt as createCustomError,Kn as createEnum,Bn as createEnumKeyMap,Gn as createEnumValueMap,Ue as createFilenameRegex,Ft as createFnDeferredProxy,Ve as createIterable,Je as createIterator,Pt as createProxyFuncs,Qe as createRangeIterator,Hn as createSimpleMap,Sa as createTimeout,wa as createTimeoutWith,Un as createTypeMap,He as createWildcardRegex,Fe as dateDeepCopyHandler,De as deepExtend,I as dumpObj,Ke as elapsedTime,me as encodeAsHtml,ge as encodeAsJson,D as fnApply,Et as fnBind,xt as fnCall,Pe as functionDeepCopyHandler,_r as getDocument,Nr as getGlobal,Ur as getHistory,Lr as getInst,Le as getIntValue,Qr as getKnownSymbol,Tr as getLazy,Ne as getLength,Gr as getNavigator,_e as getPerformance,z as getSymbol,ta as getValueByIter,ra as getValueByKey,Kr as getWindow,Rr as hasDocument,Hr as hasHistory,ja as hasIdleCallback,Br as hasNavigator,Re as hasPerformance,Zr as hasSymbol,Me as hasValue,Wr as hasWindow,h as isArray,dn as isArrayBuffer,L as isBlob,pn as isBoolean,ln as isDate,sn as isDefined,bn as isError,B as isFile,_ as isFormData,d as isFunction,tt as isIterable,rt as isIterator,$r as isNode,Sn as isNotTruthy,l as isNullOrUndefined,vn as isNumber,b as isObject,Se as isPlainObject,cn as isPrimitive,fn as isPrimitiveType,mn as isPromise,hn as isPromiseLike,yn as isRegExp,on as isStrictNullOrUndefined,un as isStrictUndefined,y as isString,Jr as isSymbol,gn as isThenable,wn as isTruthy,an as isTypeof,u as isUndefined,Mr as isWebWorker,et as iterForOf,C as lazySafeGetInst,$e as makeGlobRegex,qe as makeIterable,ee as mathCeil,te as mathFloor,Yn as mathMax,X as mathMin,ue as mathToInt,ae as mathTrunc,Xr as newSymbol,he as normalizeJsName,kn as objAssign,Oe as objCopyProps,kt as objCreate,Ee as objDeepCopy,Nn as objDeepFreeze,Sr as objDefine,mr as objDefineAccessors,gr as objDefineGet,x as objDefineProp,hr as objDefineProperties,wr as objDefineProps,Wn as objEntries,ke as objExtend,g as objForEachKey,Ln as objFreeze,In as objGetOwnPropertyDescriptor,_n as objGetPrototypeOf,jn as objHasOwn,Tn as objHasOwnProperty,An as objKeys,Rn as objSeal,At as objSetPrototypeOf,en as objToString,We as perfNow,Ce as plainObjDeepCopyHandler,vt as polyArrFind,pt as polyArrFindIndex,yt as polyArrFindLast,dt as polyArrFindLastIndex,bt as polyArrFrom,lt as polyArrIncludes,yr as polyGetKnownSymbol,ft as polyIsArray,lr as polyNewSymbol,Cn as polyObjEntries,On as polyObjHasOwn,Pn as polyObjKeys,sa as polyStrIncludes,tr as polyStrSubstr,Xe as polyStrSymSplit,Gt as polyStrTrim,Ut as polyStrTrimEnd,Ht as polyStrTrimStart,vr as polySymbolFor,pr as polySymbolKeyFor,Kt as polyUtcNow,Ct as readArgs,nn as safeGet,F as safeGetLazy,xa as scheduleIdleCallback,Fa as scheduleInterval,ga as scheduleTimeout,ma as scheduleTimeoutWith,jr as setBypassLazyCache,Oa as setDefaultIdleTimeout,Ea as setDefaultMaxExecutionTime,aa as setValueByIter,ea as setValueByKey,Yt as strCamelCase,n as strContains,ua as strEndsWith,M as strIncludes,ia as strIndexOf,fa as strIsNullOrEmpty,ca as strIsNullOrWhiteSpace,ne as strKebabCase,$ as strLastIndexOf,er as strLeft,Xt as strLetterCase,Zt as strLower,t as strPadEnd,ce as strPadStart,oe as strRepeat,ar as strRight,nr as strSlice,re as strSnakeCase,Ye as strSplit,ur as strStartsWith,rr as strSubstr,O as strSubstring,na as strSymSplit,$t as strTrim,qt as strTrimEnd,Vt as strTrimLeft,Jt as strTrimRight,Mt as strTrimStart,N as strUpper,Yr as symbolFor,nt as symbolKeyFor,xn as throwError,Fn as throwRangeError,m as throwTypeError,_t as throwUnsupported,Wt as utcNow}; | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
this.nevware21=this.nevware21||{},this.nevware21["ts-utils"]=function(n){"use strict";var s=void 0,v=null,c="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",a="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],Q=String,t=Q[f],u=Math,X=Array,i=X[f];function Y(n,r){try{r=n()}catch(n){}return r}var nn=[B,R,L,r,"symbol","bigint"];function rn(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||tn(n)!==r)}}function tn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function en(n){return n===v||!un(n)}function un(n){return!!n||n!==s}function on(n){return n!==W&&!!~nn.indexOf(n)}var d=rn(B),b=rn(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=X.isArray,an=o("Date"),cn=rn(R),fn=rn(L),sn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),ln=o("ArrayBuffer"),vn=o("Error");function pn(n){return!!(n&&n.then&&b(n.then))}var yn=pn;function dn(n){return!(!n||Y(function(){return!(n&&0+n)},!n))}var bn=e.getOwnPropertyDescriptor;function hn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var gn=e.hasOwn||mn;function mn(n,r){return hn(n,r)||!!bn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(gn(n,e)&&-1===r[p](t||n,e,n[e]))break}function Sn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function wn(n){throw new RangeError(n)}function In(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var Tn=e.freeze;function jn(n){return n}var On=e.assign;function En(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function xn(n){return Tn&&m(n,function(n,r){(g(r)||h(r))&&Tn(r)}),Fn(n)}var Fn=Tn||jn,Pn=e.seal||jn,Cn=e.getPrototypeOf||function(n){return n[K]||v},zn=e.entries||In;function Dn(n){return Sn(n,0,0,xn)}function kn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),xn(t)}var An,w,Nn=Dn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Q,Ln="__tsUtils$gblCfg";function _n(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Rn(){var n;return An||(n=_n()||{},An=n[Ln]=n[Ln]||{}),An}function T(n,r){var t=c;if(vn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?cn(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return tn(n)+": "+t}function Wn(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Kn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));Wn(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);Wn(e,n)}}function Bn(r){return function(n){return n[r]}}var Q=u.min,Gn=u.max,Hn=j(J,t),Un=j("substring",t),$n=O("substr",t,Mn);function Mn(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?c:((r=r||0)<0&&(r=Gn(r+n[a],0)),l(t)?Hn(n,r):Hn(n,r,r+t))}var Vn=O("startsWith",t,qn);function qn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],t=0<t?t:0;return Un(n,t,t+e)===r}var Jn,Zn="_urid";function Qn(){var n;return Jn||(n=Rn(),Jn=n.gblSym=n.gblSym||{k:{},s:{}}),Jn}var Xn={};function Yn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function nr(n){var r,t,e=Qn();return gn(e.k,n)||(r=Yn(n),t=En(e.s).length,r[Zn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Zn]()]=I(n)),e.k[n]}function rr(n){n&&n.toString&&Vn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Zn]&&n[Zn]();return n?Qn().s[n]:void 0}function tr(n){n=Nn[n];return n?Xn[n]=Xn[n]||Yn(H+"."+n):void 0}var er={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function ur(r){var n,t={};return t[er.c]=!0,t[er.e]=!0,r.l&&(t.get=function(){return r.l.v},n=bn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[er[n]]=l(r)?t[er[n]]:r}),t}var E,x=e.defineProperty,or=e.defineProperties;function ir(n,r,t){return x(n,r,ur(t))}var ar=function(){E=Rn(),ar=v};function cr(r){var t={};return ar&&ar(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return cr(function(){return Y(n,r)})}var fr,sr,lr,vr,pr,yr,dr,P,br,hr,gr="window";function C(n){return F(function(){return Sr(n)||s},s)}function mr(n){return(fr=!fr||!1===n||E&&E.lzy&&!fr.b?F(_n,v):fr).v}function Sr(n,r){r=fr&&!1!==r?fr.v:mr(r);return r&&r[n]?r[n]:n===gr&&sr?sr.v:v}function wr(){return(lr=!lr||E&&E.lzy&&!lr.b?C("document"):lr).v}function Ir(){return(sr=!sr||E&&E.lzy&&!sr.b?C(gr):sr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("navigator"):vr).v}function jr(){return(pr=!pr||E&&E.lzy&&!pr.b?C("history"):pr).v}function Or(n){return F(function(){return P.v?P.v[n]:s},s)}var Er,xr=rn("symbol");function Fr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),br&&!n||(br=Or("for")),hr&&!n||(hr=Or("keyFor")),P.v}function Pr(n,r){var t=Nn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:tr(n)}function Cr(n){return!!n&&b(n.next)}function zr(n){return!en(n)&&b(n[Pr(3)])}function Dr(r,n,t){if(r&&(Cr(r)||(r=r[(Er=Er||cr(function(){return Pr(3)})).v]?r[Er.v]():null),Cr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Kn("apply"),kr=j("every",i),Ar=j("filter",i);function k(n,r,t){if(n)for(var e=n[a]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Nr=j(U,i),Lr=j($,i),_r=j("map",i),A=j(J,i);function Rr(n,r,t){return-1!==Nr(n,r,t)}function Wr(n,r,t){r=Kr(n,r,t);return-1!==r?n[r]:void 0}function Kr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Br(n,r,t){r=Gr(n,r,t);return-1!==r?n[r]:void 0}function Gr(n,r,t){for(var e=-1,u=(n[a]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Hr(n,t,e){var r,u;return g(n)?(r=A(n),t?_r(r,t,e):r):(u=[],Dr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Ur,$r=O("find",i,Wr),Mr=O("findIndex",i,Kr),Vr=O("findLast",i,Br),qr=O("findLastIndex",i,Gr),X=X.from||Hr,Jr=O("includes",i,Rr),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Kn("bind"),nt=Kn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||cr(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function at(n,r){try{ir(n,q,{v:r,c:!0,e:!1})}catch(n){}}function ct(e,u,n){var r,t,o=n||Error,i=o[f][q],a=Error.captureStackTrace,n=o;return at(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Cn(n))!==Cn(t)&&ot(t,r),a&&a(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(c[f]=n[f],new c),t;function c(){this.constructor=t,at(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,c):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,a){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||c;return a&&(e=N(e)),(u||c)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&wn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&wn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=c;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=c,n=(r=Et(r,!0),n[a]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[a]?xt(e,jt(r/e[a])):e)[a]>r?Un(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!Ir()||Ir())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Cn(n),r=(r=!t)||(t=hn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],a={handler:e.handler,src:e.src,path:r},c=typeof n,f=!1,s=!1,l=(n&&c===W?f=Rt(n):s=n===v||on(c),{type:c,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?a:e,r)},copyTo:function(n,r){return Gt(t,n,r,a)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,c=function(r){ir(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),c(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!an(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Bn(a);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":c)+t(n.replace(r,"\\$1"))+(u?"$":c),e?"i":"")}function ee(n,r){return n[Pr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||ir(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Pr(9)];return r?r(n,t):[n]}var ie=j("split",t),ae=O("split",t,z()?null:oe),ce=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],u=n[a],t=!l(t)&&t<u?t:u;return Un(n,t-e,t)===r}var se=j(U,t),U=j($,t),$=O("includes",t,le),t=$;function le(n,r,t){return sn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return a=!1,c&&c[ye]&&c[ye](),i}function u(){return c=r(c),a||e(),i}function o(){c&&t(c),c=v}var i,a=!0,c=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return c&&c[de]?c[de]():a},n[pe]=function(){return a=!0,c&&c[pe]&&c[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!c},set:function(n){!n&&c&&o(),n&&!c&&u()}}),{h:i,dn:function(){c=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,a=(1<o?t[1]:s)||clearTimeout,c=e[0],f=(e[0]=function(){f.dn(),D(c,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(a,r,[n])}return D(i,r,e)},function(n){D(a,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return un(requestIdleCallback)},!1)).v||!requestIdleCallback)}return n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Cr(n)||zr(n)?Dr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=kr,n.arrFilter=Ar,n.arrFind=$r,n.arrFindIndex=Mr,n.arrFindLast=Vr,n.arrFindLastIndex=qr,n.arrForEach=k,n.arrFrom=X,n.arrIncludes=Jr,n.arrIndexOf=Nr,n.arrLastIndexOf=Lr,n.arrMap=_r,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[a],n={n:function(){return e<=++r}};return ir(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=ct,n.createEnum=function(n){return Sn(n,1,0,xn)},n.createEnumKeyMap=Dn,n.createEnumValueMap=function(n){return Sn(n,1,1,xn)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return ir(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=kn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=kn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||cr(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?cn(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=wr,n.getGlobal=mr,n.getHistory=jr,n.getInst=Sr,n.getIntValue=function(n,r){return y(n)?r:cn(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Pr,n.getLazy=cr,n.getLength=Qt,n.getNavigator=Tr,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(Dr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=Ir,n.hasDocument=function(){return!!wr()},n.hasHistory=function(){return!!jr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Tr()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=Fr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[a];else if(an(r))o=!isNaN(r.getTime());else{if(fn(r))return!0;if(h(r)){try{e=r,k([a,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(fn(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!En(r)[a]}o=dn(r)}return o}(n,0)},n.hasWindow=function(){return!!Ir()},n.isArray=g,n.isArrayBuffer=ln,n.isBlob=L,n.isBoolean=fn,n.isDate=an,n.isDefined=un,n.isError=vn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=zr,n.isIterator=Cr,n.isNode=function(){return(dr=dr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Y(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=cn,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||on(typeof n)},n.isPrimitiveType=on,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=pn,n.isRegExp=sn,n.isStrictNullOrUndefined=en,n.isStrictUndefined=function(n){return!un(n)},n.isString=d,n.isSymbol=xr,n.isThenable=yn,n.isTruthy=dn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(yr=yr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=Dr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Gn,n.mathMin=Q,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Yn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=On,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=xn,n.objDefine=ir,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,ur(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,ur(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=or,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=ur(r)}),or(n,t)},n.objEntries=zn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=Fn,n.objGetOwnPropertyDescriptor=bn,n.objGetPrototypeOf=Cn,n.objHasOwn=gn,n.objHasOwnProperty=hn,n.objKeys=En,n.objSeal=Pn,n.objSetPrototypeOf=ot,n.objToString=tn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Wr,n.polyArrFindIndex=Kr,n.polyArrFindLast=Br,n.polyArrFindLastIndex=Gr,n.polyArrFrom=Hr,n.polyArrIncludes=Rr,n.polyGetKnownSymbol=tr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===tn(n)},n.polyNewSymbol=Yn,n.polyObjEntries=In,n.polyObjHasOwn=mn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)gn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=Mn,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=nr,n.polySymbolKeyFor=rr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Ur=Ur||cr(function(){return Fr()&&Pr(3)}),!gn(n,a)){var e=Ur.v&&n[Ur.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(Dr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Y,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){ar&&ar(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(Dr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ce,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===c:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,c)===c:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Un(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[a];return r<=0?c:r<t?Un(n,t-r):n},n.strSlice=Hn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Vn,n.strSubstr=$n,n.strSubstring=Un,n.strSymSplit=ae,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.symbolKeyFor=function(n){return hr&&(!E.lzy||P.b)||z(),(hr.v||rr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=wn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||ct("UnsupportedError"))(n)},n.utcNow=ft,n}({}); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
this.nevware21=this.nevware21||{},this.nevware21["ts-utils"]=function(n){"use strict";var s=void 0,v=null,a="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",c="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],Q=String,t=Q[f],u=Math,X=Array,i=X[f];function Y(n,r){try{r=n()}catch(n){}return r}var nn=[B,R,L,r,"symbol","bigint"];function rn(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||tn(n)!==r)}}function tn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function en(n){return n===v||!un(n)}function un(n){return!!n||n!==s}function on(n){return n!==W&&!!~nn.indexOf(n)}var d=rn(B),b=rn(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=X.isArray,cn=o("Date"),an=rn(R),fn=rn(L),sn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),ln=o("ArrayBuffer"),vn=o("Error");function pn(n){return!!(n&&n.then&&b(n.then))}var yn=pn;function dn(n){return!(!n||Y(function(){return!(n&&0+n)},!n))}var bn=e.getOwnPropertyDescriptor;function hn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var gn=e.hasOwn||mn;function mn(n,r){return hn(n,r)||!!bn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(gn(n,e)&&-1===r[p](t||n,e,n[e]))break}function Sn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function wn(n){throw new RangeError(n)}function In(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var Tn=e.freeze;function jn(n){return n}var On=e.assign;function En(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function xn(n){return Tn&&m(n,function(n,r){(g(r)||h(r))&&Tn(r)}),Fn(n)}var Fn=Tn||jn,Pn=e.seal||jn,Cn=e.getPrototypeOf||function(n){return n[K]||v},zn=e.entries||In;function Dn(n){return Sn(n,0,0,xn)}function kn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),xn(t)}var An,w,Nn=Dn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Q,Ln="__tsUtils$gblCfg";function _n(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Rn(){var n;return An||(n=_n()||{},An=n[Ln]=n[Ln]||{}),An}function T(n,r){var t=a;if(vn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?an(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return tn(n)+": "+t}function Wn(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Kn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));Wn(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);Wn(e,n)}}function Bn(r){return function(n){return n[r]}}var Q=u.min,Gn=u.max,Hn=j(J,t),Un=j("substring",t),$n=O("substr",t,Mn);function Mn(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?a:((r=r||0)<0&&(r=Gn(r+n[c],0)),l(t)?Hn(n,r):Hn(n,r,r+t))}var Vn=O("startsWith",t,qn);function qn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[c],t=0<t?t:0;return Un(n,t,t+e)===r}var Jn,Zn,Qn="_urid";function Xn(){var n;return Jn||(n=Rn(),Jn=n.gblSym=n.gblSym||{k:{},s:{}}),Jn}function Yn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function nr(n){var r,t,e=Xn();return gn(e.k,n)||(r=Yn(n),t=En(e.s).length,r[Qn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Qn]()]=I(n)),e.k[n]}function rr(n){n&&n.toString&&Vn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Qn]&&n[Qn]();return n?Xn().s[n]:void 0}function tr(n){Zn=Zn||{};n=Nn[n];return n?Zn[n]=Zn[n]||Yn(H+"."+n):void 0}var er={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function ur(r){var n,t={};return t[er.c]=!0,t[er.e]=!0,r.l&&(t.get=function(){return r.l.v},n=bn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[er[n]]=l(r)?t[er[n]]:r}),t}var E,x=e.defineProperty,or=e.defineProperties;function ir(n,r,t){return x(n,r,ur(t))}var cr=function(){E=Rn(),cr=v};function ar(r){var t={};return cr&&cr(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return ar(function(){return Y(n,r)})}var fr,sr,lr,vr,pr,yr,dr,P,br,hr,gr="window";function C(n){return F(function(){return Sr(n)||s},s)}function mr(n){return(fr=!fr||!1===n||E&&E.lzy&&!fr.b?F(_n,v):fr).v}function Sr(n,r){r=fr&&!1!==r?fr.v:mr(r);return r&&r[n]?r[n]:n===gr&&sr?sr.v:v}function wr(){return(lr=!lr||E&&E.lzy&&!lr.b?C("document"):lr).v}function Ir(){return(sr=!sr||E&&E.lzy&&!sr.b?C(gr):sr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("navigator"):vr).v}function jr(){return(pr=!pr||E&&E.lzy&&!pr.b?C("history"):pr).v}function Or(n){return F(function(){return P.v?P.v[n]:s},s)}var Er,xr=rn("symbol");function Fr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),br&&!n||(br=Or("for")),hr&&!n||(hr=Or("keyFor")),P.v}function Pr(n,r){var t=Nn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:tr(n)}function Cr(n){return!!n&&b(n.next)}function zr(n){return!en(n)&&b(n[Pr(3)])}function Dr(r,n,t){if(r&&(Cr(r)||(r=r[(Er=Er||ar(function(){return Pr(3)})).v]?r[Er.v]():null),Cr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Kn("apply"),kr=j("every",i),Ar=j("filter",i);function k(n,r,t){if(n)for(var e=n[c]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Nr=j(U,i),Lr=j($,i),_r=j("map",i),A=j(J,i);function Rr(n,r,t){return-1!==Nr(n,r,t)}function Wr(n,r,t){r=Kr(n,r,t);return-1!==r?n[r]:void 0}function Kr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Br(n,r,t){r=Gr(n,r,t);return-1!==r?n[r]:void 0}function Gr(n,r,t){for(var e=-1,u=(n[c]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Hr(n,t,e){var r,u;return g(n)?(r=A(n),t?_r(r,t,e):r):(u=[],Dr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Ur,$r=O("find",i,Wr),Mr=O("findIndex",i,Kr),Vr=O("findLast",i,Br),qr=O("findLastIndex",i,Gr),X=X.from||Hr,Jr=O("includes",i,Rr),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Kn("bind"),nt=Kn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||ar(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function ct(n,r){try{ir(n,q,{v:r,c:!0,e:!1})}catch(n){}}function at(e,u,n){var r,t,o=n||Error,i=o[f][q],c=Error.captureStackTrace,n=o;return ct(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Cn(n))!==Cn(t)&&ot(t,r),c&&c(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(a[f]=n[f],new a),t;function a(){this.constructor=t,ct(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,a):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,c){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||a;return c&&(e=N(e)),(u||a)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&wn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&wn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=a;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=a,n=(r=Et(r,!0),n[c]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[c]?xt(e,jt(r/e[c])):e)[c]>r?Un(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!Ir()||Ir())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Cn(n),r=(r=!t)||(t=hn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],c={handler:e.handler,src:e.src,path:r},a=typeof n,f=!1,s=!1,l=(n&&a===W?f=Rt(n):s=n===v||on(a),{type:a,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?c:e,r)},copyTo:function(n,r){return Gt(t,n,r,c)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,a=function(r){ir(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),a(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!cn(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Bn(c);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":a)+t(n.replace(r,"\\$1"))+(u?"$":a),e?"i":"")}function ee(n,r){return n[Pr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||ir(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Pr(9)];return r?r(n,t):[n]}var ie=j("split",t),ce=O("split",t,z()?null:oe),ae=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[c],u=n[c],t=!l(t)&&t<u?t:u;return Un(n,t-e,t)===r}var se=j(U,t),U=j($,t),$=O("includes",t,le),t=$;function le(n,r,t){return sn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return c=!1,a&&a[ye]&&a[ye](),i}function u(){return a=r(a),c||e(),i}function o(){a&&t(a),a=v}var i,c=!0,a=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return a&&a[de]?a[de]():c},n[pe]=function(){return c=!0,a&&a[pe]&&a[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!a},set:function(n){!n&&a&&o(),n&&!a&&u()}}),{h:i,dn:function(){a=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,c=(1<o?t[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(c,r,[n])}return D(i,r,e)},function(n){D(c,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return un(requestIdleCallback)},!1)).v||!requestIdleCallback)}return n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Cr(n)||zr(n)?Dr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=kr,n.arrFilter=Ar,n.arrFind=$r,n.arrFindIndex=Mr,n.arrFindLast=Vr,n.arrFindLastIndex=qr,n.arrForEach=k,n.arrFrom=X,n.arrIncludes=Jr,n.arrIndexOf=Nr,n.arrLastIndexOf=Lr,n.arrMap=_r,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[c],n={n:function(){return e<=++r}};return ir(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=at,n.createEnum=function(n){return Sn(n,1,0,xn)},n.createEnumKeyMap=Dn,n.createEnumValueMap=function(n){return Sn(n,1,1,xn)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return ir(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=kn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=kn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||ar(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?an(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=wr,n.getGlobal=mr,n.getHistory=jr,n.getInst=Sr,n.getIntValue=function(n,r){return y(n)?r:an(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Pr,n.getLazy=ar,n.getLength=Qt,n.getNavigator=Tr,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(Dr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=Ir,n.hasDocument=function(){return!!wr()},n.hasHistory=function(){return!!jr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Tr()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=Fr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[c];else if(cn(r))o=!isNaN(r.getTime());else{if(fn(r))return!0;if(h(r)){try{e=r,k([c,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(fn(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!En(r)[c]}o=dn(r)}return o}(n,0)},n.hasWindow=function(){return!!Ir()},n.isArray=g,n.isArrayBuffer=ln,n.isBlob=L,n.isBoolean=fn,n.isDate=cn,n.isDefined=un,n.isError=vn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=zr,n.isIterator=Cr,n.isNode=function(){return(dr=dr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Y(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=an,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||on(typeof n)},n.isPrimitiveType=on,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=pn,n.isRegExp=sn,n.isStrictNullOrUndefined=en,n.isStrictUndefined=function(n){return!un(n)},n.isString=d,n.isSymbol=xr,n.isThenable=yn,n.isTruthy=dn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(yr=yr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=Dr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Gn,n.mathMin=Q,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Yn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=On,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=xn,n.objDefine=ir,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,ur(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,ur(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=or,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=ur(r)}),or(n,t)},n.objEntries=zn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=Fn,n.objGetOwnPropertyDescriptor=bn,n.objGetPrototypeOf=Cn,n.objHasOwn=gn,n.objHasOwnProperty=hn,n.objKeys=En,n.objSeal=Pn,n.objSetPrototypeOf=ot,n.objToString=tn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Wr,n.polyArrFindIndex=Kr,n.polyArrFindLast=Br,n.polyArrFindLastIndex=Gr,n.polyArrFrom=Hr,n.polyArrIncludes=Rr,n.polyGetKnownSymbol=tr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===tn(n)},n.polyNewSymbol=Yn,n.polyObjEntries=In,n.polyObjHasOwn=mn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)gn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=Mn,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=nr,n.polySymbolKeyFor=rr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Ur=Ur||ar(function(){return Fr()&&Pr(3)}),!gn(n,c)){var e=Ur.v&&n[Ur.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(Dr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Y,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){cr&&cr(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(Dr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ae,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===a:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,a)===a:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Un(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[c];return r<=0?a:r<t?Un(n,t-r):n},n.strSlice=Hn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Vn,n.strSubstr=$n,n.strSubstring=Un,n.strSymSplit=ce,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.symbolKeyFor=function(n){return hr&&(!E.lzy||P.b)||z(),(hr.v||rr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=wn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||at("UnsupportedError"))(n)},n.utcNow=ft,n}({}); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
function n(n){"use strict";var s=void 0,v=null,c="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",a="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],t=(Kn=String)[f],u=Math,i=(qr=Array)[f];function Q(n,r){try{r=n()}catch(n){}return r}var X=[B,R,L,r,"symbol","bigint"];function Y(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||nn(n)!==r)}}function nn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function rn(n){return n===v||!tn(n)}function tn(n){return!!n||n!==s}function en(n){return n!==W&&!!~X.indexOf(n)}var d=Y(B),b=Y(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=qr.isArray,un=o("Date"),on=Y(R),an=Y(L),cn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),fn=o("ArrayBuffer"),sn=o("Error");function ln(n){return!!(n&&n.then&&b(n.then))}var vn=ln;function pn(n){return!(!n||Q(function(){return!(n&&0+n)},!n))}var yn=e.getOwnPropertyDescriptor;function dn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var bn=e.hasOwn||hn;function hn(n,r){return dn(n,r)||!!yn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(bn(n,e)&&-1===r[p](t||n,e,n[e]))break}function gn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function mn(n){throw new RangeError(n)}function Sn(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var wn=e.freeze;function In(n){return n}var Tn=e.assign;function jn(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function On(n){return wn&&m(n,function(n,r){(g(r)||h(r))&&wn(r)}),En(n)}var En=wn||In,xn=e.seal||In,Fn=e.getPrototypeOf||function(n){return n[K]||v},Pn=e.entries||Sn;function Cn(n){return gn(n,0,0,On)}function zn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),On(t)}var Dn,w,kn=Cn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Kn,An="__tsUtils$gblCfg";function Nn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Ln(){var n;return Dn||(n=Nn()||{},Dn=n[An]=n[An]||{}),Dn}function T(n,r){var t=c;if(sn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return nn(n)+": "+t}function _n(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Rn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));_n(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);_n(e,n)}}function Wn(r){return function(n){return n[r]}}var Kn=u.min,Bn=u.max,Gn=j(J,t),Hn=j("substring",t),Un=O("substr",t,$n);function $n(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?c:((r=r||0)<0&&(r=Bn(r+n[a],0)),l(t)?Gn(n,r):Gn(n,r,r+t))}var Mn=O("startsWith",t,Vn);function Vn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],t=0<t?t:0;return Hn(n,t,t+e)===r}var qn,Jn="_urid";function Zn(){var n;return qn||(n=Ln(),qn=n.gblSym=n.gblSym||{k:{},s:{}}),qn}var Qn={};function Xn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function Yn(n){var r,t,e=Zn();return bn(e.k,n)||(r=Xn(n),t=jn(e.s).length,r[Jn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Jn]()]=I(n)),e.k[n]}function nr(n){n&&n.toString&&Mn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Jn]&&n[Jn]();return n?Zn().s[n]:void 0}function rr(n){n=kn[n];return n?Qn[n]=Qn[n]||Xn(H+"."+n):void 0}var tr={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function er(r){var n,t={};return t[tr.c]=!0,t[tr.e]=!0,r.l&&(t.get=function(){return r.l.v},n=yn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[tr[n]]=l(r)?t[tr[n]]:r}),t}var E,x=e.defineProperty,ur=e.defineProperties;function or(n,r,t){return x(n,r,er(t))}var ir=function(){E=Ln(),ir=v};function ar(r){var t={};return ir&&ir(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return ar(function(){return Q(n,r)})}var cr,fr,sr,lr,vr,pr,yr,P,dr,br,hr="window";function C(n){return F(function(){return mr(n)||s},s)}function gr(n){return(cr=!cr||!1===n||E&&E.lzy&&!cr.b?F(Nn,v):cr).v}function mr(n,r){r=cr&&!1!==r?cr.v:gr(r);return r&&r[n]?r[n]:n===hr&&fr?fr.v:v}function Sr(){return(sr=!sr||E&&E.lzy&&!sr.b?C("document"):sr).v}function wr(){return(fr=!fr||E&&E.lzy&&!fr.b?C(hr):fr).v}function Ir(){return(lr=!lr||E&&E.lzy&&!lr.b?C("navigator"):lr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("history"):vr).v}function jr(n){return F(function(){return P.v?P.v[n]:s},s)}var Or,Er=Y("symbol");function xr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),dr&&!n||(dr=jr("for")),br&&!n||(br=jr("keyFor")),P.v}function Fr(n,r){var t=kn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:rr(n)}function Pr(n){return!!n&&b(n.next)}function Cr(n){return!rn(n)&&b(n[Fr(3)])}function zr(r,n,t){if(r&&(Pr(r)||(r=r[(Or=Or||ar(function(){return Fr(3)})).v]?r[Or.v]():null),Pr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Rn("apply"),Dr=j("every",i),kr=j("filter",i);function k(n,r,t){if(n)for(var e=n[a]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Ar=j(U,i),Nr=j($,i),Lr=j("map",i),A=j(J,i);function _r(n,r,t){return-1!==Ar(n,r,t)}function Rr(n,r,t){r=Wr(n,r,t);return-1!==r?n[r]:void 0}function Wr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Kr(n,r,t){r=Br(n,r,t);return-1!==r?n[r]:void 0}function Br(n,r,t){for(var e=-1,u=(n[a]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Gr(n,t,e){var r,u;return g(n)?(r=A(n),t?Lr(r,t,e):r):(u=[],zr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Hr,Ur=O("find",i,Rr),$r=O("findIndex",i,Wr),Mr=O("findLast",i,Kr),Vr=O("findLastIndex",i,Br),qr=qr.from||Gr,Jr=O("includes",i,_r),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Rn("bind"),nt=Rn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||ar(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function at(n,r){try{or(n,q,{v:r,c:!0,e:!1})}catch(n){}}function ct(e,u,n){var r,t,o=n||Error,i=o[f][q],a=Error.captureStackTrace,n=o;return at(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Fn(n))!==Fn(t)&&ot(t,r),a&&a(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(c[f]=n[f],new c),t;function c(){this.constructor=t,at(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,c):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,a){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||c;return a&&(e=N(e)),(u||c)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&mn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&mn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=c;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=c,n=(r=Et(r,!0),n[a]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[a]?xt(e,jt(r/e[a])):e)[a]>r?Hn(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!wr()||wr())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Fn(n),r=(r=!t)||(t=dn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],a={handler:e.handler,src:e.src,path:r},c=typeof n,f=!1,s=!1,l=(n&&c===W?f=Rt(n):s=n===v||en(c),{type:c,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?a:e,r)},copyTo:function(n,r){return Gt(t,n,r,a)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,c=function(r){or(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),c(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!un(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Wn(a);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":c)+t(n.replace(r,"\\$1"))+(u?"$":c),e?"i":"")}function ee(n,r){return n[Fr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||or(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Fr(9)];return r?r(n,t):[n]}var ie=j("split",t),ae=O("split",t,z()?null:oe),ce=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],u=n[a],t=!l(t)&&t<u?t:u;return Hn(n,t-e,t)===r}var se=j(U,t),U=j($,t),t=$=O("includes",t,le);function le(n,r,t){return cn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return a=!1,c&&c[ye]&&c[ye](),i}function u(){return c=r(c),a||e(),i}function o(){c&&t(c),c=v}var i,a=!0,c=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return c&&c[de]?c[de]():a},n[pe]=function(){return a=!0,c&&c[pe]&&c[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!c},set:function(n){!n&&c&&o(),n&&!c&&u()}}),{h:i,dn:function(){c=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,a=(1<o?t[1]:s)||clearTimeout,c=e[0],f=(e[0]=function(){f.dn(),D(c,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(a,r,[n])}return D(i,r,e)},function(n){D(a,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return tn(requestIdleCallback)},!1)).v||!requestIdleCallback)}n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Pr(n)||Cr(n)?zr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=Dr,n.arrFilter=kr,n.arrFind=Ur,n.arrFindIndex=$r,n.arrFindLast=Mr,n.arrFindLastIndex=Vr,n.arrForEach=k,n.arrFrom=qr,n.arrIncludes=Jr,n.arrIndexOf=Ar,n.arrLastIndexOf=Nr,n.arrMap=Lr,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[a],n={n:function(){return e<=++r}};return or(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=ct,n.createEnum=function(n){return gn(n,1,0,On)},n.createEnumKeyMap=Cn,n.createEnumValueMap=function(n){return gn(n,1,1,On)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return or(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=zn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=zn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||ar(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=Sr,n.getGlobal=gr,n.getHistory=Tr,n.getInst=mr,n.getIntValue=function(n,r){return y(n)?r:on(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Fr,n.getLazy=ar,n.getLength=Qt,n.getNavigator=Ir,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(zr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=wr,n.hasDocument=function(){return!!Sr()},n.hasHistory=function(){return!!Tr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Ir()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=xr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[a];else if(un(r))o=!isNaN(r.getTime());else{if(an(r))return!0;if(h(r)){try{e=r,k([a,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(an(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!jn(r)[a]}o=pn(r)}return o}(n,0)},n.hasWindow=function(){return!!wr()},n.isArray=g,n.isArrayBuffer=fn,n.isBlob=L,n.isBoolean=an,n.isDate=un,n.isDefined=tn,n.isError=sn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=Cr,n.isIterator=Pr,n.isNode=function(){return(yr=yr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Q(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=on,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||en(typeof n)},n.isPrimitiveType=en,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=ln,n.isRegExp=cn,n.isStrictNullOrUndefined=rn,n.isStrictUndefined=function(n){return!tn(n)},n.isString=d,n.isSymbol=Er,n.isThenable=vn,n.isTruthy=pn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(pr=pr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=zr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Bn,n.mathMin=Kn,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Xn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=Tn,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=On,n.objDefine=or,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,er(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,er(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=ur,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=er(r)}),ur(n,t)},n.objEntries=Pn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=En,n.objGetOwnPropertyDescriptor=yn,n.objGetPrototypeOf=Fn,n.objHasOwn=bn,n.objHasOwnProperty=dn,n.objKeys=jn,n.objSeal=xn,n.objSetPrototypeOf=ot,n.objToString=nn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Rr,n.polyArrFindIndex=Wr,n.polyArrFindLast=Kr,n.polyArrFindLastIndex=Br,n.polyArrFrom=Gr,n.polyArrIncludes=_r,n.polyGetKnownSymbol=rr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===nn(n)},n.polyNewSymbol=Xn,n.polyObjEntries=Sn,n.polyObjHasOwn=hn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)bn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=$n,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=Yn,n.polySymbolKeyFor=nr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Hr=Hr||ar(function(){return xr()&&Fr(3)}),!bn(n,a)){var e=Hr.v&&n[Hr.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(zr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Q,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){ir&&ir(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(zr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ce,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===c:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,c)===c:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Hn(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[a];return r<=0?c:r<t?Hn(n,t-r):n},n.strSlice=Gn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Mn,n.strSubstr=Un,n.strSubstring=Hn,n.strSymSplit=ae,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return dr&&(!E.lzy||P.b)||z(),(dr.v||Yn)(n)},n.symbolKeyFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=mn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||ct("UnsupportedError"))(n)},n.utcNow=ft}var r=this;"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((r="undefined"!=typeof globalThis?globalThis:r||self).nevware21=r.nevware21||{},r.nevware21["ts-utils"]={})); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
function n(n){"use strict";var s=void 0,v=null,c="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",a="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],t=(Kn=String)[f],u=Math,i=(qr=Array)[f];function Q(n,r){try{r=n()}catch(n){}return r}var X=[B,R,L,r,"symbol","bigint"];function Y(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||nn(n)!==r)}}function nn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function rn(n){return n===v||!tn(n)}function tn(n){return!!n||n!==s}function en(n){return n!==W&&!!~X.indexOf(n)}var d=Y(B),b=Y(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=qr.isArray,un=o("Date"),on=Y(R),an=Y(L),cn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),fn=o("ArrayBuffer"),sn=o("Error");function ln(n){return!!(n&&n.then&&b(n.then))}var vn=ln;function pn(n){return!(!n||Q(function(){return!(n&&0+n)},!n))}var yn=e.getOwnPropertyDescriptor;function dn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var bn=e.hasOwn||hn;function hn(n,r){return dn(n,r)||!!yn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(bn(n,e)&&-1===r[p](t||n,e,n[e]))break}function gn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function mn(n){throw new RangeError(n)}function Sn(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var wn=e.freeze;function In(n){return n}var Tn=e.assign;function jn(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function On(n){return wn&&m(n,function(n,r){(g(r)||h(r))&&wn(r)}),En(n)}var En=wn||In,xn=e.seal||In,Fn=e.getPrototypeOf||function(n){return n[K]||v},Pn=e.entries||Sn;function Cn(n){return gn(n,0,0,On)}function zn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),On(t)}var Dn,w,kn=Cn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Kn,An="__tsUtils$gblCfg";function Nn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Ln(){var n;return Dn||(n=Nn()||{},Dn=n[An]=n[An]||{}),Dn}function T(n,r){var t=c;if(sn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return nn(n)+": "+t}function _n(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Rn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));_n(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);_n(e,n)}}function Wn(r){return function(n){return n[r]}}var Kn=u.min,Bn=u.max,Gn=j(J,t),Hn=j("substring",t),Un=O("substr",t,$n);function $n(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?c:((r=r||0)<0&&(r=Bn(r+n[a],0)),l(t)?Gn(n,r):Gn(n,r,r+t))}var Mn=O("startsWith",t,Vn);function Vn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],t=0<t?t:0;return Hn(n,t,t+e)===r}var qn,Jn,Zn="_urid";function Qn(){var n;return qn||(n=Ln(),qn=n.gblSym=n.gblSym||{k:{},s:{}}),qn}function Xn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function Yn(n){var r,t,e=Qn();return bn(e.k,n)||(r=Xn(n),t=jn(e.s).length,r[Zn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Zn]()]=I(n)),e.k[n]}function nr(n){n&&n.toString&&Mn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Zn]&&n[Zn]();return n?Qn().s[n]:void 0}function rr(n){Jn=Jn||{};n=kn[n];return n?Jn[n]=Jn[n]||Xn(H+"."+n):void 0}var tr={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function er(r){var n,t={};return t[tr.c]=!0,t[tr.e]=!0,r.l&&(t.get=function(){return r.l.v},n=yn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[tr[n]]=l(r)?t[tr[n]]:r}),t}var E,x=e.defineProperty,ur=e.defineProperties;function or(n,r,t){return x(n,r,er(t))}var ir=function(){E=Ln(),ir=v};function ar(r){var t={};return ir&&ir(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return ar(function(){return Q(n,r)})}var cr,fr,sr,lr,vr,pr,yr,P,dr,br,hr="window";function C(n){return F(function(){return mr(n)||s},s)}function gr(n){return(cr=!cr||!1===n||E&&E.lzy&&!cr.b?F(Nn,v):cr).v}function mr(n,r){r=cr&&!1!==r?cr.v:gr(r);return r&&r[n]?r[n]:n===hr&&fr?fr.v:v}function Sr(){return(sr=!sr||E&&E.lzy&&!sr.b?C("document"):sr).v}function wr(){return(fr=!fr||E&&E.lzy&&!fr.b?C(hr):fr).v}function Ir(){return(lr=!lr||E&&E.lzy&&!lr.b?C("navigator"):lr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("history"):vr).v}function jr(n){return F(function(){return P.v?P.v[n]:s},s)}var Or,Er=Y("symbol");function xr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),dr&&!n||(dr=jr("for")),br&&!n||(br=jr("keyFor")),P.v}function Fr(n,r){var t=kn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:rr(n)}function Pr(n){return!!n&&b(n.next)}function Cr(n){return!rn(n)&&b(n[Fr(3)])}function zr(r,n,t){if(r&&(Pr(r)||(r=r[(Or=Or||ar(function(){return Fr(3)})).v]?r[Or.v]():null),Pr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Rn("apply"),Dr=j("every",i),kr=j("filter",i);function k(n,r,t){if(n)for(var e=n[a]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Ar=j(U,i),Nr=j($,i),Lr=j("map",i),A=j(J,i);function _r(n,r,t){return-1!==Ar(n,r,t)}function Rr(n,r,t){r=Wr(n,r,t);return-1!==r?n[r]:void 0}function Wr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Kr(n,r,t){r=Br(n,r,t);return-1!==r?n[r]:void 0}function Br(n,r,t){for(var e=-1,u=(n[a]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Gr(n,t,e){var r,u;return g(n)?(r=A(n),t?Lr(r,t,e):r):(u=[],zr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Hr,Ur=O("find",i,Rr),$r=O("findIndex",i,Wr),Mr=O("findLast",i,Kr),Vr=O("findLastIndex",i,Br),qr=qr.from||Gr,Jr=O("includes",i,_r),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Rn("bind"),nt=Rn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||ar(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function at(n,r){try{or(n,q,{v:r,c:!0,e:!1})}catch(n){}}function ct(e,u,n){var r,t,o=n||Error,i=o[f][q],a=Error.captureStackTrace,n=o;return at(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Fn(n))!==Fn(t)&&ot(t,r),a&&a(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(c[f]=n[f],new c),t;function c(){this.constructor=t,at(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,c):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,a){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||c;return a&&(e=N(e)),(u||c)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&mn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&mn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=c;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=c,n=(r=Et(r,!0),n[a]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[a]?xt(e,jt(r/e[a])):e)[a]>r?Hn(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!wr()||wr())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Fn(n),r=(r=!t)||(t=dn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],a={handler:e.handler,src:e.src,path:r},c=typeof n,f=!1,s=!1,l=(n&&c===W?f=Rt(n):s=n===v||en(c),{type:c,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?a:e,r)},copyTo:function(n,r){return Gt(t,n,r,a)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,c=function(r){or(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),c(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!un(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Wn(a);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":c)+t(n.replace(r,"\\$1"))+(u?"$":c),e?"i":"")}function ee(n,r){return n[Fr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||or(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Fr(9)];return r?r(n,t):[n]}var ie=j("split",t),ae=O("split",t,z()?null:oe),ce=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],u=n[a],t=!l(t)&&t<u?t:u;return Hn(n,t-e,t)===r}var se=j(U,t),U=j($,t),t=$=O("includes",t,le);function le(n,r,t){return cn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return a=!1,c&&c[ye]&&c[ye](),i}function u(){return c=r(c),a||e(),i}function o(){c&&t(c),c=v}var i,a=!0,c=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return c&&c[de]?c[de]():a},n[pe]=function(){return a=!0,c&&c[pe]&&c[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!c},set:function(n){!n&&c&&o(),n&&!c&&u()}}),{h:i,dn:function(){c=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,a=(1<o?t[1]:s)||clearTimeout,c=e[0],f=(e[0]=function(){f.dn(),D(c,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(a,r,[n])}return D(i,r,e)},function(n){D(a,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return tn(requestIdleCallback)},!1)).v||!requestIdleCallback)}n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Pr(n)||Cr(n)?zr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=Dr,n.arrFilter=kr,n.arrFind=Ur,n.arrFindIndex=$r,n.arrFindLast=Mr,n.arrFindLastIndex=Vr,n.arrForEach=k,n.arrFrom=qr,n.arrIncludes=Jr,n.arrIndexOf=Ar,n.arrLastIndexOf=Nr,n.arrMap=Lr,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[a],n={n:function(){return e<=++r}};return or(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=ct,n.createEnum=function(n){return gn(n,1,0,On)},n.createEnumKeyMap=Cn,n.createEnumValueMap=function(n){return gn(n,1,1,On)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return or(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=zn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=zn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||ar(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=Sr,n.getGlobal=gr,n.getHistory=Tr,n.getInst=mr,n.getIntValue=function(n,r){return y(n)?r:on(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Fr,n.getLazy=ar,n.getLength=Qt,n.getNavigator=Ir,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(zr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=wr,n.hasDocument=function(){return!!Sr()},n.hasHistory=function(){return!!Tr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Ir()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=xr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[a];else if(un(r))o=!isNaN(r.getTime());else{if(an(r))return!0;if(h(r)){try{e=r,k([a,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(an(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!jn(r)[a]}o=pn(r)}return o}(n,0)},n.hasWindow=function(){return!!wr()},n.isArray=g,n.isArrayBuffer=fn,n.isBlob=L,n.isBoolean=an,n.isDate=un,n.isDefined=tn,n.isError=sn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=Cr,n.isIterator=Pr,n.isNode=function(){return(yr=yr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Q(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=on,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||en(typeof n)},n.isPrimitiveType=en,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=ln,n.isRegExp=cn,n.isStrictNullOrUndefined=rn,n.isStrictUndefined=function(n){return!tn(n)},n.isString=d,n.isSymbol=Er,n.isThenable=vn,n.isTruthy=pn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(pr=pr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=zr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Bn,n.mathMin=Kn,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Xn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=Tn,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=On,n.objDefine=or,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,er(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,er(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=ur,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=er(r)}),ur(n,t)},n.objEntries=Pn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=En,n.objGetOwnPropertyDescriptor=yn,n.objGetPrototypeOf=Fn,n.objHasOwn=bn,n.objHasOwnProperty=dn,n.objKeys=jn,n.objSeal=xn,n.objSetPrototypeOf=ot,n.objToString=nn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Rr,n.polyArrFindIndex=Wr,n.polyArrFindLast=Kr,n.polyArrFindLastIndex=Br,n.polyArrFrom=Gr,n.polyArrIncludes=_r,n.polyGetKnownSymbol=rr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===nn(n)},n.polyNewSymbol=Xn,n.polyObjEntries=Sn,n.polyObjHasOwn=hn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)bn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=$n,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=Yn,n.polySymbolKeyFor=nr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Hr=Hr||ar(function(){return xr()&&Fr(3)}),!bn(n,a)){var e=Hr.v&&n[Hr.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(zr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Q,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){ir&&ir(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(zr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ce,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===c:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,c)===c:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Hn(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[a];return r<=0?c:r<t?Hn(n,t-r):n},n.strSlice=Gn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Mn,n.strSubstr=Un,n.strSubstring=Hn,n.strSymSplit=ae,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return dr&&(!E.lzy||P.b)||z(),(dr.v||Yn)(n)},n.symbolKeyFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=mn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||ct("UnsupportedError"))(n)},n.utcNow=ft}var r=this;"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((r="undefined"!=typeof globalThis?globalThis:r||self).nevware21=r.nevware21||{},r.nevware21["ts-utils"]={})); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
System.register("nevware21.ts-utils",[],function(Zt){"use strict";return{execute:function(){Zt({arrAppend:function(r,n){return!o(n)&&r&&(h(n)?k(r.push,r,n):Ir(n)||Tr(n)?jr(n,function(n){r.push(n)}):r.push(n)),r},arrForEach:A,arrayDeepCopyHandler:wt,createArrayIterator:function(n){var r=-1,t=n?n.slice():[],e=t[c],n={n:function(){return e<=++r}};return E(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),kt(n)},createCustomError:Gr,createEnum:function(n){return Sn(n,1,0,En)},createEnumKeyMap:Pn,createEnumValueMap:function(n){return Sn(n,1,1,En)},createFilenameRegex:function(n,r,t){return zt(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?Pt:Ct})},!!r,t)},createFnDeferredProxy:Nr,createIterable:function(n){return Dt({},n)},createIterator:kt,createProxyFuncs:function(t,e,n){var u;return t&&e&&h(n)&&(u=d(e),A(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?Nr(e,n.n):Ar(e[n.n],e))})),t},createRangeIterator:function(n,r,t){var e=n,u=s,o=(l(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return E(t,"v",{g:function(){return u}}),kt(t)},createSimpleMap:Cn,createTimeout:function(n,r){return $t(this,!1,s,N(arguments))},createTimeoutWith:function(n,r,t){return $t(this,!1,n,N(arguments,1))},createTypeMap:Cn,createWildcardRegex:function(n,r,t){return zt(w(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,Pt)},!!r,t)},dateDeepCopyHandler:It,deepExtend:function(n,r,t,e,u,o,i){return Ot(St(n)||{},N(arguments))},dumpObj:I,elapsedTime:Ft,encodeAsHtml:function(n){return ct=ct||x(function(){var n={"&":"amp","<":"lt",">":"gt"};return n[lt]="quot",n["'"]="#39",n}),w(n).replace(/[&<>"']/g,function(n){return"&"+ct.v[n]+";"})},encodeAsJson:function(n,r){var t;if(y(n))t=lt+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return n===lt||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+ut(Vr(n),4,"0"))})+lt;else try{t=JSON.stringify(n,v,r?sn(r)?r:4:s)}catch(n){t=lt+I(n)+lt}return t},functionDeepCopyHandler:Tt,getDocument:dr,getGlobal:pr,getHistory:gr,getInst:yr,getIntValue:function(n,r){return l(n)?r:sn(n)?n:isNaN(n=parseInt(n,10))?r:n},getKnownSymbol:wr,getLazy:x,getNavigator:hr,getPerformance:Et,getSymbol:D,getValueByIter:function(r,n,t){return n&&r&&(jr(n,function(n){if(l(r))return-1;r=r[n]}),!l(r))?r:t},getValueByKey:function(n,r,t){if(!r||!n)return t;for(var e=Nt(r,"."),u=e.length,o=0;o<u&&!l(n);o++)n=n[e[o]];return l(n)?t:n},getWindow:br,hasDocument:function(){return!!dr()},hasHistory:function(){return!!gr()},hasIdleCallback:Jt,hasNavigator:function(){return!!hr()},hasPerformance:function(){return!!Et()},hasSymbol:Sr,hasValue:function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!l(r))if(h(r))o=0<r[c];else if(fn(r))o=!isNaN(r.getTime());else{if(ln(r))return!0;if(b(r)){try{e=r,A([c,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(d(n)?n():n),-1});var i=u;if(ln(i))return i;if(d(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!On(r)[c]}o=dn(r)}return o}(n,0)},hasWindow:function(){return!!br()},isDefined:cn,isIterable:Tr,isIterator:Ir,isNode:function(){return(ar=ar||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},isNotTruthy:function(n){return!n||!rn(function(){return n&&0+n},n)},isNullOrUndefined:l,isObject:b,isPlainObject:pt,isPrimitive:function(n){return n===v||an(typeof n)},isPrimitiveType:an,isPromise:function(n){return!!(n&&n.then&&n.catch&&d(n.then)&&d(n.catch))},isPromiseLike:yn,isStrictNullOrUndefined:on,isStrictUndefined:function(n){return!cn(n)},isTruthy:dn,isTypeof:function(n,r){return typeof n===r},isUndefined:o,isWebWorker:function(){return(cr=cr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},iterForOf:jr,lazySafeGetInst:z,makeGlobRegex:function(n,r,t){return zt(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?Pt:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},makeIterable:Dt,mathToInt:nt,newSymbol:function(n,r){return C&&(!j.lzy||C.b)||D(),C.v?C.v(n):r?v:Jn(n)},normalizeJsName:function(n,r){n=w(n).replace(vt,"_");return o(r)?n:Zr(n,!r)},objCopyProps:mt,objDeepCopy:St,objDeepFreeze:En,objDefine:E,objDefineAccessors:function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),O(n,r,nr(o))},objDefineGet:function(n,r,t,e,u){return O(n,r,nr(((n={e:u,c:e})[d(t)?"g":"v"]=t,n)))},objDefineProps:function(n,r){var t={};return g(r,function(n,r){t[n]=nr(r)}),rr(n,t)},objExtend:function(n,r,t,e,u,o,i){return Ot(n||{},N(arguments))},objForEachKey:g,objHasOwnProperty:hn,objKeys:On,objSetPrototypeOf:_r,objToString:un,perfNow:xt,plainObjDeepCopyHandler:jt,polyArrFind:Fr,polyArrFindIndex:Pr,polyArrFindLast:Cr,polyArrFindLastIndex:zr,polyArrFrom:Dr,polyArrIncludes:xr,polyGetKnownSymbol:Xn,polyIsArray:function(n){return!l(n)&&"[object Array]"===un(n)},polyNewSymbol:Jn,polyObjEntries:In,polyObjHasOwn:mn,polyObjKeys:function(n){if(!b(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)gn(n,r)&&t.push(r);return t},polyStrIncludes:_t,polyStrSubstr:Gn,polyStrSymSplit:At,polySymbolFor:Zn,polySymbolKeyFor:Qn,polyUtcNow:Ur,readArgs:function(n,r,t){if(kr=kr||x(function(){return Sr()&&wr(3)}),!gn(n,c)){var e=kr.v&&n[kr.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(jr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return N(n,r,t)},safeGet:rn,safeGetLazy:F,scheduleIdleCallback:function(r,t){function e(n){var r=xt();return{didTimeout:n,timeRemaining:function(){return qt-Ft(r)}}}var u,n;return Jt()?(u=Ut(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:Mt(function(){r(e(!0))},o(n=(t||{}).timeout)?Vt:n)},scheduleInterval:function(n,r){var t=this,e=N(arguments);return Ut(!0,function(n){return n&&clearInterval(n),k(setInterval,t,e)},function(n){k(clearInterval,t,[n])}).h},scheduleTimeout:Mt,scheduleTimeoutWith:function(n,r,t){return $t(this,!0,n,N(arguments,1))},setBypassLazyCache:function(n){tr&&tr(),j.lzy=n},setDefaultIdleTimeout:function(n){Vt=n},setDefaultMaxExecutionTime:function(n){qt=n},setValueByIter:function(r,n,t){var e;r&&n&&(jr(n,function(n){e&&(l(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},setValueByKey:function(r,n,t){var e;r&&n&&(e=(n=Nt(n,".")).pop(),A(n,function(n){l(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},strCamelCase:Zr,strIsNullOrEmpty:function(n){return y(n)?n===a:l(n)},strIsNullOrWhiteSpace:function(n){return y(n)?n.replace(/[\s\t\r\n\f]+/g,a)===a:l(n)},strKebabCase:function(n,r){n=Jr(n,"-");return(r?Vr:qr)(n)},strLeft:function(n,r){return Bn(n,0,r)},strLetterCase:function(n){return w(n).replace(/(_|\b)\w/g,Vr)},strRight:function(n,r){var t=n[c];return r<=0?a:r<t?Bn(n,t-r):n},strSnakeCase:function(n,r){n=Jr(n,"_");return(r?Vr:qr)(n)},symbolFor:function(n){return fr&&(!j.lzy||C.b)||D(),(fr.v||Zn)(n)},symbolKeyFor:function(n){return sr&&(!j.lzy||C.b)||D(),(sr.v||Qn)(n)},throwError:function(n){throw Error(n)},throwRangeError:wn,throwTypeError:m,throwUnsupported:function(n){throw new(Wr=Wr||Gr("UnsupportedError"))(n)},utcNow:Hr});var s=void 0,v=null,a="",L="boolean",R="function",_="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="_polyfill",$="indexOf",M="lastIndexOf",c="length",V="done",q="value",J="name",Z="slice",p="call",e=Object,Q=e[f],X=String,n=X[f],Y=Math,nn=Array,i=nn[f];function rn(n,r){try{r=n()}catch(n){}return r}var tn=[B,_,L,r,"symbol","bigint"];function en(r){return function(n){return typeof n===r}}function t(n){var r="[object "+n+"]";return function(n){return!(!n||un(n)!==r)}}function un(n){return Q.toString[p](n)}function o(n){return typeof n===r||n===r}function l(n){return n===v||o(n)}function on(n){return n===v||!cn(n)}function cn(n){return!!n||n!==s}function an(n){return n!==W&&!!~tn.indexOf(n)}var y=Zt("isString",en(B)),d=Zt("isFunction",en(R));function b(n){return!(!n&&l(n)||!n||typeof n!==W)}var h=Zt("isArray",nn.isArray),fn=Zt("isDate",t("Date")),sn=Zt("isNumber",en(_)),ln=Zt("isBoolean",en(L)),vn=Zt("isRegExp",t("RegExp")),pn=(Zt("isFile",t("File")),Zt("isFormData",t("FormData")),Zt("isBlob",t("Blob")),Zt("isArrayBuffer",t("ArrayBuffer")),Zt("isError",t("Error")));function yn(n){return!!(n&&n.then&&d(n.then))}function dn(n){return!(!n||rn(function(){return!(n&&0+n)},!n))}Zt("isThenable",yn);var bn=Zt("objGetOwnPropertyDescriptor",e.getOwnPropertyDescriptor);function hn(n,r){return n&&Q.hasOwnProperty[p](n,r)}var gn=Zt("objHasOwn",e.hasOwn||mn);function mn(n,r){return hn(n,r)||!!bn(n,r)}function g(n,r,t){if(n&&b(n))for(var e in n)if(gn(n,e)&&-1===r[p](t||n,e,n[e]))break}function Sn(n,t,e,r){var u={};return g(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function m(n){throw new TypeError(n)}function wn(n){throw new RangeError(n)}function In(n){var t=[];return g(n,function(n,r){t.push([n,r])}),t}var Tn=e.freeze;function jn(n){return n}function On(n){return b(n)&&n!==v||m("objKeys called on non-object"),e.keys(n)}function En(n){return Tn&&g(n,function(n,r){(h(r)||b(r))&&Tn(r)}),xn(n)}Zt("objAssign",e.assign);var xn=Zt("objFreeze",Tn||jn),Fn=(Zt("objSeal",e.seal||jn),Zt("objGetPrototypeOf",e.getPrototypeOf||function(n){return n[K]||v}));function Pn(n){return Sn(n,0,0,En)}function Cn(n){var t={};return g(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),En(t)}Zt("objEntries",e.entries||In);var zn,S,Dn=Pn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Zt("asString",X),kn="__tsUtils$gblCfg";function An(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Nn(){var n;return zn||(n=An()||{},zn=n[kn]=n[kn]||{}),zn}function I(n,r){var t=a;if(pn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?sn(r)?r:4:s)}catch(n){t=" - "+I(n,r)}return un(n)+": "+t}function Ln(n,r){m("'"+w(n)+"' not defined for "+I(r))}function Rn(r){return S=S||i[Z],function(n){return n[r].apply(n,S[p](arguments,1))}}function u(t,n){S=S||i[Z];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,S[p](arguments,1));Ln(t,n)}}function T(e,n,u){S=S||i[Z];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?S[p](r,1):r);Ln(e,n)}}function _n(r){return function(n){return n[r]}}Zt("mathMin",Y.min);var Wn=Zt("mathMax",Y.max),Kn=Zt("strSlice",u(Z,n)),Bn=Zt("strSubstring",u("substring",n));function Gn(n,r,t){return l(n)&&m("'polyStrSubstr called with invalid "+I(n)),t<0?a:((r=r||0)<0&&(r=Wn(r+n[c],0)),o(t)?Kn(n,r):Kn(n,r,r+t))}Zt("strSubstr",T("substr",n,Gn));var Hn=Zt("strStartsWith",T("startsWith",n,Un));function Un(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[c],t=0<t?t:0;return Bn(n,t,t+e)===r}var $n,Mn="_urid";function Vn(){var n;return $n||(n=Nn(),$n=n.gblSym=n.gblSym||{k:{},s:{}}),$n}var qn={};function Jn(n){var r={description:w(n),toString:function(){return H+"("+n+")"}};return r[U]=!0,r}function Zn(n){var r,t,e=Vn();return gn(e.k,n)||(r=Jn(n),t=On(e.s).length,r[Mn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Mn]()]=w(n)),e.k[n]}function Qn(n){n&&n.toString&&Hn(n.toString(),H)||m(n+" is not a symbol");n=n[U]&&n[Mn]&&n[Mn]();return n?Vn().s[n]:void 0}function Xn(n){n=Dn[n];return n?qn[n]=qn[n]||Jn(H+"."+n):void 0}var Yn={e:"enumerable",c:"configurable",v:q,w:"writable",g:"get",s:"set"};function nr(r){var n,t={};return t[Yn.c]=!0,t[Yn.e]=!0,r.l&&(t.get=function(){return r.l.v},n=bn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),g(r,function(n,r){t[Yn[n]]=o(r)?t[Yn[n]]:r}),t}var j,O=Zt("objDefineProp",e.defineProperty),rr=Zt("objDefineProperties",e.defineProperties);function E(n,r,t){return O(n,r,nr(t))}var tr=function(){j=Nn(),tr=v};function x(r){var t={};return tr&&tr(),t.b=j.lzy,O(t,"v",{configurable:!0,get:function(){var n=r();return j.lzy||(O(t,"v",{value:n}),t.b&&delete t.b),j.lzy&&t.b!==j.lzy&&(t.b=j.lzy),n}}),t}function F(n,r){return x(function(){return rn(n,r)})}var P,er,ur,or,ir,cr,ar,C,fr,sr,lr,vr="window";function z(n){return F(function(){return yr(n)||s},s)}function pr(n){return(P=!P||!1===n||j&&j.lzy&&!P.b?F(An,v):P).v}function yr(n,r){r=P&&!1!==r?P.v:pr(r);return r&&r[n]?r[n]:n===vr&&er?er.v:v}function dr(){return(ur=!ur||j&&j.lzy&&!ur.b?z("document"):ur).v}function br(){return(er=!er||j&&j.lzy&&!er.b?z(vr):er).v}function hr(){return(or=!or||j&&j.lzy&&!or.b?z("navigator"):or).v}function gr(){return(ir=!ir||j&&j.lzy&&!ir.b?z("history"):ir).v}function mr(n){return F(function(){return C.v?C.v[n]:s},s)}function Sr(){return!!D()}function D(){var n=!C||j&&j.lzy&&!C.b;return n&&(C=z(H)),fr&&!n||(fr=mr("for")),sr&&!n||(sr=mr("keyFor")),C.v}function wr(n,r){var t=Dn[n];return C&&(!j.lzy||C.b)||D(),C.v?C.v[t||n]:r?s:Xn(n)}function Ir(n){return!!n&&d(n.next)}function Tr(n){return!on(n)&&d(n[wr(3)])}function jr(r,n,t){if(r&&(Ir(r)||(r=r[(lr=lr||x(function(){return wr(3)})).v]?r[lr.v]():null),Ir(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[V]&&-1!==n[p](t||r,u[q],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[V]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}Zt("isSymbol",en("symbol"));var k=Zt("fnApply",Rn("apply"));function A(n,r,t){if(n)for(var e=n[c]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}Zt("arrEvery",u("every",i)),Zt("arrFilter",u("filter",i));var Or=Zt("arrIndexOf",u($,i)),Er=(Zt("arrLastIndexOf",u(M,i)),Zt("arrMap",u("map",i))),N=Zt("arrSlice",u(Z,i));function xr(n,r,t){return-1!==Or(n,r,t)}function Fr(n,r,t){r=Pr(n,r,t);return-1!==r?n[r]:void 0}function Pr(t,e,u){var o=-1;return A(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Cr(n,r,t){r=zr(n,r,t);return-1!==r?n[r]:void 0}function zr(n,r,t){for(var e=-1,u=(n[c]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Dr(n,t,e){var r,u;return h(n)?(r=N(n),t?Er(r,t,e):r):(u=[],jr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}Zt("arrFind",T("find",i,Fr)),Zt("arrFindIndex",T("findIndex",i,Pr)),Zt("arrFindLast",T("findLast",i,Cr)),Zt("arrFindLastIndex",T("findLastIndex",i,zr)),Zt("arrFrom",nn.from||Dr);var kr,B=Zt("arrIncludes",T("includes",i,xr)),Ar=(Zt("arrContains",B),Zt("arrReduce",u("reduce",i)),Zt("arrSome",u("some",i)),Zt("fnBind",Rn("bind")));function Nr(t,e){return function(){var n=N(arguments),r=t();return k(r[e],r,n)}}Zt("fnCall",Rn(p));var Lr,Rr=Zt("objCreate",e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!==R)throw new TypeError("Prototype must be an Object or function: "+I(n));function t(){}return t[f]=n,new t});function _r(n,r){return(e.setPrototypeOf||function(t,n){(Lr=Lr||x(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:g(n,function(n,r){return t[n]=r})})(n,r)}var Wr,Kr=function(n,r){try{r&&(n[J]=r)}catch(n){}},Br=function(n,r){try{E(n,J,{v:r,c:!0,e:!1})}catch(n){}};function Gr(e,u,n){var r,t,o=n||Error,i=o[f][J],c=Error.captureStackTrace,n=o;return Br(t=function(){var n=this;try{Kr(o,e);var r,t=k(o,n,N(arguments))||n;return t!==n&&(r=Fn(n))!==Fn(t)&&_r(t,r),c&&c(t,n[G]),u&&u(t,arguments),t}finally{Kr(o,i)}},r=e),(t=_r(t,n))[f]=n===v?Rr(n):(a[f]=n[f],new a),t;function a(){this.constructor=t,Br(this,r)}}function Hr(){return(Date.now||Ur)()}function Ur(){return(new Date).getTime()}function $r(r){return function(n){return l(n)&&m("strTrim called ["+I(n)+"]"),n&&n.replace?n.replace(r,a):n}}var _=Zt("polyStrTrim",$r(/^\s+|(?=\s)\s+$/g)),L=Zt("polyStrTrimStart",$r(/^\s+/g)),X=Zt("polyStrTrimEnd",$r(/(?=\s)\s+$/g)),Mr=Zt("strTrim",T("trim",n,_)),nn=Zt("strTrimStart",T("trimStart",n,L)),B=(Zt("strTrimLeft",nn),Zt("strTrimEnd",T("trimEnd",n,X))),Vr=(Zt("strTrimRight",B),Zt("strUpper",u("toUpperCase",n))),qr=Zt("strLower",u("toLowerCase",n));function Jr(n,i,c){return Mr(w(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||a;return c&&(e=Vr(e)),(u||a)+i+e})}function Zr(n,r){return Jr(n,"",!0).replace(/^\w/,r?Vr:qr)}var Qr=Zt("mathFloor",Y.floor),Xr=Zt("mathCeil",Y.ceil),Yr=Zt("mathTrunc",Y.trunc||function(n){n=+n;return(0<n?Qr:Xr)(n)});function nt(n,r){var t=+n;return t==1/0&&r&&wn("invalid value ["+I(n)+"]"),t!=t||0==t?0:Yr(t)}var rt=Zt("strRepeat",T("repeat",n,tt));function tt(n,r){l(n)&&m("can't convert ["+I(n)+"]"),(r=nt(r,!0))<0&&wn("invalid count must be >= 0 && < Infinity");for(var t=y(n)?n:w(n),e=a;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function et(n,r,t){var e=a,n=(r=nt(r,!0),n[c]);return n<(r>>=0)&&(e=(r-=n)>(e=l(t)?" ":w(t))[c]?rt(e,Xr(r/e[c])):e)[c]>r?Bn(e,0,r):e}var ut=Zt("strPadStart",T("padStart",n,ot));function ot(n,r,t){return et(n,r,t)+n}function it(n,r,t){return n+et(n,r,t)}Zt("strPadEnd",T("padEnd",n,it));var ct,at,ft,st,lt='"',vt=/([^\w\d_$])/g;function pt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(st=st||!br()||br())){ft||(at=Function[f].toString,ft=at[p](e));try{var t=Fn(n),r=(r=!t)||(t=hn(t,G)?t[G]:t)&&typeof t===R&&at[p](t)===ft}catch(n){}}return r}var yt,dt=function(n){return n.value&&jt(n),!0},bt=[wt,jt,Tt,It];function ht(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],c={handler:e.handler,src:e.src,path:r},a=typeof n,f=!1,s=!1,l=(n&&a===W?f=pt(n):s=n===v||an(a),{type:a,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return ht(t,n,r?c:e,r)},copyTo:function(n,r){return gt(t,n,r,c)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,a=function(r){E(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<bt.length?bt[n++]:dt))[p](e,l);)t=v},A(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),a(o)),o.v)}function gt(n,r,t,e){if(!l(t))for(var u in t)r[u]=ht(n,t[u],e,u);return r}function mt(n,r,t){return gt([],n,r,{handler:t,src:r,path:[]})}function St(n,r){return ht([],n,{handler:r,src:n})}function wt(n){var r,t=n.value;return!!h(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function It(n){var r=n.value;return!!fn(r)&&(n.result=new Date(r.getTime()),!0)}function Tt(n){return n.type===R}function jt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Ot(r,n){return A(n,function(n){mt(r,n)}),r}function Et(){return(yt=!yt||!yt.b&&j&&j.lzy?z("performance"):yt).v}function xt(){var n=Et();return n&&n.now?n.now():Hr()}function Ft(n){return xt()-n}Zt("getLength",_n(c));var Pt="(.*)",Ct="(.)";function zt(n,r,t,e,u){return RegExp((u?"^":a)+t(n.replace(r,"\\$1"))+(u?"$":a),e?"i":"")}function Dt(n,r){return n[wr(3)]=function(){return kt(r)},n}function kt(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[V]=e;var n;return e||E(n,q,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.t&&t.t(n),r}),n}function At(n,r,t){r=r&&r[wr(9)];return r?r(n,t):[n]}var Nt=Zt("strSplit",u("split",n));function Lt(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[c],u=n[c],t=!o(t)&&t<u?t:u;return Bn(n,t-e,t)===r}Zt("strSymSplit",T("split",n,D()?null:At)),Zt("strEndsWith",T("endsWith",n,Lt));var Rt=Zt("strIndexOf",u($,n)),_=(Zt("strLastIndexOf",u(M,n)),Zt("strIncludes",T("includes",n,_t)));function _t(n,r,t){return vn(r)&&m("'searchString' must not be a regular expression"+I(r)),-1!==Rt(n,w(r),t)}Zt("strContains",_);var Wt,Kt="ref",Bt="un"+Kt,Gt="hasRef",Ht="enabled";function Ut(n,r,t){function e(){return c=!1,a&&a[Bt]&&a[Bt](),i}function u(){return a=r(a),c||e(),i}function o(){a&&t(a),a=v}var i,c=!0,a=n?r(v):v,n={cancel:o,refresh:u};return n[Gt]=function(){return a&&a[Gt]?a[Gt]():c},n[Kt]=function(){return c=!0,a&&a[Kt]&&a[Kt](),i},n[Bt]=e,n[Ht]=!1,O(i=n,Ht,{get:function(){return!!a},set:function(n){!n&&a&&o(),n&&!a&&u()}}),{h:i,dn:function(){a=v}}}function $t(r,n,t,e){var u=h(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,c=(1<o?t[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),k(a,r,N(arguments))},Ut(n,function(n){if(n){if(n.refresh)return n.refresh(),n;k(c,r,[n])}return k(i,r,e)},function(n){k(c,r,[n])}));return f.h}function Mt(n,r){return $t(this,!0,s,N(arguments))}var Vt=100,qt=50;function Jt(){return!(!(Wt=Wt||F(function(){return cn(requestIdleCallback)},!1)).v||!requestIdleCallback)}}}}); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
System.register("nevware21.ts-utils",[],function(Zt){"use strict";return{execute:function(){Zt({arrAppend:function(r,n){return!o(n)&&r&&(h(n)?k(r.push,r,n):Ir(n)||Tr(n)?jr(n,function(n){r.push(n)}):r.push(n)),r},arrForEach:A,arrayDeepCopyHandler:wt,createArrayIterator:function(n){var r=-1,t=n?n.slice():[],e=t[c],n={n:function(){return e<=++r}};return E(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),kt(n)},createCustomError:Gr,createEnum:function(n){return Sn(n,1,0,En)},createEnumKeyMap:Pn,createEnumValueMap:function(n){return Sn(n,1,1,En)},createFilenameRegex:function(n,r,t){return zt(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?Pt:Ct})},!!r,t)},createFnDeferredProxy:Nr,createIterable:function(n){return Dt({},n)},createIterator:kt,createProxyFuncs:function(t,e,n){var u;return t&&e&&h(n)&&(u=d(e),A(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?Nr(e,n.n):Ar(e[n.n],e))})),t},createRangeIterator:function(n,r,t){var e=n,u=s,o=(l(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return E(t,"v",{g:function(){return u}}),kt(t)},createSimpleMap:Cn,createTimeout:function(n,r){return $t(this,!1,s,N(arguments))},createTimeoutWith:function(n,r,t){return $t(this,!1,n,N(arguments,1))},createTypeMap:Cn,createWildcardRegex:function(n,r,t){return zt(w(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,Pt)},!!r,t)},dateDeepCopyHandler:It,deepExtend:function(n,r,t,e,u,o,i){return Ot(St(n)||{},N(arguments))},dumpObj:I,elapsedTime:Ft,encodeAsHtml:function(n){return ct=ct||x(function(){var n={"&":"amp","<":"lt",">":"gt"};return n[lt]="quot",n["'"]="#39",n}),w(n).replace(/[&<>"']/g,function(n){return"&"+ct.v[n]+";"})},encodeAsJson:function(n,r){var t;if(y(n))t=lt+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return n===lt||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+ut(Vr(n),4,"0"))})+lt;else try{t=JSON.stringify(n,v,r?sn(r)?r:4:s)}catch(n){t=lt+I(n)+lt}return t},functionDeepCopyHandler:Tt,getDocument:dr,getGlobal:pr,getHistory:gr,getInst:yr,getIntValue:function(n,r){return l(n)?r:sn(n)?n:isNaN(n=parseInt(n,10))?r:n},getKnownSymbol:wr,getLazy:x,getNavigator:hr,getPerformance:Et,getSymbol:D,getValueByIter:function(r,n,t){return n&&r&&(jr(n,function(n){if(l(r))return-1;r=r[n]}),!l(r))?r:t},getValueByKey:function(n,r,t){if(!r||!n)return t;for(var e=Nt(r,"."),u=e.length,o=0;o<u&&!l(n);o++)n=n[e[o]];return l(n)?t:n},getWindow:br,hasDocument:function(){return!!dr()},hasHistory:function(){return!!gr()},hasIdleCallback:Jt,hasNavigator:function(){return!!hr()},hasPerformance:function(){return!!Et()},hasSymbol:Sr,hasValue:function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!l(r))if(h(r))o=0<r[c];else if(fn(r))o=!isNaN(r.getTime());else{if(ln(r))return!0;if(b(r)){try{e=r,A([c,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(d(n)?n():n),-1});var i=u;if(ln(i))return i;if(d(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!On(r)[c]}o=dn(r)}return o}(n,0)},hasWindow:function(){return!!br()},isDefined:cn,isIterable:Tr,isIterator:Ir,isNode:function(){return(ar=ar||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},isNotTruthy:function(n){return!n||!rn(function(){return n&&0+n},n)},isNullOrUndefined:l,isObject:b,isPlainObject:pt,isPrimitive:function(n){return n===v||an(typeof n)},isPrimitiveType:an,isPromise:function(n){return!!(n&&n.then&&n.catch&&d(n.then)&&d(n.catch))},isPromiseLike:yn,isStrictNullOrUndefined:on,isStrictUndefined:function(n){return!cn(n)},isTruthy:dn,isTypeof:function(n,r){return typeof n===r},isUndefined:o,isWebWorker:function(){return(cr=cr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},iterForOf:jr,lazySafeGetInst:z,makeGlobRegex:function(n,r,t){return zt(w(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?Pt:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},makeIterable:Dt,mathToInt:nt,newSymbol:function(n,r){return C&&(!j.lzy||C.b)||D(),C.v?C.v(n):r?v:Jn(n)},normalizeJsName:function(n,r){n=w(n).replace(vt,"_");return o(r)?n:Zr(n,!r)},objCopyProps:mt,objDeepCopy:St,objDeepFreeze:En,objDefine:E,objDefineAccessors:function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),O(n,r,nr(o))},objDefineGet:function(n,r,t,e,u){return O(n,r,nr(((n={e:u,c:e})[d(t)?"g":"v"]=t,n)))},objDefineProps:function(n,r){var t={};return g(r,function(n,r){t[n]=nr(r)}),rr(n,t)},objExtend:function(n,r,t,e,u,o,i){return Ot(n||{},N(arguments))},objForEachKey:g,objHasOwnProperty:hn,objKeys:On,objSetPrototypeOf:Wr,objToString:un,perfNow:xt,plainObjDeepCopyHandler:jt,polyArrFind:Fr,polyArrFindIndex:Pr,polyArrFindLast:Cr,polyArrFindLastIndex:zr,polyArrFrom:Dr,polyArrIncludes:xr,polyGetKnownSymbol:Xn,polyIsArray:function(n){return!l(n)&&"[object Array]"===un(n)},polyNewSymbol:Jn,polyObjEntries:In,polyObjHasOwn:mn,polyObjKeys:function(n){if(!b(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)gn(n,r)&&t.push(r);return t},polyStrIncludes:_t,polyStrSubstr:Gn,polyStrSymSplit:At,polySymbolFor:Zn,polySymbolKeyFor:Qn,polyUtcNow:Ur,readArgs:function(n,r,t){if(kr=kr||x(function(){return Sr()&&wr(3)}),!gn(n,c)){var e=kr.v&&n[kr.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(jr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return N(n,r,t)},safeGet:rn,safeGetLazy:F,scheduleIdleCallback:function(r,t){function e(n){var r=xt();return{didTimeout:n,timeRemaining:function(){return qt-Ft(r)}}}var u,n;return Jt()?(u=Ut(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:Mt(function(){r(e(!0))},o(n=(t||{}).timeout)?Vt:n)},scheduleInterval:function(n,r){var t=this,e=N(arguments);return Ut(!0,function(n){return n&&clearInterval(n),k(setInterval,t,e)},function(n){k(clearInterval,t,[n])}).h},scheduleTimeout:Mt,scheduleTimeoutWith:function(n,r,t){return $t(this,!0,n,N(arguments,1))},setBypassLazyCache:function(n){tr&&tr(),j.lzy=n},setDefaultIdleTimeout:function(n){Vt=n},setDefaultMaxExecutionTime:function(n){qt=n},setValueByIter:function(r,n,t){var e;r&&n&&(jr(n,function(n){e&&(l(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},setValueByKey:function(r,n,t){var e;r&&n&&(e=(n=Nt(n,".")).pop(),A(n,function(n){l(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},strCamelCase:Zr,strIsNullOrEmpty:function(n){return y(n)?n===a:l(n)},strIsNullOrWhiteSpace:function(n){return y(n)?n.replace(/[\s\t\r\n\f]+/g,a)===a:l(n)},strKebabCase:function(n,r){n=Jr(n,"-");return(r?Vr:qr)(n)},strLeft:function(n,r){return Bn(n,0,r)},strLetterCase:function(n){return w(n).replace(/(_|\b)\w/g,Vr)},strRight:function(n,r){var t=n[c];return r<=0?a:r<t?Bn(n,t-r):n},strSnakeCase:function(n,r){n=Jr(n,"_");return(r?Vr:qr)(n)},symbolFor:function(n){return fr&&(!j.lzy||C.b)||D(),(fr.v||Zn)(n)},symbolKeyFor:function(n){return sr&&(!j.lzy||C.b)||D(),(sr.v||Qn)(n)},throwError:function(n){throw Error(n)},throwRangeError:wn,throwTypeError:m,throwUnsupported:function(n){throw new(Rr=Rr||Gr("UnsupportedError"))(n)},utcNow:Hr});var s=void 0,v=null,a="",L="boolean",R="function",_="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="_polyfill",$="indexOf",M="lastIndexOf",c="length",V="done",q="value",J="name",Z="slice",p="call",e=Object,Q=e[f],X=String,n=X[f],Y=Math,nn=Array,i=nn[f];function rn(n,r){try{r=n()}catch(n){}return r}var tn=[B,_,L,r,"symbol","bigint"];function en(r){return function(n){return typeof n===r}}function t(n){var r="[object "+n+"]";return function(n){return!(!n||un(n)!==r)}}function un(n){return Q.toString[p](n)}function o(n){return typeof n===r||n===r}function l(n){return n===v||o(n)}function on(n){return n===v||!cn(n)}function cn(n){return!!n||n!==s}function an(n){return n!==W&&!!~tn.indexOf(n)}var y=Zt("isString",en(B)),d=Zt("isFunction",en(R));function b(n){return!(!n&&l(n)||!n||typeof n!==W)}var h=Zt("isArray",nn.isArray),fn=Zt("isDate",t("Date")),sn=Zt("isNumber",en(_)),ln=Zt("isBoolean",en(L)),vn=Zt("isRegExp",t("RegExp")),pn=(Zt("isFile",t("File")),Zt("isFormData",t("FormData")),Zt("isBlob",t("Blob")),Zt("isArrayBuffer",t("ArrayBuffer")),Zt("isError",t("Error")));function yn(n){return!!(n&&n.then&&d(n.then))}function dn(n){return!(!n||rn(function(){return!(n&&0+n)},!n))}Zt("isThenable",yn);var bn=Zt("objGetOwnPropertyDescriptor",e.getOwnPropertyDescriptor);function hn(n,r){return n&&Q.hasOwnProperty[p](n,r)}var gn=Zt("objHasOwn",e.hasOwn||mn);function mn(n,r){return hn(n,r)||!!bn(n,r)}function g(n,r,t){if(n&&b(n))for(var e in n)if(gn(n,e)&&-1===r[p](t||n,e,n[e]))break}function Sn(n,t,e,r){var u={};return g(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function m(n){throw new TypeError(n)}function wn(n){throw new RangeError(n)}function In(n){var t=[];return g(n,function(n,r){t.push([n,r])}),t}var Tn=e.freeze;function jn(n){return n}function On(n){return b(n)&&n!==v||m("objKeys called on non-object"),e.keys(n)}function En(n){return Tn&&g(n,function(n,r){(h(r)||b(r))&&Tn(r)}),xn(n)}Zt("objAssign",e.assign);var xn=Zt("objFreeze",Tn||jn),Fn=(Zt("objSeal",e.seal||jn),Zt("objGetPrototypeOf",e.getPrototypeOf||function(n){return n[K]||v}));function Pn(n){return Sn(n,0,0,En)}function Cn(n){var t={};return g(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),En(t)}Zt("objEntries",e.entries||In);var zn,S,Dn=Pn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Zt("asString",X),kn="__tsUtils$gblCfg";function An(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Nn(){var n;return zn||(n=An()||{},zn=n[kn]=n[kn]||{}),zn}function I(n,r){var t=a;if(pn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?sn(r)?r:4:s)}catch(n){t=" - "+I(n,r)}return un(n)+": "+t}function Ln(n,r){m("'"+w(n)+"' not defined for "+I(r))}function Rn(r){return S=S||i[Z],function(n){return n[r].apply(n,S[p](arguments,1))}}function u(t,n){S=S||i[Z];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,S[p](arguments,1));Ln(t,n)}}function T(e,n,u){S=S||i[Z];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?S[p](r,1):r);Ln(e,n)}}function _n(r){return function(n){return n[r]}}Zt("mathMin",Y.min);var Wn=Zt("mathMax",Y.max),Kn=Zt("strSlice",u(Z,n)),Bn=Zt("strSubstring",u("substring",n));function Gn(n,r,t){return l(n)&&m("'polyStrSubstr called with invalid "+I(n)),t<0?a:((r=r||0)<0&&(r=Wn(r+n[c],0)),o(t)?Kn(n,r):Kn(n,r,r+t))}Zt("strSubstr",T("substr",n,Gn));var Hn=Zt("strStartsWith",T("startsWith",n,Un));function Un(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[c],t=0<t?t:0;return Bn(n,t,t+e)===r}var $n,Mn,Vn="_urid";function qn(){var n;return $n||(n=Nn(),$n=n.gblSym=n.gblSym||{k:{},s:{}}),$n}function Jn(n){var r={description:w(n),toString:function(){return H+"("+n+")"}};return r[U]=!0,r}function Zn(n){var r,t,e=qn();return gn(e.k,n)||(r=Jn(n),t=On(e.s).length,r[Vn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Vn]()]=w(n)),e.k[n]}function Qn(n){n&&n.toString&&Hn(n.toString(),H)||m(n+" is not a symbol");n=n[U]&&n[Vn]&&n[Vn]();return n?qn().s[n]:void 0}function Xn(n){Mn=Mn||{};n=Dn[n];return n?Mn[n]=Mn[n]||Jn(H+"."+n):void 0}var Yn={e:"enumerable",c:"configurable",v:q,w:"writable",g:"get",s:"set"};function nr(r){var n,t={};return t[Yn.c]=!0,t[Yn.e]=!0,r.l&&(t.get=function(){return r.l.v},n=bn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),g(r,function(n,r){t[Yn[n]]=o(r)?t[Yn[n]]:r}),t}var j,O=Zt("objDefineProp",e.defineProperty),rr=Zt("objDefineProperties",e.defineProperties);function E(n,r,t){return O(n,r,nr(t))}var tr=function(){j=Nn(),tr=v};function x(r){var t={};return tr&&tr(),t.b=j.lzy,O(t,"v",{configurable:!0,get:function(){var n=r();return j.lzy||(O(t,"v",{value:n}),t.b&&delete t.b),j.lzy&&t.b!==j.lzy&&(t.b=j.lzy),n}}),t}function F(n,r){return x(function(){return rn(n,r)})}var P,er,ur,or,ir,cr,ar,C,fr,sr,lr,vr="window";function z(n){return F(function(){return yr(n)||s},s)}function pr(n){return(P=!P||!1===n||j&&j.lzy&&!P.b?F(An,v):P).v}function yr(n,r){r=P&&!1!==r?P.v:pr(r);return r&&r[n]?r[n]:n===vr&&er?er.v:v}function dr(){return(ur=!ur||j&&j.lzy&&!ur.b?z("document"):ur).v}function br(){return(er=!er||j&&j.lzy&&!er.b?z(vr):er).v}function hr(){return(or=!or||j&&j.lzy&&!or.b?z("navigator"):or).v}function gr(){return(ir=!ir||j&&j.lzy&&!ir.b?z("history"):ir).v}function mr(n){return F(function(){return C.v?C.v[n]:s},s)}function Sr(){return!!D()}function D(){var n=!C||j&&j.lzy&&!C.b;return n&&(C=z(H)),fr&&!n||(fr=mr("for")),sr&&!n||(sr=mr("keyFor")),C.v}function wr(n,r){var t=Dn[n];return C&&(!j.lzy||C.b)||D(),C.v?C.v[t||n]:r?s:Xn(n)}function Ir(n){return!!n&&d(n.next)}function Tr(n){return!on(n)&&d(n[wr(3)])}function jr(r,n,t){if(r&&(Ir(r)||(r=r[(lr=lr||x(function(){return wr(3)})).v]?r[lr.v]():null),Ir(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[V]&&-1!==n[p](t||r,u[q],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[V]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}Zt("isSymbol",en("symbol"));var k=Zt("fnApply",Rn("apply"));function A(n,r,t){if(n)for(var e=n[c]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}Zt("arrEvery",u("every",i)),Zt("arrFilter",u("filter",i));var Or=Zt("arrIndexOf",u($,i)),Er=(Zt("arrLastIndexOf",u(M,i)),Zt("arrMap",u("map",i))),N=Zt("arrSlice",u(Z,i));function xr(n,r,t){return-1!==Or(n,r,t)}function Fr(n,r,t){r=Pr(n,r,t);return-1!==r?n[r]:void 0}function Pr(t,e,u){var o=-1;return A(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Cr(n,r,t){r=zr(n,r,t);return-1!==r?n[r]:void 0}function zr(n,r,t){for(var e=-1,u=(n[c]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Dr(n,t,e){var r,u;return h(n)?(r=N(n),t?Er(r,t,e):r):(u=[],jr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}Zt("arrFind",T("find",i,Fr)),Zt("arrFindIndex",T("findIndex",i,Pr)),Zt("arrFindLast",T("findLast",i,Cr)),Zt("arrFindLastIndex",T("findLastIndex",i,zr)),Zt("arrFrom",nn.from||Dr);var kr,B=Zt("arrIncludes",T("includes",i,xr)),Ar=(Zt("arrContains",B),Zt("arrReduce",u("reduce",i)),Zt("arrSome",u("some",i)),Zt("fnBind",Rn("bind")));function Nr(t,e){return function(){var n=N(arguments),r=t();return k(r[e],r,n)}}Zt("fnCall",Rn(p));var Lr,Rr,_r=Zt("objCreate",e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!==R)throw new TypeError("Prototype must be an Object or function: "+I(n));function t(){}return t[f]=n,new t});function Wr(n,r){return(e.setPrototypeOf||function(t,n){(Lr=Lr||x(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:g(n,function(n,r){return t[n]=r})})(n,r)}function Kr(n,r){try{r&&(n[J]=r)}catch(n){}}function Br(n,r){try{E(n,J,{v:r,c:!0,e:!1})}catch(n){}}function Gr(e,u,n){var r,t,o=n||Error,i=o[f][J],c=Error.captureStackTrace,n=o;return Br(t=function(){var n=this;try{Kr(o,e);var r,t=k(o,n,N(arguments))||n;return t!==n&&(r=Fn(n))!==Fn(t)&&Wr(t,r),c&&c(t,n[G]),u&&u(t,arguments),t}finally{Kr(o,i)}},r=e),(t=Wr(t,n))[f]=n===v?_r(n):(a[f]=n[f],new a),t;function a(){this.constructor=t,Br(this,r)}}function Hr(){return(Date.now||Ur)()}function Ur(){return(new Date).getTime()}function $r(r){return function(n){return l(n)&&m("strTrim called ["+I(n)+"]"),n&&n.replace?n.replace(r,a):n}}var _=Zt("polyStrTrim",$r(/^\s+|(?=\s)\s+$/g)),L=Zt("polyStrTrimStart",$r(/^\s+/g)),X=Zt("polyStrTrimEnd",$r(/(?=\s)\s+$/g)),Mr=Zt("strTrim",T("trim",n,_)),nn=Zt("strTrimStart",T("trimStart",n,L)),B=(Zt("strTrimLeft",nn),Zt("strTrimEnd",T("trimEnd",n,X))),Vr=(Zt("strTrimRight",B),Zt("strUpper",u("toUpperCase",n))),qr=Zt("strLower",u("toLowerCase",n));function Jr(n,i,c){return Mr(w(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||a;return c&&(e=Vr(e)),(u||a)+i+e})}function Zr(n,r){return Jr(n,"",!0).replace(/^\w/,r?Vr:qr)}var Qr=Zt("mathFloor",Y.floor),Xr=Zt("mathCeil",Y.ceil),Yr=Zt("mathTrunc",Y.trunc||function(n){n=+n;return(0<n?Qr:Xr)(n)});function nt(n,r){var t=+n;return t==1/0&&r&&wn("invalid value ["+I(n)+"]"),t!=t||0==t?0:Yr(t)}var rt=Zt("strRepeat",T("repeat",n,tt));function tt(n,r){l(n)&&m("can't convert ["+I(n)+"]"),(r=nt(r,!0))<0&&wn("invalid count must be >= 0 && < Infinity");for(var t=y(n)?n:w(n),e=a;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function et(n,r,t){var e=a,n=(r=nt(r,!0),n[c]);return n<(r>>=0)&&(e=(r-=n)>(e=l(t)?" ":w(t))[c]?rt(e,Xr(r/e[c])):e)[c]>r?Bn(e,0,r):e}var ut=Zt("strPadStart",T("padStart",n,ot));function ot(n,r,t){return et(n,r,t)+n}function it(n,r,t){return n+et(n,r,t)}Zt("strPadEnd",T("padEnd",n,it));var ct,at,ft,st,lt='"',vt=/([^\w\d_$])/g;function pt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(st=st||!br()||br())){ft||(at=Function[f].toString,ft=at[p](e));try{var t=Fn(n),r=(r=!t)||(t=hn(t,G)?t[G]:t)&&typeof t===R&&at[p](t)===ft}catch(n){}}return r}var yt,dt=function(n){return n.value&&jt(n),!0},bt=[wt,jt,Tt,It];function ht(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],c={handler:e.handler,src:e.src,path:r},a=typeof n,f=!1,s=!1,l=(n&&a===W?f=pt(n):s=n===v||an(a),{type:a,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return ht(t,n,r?c:e,r)},copyTo:function(n,r){return gt(t,n,r,c)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,a=function(r){E(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<bt.length?bt[n++]:dt))[p](e,l);)t=v},A(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),a(o)),o.v)}function gt(n,r,t,e){if(!l(t))for(var u in t)r[u]=ht(n,t[u],e,u);return r}function mt(n,r,t){return gt([],n,r,{handler:t,src:r,path:[]})}function St(n,r){return ht([],n,{handler:r,src:n})}function wt(n){var r,t=n.value;return!!h(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function It(n){var r=n.value;return!!fn(r)&&(n.result=new Date(r.getTime()),!0)}function Tt(n){return n.type===R}function jt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Ot(r,n){return A(n,function(n){mt(r,n)}),r}function Et(){return(yt=!yt||!yt.b&&j&&j.lzy?z("performance"):yt).v}function xt(){var n=Et();return n&&n.now?n.now():Hr()}function Ft(n){return xt()-n}Zt("getLength",_n(c));var Pt="(.*)",Ct="(.)";function zt(n,r,t,e,u){return RegExp((u?"^":a)+t(n.replace(r,"\\$1"))+(u?"$":a),e?"i":"")}function Dt(n,r){return n[wr(3)]=function(){return kt(r)},n}function kt(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[V]=e;var n;return e||E(n,q,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[V]=!0,r[q]=t.t&&t.t(n),r}),n}function At(n,r,t){r=r&&r[wr(9)];return r?r(n,t):[n]}var Nt=Zt("strSplit",u("split",n));function Lt(n,r,t){y(n)||m("'"+I(n)+"' is not a string");var r=y(r)?r:w(r),e=r[c],u=n[c],t=!o(t)&&t<u?t:u;return Bn(n,t-e,t)===r}Zt("strSymSplit",T("split",n,D()?null:At)),Zt("strEndsWith",T("endsWith",n,Lt));var Rt=Zt("strIndexOf",u($,n)),_=(Zt("strLastIndexOf",u(M,n)),Zt("strIncludes",T("includes",n,_t)));function _t(n,r,t){return vn(r)&&m("'searchString' must not be a regular expression"+I(r)),-1!==Rt(n,w(r),t)}Zt("strContains",_);var Wt,Kt="ref",Bt="un"+Kt,Gt="hasRef",Ht="enabled";function Ut(n,r,t){function e(){return c=!1,a&&a[Bt]&&a[Bt](),i}function u(){return a=r(a),c||e(),i}function o(){a&&t(a),a=v}var i,c=!0,a=n?r(v):v,n={cancel:o,refresh:u};return n[Gt]=function(){return a&&a[Gt]?a[Gt]():c},n[Kt]=function(){return c=!0,a&&a[Kt]&&a[Kt](),i},n[Bt]=e,n[Ht]=!1,O(i=n,Ht,{get:function(){return!!a},set:function(n){!n&&a&&o(),n&&!a&&u()}}),{h:i,dn:function(){a=v}}}function $t(r,n,t,e){var u=h(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,c=(1<o?t[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),k(a,r,N(arguments))},Ut(n,function(n){if(n){if(n.refresh)return n.refresh(),n;k(c,r,[n])}return k(i,r,e)},function(n){k(c,r,[n])}));return f.h}function Mt(n,r){return $t(this,!0,s,N(arguments))}var Vt=100,qt=50;function Jt(){return!(!(Wt=Wt||F(function(){return cn(requestIdleCallback)},!1)).v||!requestIdleCallback)}}}}); | ||
//# sourceMappingURL=ts-utils.min.js.map |
/* | ||
* NevWare21 - ts-utils Polyfills, v0.10.3 | ||
* NevWare21 - ts-utils Polyfills, v0.10.4 | ||
* https://github.com/nevware21/ts-utils | ||
@@ -58,2 +58,3 @@ * Copyright (c) NevWare21 and contributors. All rights reserved. | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createIs(theType) { | ||
@@ -64,2 +65,3 @@ return function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createObjIs(theName) { | ||
@@ -71,8 +73,11 @@ var theType = "[object " + theName + "]"; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objToString(value) { | ||
return ObjProto.toString[CALL](value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isUndefined(value) { | ||
return typeof value === UNDEFINED || value === UNDEFINED; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNullOrUndefined(value) { | ||
@@ -83,2 +88,3 @@ return value === NULL_VALUE || isUndefined(value); | ||
var isFunction = ( /*#__PURE__*/_createIs(FUNCTION)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isObject(value) { | ||
@@ -95,2 +101,3 @@ if (!value && isNullOrUndefined(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function dumpObj(object, format) { | ||
@@ -159,2 +166,3 @@ var propertyValueDump = EMPTY; | ||
var _globalCfg; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalValue() { | ||
@@ -176,2 +184,3 @@ var result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalConfig() { | ||
@@ -187,2 +196,3 @@ if (!_globalCfg) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objHasOwnProperty(obj, prop) { | ||
@@ -193,2 +203,3 @@ return obj && ObjProto.hasOwnProperty[CALL](obj, prop); | ||
var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjHasOwn(obj, prop) { | ||
@@ -242,2 +253,3 @@ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createKeyValueMap(values, keyType, valueType, completeFn) { | ||
@@ -252,2 +264,3 @@ var theMap = {}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjKeys(obj) { | ||
@@ -282,2 +295,3 @@ if (!isObject(obj) || obj === NULL_VALUE) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumKeyMap(values) { | ||
@@ -308,2 +322,3 @@ return _createKeyValueMap(values, 0 , 0 , objDeepFreeze); | ||
var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSubstr(value, start, length) { | ||
@@ -326,2 +341,3 @@ if (isNullOrUndefined(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrStartsWith(value, searchString, position) { | ||
@@ -337,3 +353,4 @@ if (!isString(value)) { | ||
var _wellKnownSymbolCache = {}; | ||
var _wellKnownSymbolCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyNewSymbol(description) { | ||
@@ -347,3 +364,5 @@ var theSymbol = { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyGetKnownSymbol(name) { | ||
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {}); | ||
var result; | ||
@@ -362,16 +381,9 @@ var knownName = _wellKnownSymbolMap[name]; | ||
var WINDOW = "window"; | ||
var _cachedGlobal; | ||
var _cachedWindow; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function lazySafeGetInst(name) { | ||
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); | ||
} | ||
function getGlobal(useCached) { | ||
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE)); | ||
return _cachedGlobal.v; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getInst(name, useCached) { | ||
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
if (gbl && gbl[name]) { | ||
return gbl[name]; | ||
} | ||
if (name === WINDOW && _cachedWindow) { | ||
@@ -384,16 +396,8 @@ return _cachedWindow.v; | ||
var _symbol; | ||
var _symbolFor; | ||
var _symbolKeyFor; | ||
function _getSymbolValue(name) { | ||
return safeGetLazy(function () { | ||
return (_symbol.v ? _symbol.v[name] : UNDEF_VALUE); | ||
}, UNDEF_VALUE); | ||
} | ||
function getSymbol() { | ||
var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b); | ||
resetCache && (_symbol = lazySafeGetInst(SYMBOL)); | ||
(!_symbolFor || resetCache) && (_symbolFor = _getSymbolValue("for")); | ||
(!_symbolKeyFor || resetCache) && (_symbolKeyFor = _getSymbolValue("keyFor")); | ||
return _symbol.v; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getKnownSymbol(name, noPoly) { | ||
@@ -405,2 +409,3 @@ var knownName = _wellKnownSymbolMap[name]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterator(value) { | ||
@@ -452,2 +457,3 @@ return !!value && isFunction(value.next); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyIsArray(value) { | ||
@@ -459,2 +465,3 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyArrIncludes(theArray, searchElement, fromIndex) { | ||
@@ -506,2 +513,3 @@ return arrIndexOf(theArray, searchElement, fromIndex) !== -1; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrEndsWith(value, searchString, length) { | ||
@@ -518,2 +526,3 @@ if (!isString(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createTrimFn(exp) { | ||
@@ -538,2 +547,3 @@ return function _doTrim(value) { | ||
var mathTrunc = MathCls.trunc || polyMathTrunc; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyMathTrunc(value) { | ||
@@ -544,2 +554,3 @@ var theValue = +value; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function mathToInt(value, throwInfinity) { | ||
@@ -554,2 +565,3 @@ var result = +value; | ||
var strRepeat = ( /*#__PURE__*/_unwrapFunctionWithPoly("repeat", StrProto, polyStrRepeat)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrRepeat(value, count) { | ||
@@ -573,2 +585,3 @@ if (isNullOrUndefined(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _padValue(value, targetLength, padString) { | ||
@@ -591,5 +604,7 @@ var result = EMPTY; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadStart(value, targetLength, padString) { | ||
return _padValue(value, targetLength, padString) + value; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadEnd(value, targetLength, padString) { | ||
@@ -599,2 +614,3 @@ return value + _padValue(value, targetLength, padString); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function makePolyFn(poly) { | ||
@@ -612,2 +628,3 @@ return function () { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrIncludes(value, searchString, position) { | ||
@@ -614,0 +631,0 @@ if (isRegExp(searchString)) { |
@@ -1,2 +0,2 @@ | ||
!function(){"use strict";var o=void 0,f=null,i="",C="object",n="prototype",r="undefined",a="Symbol",W="indexOf",u="length",D="done",c="slice",l="call",t=Object,F=t[n],e=String,s=e[n],v=Math,y=Array,p=y[n];function d(n,r,t){if(n)for(var e=n[u]>>>0,i=0;i<e&&!(i in n&&-1===r[l](t||n,n[i],i,n));i++);}function b(r){return function(n){return typeof n===r}}function J(n){var r="[object "+n+"]";return function(n){return!(!n||g(n)!==r)}}function g(n){return F.toString[l](n)}function h(n){return typeof n===r||n===r}function m(n){return n===f||h(n)}var w=b("string"),K=b("function");function S(n){return(n||!m(n))&&n&&typeof n===C}var M=y.isArray,N=b("number"),U=J("RegExp"),q=J("Error");function z(n,r){var t=i;if(q(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,f,r?N(r)?r:4:o)}catch(n){t=" - "+z(n,r)}return g(n)+": "+t}function x(n){throw new TypeError(n)}function B(n){throw new RangeError(n)}var O,E=e;function G(n,r){x("'"+E(n)+"' not defined for "+z(r))}function j(t,n){O=O||p[c];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,O[l](arguments,1));G(t,n)}}function H(e,n,i){O=O||p[c];var u=n&&n[e];return function(n){var r,t=n&&n[e]||u;if(t||i)return r=arguments,(t||i).apply(n,t?O[l](r,1):r);G(e,n)}}var k,Q=j(W,p),V=j("map",p),X=j(c,p),Y="__tsUtils$gblCfg";function Z(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}var nn=t.getOwnPropertyDescriptor,rn=t.hasOwn||tn;function tn(n,r){return n&&F.hasOwnProperty[l](n,r)||!!nn(n,r)}function en(n,r,t){if(n&&S(n))for(var e in n)if(rn(n,e)&&-1===r[l](t||n,e,n[e]))break}var T,un=t.defineProperty,A=function(){var n;k||(n=Z()||{},k=n[Y]=n[Y]||{}),T=k,A=f};function on(r){var t={};return A&&A(),t.b=T.lzy,un(t,"v",{configurable:!0,get:function(){var n=r();return T.lzy||(un(t,"v",{value:n}),t.b&&delete t.b),T.lzy&&t.b!==T.lzy&&(t.b=T.lzy),n}}),t}function I(n){if(!S(n)||n===f)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)rn(n,r)&&t.push(r);return t}var P=t.freeze;function fn(n){return P&&en(n,function(n,r){(M(r)||S(r))&&P(r)}),an(n)}var an=P||function(n){return n};function cn(n){return r=fn,t={},en(n,function(n,r){t[n]=n,t[r]=n}),r(t);var r,t}var ln=cn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),sn=v.max,vn=j(c,s),L=j("substring",s),yn={};function pn(t,e){return on(function(){var n=t,r=e;try{r=n()}catch(n){}return r})}var R,dn,$,bn,gn,hn,mn="window";function wn(n){return pn(function(){return $.v?$.v[n]:o},o)}function Sn(n,r){var t,e,i,u=ln[n];return $&&(!T.lzy||$.b)||((e=!$||T&&T.lzy&&!$.b)&&(i=a,$=pn(function(){return n=i,((r=(R=R||(!R||T&&T.lzy&&!R.b?pn(Z,f):R)).v)&&r[n]?r[n]:n===mn&&dn?dn.v:f)||o;var n,r},o)),bn&&!e||(bn=wn("for")),gn&&!e||(gn=wn("keyFor")),$.v),$.v?$.v[u||n]:r?o:(e=ln[n])?yn[e]=yn[e]||{description:E(t=a+"."+e),toString:function(){return a+"("+t+")"},_polyfill:!0}:void 0}function zn(n){return n&&K(n.next)}function xn(t,e,i){var u=-1;return d(t,function(n,r){if(e[l](i|t,n,r,t))return u=r,-1}),u}function On(n,r,t){for(var e=-1,i=(n[u]>>>0)-1;0<=i;i--)if(i in n&&r[l](t|n,n[i],i,n)){e=i;break}return e}function En(r){return function(n){return m(n)&&x("strTrim called ["+z(n)+"]"),n&&n.replace?n.replace(r,i):n}}var n=En(/^\s+/g),e=En(/(?=\s)\s+$/g),jn=v.floor,kn=v.ceil,Tn=v.trunc||function(n){n=+n;return(0<n?jn:kn)(n)};function An(n,r){var t=+n;return t==1/0&&r&&B("invalid value ["+z(n)+"]"),t!=t||0==t?0:Tn(t)}var In=H("repeat",s,Pn);function Pn(n,r){m(n)&&x("can't convert ["+z(n)+"]"),(r=An(r,!0))<0&&B("invalid count must be >= 0 && < Infinity");for(var t=w(n)?n:E(n),e=i;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Ln(n,r,t){var e=i,n=(r=An(r,!0),n[u]);return n<(r>>=0)&&(e=(r-=n)>(e=m(t)?" ":E(t))[u]?In(e,kn(r/e[u])):e)[u]>r?L(e,0,r):e}function _(t){return function(){for(var n=[this],r=0;r<arguments[u];r++)n[r+1]=arguments[r];return t.apply(this,n)}}var Rn,$n=j(W,s),_n={startsWith:function(n,r,t){w(n)||x("'"+z(n)+"' is not a string");var r=w(r)?r:E(r),e=r[u],t=0<t?t:0;return L(n,t,t+e)===r},endsWith:function(n,r,t){w(n)||x("'"+z(n)+"' is not a string");var r=w(r)?r:E(r),e=r[u],i=n[u],t=!h(t)&&t<i?t:i;return L(n,t-e,t)===r},padStart:function(n,r,t){return Ln(n,r,t)+n},padEnd:function(n,r,t){return n+Ln(n,r,t)},trim:En(/^\s+|(?=\s)\s+$/g),trimStart:n,trimLeft:n,trimEnd:e,trimRight:e,substr:function(n,r,t){return m(n)&&x("'polyStrSubstr called with invalid "+z(n)),t<0?i:((r=r||0)<0&&(r=sn(r+n[u],0)),h(t)?vn(n,r):vn(n,r,r+t))},includes:function(n,r,t){return U(r)&&x("'searchString' must not be a regular expression"+z(r)),-1!==$n(n,E(r),t)}},Cn={isArray:function(n){return!m(n)&&"[object Array]"===g(n)},from:function(n,t,e){if(M(n))return o=X(n),t?V(o,t,e):o;function r(n,r){return i.push(t?t[l](e,n,r):n)}var i=[],u=n;if(u&&(zn(u)||(u=u[(hn=hn||on(function(){return Sn(3)})).v]?u[hn.v]():null),zn(u))){var o=void 0,f=void 0;try{for(var a=0;!(f=u.next())[D]&&-1!==r[l](u,f.value,a,u);)a++}catch(n){o={e:n},u.throw&&(f=null,u.throw(o))}finally{try{f&&!f[D]&&u.return&&u.return(f)}finally{if(o)throw o.e}}}return i}},Wn={includes:function(n,r,t){return-1!==Q(n,r,t)},find:function(n,r,t){r=xn(n,r,t);return-1!==r?n[r]:void 0},findIndex:xn,findLast:function(n,r,t){r=On(n,r,t);return-1!==r?n[r]:void 0},findLastIndex:On};d(I(Rn={keys:I,hasOwn:tn}),function(n){t[n]||(t[n]=_(Rn[n]))}),d(I(Cn),function(n){y[n]||(y[n]=_(Cn[n]))}),d(I(Wn),function(n){p[n]||(p[n]=_(Wn[n]))}),d(I(_n),function(n){s[n]||(s[n]=_(_n[n]))})}(); | ||
!function(){"use strict";var a=void 0,c=null,i="",C="object",n="prototype",r="undefined",l="Symbol",W="indexOf",o="length",D="done",u="slice",s="call",t=Object,J=t[n],e=String,f=e[n],v=Math,y=Array,p=y[n];function d(n,r,t){if(n)for(var e=n[o]>>>0,i=0;i<e&&!(i in n&&-1===r[s](t||n,n[i],i,n));i++);}function b(r){return function(n){return typeof n===r}}function K(n){var r="[object "+n+"]";return function(n){return!(!n||g(n)!==r)}}function g(n){return J.toString[s](n)}function h(n){return typeof n===r||n===r}function m(n){return n===c||h(n)}var w=b("string"),M=b("function");function S(n){return(n||!m(n))&&n&&typeof n===C}var N=y.isArray,U=b("number"),q=K("RegExp"),B=K("Error");function x(n,r){var t=i;if(B(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,c,r?U(r)?r:4:a)}catch(n){t=" - "+x(n,r)}return g(n)+": "+t}function z(n){throw new TypeError(n)}function F(n){throw new RangeError(n)}var O,E=e;function G(n,r){z("'"+E(n)+"' not defined for "+x(r))}function j(t,n){O=O||p[u];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,O[s](arguments,1));G(t,n)}}function H(e,n,i){O=O||p[u];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||i)return r=arguments,(t||i).apply(n,t?O[s](r,1):r);G(e,n)}}var T,Q=j(W,p),V=j("map",p),X=j(u,p),Y="__tsUtils$gblCfg",Z=t.getOwnPropertyDescriptor,nn=t.hasOwn||rn;function rn(n,r){return n&&J.hasOwnProperty[s](n,r)||!!Z(n,r)}function tn(n,r,t){if(n&&S(n))for(var e in n)if(nn(n,e)&&-1===r[s](t||n,e,n[e]))break}var k,en=t.defineProperty,A=function(){var n;T||(n=(n=(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global)||{},T=n[Y]=n[Y]||{}),k=T,A=c};function on(r){var t={};return A&&A(),t.b=k.lzy,en(t,"v",{configurable:!0,get:function(){var n=r();return k.lzy||(en(t,"v",{value:n}),t.b&&delete t.b),k.lzy&&t.b!==k.lzy&&(t.b=k.lzy),n}}),t}function I(n){if(!S(n)||n===c)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)nn(n,r)&&t.push(r);return t}var P=t.freeze;function un(n){return P&&tn(n,function(n,r){(N(r)||S(r))&&P(r)}),fn(n)}var fn=P||function(n){return n};function an(n){return r=un,t={},tn(n,function(n,r){t[n]=n,t[r]=n}),r(t);var r,t}var L,cn,R,$,ln=an({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),sn=v.max,vn=j(u,f),yn=j("substring",f),pn="window";function dn(n,r){var t,e,i,o,u,f=ln[n];return R&&(!k.lzy||R.b)||(e=!R||k&&k.lzy&&!R.b,(R=e?(i=l,o=function(){return(i===pn&&cn?cn.v:c)||a},u=a,on(function(){var n=o,r=u;try{r=n()}catch(n){}return r})):R).v),R.v?R.v[f||n]:r?a:(L=L||{},(e=ln[n])?L[e]=L[e]||{description:E(t=l+"."+e),toString:function(){return l+"("+t+")"},_polyfill:!0}:void 0)}function bn(n){return n&&M(n.next)}function gn(t,e,i){var o=-1;return d(t,function(n,r){if(e[s](i|t,n,r,t))return o=r,-1}),o}function hn(n,r,t){for(var e=-1,i=(n[o]>>>0)-1;0<=i;i--)if(i in n&&r[s](t|n,n[i],i,n)){e=i;break}return e}function mn(r){return function(n){return m(n)&&z("strTrim called ["+x(n)+"]"),n&&n.replace?n.replace(r,i):n}}var n=mn(/^\s+/g),e=mn(/(?=\s)\s+$/g),wn=v.floor,Sn=v.ceil,xn=v.trunc||function(n){n=+n;return(0<n?wn:Sn)(n)};function zn(n,r){var t=+n;return t==1/0&&r&&F("invalid value ["+x(n)+"]"),t!=t||0==t?0:xn(t)}var On=H("repeat",f,En);function En(n,r){m(n)&&z("can't convert ["+x(n)+"]"),(r=zn(r,!0))<0&&F("invalid count must be >= 0 && < Infinity");for(var t=w(n)?n:E(n),e=i;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function jn(n,r,t){var e=i,n=(r=zn(r,!0),n[o]);return n<(r>>=0)&&(e=(r-=n)>(e=m(t)?" ":E(t))[o]?On(e,Sn(r/e[o])):e)[o]>r?yn(e,0,r):e}function _(t){return function(){for(var n=[this],r=0;r<arguments[o];r++)n[r+1]=arguments[r];return t.apply(this,n)}}var Tn,kn=j(W,f),An={startsWith:function(n,r,t){w(n)||z("'"+x(n)+"' is not a string");var r=w(r)?r:E(r),e=r[o],t=0<t?t:0;return yn(n,t,t+e)===r},endsWith:function(n,r,t){w(n)||z("'"+x(n)+"' is not a string");var r=w(r)?r:E(r),e=r[o],i=n[o],t=!h(t)&&t<i?t:i;return yn(n,t-e,t)===r},padStart:function(n,r,t){return jn(n,r,t)+n},padEnd:function(n,r,t){return n+jn(n,r,t)},trim:mn(/^\s+|(?=\s)\s+$/g),trimStart:n,trimLeft:n,trimEnd:e,trimRight:e,substr:function(n,r,t){return m(n)&&z("'polyStrSubstr called with invalid "+x(n)),t<0?i:((r=r||0)<0&&(r=sn(r+n[o],0)),h(t)?vn(n,r):vn(n,r,r+t))},includes:function(n,r,t){return q(r)&&z("'searchString' must not be a regular expression"+x(r)),-1!==kn(n,E(r),t)}},In={isArray:function(n){return!m(n)&&"[object Array]"===g(n)},from:function(n,t,e){if(N(n))return u=X(n),t?V(u,t,e):u;function r(n,r){return i.push(t?t[s](e,n,r):n)}var i=[],o=n;if(o&&(bn(o)||(o=o[($=$||on(function(){return dn(3)})).v]?o[$.v]():null),bn(o))){var u=void 0,f=void 0;try{for(var a=0;!(f=o.next())[D]&&-1!==r[s](o,f.value,a,o);)a++}catch(n){u={e:n},o.throw&&(f=null,o.throw(u))}finally{try{f&&!f[D]&&o.return&&o.return(f)}finally{if(u)throw u.e}}}return i}},Pn={includes:function(n,r,t){return-1!==Q(n,r,t)},find:function(n,r,t){r=gn(n,r,t);return-1!==r?n[r]:void 0},findIndex:gn,findLast:function(n,r,t){r=hn(n,r,t);return-1!==r?n[r]:void 0},findLastIndex:hn};d(I(Tn={keys:I,hasOwn:rn}),function(n){t[n]||(t[n]=_(Tn[n]))}),d(I(In),function(n){y[n]||(y[n]=_(In[n]))}),d(I(Pn),function(n){p[n]||(p[n]=_(Pn[n]))}),d(I(An),function(n){f[n]||(f[n]=_(An[n]))})}(); | ||
//# sourceMappingURL=ts-polyfills-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
function n(n){"use strict";var s=void 0,v=null,c="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",a="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],t=(Kn=String)[f],u=Math,i=(qr=Array)[f];function Q(n,r){try{r=n()}catch(n){}return r}var X=[B,R,L,r,"symbol","bigint"];function Y(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||nn(n)!==r)}}function nn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function rn(n){return n===v||!tn(n)}function tn(n){return!!n||n!==s}function en(n){return n!==W&&!!~X.indexOf(n)}var d=Y(B),b=Y(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=qr.isArray,un=o("Date"),on=Y(R),an=Y(L),cn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),fn=o("ArrayBuffer"),sn=o("Error");function ln(n){return!!(n&&n.then&&b(n.then))}var vn=ln;function pn(n){return!(!n||Q(function(){return!(n&&0+n)},!n))}var yn=e.getOwnPropertyDescriptor;function dn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var bn=e.hasOwn||hn;function hn(n,r){return dn(n,r)||!!yn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(bn(n,e)&&-1===r[p](t||n,e,n[e]))break}function gn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function mn(n){throw new RangeError(n)}function Sn(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var wn=e.freeze;function In(n){return n}var Tn=e.assign;function jn(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function On(n){return wn&&m(n,function(n,r){(g(r)||h(r))&&wn(r)}),En(n)}var En=wn||In,xn=e.seal||In,Fn=e.getPrototypeOf||function(n){return n[K]||v},Pn=e.entries||Sn;function Cn(n){return gn(n,0,0,On)}function zn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),On(t)}var Dn,w,kn=Cn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Kn,An="__tsUtils$gblCfg";function Nn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Ln(){var n;return Dn||(n=Nn()||{},Dn=n[An]=n[An]||{}),Dn}function T(n,r){var t=c;if(sn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return nn(n)+": "+t}function _n(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Rn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));_n(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);_n(e,n)}}function Wn(r){return function(n){return n[r]}}var Kn=u.min,Bn=u.max,Gn=j(J,t),Hn=j("substring",t),Un=O("substr",t,$n);function $n(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?c:((r=r||0)<0&&(r=Bn(r+n[a],0)),l(t)?Gn(n,r):Gn(n,r,r+t))}var Mn=O("startsWith",t,Vn);function Vn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],t=0<t?t:0;return Hn(n,t,t+e)===r}var qn,Jn="_urid";function Zn(){var n;return qn||(n=Ln(),qn=n.gblSym=n.gblSym||{k:{},s:{}}),qn}var Qn={};function Xn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function Yn(n){var r,t,e=Zn();return bn(e.k,n)||(r=Xn(n),t=jn(e.s).length,r[Jn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Jn]()]=I(n)),e.k[n]}function nr(n){n&&n.toString&&Mn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Jn]&&n[Jn]();return n?Zn().s[n]:void 0}function rr(n){n=kn[n];return n?Qn[n]=Qn[n]||Xn(H+"."+n):void 0}var tr={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function er(r){var n,t={};return t[tr.c]=!0,t[tr.e]=!0,r.l&&(t.get=function(){return r.l.v},n=yn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[tr[n]]=l(r)?t[tr[n]]:r}),t}var E,x=e.defineProperty,ur=e.defineProperties;function or(n,r,t){return x(n,r,er(t))}var ir=function(){E=Ln(),ir=v};function ar(r){var t={};return ir&&ir(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return ar(function(){return Q(n,r)})}var cr,fr,sr,lr,vr,pr,yr,P,dr,br,hr="window";function C(n){return F(function(){return mr(n)||s},s)}function gr(n){return(cr=!cr||!1===n||E&&E.lzy&&!cr.b?F(Nn,v):cr).v}function mr(n,r){r=cr&&!1!==r?cr.v:gr(r);return r&&r[n]?r[n]:n===hr&&fr?fr.v:v}function Sr(){return(sr=!sr||E&&E.lzy&&!sr.b?C("document"):sr).v}function wr(){return(fr=!fr||E&&E.lzy&&!fr.b?C(hr):fr).v}function Ir(){return(lr=!lr||E&&E.lzy&&!lr.b?C("navigator"):lr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("history"):vr).v}function jr(n){return F(function(){return P.v?P.v[n]:s},s)}var Or,Er=Y("symbol");function xr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),dr&&!n||(dr=jr("for")),br&&!n||(br=jr("keyFor")),P.v}function Fr(n,r){var t=kn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:rr(n)}function Pr(n){return!!n&&b(n.next)}function Cr(n){return!rn(n)&&b(n[Fr(3)])}function zr(r,n,t){if(r&&(Pr(r)||(r=r[(Or=Or||ar(function(){return Fr(3)})).v]?r[Or.v]():null),Pr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Rn("apply"),Dr=j("every",i),kr=j("filter",i);function k(n,r,t){if(n)for(var e=n[a]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Ar=j(U,i),Nr=j($,i),Lr=j("map",i),A=j(J,i);function _r(n,r,t){return-1!==Ar(n,r,t)}function Rr(n,r,t){r=Wr(n,r,t);return-1!==r?n[r]:void 0}function Wr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Kr(n,r,t){r=Br(n,r,t);return-1!==r?n[r]:void 0}function Br(n,r,t){for(var e=-1,u=(n[a]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Gr(n,t,e){var r,u;return g(n)?(r=A(n),t?Lr(r,t,e):r):(u=[],zr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Hr,Ur=O("find",i,Rr),$r=O("findIndex",i,Wr),Mr=O("findLast",i,Kr),Vr=O("findLastIndex",i,Br),qr=qr.from||Gr,Jr=O("includes",i,_r),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Rn("bind"),nt=Rn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||ar(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function at(n,r){try{or(n,q,{v:r,c:!0,e:!1})}catch(n){}}function ct(e,u,n){var r,t,o=n||Error,i=o[f][q],a=Error.captureStackTrace,n=o;return at(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Fn(n))!==Fn(t)&&ot(t,r),a&&a(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(c[f]=n[f],new c),t;function c(){this.constructor=t,at(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,c):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,a){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||c;return a&&(e=N(e)),(u||c)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&mn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&mn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=c;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=c,n=(r=Et(r,!0),n[a]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[a]?xt(e,jt(r/e[a])):e)[a]>r?Hn(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!wr()||wr())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Fn(n),r=(r=!t)||(t=dn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],a={handler:e.handler,src:e.src,path:r},c=typeof n,f=!1,s=!1,l=(n&&c===W?f=Rt(n):s=n===v||en(c),{type:c,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?a:e,r)},copyTo:function(n,r){return Gt(t,n,r,a)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,c=function(r){or(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),c(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!un(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Wn(a);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":c)+t(n.replace(r,"\\$1"))+(u?"$":c),e?"i":"")}function ee(n,r){return n[Fr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||or(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Fr(9)];return r?r(n,t):[n]}var ie=j("split",t),ae=O("split",t,z()?null:oe),ce=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],u=n[a],t=!l(t)&&t<u?t:u;return Hn(n,t-e,t)===r}var se=j(U,t),U=j($,t),t=$=O("includes",t,le);function le(n,r,t){return cn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return a=!1,c&&c[ye]&&c[ye](),i}function u(){return c=r(c),a||e(),i}function o(){c&&t(c),c=v}var i,a=!0,c=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return c&&c[de]?c[de]():a},n[pe]=function(){return a=!0,c&&c[pe]&&c[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!c},set:function(n){!n&&c&&o(),n&&!c&&u()}}),{h:i,dn:function(){c=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,a=(1<o?t[1]:s)||clearTimeout,c=e[0],f=(e[0]=function(){f.dn(),D(c,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(a,r,[n])}return D(i,r,e)},function(n){D(a,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return tn(requestIdleCallback)},!1)).v||!requestIdleCallback)}n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Pr(n)||Cr(n)?zr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=Dr,n.arrFilter=kr,n.arrFind=Ur,n.arrFindIndex=$r,n.arrFindLast=Mr,n.arrFindLastIndex=Vr,n.arrForEach=k,n.arrFrom=qr,n.arrIncludes=Jr,n.arrIndexOf=Ar,n.arrLastIndexOf=Nr,n.arrMap=Lr,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[a],n={n:function(){return e<=++r}};return or(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=ct,n.createEnum=function(n){return gn(n,1,0,On)},n.createEnumKeyMap=Cn,n.createEnumValueMap=function(n){return gn(n,1,1,On)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return or(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=zn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=zn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||ar(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=Sr,n.getGlobal=gr,n.getHistory=Tr,n.getInst=mr,n.getIntValue=function(n,r){return y(n)?r:on(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Fr,n.getLazy=ar,n.getLength=Qt,n.getNavigator=Ir,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(zr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=wr,n.hasDocument=function(){return!!Sr()},n.hasHistory=function(){return!!Tr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Ir()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=xr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[a];else if(un(r))o=!isNaN(r.getTime());else{if(an(r))return!0;if(h(r)){try{e=r,k([a,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(an(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!jn(r)[a]}o=pn(r)}return o}(n,0)},n.hasWindow=function(){return!!wr()},n.isArray=g,n.isArrayBuffer=fn,n.isBlob=L,n.isBoolean=an,n.isDate=un,n.isDefined=tn,n.isError=sn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=Cr,n.isIterator=Pr,n.isNode=function(){return(yr=yr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Q(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=on,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||en(typeof n)},n.isPrimitiveType=en,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=ln,n.isRegExp=cn,n.isStrictNullOrUndefined=rn,n.isStrictUndefined=function(n){return!tn(n)},n.isString=d,n.isSymbol=Er,n.isThenable=vn,n.isTruthy=pn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(pr=pr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=zr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Bn,n.mathMin=Kn,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Xn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=Tn,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=On,n.objDefine=or,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,er(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,er(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=ur,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=er(r)}),ur(n,t)},n.objEntries=Pn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=En,n.objGetOwnPropertyDescriptor=yn,n.objGetPrototypeOf=Fn,n.objHasOwn=bn,n.objHasOwnProperty=dn,n.objKeys=jn,n.objSeal=xn,n.objSetPrototypeOf=ot,n.objToString=nn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Rr,n.polyArrFindIndex=Wr,n.polyArrFindLast=Kr,n.polyArrFindLastIndex=Br,n.polyArrFrom=Gr,n.polyArrIncludes=_r,n.polyGetKnownSymbol=rr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===nn(n)},n.polyNewSymbol=Xn,n.polyObjEntries=Sn,n.polyObjHasOwn=hn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)bn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=$n,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=Yn,n.polySymbolKeyFor=nr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Hr=Hr||ar(function(){return xr()&&Fr(3)}),!bn(n,a)){var e=Hr.v&&n[Hr.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(zr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Q,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){ir&&ir(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(zr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ce,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===c:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,c)===c:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Hn(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[a];return r<=0?c:r<t?Hn(n,t-r):n},n.strSlice=Gn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Mn,n.strSubstr=Un,n.strSubstring=Hn,n.strSymSplit=ae,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return dr&&(!E.lzy||P.b)||z(),(dr.v||Yn)(n)},n.symbolKeyFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=mn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||ct("UnsupportedError"))(n)},n.utcNow=ft}var r=this;"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((r="undefined"!=typeof globalThis?globalThis:r||self).nevware21=r.nevware21||{},r.nevware21["ts-utils"]={})); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
function n(n){"use strict";var s=void 0,v=null,c="",L="boolean",_="function",R="number",W="object",f="prototype",K="__proto__",B="string",r="undefined",G="constructor",H="Symbol",U="indexOf",$="lastIndexOf",a="length",M="done",V="value",q="name",J="slice",p="call",e=Object,Z=e[f],t=(Kn=String)[f],u=Math,i=(qr=Array)[f];function Q(n,r){try{r=n()}catch(n){}return r}var X=[B,R,L,r,"symbol","bigint"];function Y(r){return function(n){return typeof n===r}}function o(n){var r="[object "+n+"]";return function(n){return!(!n||nn(n)!==r)}}function nn(n){return Z.toString[p](n)}function l(n){return typeof n===r||n===r}function y(n){return n===v||l(n)}function rn(n){return n===v||!tn(n)}function tn(n){return!!n||n!==s}function en(n){return n!==W&&!!~X.indexOf(n)}var d=Y(B),b=Y(_);function h(n){return!(!n&&y(n)||!n||typeof n!==W)}var g=qr.isArray,un=o("Date"),on=Y(R),an=Y(L),cn=o("RegExp"),B=o("File"),R=o("FormData"),L=o("Blob"),fn=o("ArrayBuffer"),sn=o("Error");function ln(n){return!!(n&&n.then&&b(n.then))}var vn=ln;function pn(n){return!(!n||Q(function(){return!(n&&0+n)},!n))}var yn=e.getOwnPropertyDescriptor;function dn(n,r){return n&&Z.hasOwnProperty[p](n,r)}var bn=e.hasOwn||hn;function hn(n,r){return dn(n,r)||!!yn(n,r)}function m(n,r,t){if(n&&h(n))for(var e in n)if(bn(n,e)&&-1===r[p](t||n,e,n[e]))break}function gn(n,t,e,r){var u={};return m(n,function(n,r){u[n]=t?r:n,u[r]=e?r:n}),r(u)}function S(n){throw new TypeError(n)}function mn(n){throw new RangeError(n)}function Sn(n){var t=[];return m(n,function(n,r){t.push([n,r])}),t}var wn=e.freeze;function In(n){return n}var Tn=e.assign;function jn(n){return h(n)&&n!==v||S("objKeys called on non-object"),e.keys(n)}function On(n){return wn&&m(n,function(n,r){(g(r)||h(r))&&wn(r)}),En(n)}var En=wn||In,xn=e.seal||In,Fn=e.getPrototypeOf||function(n){return n[K]||v},Pn=e.entries||Sn;function Cn(n){return gn(n,0,0,On)}function zn(n){var t={};return m(n,function(n,r){t[n]=r[1],t[r[0]]=r[1]}),On(t)}var Dn,w,kn=Cn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),I=Kn,An="__tsUtils$gblCfg";function Nn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function Ln(){var n;return Dn||(n=Nn()||{},Dn=n[An]=n[An]||{}),Dn}function T(n,r){var t=c;if(sn(n))t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'";else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t=" - "+T(n,r)}return nn(n)+": "+t}function _n(n,r){S("'"+I(n)+"' not defined for "+T(r))}function Rn(r){return w=w||i[J],function(n){return n[r].apply(n,w[p](arguments,1))}}function j(t,n){w=w||i[J];var e=n&&n[t];return function(n){var r=n&&n[t]||e;if(r)return r.apply(n,w[p](arguments,1));_n(t,n)}}function O(e,n,u){w=w||i[J];var o=n&&n[e];return function(n){var r,t=n&&n[e]||o;if(t||u)return r=arguments,(t||u).apply(n,t?w[p](r,1):r);_n(e,n)}}function Wn(r){return function(n){return n[r]}}var Kn=u.min,Bn=u.max,Gn=j(J,t),Hn=j("substring",t),Un=O("substr",t,$n);function $n(n,r,t){return y(n)&&S("'polyStrSubstr called with invalid "+T(n)),t<0?c:((r=r||0)<0&&(r=Bn(r+n[a],0)),l(t)?Gn(n,r):Gn(n,r,r+t))}var Mn=O("startsWith",t,Vn);function Vn(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],t=0<t?t:0;return Hn(n,t,t+e)===r}var qn,Jn,Zn="_urid";function Qn(){var n;return qn||(n=Ln(),qn=n.gblSym=n.gblSym||{k:{},s:{}}),qn}function Xn(n){return{description:I(n),toString:function(){return H+"("+n+")"},_polyfill:!0}}function Yn(n){var r,t,e=Qn();return bn(e.k,n)||(r=Xn(n),t=jn(e.s).length,r[Zn]=function(){return t+"_"+r.toString()},e.k[n]=r,e.s[r[Zn]()]=I(n)),e.k[n]}function nr(n){n&&n.toString&&Mn(n.toString(),H)||S(n+" is not a symbol");n=n._polyfill&&n[Zn]&&n[Zn]();return n?Qn().s[n]:void 0}function rr(n){Jn=Jn||{};n=kn[n];return n?Jn[n]=Jn[n]||Xn(H+"."+n):void 0}var tr={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function er(r){var n,t={};return t[tr.c]=!0,t[tr.e]=!0,r.l&&(t.get=function(){return r.l.v},n=yn(r.l,"v"))&&n.set&&(t.set=function(n){r.l.v=n}),m(r,function(n,r){t[tr[n]]=l(r)?t[tr[n]]:r}),t}var E,x=e.defineProperty,ur=e.defineProperties;function or(n,r,t){return x(n,r,er(t))}var ir=function(){E=Ln(),ir=v};function ar(r){var t={};return ir&&ir(),t.b=E.lzy,x(t,"v",{configurable:!0,get:function(){var n=r();return E.lzy||(x(t,"v",{value:n}),t.b&&delete t.b),E.lzy&&t.b!==E.lzy&&(t.b=E.lzy),n}}),t}function F(n,r){return ar(function(){return Q(n,r)})}var cr,fr,sr,lr,vr,pr,yr,P,dr,br,hr="window";function C(n){return F(function(){return mr(n)||s},s)}function gr(n){return(cr=!cr||!1===n||E&&E.lzy&&!cr.b?F(Nn,v):cr).v}function mr(n,r){r=cr&&!1!==r?cr.v:gr(r);return r&&r[n]?r[n]:n===hr&&fr?fr.v:v}function Sr(){return(sr=!sr||E&&E.lzy&&!sr.b?C("document"):sr).v}function wr(){return(fr=!fr||E&&E.lzy&&!fr.b?C(hr):fr).v}function Ir(){return(lr=!lr||E&&E.lzy&&!lr.b?C("navigator"):lr).v}function Tr(){return(vr=!vr||E&&E.lzy&&!vr.b?C("history"):vr).v}function jr(n){return F(function(){return P.v?P.v[n]:s},s)}var Or,Er=Y("symbol");function xr(){return!!z()}function z(){var n=!P||E&&E.lzy&&!P.b;return n&&(P=C(H)),dr&&!n||(dr=jr("for")),br&&!n||(br=jr("keyFor")),P.v}function Fr(n,r){var t=kn[n];return P&&(!E.lzy||P.b)||z(),P.v?P.v[t||n]:r?s:rr(n)}function Pr(n){return!!n&&b(n.next)}function Cr(n){return!rn(n)&&b(n[Fr(3)])}function zr(r,n,t){if(r&&(Pr(r)||(r=r[(Or=Or||ar(function(){return Fr(3)})).v]?r[Or.v]():null),Pr(r))){var e=void 0,u=void 0;try{for(var o=0;!(u=r.next())[M]&&-1!==n[p](t||r,u[V],o,r);)o++}catch(n){e={e:n},r.throw&&(u=null,r.throw(e))}finally{try{u&&!u[M]&&r.return&&r.return(u)}finally{if(e)throw e.e}}}}var D=Rn("apply"),Dr=j("every",i),kr=j("filter",i);function k(n,r,t){if(n)for(var e=n[a]>>>0,u=0;u<e&&!(u in n&&-1===r[p](t||n,n[u],u,n));u++);}var Ar=j(U,i),Nr=j($,i),Lr=j("map",i),A=j(J,i);function _r(n,r,t){return-1!==Ar(n,r,t)}function Rr(n,r,t){r=Wr(n,r,t);return-1!==r?n[r]:void 0}function Wr(t,e,u){var o=-1;return k(t,function(n,r){if(e[p](u|t,n,r,t))return o=r,-1}),o}function Kr(n,r,t){r=Br(n,r,t);return-1!==r?n[r]:void 0}function Br(n,r,t){for(var e=-1,u=(n[a]>>>0)-1;0<=u;u--)if(u in n&&r[p](t|n,n[u],u,n)){e=u;break}return e}function Gr(n,t,e){var r,u;return g(n)?(r=A(n),t?Lr(r,t,e):r):(u=[],zr(n,function(n,r){return u.push(t?t[p](e,n,r):n)}),u)}var Hr,Ur=O("find",i,Rr),$r=O("findIndex",i,Wr),Mr=O("findLast",i,Kr),Vr=O("findLastIndex",i,Br),qr=qr.from||Gr,Jr=O("includes",i,_r),Zr=Jr,Qr=j("reduce",i),Xr=j("some",i),Yr=Rn("bind"),nt=Rn(p);function rt(t,e){return function(){var n=A(arguments),r=t();return D(r[e],r,n)}}var tt,et,ut=e.create||function(n){if(!n)return{};var r=typeof n;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+T(n));function t(){}return t[f]=n,new t};function ot(n,r){return(e.setPrototypeOf||function(t,n){(tt=tt||ar(function(){var n={};return n[K]=[],n instanceof Array})).v?t[K]=n:m(n,function(n,r){return t[n]=r})})(n,r)}function it(n,r){try{r&&(n[q]=r)}catch(n){}}function at(n,r){try{or(n,q,{v:r,c:!0,e:!1})}catch(n){}}function ct(e,u,n){var r,t,o=n||Error,i=o[f][q],a=Error.captureStackTrace,n=o;return at(t=function(){var n=this;try{it(o,e);var r,t=D(o,n,A(arguments))||n;return t!==n&&(r=Fn(n))!==Fn(t)&&ot(t,r),a&&a(t,n[G]),u&&u(t,arguments),t}finally{it(o,i)}},r=e),(t=ot(t,n))[f]=n===v?ut(n):(c[f]=n[f],new c),t;function c(){this.constructor=t,at(this,r)}}function ft(){return(Date.now||st)()}function st(){return(new Date).getTime()}function lt(r){return function(n){return y(n)&&S("strTrim called ["+T(n)+"]"),n&&n.replace?n.replace(r,c):n}}var vt=lt(/^\s+|(?=\s)\s+$/g),pt=lt(/^\s+/g),yt=lt(/(?=\s)\s+$/g),dt=O("trim",t,vt),bt=O("trimStart",t,pt),ht=bt,gt=O("trimEnd",t,yt),mt=gt,N=j("toUpperCase",t),St=j("toLowerCase",t);function wt(n,i,a){return dt(I(n)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,function(n,r,t,e,u,o){e=e||o||c;return a&&(e=N(e)),(u||c)+i+e})}function It(n,r){return wt(n,"",!0).replace(/^\w/,r?N:St)}var Tt=u.floor,jt=u.ceil,Ot=u.trunc||function(n){n=+n;return(0<n?Tt:jt)(n)};function Et(n,r){var t=+n;return t==1/0&&r&&mn("invalid value ["+T(n)+"]"),t!=t||0==t?0:Ot(t)}var xt=O("repeat",t,Ft);function Ft(n,r){y(n)&&S("can't convert ["+T(n)+"]"),(r=Et(r,!0))<0&&mn("invalid count must be >= 0 && < Infinity");for(var t=d(n)?n:I(n),e=c;0<r;(r>>>=1)&&(t+=t))1&r&&(e+=t);return e}function Pt(n,r,t){var e=c,n=(r=Et(r,!0),n[a]);return n<(r>>=0)&&(e=(r-=n)>(e=y(t)?" ":I(t))[a]?xt(e,jt(r/e[a])):e)[a]>r?Hn(e,0,r):e}var Ct=O("padStart",t,zt),u=O("padEnd",t,Dt);function zt(n,r,t){return Pt(n,r,t)+n}function Dt(n,r,t){return n+Pt(n,r,t)}var kt,At,Nt,Lt,_t=/([^\w\d_$])/g;function Rt(n){if(!n||typeof n!==W)return!1;var r=!1;if(n!==(Lt=Lt||!wr()||wr())){Nt||(At=Function[f].toString,Nt=At[p](e));try{var t=Fn(n),r=(r=!t)||(t=dn(t,G)?t[G]:t)&&typeof t==_&&At[p](t)===Nt}catch(n){}}return r}var Wt=function(n){return n.value&&qt(n),!0},Kt=[$t,qt,Vt,Mt];function Bt(t,n,e,r){var u,o,i=e.handler,r=e.path?r?e.path.concat(r):e.path:[],a={handler:e.handler,src:e.src,path:r},c=typeof n,f=!1,s=!1,l=(n&&c===W?f=Rt(n):s=n===v||en(c),{type:c,isPrim:s,isPlain:f,value:n,result:n,path:r,origin:e.src,copy:function(n,r){return Bt(t,n,r?a:e,r)},copyTo:function(n,r){return Gt(t,n,r,a)}});return l.isPrim?i&&i[p](e,l)?l.result:n:(u=n,c=function(r){or(l,"result",{g:function(){return r.v},s:function(n){r.v=n}});for(var n=0,t=i;!(t||(n<Kt.length?Kt[n++]:Wt))[p](e,l);)t=v},k(s=t,function(n){if(n.k===u)return o=n,-1}),o||(o={k:u,v:u},s.push(o),c(o)),o.v)}function Gt(n,r,t,e){if(!y(t))for(var u in t)r[u]=Bt(n,t[u],e,u);return r}function Ht(n,r,t){return Gt([],n,r,{handler:t,src:r,path:[]})}function Ut(n,r){return Bt([],n,{handler:r,src:n})}function $t(n){var r,t=n.value;return!!g(t)&&((r=n.result=[]).length=t.length,n.copyTo(r,t),!0)}function Mt(n){var r=n.value;return!!un(r)&&(n.result=new Date(r.getTime()),!0)}function Vt(n){return n.type===_}function qt(n){var r,t=n.value;return!(!t||!n.isPlain||(r=n.result={},n.copyTo(r,t),0))}function Jt(r,n){return k(n,function(n){Ht(r,n)}),r}var Zt,Qt=Wn(a);function Xt(){return(Zt=!Zt||!Zt.b&&E&&E.lzy?C("performance"):Zt).v}function Yt(){var n=Xt();return n&&n.now?n.now():ft()}function ne(n){return Yt()-n}var re="(.*)";function te(n,r,t,e,u){return RegExp((u?"^":c)+t(n.replace(r,"\\$1"))+(u?"$":c),e?"i":"")}function ee(n,r){return n[Fr(3)]=function(){return ue(r)},n}function ue(t){var e=!1;function r(){return t.v}var n={next:function(){e=e||!t.n||t.n(arguments),(n={})[M]=e;var n;return e||or(n,V,{g:r}),n}};return t.r&&(n.return=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.r&&t.r(n),r}),t.t&&(n.throw=function(n){var r;return e=!0,(r={})[M]=!0,r[V]=t.t&&t.t(n),r}),n}function oe(n,r,t){r=r&&r[Fr(9)];return r?r(n,t):[n]}var ie=j("split",t),ae=O("split",t,z()?null:oe),ce=O("endsWith",t,fe);function fe(n,r,t){d(n)||S("'"+T(n)+"' is not a string");var r=d(r)?r:I(r),e=r[a],u=n[a],t=!l(t)&&t<u?t:u;return Hn(n,t-e,t)===r}var se=j(U,t),U=j($,t),t=$=O("includes",t,le);function le(n,r,t){return cn(r)&&S("'searchString' must not be a regular expression"+T(r)),-1!==se(n,I(r),t)}var ve,pe="ref",ye="un"+pe,de="hasRef",be="enabled";function he(n,r,t){function e(){return a=!1,c&&c[ye]&&c[ye](),i}function u(){return c=r(c),a||e(),i}function o(){c&&t(c),c=v}var i,a=!0,c=n?r(v):v,n={cancel:o,refresh:u};return n[de]=function(){return c&&c[de]?c[de]():a},n[pe]=function(){return a=!0,c&&c[pe]&&c[pe](),i},n[ye]=e,n[be]=!1,x(i=n,be,{get:function(){return!!c},set:function(n){!n&&c&&o(),n&&!c&&u()}}),{h:i,dn:function(){c=v}}}function ge(r,n,t,e){var u=g(t),o=u?t.length:0,i=(0<o?t[0]:u?s:t)||setTimeout,a=(1<o?t[1]:s)||clearTimeout,c=e[0],f=(e[0]=function(){f.dn(),D(c,r,A(arguments))},he(n,function(n){if(n){if(n.refresh)return n.refresh(),n;D(a,r,[n])}return D(i,r,e)},function(n){D(a,r,[n])}));return f.h}function me(n,r){return ge(this,!0,s,A(arguments))}var Se=100,we=50;function Ie(){return!(!(ve=ve||F(function(){return tn(requestIdleCallback)},!1)).v||!requestIdleCallback)}n.arrAppend=function(r,n){return!l(n)&&r&&(g(n)?D(r.push,r,n):Pr(n)||Cr(n)?zr(n,function(n){r.push(n)}):r.push(n)),r},n.arrContains=Zr,n.arrEvery=Dr,n.arrFilter=kr,n.arrFind=Ur,n.arrFindIndex=$r,n.arrFindLast=Mr,n.arrFindLastIndex=Vr,n.arrForEach=k,n.arrFrom=qr,n.arrIncludes=Jr,n.arrIndexOf=Ar,n.arrLastIndexOf=Nr,n.arrMap=Lr,n.arrReduce=Qr,n.arrSlice=A,n.arrSome=Xr,n.arrayDeepCopyHandler=$t,n.asString=I,n.createArrayIterator=function(n){var r=-1,t=n?n.slice():[],e=t[a],n={n:function(){return e<=++r}};return or(n,"v",{g:function(){if(0<=r&&r<e)return t[r]}}),ue(n)},n.createCustomError=ct,n.createEnum=function(n){return gn(n,1,0,On)},n.createEnumKeyMap=Cn,n.createEnumValueMap=function(n){return gn(n,1,1,On)},n.createFilenameRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\\\\|\\\/|\*|\?)/g,function(n,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?re:"(.)"})},!!r,t)},n.createFnDeferredProxy=rt,n.createIterable=function(n){return ee({},n)},n.createIterator=ue,n.createProxyFuncs=function(t,e,n){var u;return t&&e&&g(n)&&(u=b(e),k(n,function(n){var r=n.as||n.n;!1===n.rp&&t[r]||(t[r]=u?rt(e,n.n):Yr(e[n.n],e))})),t},n.createRangeIterator=function(n,r,t){var e=n,u=s,o=(y(r)&&(r=n),t||(n<=r?1:-1)),t={n:function(){var n;return(n=0<o?r<e:e<r)||(u=e,e+=o),n}};return or(t,"v",{g:function(){return u}}),ue(t)},n.createSimpleMap=zn,n.createTimeout=function(n,r){return ge(this,!1,s,A(arguments))},n.createTimeoutWith=function(n,r,t){return ge(this,!1,n,A(arguments,1))},n.createTypeMap=zn,n.createWildcardRegex=function(n,r,t){return te(I(n),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,function(n){return n.replace(/\*/g,re)},!!r,t)},n.dateDeepCopyHandler=Mt,n.deepExtend=function(n,r,t,e,u,o,i){return Jt(Ut(n)||{},A(arguments))},n.dumpObj=T,n.elapsedTime=ne,n.encodeAsHtml=function(n){return kt=kt||ar(function(){return{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"}}),I(n).replace(/[&<>"']/g,function(n){return"&"+kt.v[n]+";"})},n.encodeAsJson=function(n,r){var t;if(d(n))t='"'+n.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,function(n){return'"'===n||"\\"===n?"\\"+n:(n=n.charCodeAt(0).toString(16),"\\u"+Ct(N(n),4,"0"))})+'"';else try{t=JSON.stringify(n,v,r?on(r)?r:4:s)}catch(n){t='"'+T(n)+'"'}return t},n.fnApply=D,n.fnBind=Yr,n.fnCall=nt,n.functionDeepCopyHandler=Vt,n.getDocument=Sr,n.getGlobal=gr,n.getHistory=Tr,n.getInst=mr,n.getIntValue=function(n,r){return y(n)?r:on(n)?n:isNaN(n=parseInt(n,10))?r:n},n.getKnownSymbol=Fr,n.getLazy=ar,n.getLength=Qt,n.getNavigator=Ir,n.getPerformance=Xt,n.getSymbol=z,n.getValueByIter=function(r,n,t){return n&&r&&(zr(n,function(n){if(y(r))return-1;r=r[n]}),!y(r))?r:t},n.getValueByKey=function(n,r,t){if(!r||!n)return t;for(var e=ie(r,"."),u=e.length,o=0;o<u&&!y(n);o++)n=n[e[o]];return y(n)?t:n},n.getWindow=wr,n.hasDocument=function(){return!!Sr()},n.hasHistory=function(){return!!Tr()},n.hasIdleCallback=Ie,n.hasNavigator=function(){return!!Ir()},n.hasPerformance=function(){return!!Xt()},n.hasSymbol=xr,n.hasValue=function(n){return function n(r,t){var e,u,o=!1===r||0===r;if(!o&&!y(r))if(g(r))o=0<r[a];else if(un(r))o=!isNaN(r.getTime());else{if(an(r))return!0;if(h(r)){try{e=r,k([a,"byteLength","size","count"],function(n){if(n in e)return n=e[n],u=0<(b(n)?n():n),-1});var i=u;if(an(i))return i;if(b(r.valueOf)&&t<5)return n(r.valueOf(),++t)}catch(n){}return!!jn(r)[a]}o=pn(r)}return o}(n,0)},n.hasWindow=function(){return!!wr()},n.isArray=g,n.isArrayBuffer=fn,n.isBlob=L,n.isBoolean=an,n.isDate=un,n.isDefined=tn,n.isError=sn,n.isFile=B,n.isFormData=R,n.isFunction=b,n.isIterable=Cr,n.isIterator=Pr,n.isNode=function(){return(yr=yr||F(function(){return!(!process||!(process.versions||{}).node)},!1)).v},n.isNotTruthy=function(n){return!n||!Q(function(){return n&&0+n},n)},n.isNullOrUndefined=y,n.isNumber=on,n.isObject=h,n.isPlainObject=Rt,n.isPrimitive=function(n){return n===v||en(typeof n)},n.isPrimitiveType=en,n.isPromise=function(n){return!!(n&&n.then&&n.catch&&b(n.then)&&b(n.catch))},n.isPromiseLike=ln,n.isRegExp=cn,n.isStrictNullOrUndefined=rn,n.isStrictUndefined=function(n){return!tn(n)},n.isString=d,n.isSymbol=Er,n.isThenable=vn,n.isTruthy=pn,n.isTypeof=function(n,r){return typeof n===r},n.isUndefined=l,n.isWebWorker=function(){return(pr=pr||F(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1)).v},n.iterForOf=zr,n.lazySafeGetInst=C,n.makeGlobRegex=function(n,r,t){return te(I(n),/([-+|^$#.{}()\\\/\[\]\"\'])/g,function(n){return n.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(n,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?re:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"})},!!r,t)},n.makeIterable=ee,n.mathCeil=jt,n.mathFloor=Tt,n.mathMax=Bn,n.mathMin=Kn,n.mathToInt=Et,n.mathTrunc=Ot,n.newSymbol=function(n,r){return P&&(!E.lzy||P.b)||z(),P.v?P.v(n):r?v:Xn(n)},n.normalizeJsName=function(n,r){n=I(n).replace(_t,"_");return l(r)?n:It(n,!r)},n.objAssign=Tn,n.objCopyProps=Ht,n.objCreate=ut,n.objDeepCopy=Ut,n.objDeepFreeze=On,n.objDefine=or,n.objDefineAccessors=function(n,r,t,e,u,o){o={e:o,c:u};return t&&(o.g=t),e&&(o.s=e),x(n,r,er(o))},n.objDefineGet=function(n,r,t,e,u){return x(n,r,er(((n={e:u,c:e})[b(t)?"g":"v"]=t,n)))},n.objDefineProp=x,n.objDefineProperties=ur,n.objDefineProps=function(n,r){var t={};return m(r,function(n,r){t[n]=er(r)}),ur(n,t)},n.objEntries=Pn,n.objExtend=function(n,r,t,e,u,o,i){return Jt(n||{},A(arguments))},n.objForEachKey=m,n.objFreeze=En,n.objGetOwnPropertyDescriptor=yn,n.objGetPrototypeOf=Fn,n.objHasOwn=bn,n.objHasOwnProperty=dn,n.objKeys=jn,n.objSeal=xn,n.objSetPrototypeOf=ot,n.objToString=nn,n.perfNow=Yt,n.plainObjDeepCopyHandler=qt,n.polyArrFind=Rr,n.polyArrFindIndex=Wr,n.polyArrFindLast=Kr,n.polyArrFindLastIndex=Br,n.polyArrFrom=Gr,n.polyArrIncludes=_r,n.polyGetKnownSymbol=rr,n.polyIsArray=function(n){return!y(n)&&"[object Array]"===nn(n)},n.polyNewSymbol=Xn,n.polyObjEntries=Sn,n.polyObjHasOwn=hn,n.polyObjKeys=function(n){if(!h(n)||n===v)throw new TypeError("polyObjKeys called on non-object");var r,t=[];for(r in n)bn(n,r)&&t.push(r);return t},n.polyStrIncludes=le,n.polyStrSubstr=$n,n.polyStrSymSplit=oe,n.polyStrTrim=vt,n.polyStrTrimEnd=yt,n.polyStrTrimStart=pt,n.polySymbolFor=Yn,n.polySymbolKeyFor=nr,n.polyUtcNow=st,n.readArgs=function(n,r,t){if(Hr=Hr||ar(function(){return xr()&&Fr(3)}),!bn(n,a)){var e=Hr.v&&n[Hr.v];if(e){var u=[],o=r===s||r<0?0:r,i=t<0||r<0?s:t;if(zr(e[p](n),function(n,r){if(i!==s&&i<=r)return-1;o<=r&&u.push(n)}),(r===s||0<=r)&&(t===s||0<=t))return u;n=u}}return A(n,r,t)},n.safeGet=Q,n.safeGetLazy=F,n.scheduleIdleCallback=function(r,t){function e(n){var r=Yt();return{didTimeout:n,timeRemaining:function(){return we-ne(r)}}}var u,n;return Ie()?(u=he(!0,function(n){return n&&cancelIdleCallback(n),requestIdleCallback(function(n){u.dn(),r(n||e(!1))},t)},function(n){cancelIdleCallback(n)})).h:me(function(){r(e(!0))},l(n=(t||{}).timeout)?Se:n)},n.scheduleInterval=function(n,r){var t=this,e=A(arguments);return he(!0,function(n){return n&&clearInterval(n),D(setInterval,t,e)},function(n){D(clearInterval,t,[n])}).h},n.scheduleTimeout=me,n.scheduleTimeoutWith=function(n,r,t){return ge(this,!0,n,A(arguments,1))},n.setBypassLazyCache=function(n){ir&&ir(),E.lzy=n},n.setDefaultIdleTimeout=function(n){Se=n},n.setDefaultMaxExecutionTime=function(n){we=n},n.setValueByIter=function(r,n,t){var e;r&&n&&(zr(n,function(n){e&&(y(r[e])&&(r[e]={}),r=r[e]),e=n}),r[e]=t)},n.setValueByKey=function(r,n,t){var e;r&&n&&(e=(n=ie(n,".")).pop(),k(n,function(n){y(r[n])&&(r[n]={}),r=r[n]}),r[e]=t)},n.strCamelCase=It,n.strContains=t,n.strEndsWith=ce,n.strIncludes=$,n.strIndexOf=se,n.strIsNullOrEmpty=function(n){return d(n)?n===c:y(n)},n.strIsNullOrWhiteSpace=function(n){return d(n)?n.replace(/[\s\t\r\n\f]+/g,c)===c:y(n)},n.strKebabCase=function(n,r){n=wt(n,"-");return(r?N:St)(n)},n.strLastIndexOf=U,n.strLeft=function(n,r){return Hn(n,0,r)},n.strLetterCase=function(n){return I(n).replace(/(_|\b)\w/g,N)},n.strLower=St,n.strPadEnd=u,n.strPadStart=Ct,n.strRepeat=xt,n.strRight=function(n,r){var t=n[a];return r<=0?c:r<t?Hn(n,t-r):n},n.strSlice=Gn,n.strSnakeCase=function(n,r){n=wt(n,"_");return(r?N:St)(n)},n.strSplit=ie,n.strStartsWith=Mn,n.strSubstr=Un,n.strSubstring=Hn,n.strSymSplit=ae,n.strTrim=dt,n.strTrimEnd=gt,n.strTrimLeft=ht,n.strTrimRight=mt,n.strTrimStart=bt,n.strUpper=N,n.symbolFor=function(n){return dr&&(!E.lzy||P.b)||z(),(dr.v||Yn)(n)},n.symbolKeyFor=function(n){return br&&(!E.lzy||P.b)||z(),(br.v||nr)(n)},n.throwError=function(n){throw Error(n)},n.throwRangeError=mn,n.throwTypeError=S,n.throwUnsupported=function(n){throw new(et=et||ct("UnsupportedError"))(n)},n.utcNow=ft}var r=this;"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((r="undefined"!=typeof globalThis?globalThis:r||self).nevware21=r.nevware21||{},r.nevware21["ts-utils"]={})); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
define(["exports"],function(t){"use strict";const s=void 0,p=null,f="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math,X=Array;const i=X[l];function Y(t,n){let r=n;try{r=t()}catch(t){}return r}const tt=[B,R,L,n,"symbol","bigint"];function nt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||rt(t)!==n)}}function rt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function v(t){return t===p||a(t)}function et(t){return t===p||!ot(t)}function ot(t){return!!t||t!==s}function ut(t){return t!==W&&!!~tt.indexOf(t)}const d=nt(B),b=nt(_);function h(t){return!(!t&&v(t)||!t||typeof t!==W)}const g=X.isArray,it=u("Date"),ct=nt(R),at=nt(L),ft=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),st=u("ArrayBuffer");const lt=u("Error");function pt(t){return!!(t&&t.then&&b(t.then))}var yt=pt;function vt(t){return!(!t||Y(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function bt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const ht=e.hasOwn||gt;function gt(t,n){return bt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(ht(t,e)&&-1===n[y](r||t,e,t[e]))break}function mt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function St(t){throw new RangeError(t)}function wt(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const It=e.freeze;function Tt(t){return t}var jt=e.assign;function Ot(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Et(t){return It&&m(t,(t,n)=>{(g(n)||h(n))&&It(n)}),xt(t)}const xt=It||Tt;var Ft=e.seal||Tt;const Pt=e.getPrototypeOf||function(t){return t[K]||p};var Ct=e.entries||wt;function zt(t){return mt(t,0,0,Et)}function Dt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Et(r)}const kt=zt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,At="__tsUtils$gblCfg";let Nt;function Lt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function _t(){var t;return Nt||(t=Lt()||{},Nt=t[At]=t[At]||{}),Nt}function I(t,n){let r=f;if(lt(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return rt(t)+": "+r}let T;function Rt(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Wt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));Rt(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);Rt(e,t)}}function Kt(n){return function(t){return t[n]}}Q=o.min;const Bt=o.max,Gt=j(J,r),Ht=j("substring",r);var Ut=O("substr",r,$t);function $t(t,n,r){return v(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Bt(n+t[c],0)),a(r)?Gt(t,n):Gt(t,n,n+r))}const Mt=O("startsWith",r,Vt);function Vt(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],r=0<r?r:0;return Ht(t,r,r+e)===n}const qt="_urid";let Jt;function Zt(){var t;return Jt||(t=_t(),Jt=t.gblSym=t.gblSym||{k:{},s:{}}),Jt}let Qt={};function Xt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Yt(r){var e=Zt();if(!ht(e.k,r)){let t=Xt(r),n=Ot(e.s).length;t[qt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[qt]()]=w(r)}return e.k[r]}function tn(t){t&&t.toString&&Mt(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[qt]&&t[qt]();return t?Zt().s[t]:void 0}function nn(t){t=kt[t];return t?Qt[t]=Qt[t]||Xt(H+"."+t):void 0}const rn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function en(n){let r={};var t;return r[rn.c]=!0,r[rn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[rn[t]]=a(n)?r[rn[t]]:n}),r}const E=e.defineProperty,on=e.defineProperties;function un(t,n,r){return E(t,n,en(r))}let x,cn=function(){x=_t(),cn=p};function an(n){let r={};return cn&&cn(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return an(()=>Y(t,n))}const fn="window";let sn,ln,pn,yn,vn,dn,bn;function P(t){return F(()=>gn(t)||s,s)}function hn(t){return(sn=!sn||!1===t||x&&x.lzy&&!sn.b?F(Lt,p):sn).v}function gn(t,n){n=sn&&!1!==n?sn.v:hn(n);return n&&n[t]?n[t]:t===fn&&ln?ln.v:p}function mn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("document"):pn).v}function Sn(){return(ln=!ln||x&&x.lzy&&!ln.b?P(fn):ln).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("navigator"):yn).v}function In(){return(vn=!vn||x&&x.lzy&&!vn.b?P("history"):vn).v}let C,Tn,jn;function On(t){return F(function(){return C.v?C.v[t]:s},s)}var En=nt("symbol");function xn(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),Tn&&!t||(Tn=On("for")),jn&&!t||(jn=On("keyFor")),C.v}function Fn(t,n){var r=kt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?s:nn(t)}function Pn(t){return!!t&&b(t.next)}function Cn(t){return!et(t)&&b(t[Fn(3)])}let zn;function Dn(e,o,u){if(e&&(Pn(e)||(e=e[(zn=zn||an(()=>Fn(3))).v]?e[zn.v]():null),Pn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Wt("apply");var kn=j("every",i),An=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const Nn=j(U,i);var Ln=j($,i);const _n=j("map",i),A=j(J,i);function Rn(t,n,r){return-1!==Nn(t,n,r)}function Wn(t,n,r){n=Kn(t,n,r);return-1!==n?t[n]:void 0}function Kn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Bn(t,n,r){n=Gn(t,n,r);return-1!==n?t[n]:void 0}function Gn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Hn(t,r,e){var n;if(g(t))return n=A(t),r?_n(n,r,e):n;let o=[];return Dn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Un=O("find",i,Wn),$n=O("findIndex",i,Kn),Mn=O("findLast",i,Bn),Vn=O("findLastIndex",i,Gn),X=X.from||Hn,qn=O("includes",i,Rn),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Wt("bind");var Yn=Wt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||an(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}const ur=(t,n)=>{try{n&&(t[q]=n)}catch(t){}},ir=(t,n)=>{try{un(t,q,{v:n,c:!0,e:!1})}catch(t){}};function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return r=e,a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Pt(t))!==Pt(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},t=u,ir(a,r),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function fr(){return(Date.now||sr)()}function sr(){return(new Date).getTime()}function lr(n){return function(t){return v(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),vr=lr(/(?=\s)\s+$/g);const dr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,vr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return dr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=N(i)),(o||f)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&St("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){v(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&St("invalid count must be >= 0 && < Infinity");let r=d(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=f;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=v(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Ht(e,0,n):e}const Cr=O("padStart",r,zr);o=O("padEnd",r,Dr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!Sn()||Sn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Pt(n);(r=!t)||(bt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===W?c=Rr(t):a=t===p||ut(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(k(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;un(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,f);)n=p}}return r.v}}function Gr(t,n,r,e){if(!v(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!it(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Kt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():fr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function ee(t,n){return t[Fn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||un(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[Fn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,fe);function fe(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Ht(t,r-e,r)===n}const se=j(U,r);U=j($,r),$=O("includes",r,le),r=$;function le(t,n,r){return ft(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==se(t,w(n),r)}const pe="ref",ye="un"+pe,ve="hasRef",de="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[ve]:()=>o&&o[ve]?o[ve]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[de]:!1},E(u,de,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return f.h}function ge(t,n){return he(this,!0,s,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Pn(t)||Cn(t)?Dn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=kn,t.arrFilter=An,t.arrFind=Un,t.arrFindIndex=$n,t.arrFindLast=Mn,t.arrFindLastIndex=Vn,t.arrForEach=k,t.arrFrom=X,t.arrIncludes=qn,t.arrIndexOf=Nn,t.arrLastIndexOf=Ln,t.arrMap=_n,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return un(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return mt(t,1,0,Et)},t.createEnumKeyMap=zt,t.createEnumValueMap=function(t){return mt(t,1,1,Et)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=s,u=(v(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return un(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=Dt,t.createTimeout=function(t,n){return he(this,!1,s,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=Dt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||an(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(d(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=mn,t.getGlobal=hn,t.getHistory=In,t.getInst=gn,t.getIntValue=function(t,n){return v(t)?n:ct(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=Fn,t.getLazy=an,t.getLength=Zr,t.getNavigator=wn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(Dn(t,t=>{if(v(n))return-1;n=n[t]}),!v(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!v(n);t++)n=n[e[t]];return v(n)?r:n},t.getWindow=Sn,t.hasDocument=function(){return!!mn()},t.hasHistory=function(){return!!In()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!wn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=xn,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!v(n))if(g(n))e=0<n[c];else if(it(n))e=!isNaN(n.getTime());else{if(at(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(at(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!Ot(n)[c]}e=vt(n)}return e}(t,0)},t.hasWindow=function(){return!!Sn()},t.isArray=g,t.isArrayBuffer=st,t.isBlob=L,t.isBoolean=at,t.isDate=it,t.isDefined=ot,t.isError=lt,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Cn,t.isIterator=Pn,t.isNode=function(){return(bn=bn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!Y(()=>t&&0+t,t)},t.isNullOrUndefined=v,t.isNumber=ct,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ut(typeof t)},t.isPrimitiveType=ut,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=pt,t.isRegExp=ft,t.isStrictNullOrUndefined=et,t.isStrictUndefined=function(t){return!ot(t)},t.isString=d,t.isSymbol=En,t.isThenable=yt,t.isTruthy=vt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=Dn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Bt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Xt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=jt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Et,t.objDefine=un,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,en(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,en({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=on,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=en(n)}),on(t,r)},t.objEntries=Ct,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=xt,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Pt,t.objHasOwn=ht,t.objHasOwnProperty=bt,t.objKeys=Ot,t.objSeal=Ft,t.objSetPrototypeOf=or,t.objToString=rt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Wn,t.polyArrFindIndex=Kn,t.polyArrFindLast=Bn,t.polyArrFindLastIndex=Gn,t.polyArrFrom=Hn,t.polyArrIncludes=Rn,t.polyGetKnownSymbol=nn,t.polyIsArray=function(t){return!v(t)&&"[object Array]"===rt(t)},t.polyNewSymbol=Xt,t.polyObjEntries=wt,t.polyObjHasOwn=gt,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)ht(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=$t,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=vr,t.polyStrTrimStart=yr,t.polySymbolFor=Yt,t.polySymbolKeyFor=tn,t.polyUtcNow=sr,t.readArgs=function(t,n,u){if(nr=nr||an(()=>xn()&&Fn(3)),!ht(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(Dn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=Y,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){cn&&cn(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;Dn(t,t=>{n&&(v(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{v(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=se,t.strIsNullOrEmpty=function(t){return d(t)?t===f:v(t)},t.strIsNullOrWhiteSpace=function(t){return d(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:v(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Ht(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?f:n<r?Ht(t,r-n):t},t.strSlice=Gt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=Mt,t.strSubstr=Ut,t.strSubstring=Ht,t.strSymSplit=ce,t.strTrim=dr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.symbolKeyFor=function(t){return jn&&(!x.lzy||C.b)||z(),(jn.v||tn)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=St,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=fr}); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
define(["exports"],function(t){"use strict";const s=void 0,p=null,f="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math,X=Array;const i=X[l];function Y(t,n){let r=n;try{r=t()}catch(t){}return r}const tt=[B,R,L,n,"symbol","bigint"];function nt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||rt(t)!==n)}}function rt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function v(t){return t===p||a(t)}function et(t){return t===p||!ot(t)}function ot(t){return!!t||t!==s}function ut(t){return t!==W&&!!~tt.indexOf(t)}const d=nt(B),b=nt(_);function h(t){return!(!t&&v(t)||!t||typeof t!==W)}const g=X.isArray,it=u("Date"),ct=nt(R),at=nt(L),ft=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),st=u("ArrayBuffer");const lt=u("Error");function pt(t){return!!(t&&t.then&&b(t.then))}var yt=pt;function vt(t){return!(!t||Y(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function bt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const ht=e.hasOwn||gt;function gt(t,n){return bt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(ht(t,e)&&-1===n[y](r||t,e,t[e]))break}function mt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function St(t){throw new RangeError(t)}function wt(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const It=e.freeze;function Tt(t){return t}var jt=e.assign;function Ot(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Et(t){return It&&m(t,(t,n)=>{(g(n)||h(n))&&It(n)}),xt(t)}const xt=It||Tt;var Ft=e.seal||Tt;const Pt=e.getPrototypeOf||function(t){return t[K]||p};var Ct=e.entries||wt;function zt(t){return mt(t,0,0,Et)}function Dt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Et(r)}const kt=zt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,At="__tsUtils$gblCfg";let Nt;function Lt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function _t(){var t;return Nt||(t=Lt()||{},Nt=t[At]=t[At]||{}),Nt}function I(t,n){let r=f;if(lt(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return rt(t)+": "+r}let T;function Rt(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Wt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));Rt(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);Rt(e,t)}}function Kt(n){return function(t){return t[n]}}Q=o.min;const Bt=o.max,Gt=j(J,r),Ht=j("substring",r);var Ut=O("substr",r,$t);function $t(t,n,r){return v(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Bt(n+t[c],0)),a(r)?Gt(t,n):Gt(t,n,n+r))}const Mt=O("startsWith",r,Vt);function Vt(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],r=0<r?r:0;return Ht(t,r,r+e)===n}const qt="_urid";let Jt;function Zt(){var t;return Jt||(t=_t(),Jt=t.gblSym=t.gblSym||{k:{},s:{}}),Jt}let Qt;function Xt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Yt(r){var e=Zt();if(!ht(e.k,r)){let t=Xt(r),n=Ot(e.s).length;t[qt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[qt]()]=w(r)}return e.k[r]}function tn(t){t&&t.toString&&Mt(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[qt]&&t[qt]();return t?Zt().s[t]:void 0}function nn(t){Qt=Qt||{};t=kt[t];return t?Qt[t]=Qt[t]||Xt(H+"."+t):void 0}const rn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function en(n){let r={};var t;return r[rn.c]=!0,r[rn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[rn[t]]=a(n)?r[rn[t]]:n}),r}const E=e.defineProperty,on=e.defineProperties;function un(t,n,r){return E(t,n,en(r))}let x,cn=function(){x=_t(),cn=p};function an(n){let r={};return cn&&cn(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return an(()=>Y(t,n))}const fn="window";let sn,ln,pn,yn,vn,dn,bn;function P(t){return F(()=>gn(t)||s,s)}function hn(t){return(sn=!sn||!1===t||x&&x.lzy&&!sn.b?F(Lt,p):sn).v}function gn(t,n){n=sn&&!1!==n?sn.v:hn(n);return n&&n[t]?n[t]:t===fn&&ln?ln.v:p}function mn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("document"):pn).v}function Sn(){return(ln=!ln||x&&x.lzy&&!ln.b?P(fn):ln).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("navigator"):yn).v}function In(){return(vn=!vn||x&&x.lzy&&!vn.b?P("history"):vn).v}let C,Tn,jn;function On(t){return F(function(){return C.v?C.v[t]:s},s)}var En=nt("symbol");function xn(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),Tn&&!t||(Tn=On("for")),jn&&!t||(jn=On("keyFor")),C.v}function Fn(t,n){var r=kt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?s:nn(t)}function Pn(t){return!!t&&b(t.next)}function Cn(t){return!et(t)&&b(t[Fn(3)])}let zn;function Dn(e,o,u){if(e&&(Pn(e)||(e=e[(zn=zn||an(()=>Fn(3))).v]?e[zn.v]():null),Pn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Wt("apply");var kn=j("every",i),An=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const Nn=j(U,i);var Ln=j($,i);const _n=j("map",i),A=j(J,i);function Rn(t,n,r){return-1!==Nn(t,n,r)}function Wn(t,n,r){n=Kn(t,n,r);return-1!==n?t[n]:void 0}function Kn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Bn(t,n,r){n=Gn(t,n,r);return-1!==n?t[n]:void 0}function Gn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Hn(t,r,e){var n;if(g(t))return n=A(t),r?_n(n,r,e):n;let o=[];return Dn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Un=O("find",i,Wn),$n=O("findIndex",i,Kn),Mn=O("findLast",i,Bn),Vn=O("findLastIndex",i,Gn),X=X.from||Hn,qn=O("includes",i,Rn),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Wt("bind");var Yn=Wt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||an(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}function ur(t,n){try{n&&(t[q]=n)}catch(t){}}function ir(t,n){try{un(t,q,{v:n,c:!0,e:!1})}catch(t){}}function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return t=u,ir(a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Pt(t))!==Pt(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},r=e),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function fr(){return(Date.now||sr)()}function sr(){return(new Date).getTime()}function lr(n){return function(t){return v(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),vr=lr(/(?=\s)\s+$/g);const dr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,vr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return dr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=N(i)),(o||f)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&St("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){v(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&St("invalid count must be >= 0 && < Infinity");let r=d(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=f;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=v(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Ht(e,0,n):e}const Cr=O("padStart",r,zr);o=O("padEnd",r,Dr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!Sn()||Sn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Pt(n);(r=!t)||(bt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===W?c=Rr(t):a=t===p||ut(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(k(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;un(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,f);)n=p}}return r.v}}function Gr(t,n,r,e){if(!v(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!it(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Kt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():fr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function ee(t,n){return t[Fn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||un(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[Fn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,fe);function fe(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Ht(t,r-e,r)===n}const se=j(U,r);U=j($,r),$=O("includes",r,le),r=$;function le(t,n,r){return ft(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==se(t,w(n),r)}const pe="ref",ye="un"+pe,ve="hasRef",de="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[ve]:()=>o&&o[ve]?o[ve]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[de]:!1},E(u,de,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return f.h}function ge(t,n){return he(this,!0,s,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Pn(t)||Cn(t)?Dn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=kn,t.arrFilter=An,t.arrFind=Un,t.arrFindIndex=$n,t.arrFindLast=Mn,t.arrFindLastIndex=Vn,t.arrForEach=k,t.arrFrom=X,t.arrIncludes=qn,t.arrIndexOf=Nn,t.arrLastIndexOf=Ln,t.arrMap=_n,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return un(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return mt(t,1,0,Et)},t.createEnumKeyMap=zt,t.createEnumValueMap=function(t){return mt(t,1,1,Et)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=s,u=(v(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return un(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=Dt,t.createTimeout=function(t,n){return he(this,!1,s,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=Dt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||an(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(d(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=mn,t.getGlobal=hn,t.getHistory=In,t.getInst=gn,t.getIntValue=function(t,n){return v(t)?n:ct(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=Fn,t.getLazy=an,t.getLength=Zr,t.getNavigator=wn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(Dn(t,t=>{if(v(n))return-1;n=n[t]}),!v(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!v(n);t++)n=n[e[t]];return v(n)?r:n},t.getWindow=Sn,t.hasDocument=function(){return!!mn()},t.hasHistory=function(){return!!In()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!wn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=xn,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!v(n))if(g(n))e=0<n[c];else if(it(n))e=!isNaN(n.getTime());else{if(at(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(at(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!Ot(n)[c]}e=vt(n)}return e}(t,0)},t.hasWindow=function(){return!!Sn()},t.isArray=g,t.isArrayBuffer=st,t.isBlob=L,t.isBoolean=at,t.isDate=it,t.isDefined=ot,t.isError=lt,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Cn,t.isIterator=Pn,t.isNode=function(){return(bn=bn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!Y(()=>t&&0+t,t)},t.isNullOrUndefined=v,t.isNumber=ct,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ut(typeof t)},t.isPrimitiveType=ut,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=pt,t.isRegExp=ft,t.isStrictNullOrUndefined=et,t.isStrictUndefined=function(t){return!ot(t)},t.isString=d,t.isSymbol=En,t.isThenable=yt,t.isTruthy=vt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=Dn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Bt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Xt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=jt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Et,t.objDefine=un,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,en(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,en({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=on,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=en(n)}),on(t,r)},t.objEntries=Ct,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=xt,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Pt,t.objHasOwn=ht,t.objHasOwnProperty=bt,t.objKeys=Ot,t.objSeal=Ft,t.objSetPrototypeOf=or,t.objToString=rt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Wn,t.polyArrFindIndex=Kn,t.polyArrFindLast=Bn,t.polyArrFindLastIndex=Gn,t.polyArrFrom=Hn,t.polyArrIncludes=Rn,t.polyGetKnownSymbol=nn,t.polyIsArray=function(t){return!v(t)&&"[object Array]"===rt(t)},t.polyNewSymbol=Xt,t.polyObjEntries=wt,t.polyObjHasOwn=gt,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)ht(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=$t,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=vr,t.polyStrTrimStart=yr,t.polySymbolFor=Yt,t.polySymbolKeyFor=tn,t.polyUtcNow=sr,t.readArgs=function(t,n,u){if(nr=nr||an(()=>xn()&&Fn(3)),!ht(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(Dn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=Y,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){cn&&cn(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;Dn(t,t=>{n&&(v(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{v(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=se,t.strIsNullOrEmpty=function(t){return d(t)?t===f:v(t)},t.strIsNullOrWhiteSpace=function(t){return d(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:v(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Ht(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?f:n<r?Ht(t,r-n):t},t.strSlice=Gt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=Mt,t.strSubstr=Ut,t.strSubstring=Ht,t.strSymSplit=ce,t.strTrim=dr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.symbolKeyFor=function(t){return jn&&(!x.lzy||C.b)||z(),(jn.v||tn)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=St,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=fr}); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,2 +0,2 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
/* | ||
@@ -49,2 +49,3 @@ * Copyright (c) NevWare21 and contributors. All rights reserved. | ||
const PRIMITIVE_TYPES = [STRING, NUMBER, BOOLEAN, UNDEFINED, "symbol", "bigint"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createIs(theType) { | ||
@@ -55,2 +56,3 @@ return function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createObjIs(theName) { | ||
@@ -62,26 +64,35 @@ const theType = "[object " + theName + "]"; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objToString(value) { | ||
return ObjProto.toString[CALL](value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTypeof(value, theType) { | ||
return typeof value === theType; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isUndefined(value) { | ||
return typeof value === UNDEFINED || value === UNDEFINED; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictUndefined(arg) { | ||
return !isDefined(arg); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNullOrUndefined(value) { | ||
return value === NULL_VALUE || isUndefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictNullOrUndefined(value) { | ||
return value === NULL_VALUE || !isDefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isDefined(arg) { | ||
return !!arg || arg !== UNDEF_VALUE; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitive(value) { | ||
return value === NULL_VALUE || isPrimitiveType(typeof value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitiveType(theType) { | ||
@@ -92,2 +103,3 @@ return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1; | ||
const isFunction = ( /*#__PURE__*/_createIs(FUNCTION)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isObject(value) { | ||
@@ -109,2 +121,3 @@ if (!value && isNullOrUndefined(value)) { | ||
const isError = ( /*#__PURE__*/_createObjIs("Error")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromiseLike(value) { | ||
@@ -114,8 +127,11 @@ return !!(value && value.then && isFunction(value.then)); | ||
const isThenable = isPromiseLike; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromise(value) { | ||
return !!(value && value.then && value.catch && isFunction(value.then) && isFunction(value.catch)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNotTruthy(value) { | ||
return !value || !safeGet(() => (value && (0 + value)), value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTruthy(value) { | ||
@@ -127,2 +143,3 @@ return !(!value || safeGet(() => !(value && (0 + value)), !value)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objHasOwnProperty(obj, prop) { | ||
@@ -133,2 +150,3 @@ return obj && ObjProto.hasOwnProperty[CALL](obj, prop); | ||
const objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjHasOwn(obj, prop) { | ||
@@ -150,2 +168,3 @@ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createKeyValueMap(values, keyType, valueType, completeFn) { | ||
@@ -170,2 +189,3 @@ let theMap = {}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjKeys(obj) { | ||
@@ -183,2 +203,3 @@ if (!isObject(obj) || obj === NULL_VALUE) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjEntries(value) { | ||
@@ -196,2 +217,3 @@ let result = []; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getProto(value) { | ||
@@ -201,2 +223,3 @@ return value[__PROTO__] || NULL_VALUE; | ||
const objAssign = ObjClass["assign"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objKeys(value) { | ||
@@ -223,11 +246,15 @@ if (!isObject(value) || value === NULL_VALUE) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnum(values) { | ||
return _createKeyValueMap(values, 1 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumKeyMap(values) { | ||
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumValueMap(values) { | ||
return _createKeyValueMap(values, 1 , 1 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createSimpleMap(values) { | ||
@@ -241,2 +268,3 @@ let mapClass = {}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createTypeMap(values) { | ||
@@ -266,2 +294,3 @@ return createSimpleMap(values); | ||
let _globalCfg; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalValue() { | ||
@@ -283,2 +312,3 @@ let result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalConfig() { | ||
@@ -292,2 +322,3 @@ if (!_globalCfg) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function dumpObj(object, format) { | ||
@@ -345,2 +376,3 @@ let propertyValueDump = EMPTY; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _unwrapProp(propName) { | ||
@@ -359,2 +391,3 @@ return function (thisArg) { | ||
const strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSubstr(value, start, length) { | ||
@@ -376,5 +409,7 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLeft(value, count) { | ||
return strSubstring(value, 0, count); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strRight(value, count) { | ||
@@ -389,2 +424,3 @@ let len = value[LENGTH]; | ||
const strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrStartsWith(value, searchString, position) { | ||
@@ -402,2 +438,3 @@ if (!isString(value)) { | ||
let _polySymbols; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _globalSymbolRegistry() { | ||
@@ -410,3 +447,4 @@ if (!_polySymbols) { | ||
} | ||
let _wellKnownSymbolCache = {}; | ||
let _wellKnownSymbolCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyNewSymbol(description) { | ||
@@ -420,2 +458,3 @@ let theSymbol = { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolFor(key) { | ||
@@ -432,2 +471,3 @@ let registry = _globalSymbolRegistry(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolKeyFor(sym) { | ||
@@ -440,3 +480,5 @@ if (!sym || !sym.toString || !strStartsWith(sym.toString(), SYMBOL)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyGetKnownSymbol(name) { | ||
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {}); | ||
let result; | ||
@@ -458,2 +500,3 @@ let knownName = _wellKnownSymbolMap[name]; | ||
}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createProp(value) { | ||
@@ -556,5 +599,7 @@ let prop = {}; | ||
let _isNode; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function lazySafeGetInst(name) { | ||
return safeGetLazy(() => getInst(name) || UNDEF_VALUE, UNDEF_VALUE); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getGlobal(useCached) { | ||
@@ -564,2 +609,3 @@ (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getInst(name, useCached) { | ||
@@ -575,5 +621,7 @@ const gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasDocument() { | ||
return !!getDocument(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getDocument() { | ||
@@ -583,5 +631,7 @@ (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasWindow() { | ||
return !!getWindow(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getWindow() { | ||
@@ -591,5 +641,7 @@ (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasNavigator() { | ||
return !!getNavigator(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getNavigator() { | ||
@@ -599,5 +651,7 @@ (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasHistory() { | ||
return !!getHistory(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getHistory() { | ||
@@ -619,2 +673,3 @@ (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history")); | ||
let _symbolKeyFor; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getSymbolValue(name) { | ||
@@ -626,2 +681,3 @@ return safeGetLazy(function () { | ||
const isSymbol = ( /*#__PURE__*/_createIs("symbol")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasSymbol() { | ||
@@ -637,2 +693,3 @@ return !!getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getKnownSymbol(name, noPoly) { | ||
@@ -643,2 +700,3 @@ let knownName = _wellKnownSymbolMap[name]; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function newSymbol(description, noPoly) { | ||
@@ -648,2 +706,3 @@ (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolFor(key) { | ||
@@ -653,2 +712,3 @@ (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolKeyFor(sym) { | ||
@@ -659,5 +719,7 @@ (!_symbolKeyFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterator(value) { | ||
return !!value && isFunction(value.next); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterable(value) { | ||
@@ -751,2 +813,3 @@ return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyIsArray(value) { | ||
@@ -758,2 +821,3 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyArrIncludes(theArray, searchElement, fromIndex) { | ||
@@ -847,2 +911,3 @@ return arrIndexOf(theArray, searchElement, fromIndex) !== -1; | ||
let _iterSymbol; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function readArgs(theArgs, start, end) { | ||
@@ -876,2 +941,3 @@ if (!_iterSymbol) { | ||
const objCreate = ObjClass["create"] || polyObjCreate; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjCreate(obj) { | ||
@@ -910,3 +976,3 @@ if (!obj) { | ||
} | ||
const _safeSetName = (baseClass, name) => { | ||
function _safeSetName(baseClass, name) { | ||
try { | ||
@@ -917,4 +983,4 @@ name && (baseClass[NAME] = name); | ||
} | ||
}; | ||
const _safeDefineName = (target, name) => { | ||
} | ||
function _safeDefineName(target, name) { | ||
try { | ||
@@ -925,3 +991,4 @@ objDefine(target, NAME, { v: name, c: true, e: false }); | ||
} | ||
}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createCustomError(name, constructCb, errorBase) { | ||
@@ -959,5 +1026,7 @@ let theBaseClass = errorBase || Error; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function utcNow() { | ||
return (Date.now || polyUtcNow)(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyUtcNow() { | ||
@@ -967,2 +1036,3 @@ return new Date().getTime(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createTrimFn(exp) { | ||
@@ -992,2 +1062,3 @@ return function _doTrim(value) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _convertCase(value, newPrefix, upperWord) { | ||
@@ -1002,5 +1073,7 @@ return strTrim(asString(value)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g, (_match, _g1, _g2, wordStart, upperPrefix, upperLetter) => { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLetterCase(value) { | ||
return asString(value).replace(/(_|\b)\w/g, strUpper); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strCamelCase(value, upperFirst) { | ||
@@ -1010,2 +1083,3 @@ let result = _convertCase(value, "", true); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strKebabCase(value, scream) { | ||
@@ -1015,2 +1089,3 @@ let result = _convertCase(value, "-"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strSnakeCase(value, scream) { | ||
@@ -1025,2 +1100,3 @@ let result = _convertCase(value, "_"); | ||
const mathTrunc = MathCls.trunc || polyMathTrunc; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyMathTrunc(value) { | ||
@@ -1031,2 +1107,3 @@ let theValue = +value; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function mathToInt(value, throwInfinity) { | ||
@@ -1041,2 +1118,3 @@ let result = +value; | ||
const strRepeat = ( /*#__PURE__*/_unwrapFunctionWithPoly("repeat", StrProto, polyStrRepeat)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrRepeat(value, count) { | ||
@@ -1060,2 +1138,3 @@ if (isNullOrUndefined(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _padValue(value, targetLength, padString) { | ||
@@ -1080,5 +1159,7 @@ let result = EMPTY; | ||
const strPadEnd = ( /*#__PURE__*/_unwrapFunctionWithPoly("padEnd", StrProto, polyStrPadEnd)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadStart(value, targetLength, padString) { | ||
return _padValue(value, targetLength, padString) + value; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadEnd(value, targetLength, padString) { | ||
@@ -1091,2 +1172,3 @@ return value + _padValue(value, targetLength, padString); | ||
let _htmlEntityCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function normalizeJsName(jsName, camelCase) { | ||
@@ -1096,2 +1178,3 @@ let result = asString(jsName).replace(INVALID_JS_NAME, "_"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsJson(value, format) { | ||
@@ -1118,2 +1201,3 @@ let result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsHtml(value) { | ||
@@ -1135,2 +1219,3 @@ !_htmlEntityCache && (_htmlEntityCache = getLazy(() => { | ||
let _gblWindow; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPlainObject(value) { | ||
@@ -1260,2 +1345,3 @@ if (!value || typeof value !== OBJECT) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objDeepCopy(source, handler) { | ||
@@ -1317,2 +1403,3 @@ let ctx = { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getIntValue(value, defValue) { | ||
@@ -1330,5 +1417,7 @@ if (!isNullOrUndefined(value)) { | ||
let _perf; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasPerformance() { | ||
return !!getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getPerformance() { | ||
@@ -1338,2 +1427,3 @@ (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function perfNow() { | ||
@@ -1346,2 +1436,3 @@ let perf = getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function elapsedTime(startTime) { | ||
@@ -1356,2 +1447,3 @@ return perfNow() - startTime; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createWildcardRegex(value, ignoreCase, fullMatch) { | ||
@@ -1362,2 +1454,3 @@ return _createRegExp(asString(value), /([-+|^$#.\?{}()\[\]\\/\"\'])/g, (value) => { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createFilenameRegex(value, ignoreCase, fullMatch) { | ||
@@ -1373,2 +1466,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, (value) => { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function makeGlobRegex(value, ignoreCase, fullMatch) { | ||
@@ -1391,2 +1485,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, (value) => { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _checkLength(value, props) { | ||
@@ -1403,2 +1498,3 @@ let result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _hasValue(value, depth) { | ||
@@ -1436,2 +1532,3 @@ let result = value === false || value === 0; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasValue(value) { | ||
@@ -1441,2 +1538,3 @@ return _hasValue(value, 0); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterable(ctx) { | ||
@@ -1453,2 +1551,3 @@ return makeIterable({}, ctx); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterator(ctx) { | ||
@@ -1495,2 +1594,3 @@ let isDone = false; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createArrayIterator(values) { | ||
@@ -1516,2 +1616,3 @@ let idx = -1; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createRangeIterator(start, end, step) { | ||
@@ -1548,2 +1649,3 @@ let nextValue = start; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSymSplit(value, splitter, limit) { | ||
@@ -1557,2 +1659,3 @@ let splitFn = splitter && splitter[getKnownSymbol(9 )]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByKey(target, path, defValue) { | ||
@@ -1569,2 +1672,3 @@ if (!path || !target) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByIter(target, iter, defValue) { | ||
@@ -1612,2 +1716,3 @@ if (!iter || !target) { | ||
const strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrEndsWith(value, searchString, length) { | ||
@@ -1629,2 +1734,3 @@ if (!isString(value)) { | ||
const strContains = strIncludes; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrIncludes(value, searchString, position) { | ||
@@ -1637,2 +1743,3 @@ if (isRegExp(searchString)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrWhiteSpace(value) { | ||
@@ -1644,2 +1751,3 @@ if (isString(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrEmpty(value) { | ||
@@ -1751,2 +1859,3 @@ if (isString(value)) { | ||
let _maxExecutionTime = 50; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasIdleCallback() { | ||
@@ -1753,0 +1862,0 @@ !_hasIdleCallback && (_hasIdleCallback = safeGetLazy(() => isDefined(requestIdleCallback), false)); |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
"use strict";const p=void 0,l=null,a="";var L="boolean";const _="function";var R="number";const W="object",f="prototype",K="__proto__";var B="string";const r="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const i="length",M="done",V="value",q="name",J="slice",x="call",n=Object,Z=n[f];var Q=String,t=Q[f],e=Math,X=Array;const u=X[f];function Y(t,r){let e=r;try{e=t()}catch(t){}return e}const tt=[B,R,L,r,"symbol","bigint"];function rt(r){return function(t){return typeof t===r}}function o(t){const r="[object "+t+"]";return function(t){return!(!t||et(t)!==r)}}function et(t){return Z.toString[x](t)}function s(t){return typeof t===r||t===r}function c(t){return t===l||s(t)}function nt(t){return t===l||!ot(t)}function ot(t){return!!t||t!==p}function st(t){return t!==W&&!!~tt.indexOf(t)}const y=rt(B),v=rt(_);function d(t){return!(!t&&c(t)||!t||typeof t!==W)}const b=X.isArray,ut=o("Date"),it=rt(R),ct=rt(L),at=o("RegExp");var B=o("File"),R=o("FormData"),L=o("Blob"),pt=o("ArrayBuffer");const ft=o("Error");function lt(t){return!!(t&&t.then&&v(t.then))}var xt=lt;function yt(t){return!(!t||Y(()=>!(t&&0+t),!t))}const vt=n.getOwnPropertyDescriptor;function dt(t,r){return t&&Z.hasOwnProperty[x](t,r)}const bt=n.hasOwn||ht;function ht(t,r){return dt(t,r)||!!vt(t,r)}function h(t,r,e){if(t&&d(t))for(const n in t)if(bt(t,n)&&-1===r[x](e||t,n,t[n]))break}function gt(t,e,n,r){let o={};return h(t,(t,r)=>{o[t]=e?r:t,o[r]=n?r:t}),r(o)}function g(t){throw new TypeError(t)}function mt(t){throw new RangeError(t)}function St(t){let e=[];return h(t,(t,r)=>{e.push([t,r])}),e}const wt=n.freeze;function It(t){return t}var Tt=n.assign;function jt(t){return d(t)&&t!==l||g("objKeys called on non-object"),n.keys(t)}function Ot(t){return wt&&h(t,(t,r)=>{(b(r)||d(r))&&wt(r)}),Et(t)}const Et=wt||It;var Ft=n.seal||It;const Pt=n.getPrototypeOf||function(t){return t[K]||l};var Ct=n.entries||St;function zt(t){return gt(t,0,0,Ot)}function Dt(t){let e={};return h(t,(t,r)=>{e[t]=r[1],e[r[0]]=r[1]}),Ot(e)}const kt=zt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),m=Q,At="__tsUtils$gblCfg";let Nt;function Lt(){var t;return(t=(t=(t=typeof globalThis!==r?globalThis:void 0)||typeof self===r?t:self)||typeof window===r?t:window)||typeof global===r?t:global}function _t(){var t;return Nt||(t=Lt()||{},Nt=t[At]=t[At]||{}),Nt}function S(t,r){let e=a;if(ft(t))e="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{e=JSON.stringify(t,l,r?it(r)?r:4:p)}catch(t){e=" - "+S(t,r)}return et(t)+": "+e}let w;function Rt(t,r){g("'"+m(t)+"' not defined for "+S(r))}function Wt(r){return w=w||u[J],function(t){return t[r].apply(t,w[x](arguments,1))}}function I(e,t){w=w||u[J];let n=t&&t[e];return function(t){var r=t&&t[e]||n;if(r)return r.apply(t,w[x](arguments,1));Rt(e,t)}}function T(n,t,o){w=w||u[J];let s=t&&t[n];return function(t){var r,e=t&&t[n]||s;if(e||o)return r=arguments,(e||o).apply(t,e?w[x](r,1):r);Rt(n,t)}}function Kt(r){return function(t){return t[r]}}Q=e.min;const Bt=e.max,Gt=I(J,t),j=I("substring",t);var Ht=T("substr",t,Ut);function Ut(t,r,e){return c(t)&&g("'polyStrSubstr called with invalid "+S(t)),e<0?a:((r=r||0)<0&&(r=Bt(r+t[i],0)),s(e)?Gt(t,r):Gt(t,r,r+e))}const $t=T("startsWith",t,Mt);function Mt(t,r,e){y(t)||g("'"+S(t)+"' is not a string");var r=y(r)?r:m(r),n=r[i],e=0<e?e:0;return j(t,e,e+n)===r}const Vt="_urid";let qt;function Jt(){var t;return qt||(t=_t(),qt=t.gblSym=t.gblSym||{k:{},s:{}}),qt}let Zt={};function Qt(t){return{description:m(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Xt(e){var n=Jt();if(!bt(n.k,e)){let t=Qt(e),r=jt(n.s).length;t[Vt]=()=>r+"_"+t.toString(),n.k[e]=t,n.s[t[Vt]()]=m(e)}return n.k[e]}function Yt(t){t&&t.toString&&$t(t.toString(),H)||g(t+" is not a symbol");t=t._polyfill&&t[Vt]&&t[Vt]();return t?Jt().s[t]:void 0}function tr(t){t=kt[t];return t?Zt[t]=Zt[t]||Qt(H+"."+t):void 0}const rr={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function er(r){let e={};var t;return e[rr.c]=!0,e[rr.e]=!0,r.l&&(e.get=()=>r.l.v,t=vt(r.l,"v"))&&t.set&&(e.set=t=>{r.l.v=t}),h(r,(t,r)=>{e[rr[t]]=s(r)?e[rr[t]]:r}),e}const O=n.defineProperty,nr=n.defineProperties;function or(t,r,e){return O(t,r,er(e))}let E,sr=function(){E=_t(),sr=l};function ur(r){let e={};return sr&&sr(),e.b=E.lzy,O(e,"v",{configurable:!0,get:function(){var t=r();return E.lzy||(O(e,"v",{value:t}),e.b&&delete e.b),E.lzy&&e.b!==E.lzy&&(e.b=E.lzy),t}}),e}function F(t,r){return ur(()=>Y(t,r))}const ir="window";let cr,ar,pr,fr,lr,xr,yr;function P(t){return F(()=>dr(t)||p,p)}function vr(t){return(cr=!cr||!1===t||E&&E.lzy&&!cr.b?F(Lt,l):cr).v}function dr(t,r){r=cr&&!1!==r?cr.v:vr(r);return r&&r[t]?r[t]:t===ir&&ar?ar.v:l}function br(){return(pr=!pr||E&&E.lzy&&!pr.b?P("document"):pr).v}function hr(){return(ar=!ar||E&&E.lzy&&!ar.b?P(ir):ar).v}function gr(){return(fr=!fr||E&&E.lzy&&!fr.b?P("navigator"):fr).v}function mr(){return(lr=!lr||E&&E.lzy&&!lr.b?P("history"):lr).v}let C,Sr,wr;function Ir(t){return F(function(){return C.v?C.v[t]:p},p)}var Tr=rt("symbol");function jr(){return!!z()}function z(){var t=!C||E&&E.lzy&&!C.b;return t&&(C=P(H)),Sr&&!t||(Sr=Ir("for")),wr&&!t||(wr=Ir("keyFor")),C.v}function Or(t,r){var e=kt[t];return C&&(!E.lzy||C.b)||z(),C.v?C.v[e||t]:r?p:tr(t)}function Er(t){return!!t&&v(t.next)}function Fr(t){return!nt(t)&&v(t[Or(3)])}let Pr;function Cr(n,o,s){if(n&&(Er(n)||(n=n[(Pr=Pr||ur(()=>Or(3))).v]?n[Pr.v]():null),Er(n))){let r,e;try{let t=0;for(;!(e=n.next())[M]&&-1!==o[x](s||n,e[V],t,n);)t++}catch(t){r={e:t},n.throw&&(e=null,n.throw(r))}finally{try{e&&!e[M]&&n.return&&n.return(e)}finally{if(r)throw r.e}}}}const D=Wt("apply");var zr=I("every",u),Dr=I("filter",u);function k(r,e,n){if(r){var o=r[i]>>>0;for(let t=0;t<o&&!(t in r&&-1===e[x](n||r,r[t],t,r));t++);}}const kr=I(U,u);var Ar=I($,u);const Nr=I("map",u),A=I(J,u);function Lr(t,r,e){return-1!==kr(t,r,e)}function _r(t,r,e){r=Rr(t,r,e);return-1!==r?t[r]:void 0}function Rr(e,n,o){let s=-1;return k(e,(t,r)=>{if(n[x](o|e,t,r,e))return s=r,-1}),s}function Wr(t,r,e){r=Kr(t,r,e);return-1!==r?t[r]:void 0}function Kr(r,e,n){let o=-1;for(let t=(r[i]>>>0)-1;0<=t;t--)if(t in r&&e[x](n|r,r[t],t,r)){o=t;break}return o}function Br(t,e,n){var r;if(b(t))return r=A(t),e?Nr(r,e,n):r;let o=[];return Cr(t,(t,r)=>o.push(e?e[x](n,t,r):t)),o}var Gr=T("find",u,_r),Hr=T("findIndex",u,Rr),Ur=T("findLast",u,Wr),$r=T("findLastIndex",u,Kr),X=X.from||Br,Mr=T("includes",u,Lr),Vr=Mr,qr=I("reduce",u),Jr=I("some",u);const Zr=Wt("bind");var Qr=Wt(x);function Xr(e,n){return function(){var t=A(arguments),r=e();return D(r[n],r,t)}}let Yr;const te=n.create||function(t){if(!t)return{};var r=typeof t;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+S(t));function e(){}return e[f]=t,new e};let re;function ee(t,r){return(n.setPrototypeOf||function(e,t){(re=re||ur(()=>({[K]:[]})instanceof Array)).v?e[K]=t:h(t,(t,r)=>e[t]=r)})(t,r)}const ne=(t,r)=>{try{r&&(t[q]=r)}catch(t){}},oe=(t,r)=>{try{or(t,q,{v:r,c:!0,e:!1})}catch(t){}};function se(n,o,t){let s=t||Error,u=s[f][q],i=Error.captureStackTrace;return e=n,c=function(){var t=this;try{ne(s,n);var r,e=D(s,t,A(arguments))||t;return e!==t&&(r=Pt(t))!==Pt(e)&&ee(e,r),i&&i(e,t[G]),o&&o(e,arguments),e}finally{ne(s,u)}},t=s,oe(c,e),(c=ee(c,t))[f]=t===l?te(t):(r[f]=t[f],new r),c;function r(){this.constructor=c,oe(this,e)}var e,c}let ue;function ie(){return(Date.now||ce)()}function ce(){return(new Date).getTime()}function ae(r){return function(t){return c(t)&&g("strTrim called ["+S(t)+"]"),t&&t.replace?t.replace(r,a):t}}var pe=ae(/^\s+|(?=\s)\s+$/g),fe=ae(/^\s+/g),le=ae(/(?=\s)\s+$/g);const xe=T("trim",t,pe);var ye=T("trimStart",t,fe),ve=ye,de=T("trimEnd",t,le),be=de;const N=I("toUpperCase",t),he=I("toLowerCase",t);function ge(t,i,c){return xe(m(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,r,e,n,o,s)=>{let u=n||s||a;return c&&(u=N(u)),(o||a)+i+u})}function me(t,r){return ge(t,"",!0).replace(/^\w/,r?N:he)}const Se=e.floor,we=e.ceil,Ie=e.trunc||function(t){t=+t;return(0<t?Se:we)(t)};function Te(t,r){var e=+t;return e==1/0&&r&&mt("invalid value ["+S(t)+"]"),e!=e||0==e?0:Ie(e)}const je=T("repeat",t,Oe);function Oe(t,r){c(t)&&g("can't convert ["+S(t)+"]"),(r=Te(r,!0))<0&&mt("invalid count must be >= 0 && < Infinity");let e=y(t)?t:m(t),n=a;for(;0<r;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}function Ee(t,r,e){let n=a;r=Te(r,!0),r>>=0;t=t[i];return n=t<r&&(r-=t,(n=r>(n=c(e)?" ":m(e))[i]?je(n,we(r/n[i])):n)[i]>r)?j(n,0,r):n}const Fe=T("padStart",t,Pe);e=T("padEnd",t,Ce);function Pe(t,r,e){return Ee(t,r,e)+t}function Ce(t,r,e){return t+Ee(t,r,e)}const ze=/([^\w\d_$])/g;let De,ke,Ae,Ne;function Le(r){if(!r||typeof r!==W)return!1;let e=!1;if(r!==(Ne=Ne||!hr()||hr())){Ae||(ke=Function[f].toString,Ae=ke[x](n));try{let t=Pt(r);(e=!t)||(dt(t,G)&&(t=t[G]),e=t&&typeof t==_&&ke[x](t)===Ae)}catch(t){}}return e}const _e=t=>(t.value&&Me(t),!0),Re=[He,Me,$e,Ue];function We(n,t,o,r){var s=o.handler,r=o.path?r?o.path.concat(r):o.path:[];let e={handler:o.handler,src:o.src,path:r};var u=typeof t;let i=!1,c=!1,a=(t&&u===W?i=Le(t):c=t===l||st(u),{type:u,isPrim:c,isPlain:i,value:t,result:t,path:r,origin:o.src,copy:(t,r)=>We(n,t,r?e:o,r),copyTo:(t,r)=>Ke(n,t,r,e)});if(a.isPrim)return s&&s[x](o,a)?a.result:t;{var u=n,p=t;let e;if(k(u,t=>{if(t.k===p)return e=t,-1}),!e){e={k:p,v:p},u.push(e);{var f=e;or(a,"result",{g:function(){return f.v},s:function(t){f.v=t}});let t=0,r=s;for(;!(r||(t<Re.length?Re[t++]:_e))[x](o,a);)r=l}}return e.v}}function Ke(t,r,e,n){if(!c(e))for(const o in e)r[o]=We(t,e[o],n,o);return r}function Be(t,r,e){return Ke([],t,r,{handler:e,src:r,path:[]})}function Ge(t,r){return We([],t,{handler:r,src:t})}function He(t){var r,e=t.value;return!!b(e)&&((r=t.result=[]).length=e.length,t.copyTo(r,e),!0)}function Ue(t){var r=t.value;return!!ut(r)&&(t.result=new Date(r.getTime()),!0)}function $e(t){return t.type===_}function Me(t){var r,e=t.value;return!(!e||!t.isPlain||(r=t.result={},t.copyTo(r,e),0))}function Ve(r,t){return k(t,t=>{Be(r,t)}),r}var qe=Kt(i);let Je;function Ze(){return(Je=!Je||!Je.b&&E&&E.lzy?P("performance"):Je).v}function Qe(){var t=Ze();return t&&t.now?t.now():ie()}function Xe(t){return Qe()-t}const Ye="(.*)";function tn(t,r,e,n,o){return RegExp((o?"^":a)+e(t.replace(r,"\\$1"))+(o?"$":a),n?"i":"")}function rn(t,r){return t[Or(3)]=function(){return en(r)},t}function en(r){let e=!1;function n(){return r.v}var t={next:function(){e=e||!r.n||r.n(arguments);var t={[M]:e};return e||or(t,V,{g:n}),t}};return r.r&&(t.return=function(t){return e=!0,{[M]:!0,[V]:r.r&&r.r(t)}}),r.t&&(t.throw=function(t){return e=!0,{[M]:!0,[V]:r.t&&r.t(t)}}),t}function nn(t,r,e){r=r&&r[Or(9)];return r?r(t,e):[t]}const on=I("split",t);var sn=T("split",t,z()?null:nn),un=T("endsWith",t,cn);function cn(t,r,e){y(t)||g("'"+S(t)+"' is not a string");var r=y(r)?r:m(r),n=r[i],o=t[i],e=!s(e)&&e<o?e:o;return j(t,e-n,e)===r}const an=I(U,t);U=I($,t),$=T("includes",t,pn),t=$;function pn(t,r,e){return at(r)&&g("'searchString' must not be a regular expression"+S(r)),-1!==an(t,m(r),e)}const fn="ref",ln="un"+fn,xn="hasRef",yn="enabled";function vn(t,r,e){let n=!0,o=t?r(l):l,s;const u=()=>(n=!1,o&&o[ln]&&o[ln](),s),i=()=>(o=r(o),n||u(),s),c=()=>{o&&e(o),o=l};return s={cancel:c,refresh:i,[xn]:()=>o&&o[xn]?o[xn]():n,[fn]:()=>(n=!0,o&&o[fn]&&o[fn](),s),[ln]:u,[yn]:!1},O(s,yn,{get:()=>!!o,set:t=>{!t&&o&&c(),t&&!o&&i()}}),{h:s,dn:()=>{o=l}}}function dn(r,t,e,n){var o=b(e),s=o?e.length:0;let u=(0<s?e[0]:o?p:e)||setTimeout,i=(1<s?e[1]:p)||clearTimeout,c=n[0],a=(n[0]=function(){a.dn(),D(c,r,A(arguments))},vn(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(i,r,[t])}return D(u,r,n)},function(t){D(i,r,[t])}));return a.h}function bn(t,r){return dn(this,!0,p,A(arguments))}let hn,gn=100,mn=50;function Sn(){return!(!(hn=hn||F(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}exports.arrAppend=function(r,t){return!s(t)&&r&&(b(t)?D(r.push,r,t):Er(t)||Fr(t)?Cr(t,t=>{r.push(t)}):r.push(t)),r},exports.arrContains=Vr,exports.arrEvery=zr,exports.arrFilter=Dr,exports.arrFind=Gr,exports.arrFindIndex=Hr,exports.arrFindLast=Ur,exports.arrFindLastIndex=$r,exports.arrForEach=k,exports.arrFrom=X,exports.arrIncludes=Mr,exports.arrIndexOf=kr,exports.arrLastIndexOf=Ar,exports.arrMap=Nr,exports.arrReduce=qr,exports.arrSlice=A,exports.arrSome=Jr,exports.arrayDeepCopyHandler=He,exports.asString=m,exports.createArrayIterator=function(t){let r=-1,e=t?t.slice():[],n=e[i];t={n:function(){return++r>=n}};return or(t,"v",{g:function(){if(0<=r&&r<n)return e[r]}}),en(t)},exports.createCustomError=se,exports.createEnum=function(t){return gt(t,1,0,Ot)},exports.createEnumKeyMap=zt,exports.createEnumValueMap=function(t){return gt(t,1,1,Ot)},exports.createFilenameRegex=function(t,r,e){return tn(m(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?Ye:"(.)"}),!!r,e)},exports.createFnDeferredProxy=Xr,exports.createIterable=function(t){return rn({},t)},exports.createIterator=en,exports.createProxyFuncs=function(n,o,t){if(n&&o&&b(t)){let e=v(o);k(t,t=>{var r=t.as||t.n;!1===t.rp&&n[r]||(n[r]=e?Xr(o,t.n):Zr(o[t.n],o))})}return n},exports.createRangeIterator=function(t,r,e){let n=t,o=p,s=(c(r)&&(r=t),e||(t<=r?1:-1));e={n:function(){var t;return(t=0<s?n>r:n<r)||(o=n,n+=s),t}};return or(e,"v",{g:function(){return o}}),en(e)},exports.createSimpleMap=Dt,exports.createTimeout=function(t,r){return dn(this,!1,p,A(arguments))},exports.createTimeoutWith=function(t,r,e){return dn(this,!1,t,A(arguments,1))},exports.createTypeMap=Dt,exports.createWildcardRegex=function(t,r,e){return tn(m(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,Ye),!!r,e)},exports.dateDeepCopyHandler=Ue,exports.deepExtend=function(t,r,e,n,o,s,u){return Ve(Ge(t)||{},A(arguments))},exports.dumpObj=S,exports.elapsedTime=Xe,exports.encodeAsHtml=function(t){return De=De||ur(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),m(t).replace(/[&<>"']/g,t=>"&"+De.v[t]+";")},exports.encodeAsJson=function(t,r){let e;if(y(t))e='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Fe(N(t),4,"0"))})+'"';else try{e=JSON.stringify(t,l,r?it(r)?r:4:p)}catch(t){e='"'+S(t)+'"'}return e},exports.fnApply=D,exports.fnBind=Zr,exports.fnCall=Qr,exports.functionDeepCopyHandler=$e,exports.getDocument=br,exports.getGlobal=vr,exports.getHistory=mr,exports.getInst=dr,exports.getIntValue=function(t,r){return c(t)?r:it(t)?t:isNaN(t=parseInt(t,10))?r:t},exports.getKnownSymbol=Or,exports.getLazy=ur,exports.getLength=qe,exports.getNavigator=gr,exports.getPerformance=Ze,exports.getSymbol=z,exports.getValueByIter=function(r,t,e){return t&&r&&(Cr(t,t=>{if(c(r))return-1;r=r[t]}),!c(r))?r:e},exports.getValueByKey=function(r,t,e){if(!t||!r)return e;var n=on(t,"."),o=n.length;for(let t=0;t<o&&!c(r);t++)r=r[n[t]];return c(r)?e:r},exports.getWindow=hr,exports.hasDocument=function(){return!!br()},exports.hasHistory=function(){return!!mr()},exports.hasIdleCallback=Sn,exports.hasNavigator=function(){return!!gr()},exports.hasPerformance=function(){return!!Ze()},exports.hasSymbol=jr,exports.hasValue=function(t){return function t(r,e){let n=!1===r||0===r;if(!n&&!c(r))if(b(r))n=0<r[i];else if(ut(r))n=!isNaN(r.getTime());else{if(ct(r))return!0;if(d(r)){try{var o=function(r,t){let e;return k(t,t=>{if(t in r)return t=r[t],e=0<(v(t)?t():t),-1}),e}(r,[i,"byteLength","size","count"]);if(ct(o))return o;if(v(r.valueOf)&&e<5)return t(r.valueOf(),++e)}catch(t){}return!!jt(r)[i]}n=yt(r)}return n}(t,0)},exports.hasWindow=function(){return!!hr()},exports.isArray=b,exports.isArrayBuffer=pt,exports.isBlob=L,exports.isBoolean=ct,exports.isDate=ut,exports.isDefined=ot,exports.isError=ft,exports.isFile=B,exports.isFormData=R,exports.isFunction=v,exports.isIterable=Fr,exports.isIterator=Er,exports.isNode=function(){return(yr=yr||F(()=>!(!process||!(process.versions||{}).node),!1)).v},exports.isNotTruthy=function(t){return!t||!Y(()=>t&&0+t,t)},exports.isNullOrUndefined=c,exports.isNumber=it,exports.isObject=d,exports.isPlainObject=Le,exports.isPrimitive=function(t){return t===l||st(typeof t)},exports.isPrimitiveType=st,exports.isPromise=function(t){return!!(t&&t.then&&t.catch&&v(t.then)&&v(t.catch))},exports.isPromiseLike=lt,exports.isRegExp=at,exports.isStrictNullOrUndefined=nt,exports.isStrictUndefined=function(t){return!ot(t)},exports.isString=y,exports.isSymbol=Tr,exports.isThenable=xt,exports.isTruthy=yt,exports.isTypeof=function(t,r){return typeof t===r},exports.isUndefined=s,exports.isWebWorker=function(){return(xr=xr||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},exports.iterForOf=Cr,exports.lazySafeGetInst=P,exports.makeGlobRegex=function(t,r,e){return tn(m(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?Ye:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!r,e)},exports.makeIterable=rn,exports.mathCeil=we,exports.mathFloor=Se,exports.mathMax=Bt,exports.mathMin=Q,exports.mathToInt=Te,exports.mathTrunc=Ie,exports.newSymbol=function(t,r){return C&&(!E.lzy||C.b)||z(),C.v?C.v(t):r?l:Qt(t)},exports.normalizeJsName=function(t,r){t=m(t).replace(ze,"_");return s(r)?t:me(t,!r)},exports.objAssign=Tt,exports.objCopyProps=Be,exports.objCreate=te,exports.objDeepCopy=Ge,exports.objDeepFreeze=Ot,exports.objDefine=or,exports.objDefineAccessors=function(t,r,e,n,o,s){s={e:s,c:o};return e&&(s.g=e),n&&(s.s=n),O(t,r,er(s))},exports.objDefineGet=function(t,r,e,n,o){return O(t,r,er({e:o,c:n,[v(e)?"g":"v"]:e}))},exports.objDefineProp=O,exports.objDefineProperties=nr,exports.objDefineProps=function(t,r){let e={};return h(r,(t,r)=>{e[t]=er(r)}),nr(t,e)},exports.objEntries=Ct,exports.objExtend=function(t,r,e,n,o,s,u){return Ve(t||{},A(arguments))},exports.objForEachKey=h,exports.objFreeze=Et,exports.objGetOwnPropertyDescriptor=vt,exports.objGetPrototypeOf=Pt,exports.objHasOwn=bt,exports.objHasOwnProperty=dt,exports.objKeys=jt,exports.objSeal=Ft,exports.objSetPrototypeOf=ee,exports.objToString=et,exports.perfNow=Qe,exports.plainObjDeepCopyHandler=Me,exports.polyArrFind=_r,exports.polyArrFindIndex=Rr,exports.polyArrFindLast=Wr,exports.polyArrFindLastIndex=Kr,exports.polyArrFrom=Br,exports.polyArrIncludes=Lr,exports.polyGetKnownSymbol=tr,exports.polyIsArray=function(t){return!c(t)&&"[object Array]"===et(t)},exports.polyNewSymbol=Qt,exports.polyObjEntries=St,exports.polyObjHasOwn=ht,exports.polyObjKeys=function(t){if(!d(t)||t===l)throw new TypeError("polyObjKeys called on non-object");var r=[];for(const e in t)bt(t,e)&&r.push(e);return r},exports.polyStrIncludes=pn,exports.polyStrSubstr=Ut,exports.polyStrSymSplit=nn,exports.polyStrTrim=pe,exports.polyStrTrimEnd=le,exports.polyStrTrimStart=fe,exports.polySymbolFor=Xt,exports.polySymbolKeyFor=Yt,exports.polyUtcNow=ce,exports.readArgs=function(t,r,s){if(Yr=Yr||ur(()=>jr()&&Or(3)),!bt(t,i)){var u=Yr.v&&t[Yr.v];if(u){let e=[],n=r===p||r<0?0:r,o=s<0||r<0?p:s;if(Cr(u[x](t),(t,r)=>{if(o!==p&&r>=o)return-1;r>=n&&e.push(t)}),(r===p||0<=r)&&(s===p||0<=s))return e;t=e}}return A(t,r,s)},exports.safeGet=Y,exports.safeGetLazy=F,exports.scheduleIdleCallback=function(e,n){function o(t){let r=Qe();return{didTimeout:t,timeRemaining:()=>mn-Xe(r)}}if(Sn()){let r=vn(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{r.dn(),e(t||o(!1))},n)),t=>{cancelIdleCallback(t)});return r.h}var t=(n||{}).timeout;return bn(()=>{e(o(!0))},s(t)?gn:t)},exports.scheduleInterval=function(t,r){let e=this,n=A(arguments);return vn(!0,t=>(t&&clearInterval(t),D(setInterval,e,n)),t=>{D(clearInterval,e,[t])}).h},exports.scheduleTimeout=bn,exports.scheduleTimeoutWith=function(t,r,e){return dn(this,!0,t,A(arguments,1))},exports.setBypassLazyCache=function(t){sr&&sr(),E.lzy=t},exports.setDefaultIdleTimeout=function(t){gn=t},exports.setDefaultMaxExecutionTime=function(t){mn=t},exports.setValueByIter=function(e,t,n){if(e&&t){let r;Cr(t,t=>{r&&(c(e[r])&&(e[r]={}),e=e[r]),r=t}),e[r]=n}},exports.setValueByKey=function(r,t,e){var n;r&&t&&(n=(t=on(t,".")).pop(),k(t,t=>{c(r[t])&&(r[t]={}),r=r[t]}),r[n]=e)},exports.strCamelCase=me,exports.strContains=t,exports.strEndsWith=un,exports.strIncludes=$,exports.strIndexOf=an,exports.strIsNullOrEmpty=function(t){return y(t)?t===a:c(t)},exports.strIsNullOrWhiteSpace=function(t){return y(t)?t.replace(/[\s\t\r\n\f]+/g,a)===a:c(t)},exports.strKebabCase=function(t,r){t=ge(t,"-");return(r?N:he)(t)},exports.strLastIndexOf=U,exports.strLeft=function(t,r){return j(t,0,r)},exports.strLetterCase=function(t){return m(t).replace(/(_|\b)\w/g,N)},exports.strLower=he,exports.strPadEnd=e,exports.strPadStart=Fe,exports.strRepeat=je,exports.strRight=function(t,r){var e=t[i];return r<=0?a:r<e?j(t,e-r):t},exports.strSlice=Gt,exports.strSnakeCase=function(t,r){t=ge(t,"_");return(r?N:he)(t)},exports.strSplit=on,exports.strStartsWith=$t,exports.strSubstr=Ht,exports.strSubstring=j,exports.strSymSplit=sn,exports.strTrim=xe,exports.strTrimEnd=de,exports.strTrimLeft=ve,exports.strTrimRight=be,exports.strTrimStart=ye,exports.strUpper=N,exports.symbolFor=function(t){return Sr&&(!E.lzy||C.b)||z(),(Sr.v||Xt)(t)},exports.symbolKeyFor=function(t){return wr&&(!E.lzy||C.b)||z(),(wr.v||Yt)(t)},exports.throwError=function(t){throw Error(t)},exports.throwRangeError=mt,exports.throwTypeError=g,exports.throwUnsupported=function(t){throw new(ue=ue||se("UnsupportedError"))(t)},exports.utcNow=ie; | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
"use strict";const p=void 0,l=null,a="";var L="boolean";const _="function";var R="number";const W="object",f="prototype",K="__proto__";var B="string";const r="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const i="length",M="done",V="value",q="name",J="slice",x="call",n=Object,Z=n[f];var Q=String,t=Q[f],e=Math,X=Array;const u=X[f];function Y(t,r){let e=r;try{e=t()}catch(t){}return e}const tt=[B,R,L,r,"symbol","bigint"];function rt(r){return function(t){return typeof t===r}}function o(t){const r="[object "+t+"]";return function(t){return!(!t||et(t)!==r)}}function et(t){return Z.toString[x](t)}function s(t){return typeof t===r||t===r}function c(t){return t===l||s(t)}function nt(t){return t===l||!ot(t)}function ot(t){return!!t||t!==p}function st(t){return t!==W&&!!~tt.indexOf(t)}const y=rt(B),v=rt(_);function d(t){return!(!t&&c(t)||!t||typeof t!==W)}const b=X.isArray,ut=o("Date"),it=rt(R),ct=rt(L),at=o("RegExp");var B=o("File"),R=o("FormData"),L=o("Blob"),pt=o("ArrayBuffer");const ft=o("Error");function lt(t){return!!(t&&t.then&&v(t.then))}var xt=lt;function yt(t){return!(!t||Y(()=>!(t&&0+t),!t))}const vt=n.getOwnPropertyDescriptor;function dt(t,r){return t&&Z.hasOwnProperty[x](t,r)}const bt=n.hasOwn||ht;function ht(t,r){return dt(t,r)||!!vt(t,r)}function h(t,r,e){if(t&&d(t))for(const n in t)if(bt(t,n)&&-1===r[x](e||t,n,t[n]))break}function gt(t,e,n,r){let o={};return h(t,(t,r)=>{o[t]=e?r:t,o[r]=n?r:t}),r(o)}function g(t){throw new TypeError(t)}function mt(t){throw new RangeError(t)}function St(t){let e=[];return h(t,(t,r)=>{e.push([t,r])}),e}const wt=n.freeze;function It(t){return t}var Tt=n.assign;function jt(t){return d(t)&&t!==l||g("objKeys called on non-object"),n.keys(t)}function Ot(t){return wt&&h(t,(t,r)=>{(b(r)||d(r))&&wt(r)}),Et(t)}const Et=wt||It;var Ft=n.seal||It;const Pt=n.getPrototypeOf||function(t){return t[K]||l};var Ct=n.entries||St;function zt(t){return gt(t,0,0,Ot)}function Dt(t){let e={};return h(t,(t,r)=>{e[t]=r[1],e[r[0]]=r[1]}),Ot(e)}const kt=zt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),m=Q,At="__tsUtils$gblCfg";let Nt;function Lt(){var t;return(t=(t=(t=typeof globalThis!==r?globalThis:void 0)||typeof self===r?t:self)||typeof window===r?t:window)||typeof global===r?t:global}function _t(){var t;return Nt||(t=Lt()||{},Nt=t[At]=t[At]||{}),Nt}function S(t,r){let e=a;if(ft(t))e="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{e=JSON.stringify(t,l,r?it(r)?r:4:p)}catch(t){e=" - "+S(t,r)}return et(t)+": "+e}let w;function Rt(t,r){g("'"+m(t)+"' not defined for "+S(r))}function Wt(r){return w=w||u[J],function(t){return t[r].apply(t,w[x](arguments,1))}}function I(e,t){w=w||u[J];let n=t&&t[e];return function(t){var r=t&&t[e]||n;if(r)return r.apply(t,w[x](arguments,1));Rt(e,t)}}function T(n,t,o){w=w||u[J];let s=t&&t[n];return function(t){var r,e=t&&t[n]||s;if(e||o)return r=arguments,(e||o).apply(t,e?w[x](r,1):r);Rt(n,t)}}function Kt(r){return function(t){return t[r]}}Q=e.min;const Bt=e.max,Gt=I(J,t),j=I("substring",t);var Ht=T("substr",t,Ut);function Ut(t,r,e){return c(t)&&g("'polyStrSubstr called with invalid "+S(t)),e<0?a:((r=r||0)<0&&(r=Bt(r+t[i],0)),s(e)?Gt(t,r):Gt(t,r,r+e))}const $t=T("startsWith",t,Mt);function Mt(t,r,e){y(t)||g("'"+S(t)+"' is not a string");var r=y(r)?r:m(r),n=r[i],e=0<e?e:0;return j(t,e,e+n)===r}const Vt="_urid";let qt;function Jt(){var t;return qt||(t=_t(),qt=t.gblSym=t.gblSym||{k:{},s:{}}),qt}let Zt;function Qt(t){return{description:m(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Xt(e){var n=Jt();if(!bt(n.k,e)){let t=Qt(e),r=jt(n.s).length;t[Vt]=()=>r+"_"+t.toString(),n.k[e]=t,n.s[t[Vt]()]=m(e)}return n.k[e]}function Yt(t){t&&t.toString&&$t(t.toString(),H)||g(t+" is not a symbol");t=t._polyfill&&t[Vt]&&t[Vt]();return t?Jt().s[t]:void 0}function tr(t){Zt=Zt||{};t=kt[t];return t?Zt[t]=Zt[t]||Qt(H+"."+t):void 0}const rr={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function er(r){let e={};var t;return e[rr.c]=!0,e[rr.e]=!0,r.l&&(e.get=()=>r.l.v,t=vt(r.l,"v"))&&t.set&&(e.set=t=>{r.l.v=t}),h(r,(t,r)=>{e[rr[t]]=s(r)?e[rr[t]]:r}),e}const O=n.defineProperty,nr=n.defineProperties;function or(t,r,e){return O(t,r,er(e))}let E,sr=function(){E=_t(),sr=l};function ur(r){let e={};return sr&&sr(),e.b=E.lzy,O(e,"v",{configurable:!0,get:function(){var t=r();return E.lzy||(O(e,"v",{value:t}),e.b&&delete e.b),E.lzy&&e.b!==E.lzy&&(e.b=E.lzy),t}}),e}function F(t,r){return ur(()=>Y(t,r))}const ir="window";let cr,ar,pr,fr,lr,xr,yr;function P(t){return F(()=>dr(t)||p,p)}function vr(t){return(cr=!cr||!1===t||E&&E.lzy&&!cr.b?F(Lt,l):cr).v}function dr(t,r){r=cr&&!1!==r?cr.v:vr(r);return r&&r[t]?r[t]:t===ir&&ar?ar.v:l}function br(){return(pr=!pr||E&&E.lzy&&!pr.b?P("document"):pr).v}function hr(){return(ar=!ar||E&&E.lzy&&!ar.b?P(ir):ar).v}function gr(){return(fr=!fr||E&&E.lzy&&!fr.b?P("navigator"):fr).v}function mr(){return(lr=!lr||E&&E.lzy&&!lr.b?P("history"):lr).v}let C,Sr,wr;function Ir(t){return F(function(){return C.v?C.v[t]:p},p)}var Tr=rt("symbol");function jr(){return!!z()}function z(){var t=!C||E&&E.lzy&&!C.b;return t&&(C=P(H)),Sr&&!t||(Sr=Ir("for")),wr&&!t||(wr=Ir("keyFor")),C.v}function Or(t,r){var e=kt[t];return C&&(!E.lzy||C.b)||z(),C.v?C.v[e||t]:r?p:tr(t)}function Er(t){return!!t&&v(t.next)}function Fr(t){return!nt(t)&&v(t[Or(3)])}let Pr;function Cr(n,o,s){if(n&&(Er(n)||(n=n[(Pr=Pr||ur(()=>Or(3))).v]?n[Pr.v]():null),Er(n))){let r,e;try{let t=0;for(;!(e=n.next())[M]&&-1!==o[x](s||n,e[V],t,n);)t++}catch(t){r={e:t},n.throw&&(e=null,n.throw(r))}finally{try{e&&!e[M]&&n.return&&n.return(e)}finally{if(r)throw r.e}}}}const D=Wt("apply");var zr=I("every",u),Dr=I("filter",u);function k(r,e,n){if(r){var o=r[i]>>>0;for(let t=0;t<o&&!(t in r&&-1===e[x](n||r,r[t],t,r));t++);}}const kr=I(U,u);var Ar=I($,u);const Nr=I("map",u),A=I(J,u);function Lr(t,r,e){return-1!==kr(t,r,e)}function _r(t,r,e){r=Rr(t,r,e);return-1!==r?t[r]:void 0}function Rr(e,n,o){let s=-1;return k(e,(t,r)=>{if(n[x](o|e,t,r,e))return s=r,-1}),s}function Wr(t,r,e){r=Kr(t,r,e);return-1!==r?t[r]:void 0}function Kr(r,e,n){let o=-1;for(let t=(r[i]>>>0)-1;0<=t;t--)if(t in r&&e[x](n|r,r[t],t,r)){o=t;break}return o}function Br(t,e,n){var r;if(b(t))return r=A(t),e?Nr(r,e,n):r;let o=[];return Cr(t,(t,r)=>o.push(e?e[x](n,t,r):t)),o}var Gr=T("find",u,_r),Hr=T("findIndex",u,Rr),Ur=T("findLast",u,Wr),$r=T("findLastIndex",u,Kr),X=X.from||Br,Mr=T("includes",u,Lr),Vr=Mr,qr=I("reduce",u),Jr=I("some",u);const Zr=Wt("bind");var Qr=Wt(x);function Xr(e,n){return function(){var t=A(arguments),r=e();return D(r[n],r,t)}}let Yr;const te=n.create||function(t){if(!t)return{};var r=typeof t;if(r!==W&&r!=_)throw new TypeError("Prototype must be an Object or function: "+S(t));function e(){}return e[f]=t,new e};let re;function ee(t,r){return(n.setPrototypeOf||function(e,t){(re=re||ur(()=>({[K]:[]})instanceof Array)).v?e[K]=t:h(t,(t,r)=>e[t]=r)})(t,r)}function ne(t,r){try{r&&(t[q]=r)}catch(t){}}function oe(t,r){try{or(t,q,{v:r,c:!0,e:!1})}catch(t){}}function se(n,o,t){let s=t||Error,u=s[f][q],i=Error.captureStackTrace;return t=s,oe(c=function(){var t=this;try{ne(s,n);var r,e=D(s,t,A(arguments))||t;return e!==t&&(r=Pt(t))!==Pt(e)&&ee(e,r),i&&i(e,t[G]),o&&o(e,arguments),e}finally{ne(s,u)}},e=n),(c=ee(c,t))[f]=t===l?te(t):(r[f]=t[f],new r),c;function r(){this.constructor=c,oe(this,e)}var e,c}let ue;function ie(){return(Date.now||ce)()}function ce(){return(new Date).getTime()}function ae(r){return function(t){return c(t)&&g("strTrim called ["+S(t)+"]"),t&&t.replace?t.replace(r,a):t}}var pe=ae(/^\s+|(?=\s)\s+$/g),fe=ae(/^\s+/g),le=ae(/(?=\s)\s+$/g);const xe=T("trim",t,pe);var ye=T("trimStart",t,fe),ve=ye,de=T("trimEnd",t,le),be=de;const N=I("toUpperCase",t),he=I("toLowerCase",t);function ge(t,i,c){return xe(m(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,r,e,n,o,s)=>{let u=n||s||a;return c&&(u=N(u)),(o||a)+i+u})}function me(t,r){return ge(t,"",!0).replace(/^\w/,r?N:he)}const Se=e.floor,we=e.ceil,Ie=e.trunc||function(t){t=+t;return(0<t?Se:we)(t)};function Te(t,r){var e=+t;return e==1/0&&r&&mt("invalid value ["+S(t)+"]"),e!=e||0==e?0:Ie(e)}const je=T("repeat",t,Oe);function Oe(t,r){c(t)&&g("can't convert ["+S(t)+"]"),(r=Te(r,!0))<0&&mt("invalid count must be >= 0 && < Infinity");let e=y(t)?t:m(t),n=a;for(;0<r;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}function Ee(t,r,e){let n=a;r=Te(r,!0),r>>=0;t=t[i];return n=t<r&&(r-=t,(n=r>(n=c(e)?" ":m(e))[i]?je(n,we(r/n[i])):n)[i]>r)?j(n,0,r):n}const Fe=T("padStart",t,Pe);e=T("padEnd",t,Ce);function Pe(t,r,e){return Ee(t,r,e)+t}function Ce(t,r,e){return t+Ee(t,r,e)}const ze=/([^\w\d_$])/g;let De,ke,Ae,Ne;function Le(r){if(!r||typeof r!==W)return!1;let e=!1;if(r!==(Ne=Ne||!hr()||hr())){Ae||(ke=Function[f].toString,Ae=ke[x](n));try{let t=Pt(r);(e=!t)||(dt(t,G)&&(t=t[G]),e=t&&typeof t==_&&ke[x](t)===Ae)}catch(t){}}return e}const _e=t=>(t.value&&Me(t),!0),Re=[He,Me,$e,Ue];function We(n,t,o,r){var s=o.handler,r=o.path?r?o.path.concat(r):o.path:[];let e={handler:o.handler,src:o.src,path:r};var u=typeof t;let i=!1,c=!1,a=(t&&u===W?i=Le(t):c=t===l||st(u),{type:u,isPrim:c,isPlain:i,value:t,result:t,path:r,origin:o.src,copy:(t,r)=>We(n,t,r?e:o,r),copyTo:(t,r)=>Ke(n,t,r,e)});if(a.isPrim)return s&&s[x](o,a)?a.result:t;{var u=n,p=t;let e;if(k(u,t=>{if(t.k===p)return e=t,-1}),!e){e={k:p,v:p},u.push(e);{var f=e;or(a,"result",{g:function(){return f.v},s:function(t){f.v=t}});let t=0,r=s;for(;!(r||(t<Re.length?Re[t++]:_e))[x](o,a);)r=l}}return e.v}}function Ke(t,r,e,n){if(!c(e))for(const o in e)r[o]=We(t,e[o],n,o);return r}function Be(t,r,e){return Ke([],t,r,{handler:e,src:r,path:[]})}function Ge(t,r){return We([],t,{handler:r,src:t})}function He(t){var r,e=t.value;return!!b(e)&&((r=t.result=[]).length=e.length,t.copyTo(r,e),!0)}function Ue(t){var r=t.value;return!!ut(r)&&(t.result=new Date(r.getTime()),!0)}function $e(t){return t.type===_}function Me(t){var r,e=t.value;return!(!e||!t.isPlain||(r=t.result={},t.copyTo(r,e),0))}function Ve(r,t){return k(t,t=>{Be(r,t)}),r}var qe=Kt(i);let Je;function Ze(){return(Je=!Je||!Je.b&&E&&E.lzy?P("performance"):Je).v}function Qe(){var t=Ze();return t&&t.now?t.now():ie()}function Xe(t){return Qe()-t}const Ye="(.*)";function tn(t,r,e,n,o){return RegExp((o?"^":a)+e(t.replace(r,"\\$1"))+(o?"$":a),n?"i":"")}function rn(t,r){return t[Or(3)]=function(){return en(r)},t}function en(r){let e=!1;function n(){return r.v}var t={next:function(){e=e||!r.n||r.n(arguments);var t={[M]:e};return e||or(t,V,{g:n}),t}};return r.r&&(t.return=function(t){return e=!0,{[M]:!0,[V]:r.r&&r.r(t)}}),r.t&&(t.throw=function(t){return e=!0,{[M]:!0,[V]:r.t&&r.t(t)}}),t}function nn(t,r,e){r=r&&r[Or(9)];return r?r(t,e):[t]}const on=I("split",t);var sn=T("split",t,z()?null:nn),un=T("endsWith",t,cn);function cn(t,r,e){y(t)||g("'"+S(t)+"' is not a string");var r=y(r)?r:m(r),n=r[i],o=t[i],e=!s(e)&&e<o?e:o;return j(t,e-n,e)===r}const an=I(U,t);U=I($,t),$=T("includes",t,pn),t=$;function pn(t,r,e){return at(r)&&g("'searchString' must not be a regular expression"+S(r)),-1!==an(t,m(r),e)}const fn="ref",ln="un"+fn,xn="hasRef",yn="enabled";function vn(t,r,e){let n=!0,o=t?r(l):l,s;const u=()=>(n=!1,o&&o[ln]&&o[ln](),s),i=()=>(o=r(o),n||u(),s),c=()=>{o&&e(o),o=l};return s={cancel:c,refresh:i,[xn]:()=>o&&o[xn]?o[xn]():n,[fn]:()=>(n=!0,o&&o[fn]&&o[fn](),s),[ln]:u,[yn]:!1},O(s,yn,{get:()=>!!o,set:t=>{!t&&o&&c(),t&&!o&&i()}}),{h:s,dn:()=>{o=l}}}function dn(r,t,e,n){var o=b(e),s=o?e.length:0;let u=(0<s?e[0]:o?p:e)||setTimeout,i=(1<s?e[1]:p)||clearTimeout,c=n[0],a=(n[0]=function(){a.dn(),D(c,r,A(arguments))},vn(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(i,r,[t])}return D(u,r,n)},function(t){D(i,r,[t])}));return a.h}function bn(t,r){return dn(this,!0,p,A(arguments))}let hn,gn=100,mn=50;function Sn(){return!(!(hn=hn||F(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}exports.arrAppend=function(r,t){return!s(t)&&r&&(b(t)?D(r.push,r,t):Er(t)||Fr(t)?Cr(t,t=>{r.push(t)}):r.push(t)),r},exports.arrContains=Vr,exports.arrEvery=zr,exports.arrFilter=Dr,exports.arrFind=Gr,exports.arrFindIndex=Hr,exports.arrFindLast=Ur,exports.arrFindLastIndex=$r,exports.arrForEach=k,exports.arrFrom=X,exports.arrIncludes=Mr,exports.arrIndexOf=kr,exports.arrLastIndexOf=Ar,exports.arrMap=Nr,exports.arrReduce=qr,exports.arrSlice=A,exports.arrSome=Jr,exports.arrayDeepCopyHandler=He,exports.asString=m,exports.createArrayIterator=function(t){let r=-1,e=t?t.slice():[],n=e[i];t={n:function(){return++r>=n}};return or(t,"v",{g:function(){if(0<=r&&r<n)return e[r]}}),en(t)},exports.createCustomError=se,exports.createEnum=function(t){return gt(t,1,0,Ot)},exports.createEnumKeyMap=zt,exports.createEnumValueMap=function(t){return gt(t,1,1,Ot)},exports.createFilenameRegex=function(t,r,e){return tn(m(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,r){return"\\/"==r||"\\\\"==r?"[\\\\\\/]{1}":"*"==r?Ye:"(.)"}),!!r,e)},exports.createFnDeferredProxy=Xr,exports.createIterable=function(t){return rn({},t)},exports.createIterator=en,exports.createProxyFuncs=function(n,o,t){if(n&&o&&b(t)){let e=v(o);k(t,t=>{var r=t.as||t.n;!1===t.rp&&n[r]||(n[r]=e?Xr(o,t.n):Zr(o[t.n],o))})}return n},exports.createRangeIterator=function(t,r,e){let n=t,o=p,s=(c(r)&&(r=t),e||(t<=r?1:-1));e={n:function(){var t;return(t=0<s?n>r:n<r)||(o=n,n+=s),t}};return or(e,"v",{g:function(){return o}}),en(e)},exports.createSimpleMap=Dt,exports.createTimeout=function(t,r){return dn(this,!1,p,A(arguments))},exports.createTimeoutWith=function(t,r,e){return dn(this,!1,t,A(arguments,1))},exports.createTypeMap=Dt,exports.createWildcardRegex=function(t,r,e){return tn(m(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,Ye),!!r,e)},exports.dateDeepCopyHandler=Ue,exports.deepExtend=function(t,r,e,n,o,s,u){return Ve(Ge(t)||{},A(arguments))},exports.dumpObj=S,exports.elapsedTime=Xe,exports.encodeAsHtml=function(t){return De=De||ur(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),m(t).replace(/[&<>"']/g,t=>"&"+De.v[t]+";")},exports.encodeAsJson=function(t,r){let e;if(y(t))e='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Fe(N(t),4,"0"))})+'"';else try{e=JSON.stringify(t,l,r?it(r)?r:4:p)}catch(t){e='"'+S(t)+'"'}return e},exports.fnApply=D,exports.fnBind=Zr,exports.fnCall=Qr,exports.functionDeepCopyHandler=$e,exports.getDocument=br,exports.getGlobal=vr,exports.getHistory=mr,exports.getInst=dr,exports.getIntValue=function(t,r){return c(t)?r:it(t)?t:isNaN(t=parseInt(t,10))?r:t},exports.getKnownSymbol=Or,exports.getLazy=ur,exports.getLength=qe,exports.getNavigator=gr,exports.getPerformance=Ze,exports.getSymbol=z,exports.getValueByIter=function(r,t,e){return t&&r&&(Cr(t,t=>{if(c(r))return-1;r=r[t]}),!c(r))?r:e},exports.getValueByKey=function(r,t,e){if(!t||!r)return e;var n=on(t,"."),o=n.length;for(let t=0;t<o&&!c(r);t++)r=r[n[t]];return c(r)?e:r},exports.getWindow=hr,exports.hasDocument=function(){return!!br()},exports.hasHistory=function(){return!!mr()},exports.hasIdleCallback=Sn,exports.hasNavigator=function(){return!!gr()},exports.hasPerformance=function(){return!!Ze()},exports.hasSymbol=jr,exports.hasValue=function(t){return function t(r,e){let n=!1===r||0===r;if(!n&&!c(r))if(b(r))n=0<r[i];else if(ut(r))n=!isNaN(r.getTime());else{if(ct(r))return!0;if(d(r)){try{var o=function(r,t){let e;return k(t,t=>{if(t in r)return t=r[t],e=0<(v(t)?t():t),-1}),e}(r,[i,"byteLength","size","count"]);if(ct(o))return o;if(v(r.valueOf)&&e<5)return t(r.valueOf(),++e)}catch(t){}return!!jt(r)[i]}n=yt(r)}return n}(t,0)},exports.hasWindow=function(){return!!hr()},exports.isArray=b,exports.isArrayBuffer=pt,exports.isBlob=L,exports.isBoolean=ct,exports.isDate=ut,exports.isDefined=ot,exports.isError=ft,exports.isFile=B,exports.isFormData=R,exports.isFunction=v,exports.isIterable=Fr,exports.isIterator=Er,exports.isNode=function(){return(yr=yr||F(()=>!(!process||!(process.versions||{}).node),!1)).v},exports.isNotTruthy=function(t){return!t||!Y(()=>t&&0+t,t)},exports.isNullOrUndefined=c,exports.isNumber=it,exports.isObject=d,exports.isPlainObject=Le,exports.isPrimitive=function(t){return t===l||st(typeof t)},exports.isPrimitiveType=st,exports.isPromise=function(t){return!!(t&&t.then&&t.catch&&v(t.then)&&v(t.catch))},exports.isPromiseLike=lt,exports.isRegExp=at,exports.isStrictNullOrUndefined=nt,exports.isStrictUndefined=function(t){return!ot(t)},exports.isString=y,exports.isSymbol=Tr,exports.isThenable=xt,exports.isTruthy=yt,exports.isTypeof=function(t,r){return typeof t===r},exports.isUndefined=s,exports.isWebWorker=function(){return(xr=xr||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},exports.iterForOf=Cr,exports.lazySafeGetInst=P,exports.makeGlobRegex=function(t,r,e){return tn(m(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,r){return"**\\/"==r||"**\\\\"==r?"(.*[\\\\\\/])*":"\\/"===r||"\\\\"==r?"[\\\\\\/]{1}":"**"===r?Ye:"*"===r?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!r,e)},exports.makeIterable=rn,exports.mathCeil=we,exports.mathFloor=Se,exports.mathMax=Bt,exports.mathMin=Q,exports.mathToInt=Te,exports.mathTrunc=Ie,exports.newSymbol=function(t,r){return C&&(!E.lzy||C.b)||z(),C.v?C.v(t):r?l:Qt(t)},exports.normalizeJsName=function(t,r){t=m(t).replace(ze,"_");return s(r)?t:me(t,!r)},exports.objAssign=Tt,exports.objCopyProps=Be,exports.objCreate=te,exports.objDeepCopy=Ge,exports.objDeepFreeze=Ot,exports.objDefine=or,exports.objDefineAccessors=function(t,r,e,n,o,s){s={e:s,c:o};return e&&(s.g=e),n&&(s.s=n),O(t,r,er(s))},exports.objDefineGet=function(t,r,e,n,o){return O(t,r,er({e:o,c:n,[v(e)?"g":"v"]:e}))},exports.objDefineProp=O,exports.objDefineProperties=nr,exports.objDefineProps=function(t,r){let e={};return h(r,(t,r)=>{e[t]=er(r)}),nr(t,e)},exports.objEntries=Ct,exports.objExtend=function(t,r,e,n,o,s,u){return Ve(t||{},A(arguments))},exports.objForEachKey=h,exports.objFreeze=Et,exports.objGetOwnPropertyDescriptor=vt,exports.objGetPrototypeOf=Pt,exports.objHasOwn=bt,exports.objHasOwnProperty=dt,exports.objKeys=jt,exports.objSeal=Ft,exports.objSetPrototypeOf=ee,exports.objToString=et,exports.perfNow=Qe,exports.plainObjDeepCopyHandler=Me,exports.polyArrFind=_r,exports.polyArrFindIndex=Rr,exports.polyArrFindLast=Wr,exports.polyArrFindLastIndex=Kr,exports.polyArrFrom=Br,exports.polyArrIncludes=Lr,exports.polyGetKnownSymbol=tr,exports.polyIsArray=function(t){return!c(t)&&"[object Array]"===et(t)},exports.polyNewSymbol=Qt,exports.polyObjEntries=St,exports.polyObjHasOwn=ht,exports.polyObjKeys=function(t){if(!d(t)||t===l)throw new TypeError("polyObjKeys called on non-object");var r=[];for(const e in t)bt(t,e)&&r.push(e);return r},exports.polyStrIncludes=pn,exports.polyStrSubstr=Ut,exports.polyStrSymSplit=nn,exports.polyStrTrim=pe,exports.polyStrTrimEnd=le,exports.polyStrTrimStart=fe,exports.polySymbolFor=Xt,exports.polySymbolKeyFor=Yt,exports.polyUtcNow=ce,exports.readArgs=function(t,r,s){if(Yr=Yr||ur(()=>jr()&&Or(3)),!bt(t,i)){var u=Yr.v&&t[Yr.v];if(u){let e=[],n=r===p||r<0?0:r,o=s<0||r<0?p:s;if(Cr(u[x](t),(t,r)=>{if(o!==p&&r>=o)return-1;r>=n&&e.push(t)}),(r===p||0<=r)&&(s===p||0<=s))return e;t=e}}return A(t,r,s)},exports.safeGet=Y,exports.safeGetLazy=F,exports.scheduleIdleCallback=function(e,n){function o(t){let r=Qe();return{didTimeout:t,timeRemaining:()=>mn-Xe(r)}}if(Sn()){let r=vn(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{r.dn(),e(t||o(!1))},n)),t=>{cancelIdleCallback(t)});return r.h}var t=(n||{}).timeout;return bn(()=>{e(o(!0))},s(t)?gn:t)},exports.scheduleInterval=function(t,r){let e=this,n=A(arguments);return vn(!0,t=>(t&&clearInterval(t),D(setInterval,e,n)),t=>{D(clearInterval,e,[t])}).h},exports.scheduleTimeout=bn,exports.scheduleTimeoutWith=function(t,r,e){return dn(this,!0,t,A(arguments,1))},exports.setBypassLazyCache=function(t){sr&&sr(),E.lzy=t},exports.setDefaultIdleTimeout=function(t){gn=t},exports.setDefaultMaxExecutionTime=function(t){mn=t},exports.setValueByIter=function(e,t,n){if(e&&t){let r;Cr(t,t=>{r&&(c(e[r])&&(e[r]={}),e=e[r]),r=t}),e[r]=n}},exports.setValueByKey=function(r,t,e){var n;r&&t&&(n=(t=on(t,".")).pop(),k(t,t=>{c(r[t])&&(r[t]={}),r=r[t]}),r[n]=e)},exports.strCamelCase=me,exports.strContains=t,exports.strEndsWith=un,exports.strIncludes=$,exports.strIndexOf=an,exports.strIsNullOrEmpty=function(t){return y(t)?t===a:c(t)},exports.strIsNullOrWhiteSpace=function(t){return y(t)?t.replace(/[\s\t\r\n\f]+/g,a)===a:c(t)},exports.strKebabCase=function(t,r){t=ge(t,"-");return(r?N:he)(t)},exports.strLastIndexOf=U,exports.strLeft=function(t,r){return j(t,0,r)},exports.strLetterCase=function(t){return m(t).replace(/(_|\b)\w/g,N)},exports.strLower=he,exports.strPadEnd=e,exports.strPadStart=Fe,exports.strRepeat=je,exports.strRight=function(t,r){var e=t[i];return r<=0?a:r<e?j(t,e-r):t},exports.strSlice=Gt,exports.strSnakeCase=function(t,r){t=ge(t,"_");return(r?N:he)(t)},exports.strSplit=on,exports.strStartsWith=$t,exports.strSubstr=Ht,exports.strSubstring=j,exports.strSymSplit=sn,exports.strTrim=xe,exports.strTrimEnd=de,exports.strTrimLeft=ve,exports.strTrimRight=be,exports.strTrimStart=ye,exports.strUpper=N,exports.symbolFor=function(t){return Sr&&(!E.lzy||C.b)||z(),(Sr.v||Xt)(t)},exports.symbolKeyFor=function(t){return wr&&(!E.lzy||C.b)||z(),(wr.v||Yt)(t)},exports.throwError=function(t){throw Error(t)},exports.throwRangeError=mt,exports.throwTypeError=g,exports.throwUnsupported=function(t){throw new(ue=ue||se("UnsupportedError"))(t)},exports.utcNow=ie; | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,2 +0,2 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
/* | ||
@@ -47,2 +47,3 @@ * Copyright (c) NevWare21 and contributors. All rights reserved. | ||
const PRIMITIVE_TYPES = [STRING, NUMBER, BOOLEAN, UNDEFINED, "symbol", "bigint"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createIs(theType) { | ||
@@ -53,2 +54,3 @@ return function (value) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createObjIs(theName) { | ||
@@ -60,26 +62,35 @@ const theType = "[object " + theName + "]"; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objToString(value) { | ||
return ObjProto.toString[CALL](value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTypeof(value, theType) { | ||
return typeof value === theType; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isUndefined(value) { | ||
return typeof value === UNDEFINED || value === UNDEFINED; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictUndefined(arg) { | ||
return !isDefined(arg); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNullOrUndefined(value) { | ||
return value === NULL_VALUE || isUndefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictNullOrUndefined(value) { | ||
return value === NULL_VALUE || !isDefined(value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isDefined(arg) { | ||
return !!arg || arg !== UNDEF_VALUE; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitive(value) { | ||
return value === NULL_VALUE || isPrimitiveType(typeof value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPrimitiveType(theType) { | ||
@@ -90,2 +101,3 @@ return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1; | ||
const isFunction = ( /*#__PURE__*/_createIs(FUNCTION)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isObject(value) { | ||
@@ -107,2 +119,3 @@ if (!value && isNullOrUndefined(value)) { | ||
const isError = ( /*#__PURE__*/_createObjIs("Error")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromiseLike(value) { | ||
@@ -112,8 +125,11 @@ return !!(value && value.then && isFunction(value.then)); | ||
const isThenable = isPromiseLike; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPromise(value) { | ||
return !!(value && value.then && value.catch && isFunction(value.then) && isFunction(value.catch)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNotTruthy(value) { | ||
return !value || !safeGet(() => (value && (0 + value)), value); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isTruthy(value) { | ||
@@ -125,2 +141,3 @@ return !(!value || safeGet(() => !(value && (0 + value)), !value)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objHasOwnProperty(obj, prop) { | ||
@@ -131,2 +148,3 @@ return obj && ObjProto.hasOwnProperty[CALL](obj, prop); | ||
const objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjHasOwn(obj, prop) { | ||
@@ -148,2 +166,3 @@ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createKeyValueMap(values, keyType, valueType, completeFn) { | ||
@@ -168,2 +187,3 @@ let theMap = {}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjKeys(obj) { | ||
@@ -181,2 +201,3 @@ if (!isObject(obj) || obj === NULL_VALUE) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjEntries(value) { | ||
@@ -194,2 +215,3 @@ let result = []; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getProto(value) { | ||
@@ -199,2 +221,3 @@ return value[__PROTO__] || NULL_VALUE; | ||
const objAssign = ObjClass["assign"]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objKeys(value) { | ||
@@ -221,11 +244,15 @@ if (!isObject(value) || value === NULL_VALUE) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnum(values) { | ||
return _createKeyValueMap(values, 1 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumKeyMap(values) { | ||
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createEnumValueMap(values) { | ||
return _createKeyValueMap(values, 1 , 1 , objDeepFreeze); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createSimpleMap(values) { | ||
@@ -239,2 +266,3 @@ let mapClass = {}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createTypeMap(values) { | ||
@@ -264,2 +292,3 @@ return createSimpleMap(values); | ||
let _globalCfg; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalValue() { | ||
@@ -281,2 +310,3 @@ let result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getGlobalConfig() { | ||
@@ -290,2 +320,3 @@ if (!_globalCfg) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function dumpObj(object, format) { | ||
@@ -343,2 +374,3 @@ let propertyValueDump = EMPTY; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _unwrapProp(propName) { | ||
@@ -357,2 +389,3 @@ return function (thisArg) { | ||
const strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSubstr(value, start, length) { | ||
@@ -374,5 +407,7 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLeft(value, count) { | ||
return strSubstring(value, 0, count); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strRight(value, count) { | ||
@@ -387,2 +422,3 @@ let len = value[LENGTH]; | ||
const strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrStartsWith(value, searchString, position) { | ||
@@ -400,2 +436,3 @@ if (!isString(value)) { | ||
let _polySymbols; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _globalSymbolRegistry() { | ||
@@ -408,3 +445,4 @@ if (!_polySymbols) { | ||
} | ||
let _wellKnownSymbolCache = {}; | ||
let _wellKnownSymbolCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyNewSymbol(description) { | ||
@@ -418,2 +456,3 @@ let theSymbol = { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolFor(key) { | ||
@@ -430,2 +469,3 @@ let registry = _globalSymbolRegistry(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polySymbolKeyFor(sym) { | ||
@@ -438,3 +478,5 @@ if (!sym || !sym.toString || !strStartsWith(sym.toString(), SYMBOL)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyGetKnownSymbol(name) { | ||
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {}); | ||
let result; | ||
@@ -456,2 +498,3 @@ let knownName = _wellKnownSymbolMap[name]; | ||
}; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createProp(value) { | ||
@@ -554,5 +597,7 @@ let prop = {}; | ||
let _isNode; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function lazySafeGetInst(name) { | ||
return safeGetLazy(() => getInst(name) || UNDEF_VALUE, UNDEF_VALUE); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getGlobal(useCached) { | ||
@@ -562,2 +607,3 @@ (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getInst(name, useCached) { | ||
@@ -573,5 +619,7 @@ const gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasDocument() { | ||
return !!getDocument(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getDocument() { | ||
@@ -581,5 +629,7 @@ (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasWindow() { | ||
return !!getWindow(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getWindow() { | ||
@@ -589,5 +639,7 @@ (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW)); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasNavigator() { | ||
return !!getNavigator(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getNavigator() { | ||
@@ -597,5 +649,7 @@ (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasHistory() { | ||
return !!getHistory(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getHistory() { | ||
@@ -617,2 +671,3 @@ (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history")); | ||
let _symbolKeyFor; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _getSymbolValue(name) { | ||
@@ -624,2 +679,3 @@ return safeGetLazy(function () { | ||
const isSymbol = ( /*#__PURE__*/_createIs("symbol")); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasSymbol() { | ||
@@ -635,2 +691,3 @@ return !!getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getKnownSymbol(name, noPoly) { | ||
@@ -641,2 +698,3 @@ let knownName = _wellKnownSymbolMap[name]; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function newSymbol(description, noPoly) { | ||
@@ -646,2 +704,3 @@ (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolFor(key) { | ||
@@ -651,2 +710,3 @@ (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function symbolKeyFor(sym) { | ||
@@ -657,5 +717,7 @@ (!_symbolKeyFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterator(value) { | ||
return !!value && isFunction(value.next); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isIterable(value) { | ||
@@ -749,2 +811,3 @@ return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyIsArray(value) { | ||
@@ -756,2 +819,3 @@ if (isNullOrUndefined(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyArrIncludes(theArray, searchElement, fromIndex) { | ||
@@ -845,2 +909,3 @@ return arrIndexOf(theArray, searchElement, fromIndex) !== -1; | ||
let _iterSymbol; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function readArgs(theArgs, start, end) { | ||
@@ -874,2 +939,3 @@ if (!_iterSymbol) { | ||
const objCreate = ObjClass["create"] || polyObjCreate; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyObjCreate(obj) { | ||
@@ -908,3 +974,3 @@ if (!obj) { | ||
} | ||
const _safeSetName = (baseClass, name) => { | ||
function _safeSetName(baseClass, name) { | ||
try { | ||
@@ -915,4 +981,4 @@ name && (baseClass[NAME] = name); | ||
} | ||
}; | ||
const _safeDefineName = (target, name) => { | ||
} | ||
function _safeDefineName(target, name) { | ||
try { | ||
@@ -923,3 +989,4 @@ objDefine(target, NAME, { v: name, c: true, e: false }); | ||
} | ||
}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createCustomError(name, constructCb, errorBase) { | ||
@@ -957,5 +1024,7 @@ let theBaseClass = errorBase || Error; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function utcNow() { | ||
return (Date.now || polyUtcNow)(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyUtcNow() { | ||
@@ -965,2 +1034,3 @@ return new Date().getTime(); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _createTrimFn(exp) { | ||
@@ -990,2 +1060,3 @@ return function _doTrim(value) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _convertCase(value, newPrefix, upperWord) { | ||
@@ -1000,5 +1071,7 @@ return strTrim(asString(value)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g, (_match, _g1, _g2, wordStart, upperPrefix, upperLetter) => { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strLetterCase(value) { | ||
return asString(value).replace(/(_|\b)\w/g, strUpper); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strCamelCase(value, upperFirst) { | ||
@@ -1008,2 +1081,3 @@ let result = _convertCase(value, "", true); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strKebabCase(value, scream) { | ||
@@ -1013,2 +1087,3 @@ let result = _convertCase(value, "-"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strSnakeCase(value, scream) { | ||
@@ -1023,2 +1098,3 @@ let result = _convertCase(value, "_"); | ||
const mathTrunc = MathCls.trunc || polyMathTrunc; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyMathTrunc(value) { | ||
@@ -1029,2 +1105,3 @@ let theValue = +value; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function mathToInt(value, throwInfinity) { | ||
@@ -1039,2 +1116,3 @@ let result = +value; | ||
const strRepeat = ( /*#__PURE__*/_unwrapFunctionWithPoly("repeat", StrProto, polyStrRepeat)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrRepeat(value, count) { | ||
@@ -1058,2 +1136,3 @@ if (isNullOrUndefined(value)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _padValue(value, targetLength, padString) { | ||
@@ -1078,5 +1157,7 @@ let result = EMPTY; | ||
const strPadEnd = ( /*#__PURE__*/_unwrapFunctionWithPoly("padEnd", StrProto, polyStrPadEnd)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadStart(value, targetLength, padString) { | ||
return _padValue(value, targetLength, padString) + value; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrPadEnd(value, targetLength, padString) { | ||
@@ -1089,2 +1170,3 @@ return value + _padValue(value, targetLength, padString); | ||
let _htmlEntityCache; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function normalizeJsName(jsName, camelCase) { | ||
@@ -1094,2 +1176,3 @@ let result = asString(jsName).replace(INVALID_JS_NAME, "_"); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsJson(value, format) { | ||
@@ -1116,2 +1199,3 @@ let result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function encodeAsHtml(value) { | ||
@@ -1133,2 +1217,3 @@ !_htmlEntityCache && (_htmlEntityCache = getLazy(() => { | ||
let _gblWindow; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isPlainObject(value) { | ||
@@ -1258,2 +1343,3 @@ if (!value || typeof value !== OBJECT) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function objDeepCopy(source, handler) { | ||
@@ -1315,2 +1401,3 @@ let ctx = { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getIntValue(value, defValue) { | ||
@@ -1328,5 +1415,7 @@ if (!isNullOrUndefined(value)) { | ||
let _perf; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasPerformance() { | ||
return !!getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getPerformance() { | ||
@@ -1336,2 +1425,3 @@ (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance")); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function perfNow() { | ||
@@ -1344,2 +1434,3 @@ let perf = getPerformance(); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function elapsedTime(startTime) { | ||
@@ -1354,2 +1445,3 @@ return perfNow() - startTime; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createWildcardRegex(value, ignoreCase, fullMatch) { | ||
@@ -1360,2 +1452,3 @@ return _createRegExp(asString(value), /([-+|^$#.\?{}()\[\]\\/\"\'])/g, (value) => { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createFilenameRegex(value, ignoreCase, fullMatch) { | ||
@@ -1371,2 +1464,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, (value) => { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function makeGlobRegex(value, ignoreCase, fullMatch) { | ||
@@ -1389,2 +1483,3 @@ return _createRegExp(asString(value), /([-+|^$#.{}()\\\/\[\]\"\'])/g, (value) => { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _checkLength(value, props) { | ||
@@ -1401,2 +1496,3 @@ let result; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function _hasValue(value, depth) { | ||
@@ -1434,2 +1530,3 @@ let result = value === false || value === 0; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasValue(value) { | ||
@@ -1439,2 +1536,3 @@ return _hasValue(value, 0); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterable(ctx) { | ||
@@ -1451,2 +1549,3 @@ return makeIterable({}, ctx); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createIterator(ctx) { | ||
@@ -1493,2 +1592,3 @@ let isDone = false; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createArrayIterator(values) { | ||
@@ -1514,2 +1614,3 @@ let idx = -1; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function createRangeIterator(start, end, step) { | ||
@@ -1546,2 +1647,3 @@ let nextValue = start; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrSymSplit(value, splitter, limit) { | ||
@@ -1555,2 +1657,3 @@ let splitFn = splitter && splitter[getKnownSymbol(9 )]; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByKey(target, path, defValue) { | ||
@@ -1567,2 +1670,3 @@ if (!path || !target) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getValueByIter(target, iter, defValue) { | ||
@@ -1610,2 +1714,3 @@ if (!iter || !target) { | ||
const strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith)); | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrEndsWith(value, searchString, length) { | ||
@@ -1627,2 +1732,3 @@ if (!isString(value)) { | ||
const strContains = strIncludes; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function polyStrIncludes(value, searchString, position) { | ||
@@ -1635,2 +1741,3 @@ if (isRegExp(searchString)) { | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrWhiteSpace(value) { | ||
@@ -1642,2 +1749,3 @@ if (isString(value)) { | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function strIsNullOrEmpty(value) { | ||
@@ -1749,2 +1857,3 @@ if (isString(value)) { | ||
let _maxExecutionTime = 50; | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function hasIdleCallback() { | ||
@@ -1751,0 +1860,0 @@ !_hasIdleCallback && (_hasIdleCallback = safeGetLazy(() => isDefined(requestIdleCallback), false)); |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
const f=void 0,p=null,c="";var L="boolean";const R="function";var _="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol",U="_polyfill";var $="indexOf",M="lastIndexOf";const u="length",V="done",q="value",J="name",Z="slice",y="call",e=Object,Q=e[l];var X=String,t=X[l],r=Math,Y=Array;const s=Y[l];function tt(t,n){let r=n;try{r=t()}catch(t){}return r}const nt=[B,_,L,n,"symbol","bigint"];function rt(n){return function(t){return typeof t===n}}function a(t){const n="[object "+t+"]";return function(t){return!(!t||et(t)!==n)}}function et(t){return Q.toString[y](t)}function at(t,n){return typeof t===n}function o(t){return typeof t===n||t===n}function ot(t){return!ut(t)}function i(t){return t===p||o(t)}function st(t){return t===p||!ut(t)}function ut(t){return!!t||t!==f}function it(t){return t===p||ct(typeof t)}function ct(t){return t!==W&&!!~nt.indexOf(t)}const v=rt(B),d=rt(R);function b(t){return!(!t&&i(t)||!t||typeof t!==W)}const h=Y.isArray,ft=a("Date"),lt=rt(_),pt=rt(L),yt=a("RegExp");var B=a("File"),_=a("FormData"),L=a("Blob"),vt=a("ArrayBuffer");const dt=a("Error");function bt(t){return!!(t&&t.then&&d(t.then))}var ht=bt;function gt(t){return!!(t&&t.then&&t.catch&&d(t.then)&&d(t.catch))}function mt(t){return!t||!tt(()=>t&&0+t,t)}function St(t){return!(!t||tt(()=>!(t&&0+t),!t))}const wt=e.getOwnPropertyDescriptor;function It(t,n){return t&&Q.hasOwnProperty[y](t,n)}const Tt=e.hasOwn||jt;function jt(t,n){return It(t,n)||!!wt(t,n)}function g(t,n,r){if(t&&b(t))for(const e in t)if(Tt(t,e)&&-1===n[y](r||t,e,t[e]))break}function Ot(t,r,e,n){let a={};return g(t,(t,n)=>{a[t]=r?n:t,a[n]=e?n:t}),n(a)}function Et(t){throw Error(t)}function m(t){throw new TypeError(t)}function xt(t){throw new RangeError(t)}function Ft(t){if(!b(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)Tt(t,r)&&n.push(r);return n}function Pt(t){let r=[];return g(t,(t,n)=>{r.push([t,n])}),r}const Ct=e.freeze;function zt(t){return t}var Dt=e.assign;function kt(t){return b(t)&&t!==p||m("objKeys called on non-object"),e.keys(t)}function At(t){return Ct&&g(t,(t,n)=>{(h(n)||b(n))&&Ct(n)}),Nt(t)}const Nt=Ct||zt;var Lt=e.seal||zt;const Rt=e.getPrototypeOf||function(t){return t[K]||p};var _t=e.entries||Pt;function Wt(t){return Ot(t,1,0,At)}function Kt(t){return Ot(t,0,0,At)}function Bt(t){return Ot(t,1,1,At)}function Gt(t){let r={};return g(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),At(r)}function Ht(t){return Gt(t)}const Ut=Kt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),S=X,$t="__tsUtils$gblCfg";let Mt;function Vt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function qt(){var t;return Mt||(t=Vt()||{},Mt=t[$t]=t[$t]||{}),Mt}function w(t,n){let r=c;if(dt(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?lt(n)?n:4:f)}catch(t){r=" - "+w(t,n)}return et(t)+": "+r}let I;function Jt(t,n){m("'"+S(t)+"' not defined for "+w(n))}function Zt(n){return I=I||s[Z],function(t){return t[n].apply(t,I[y](arguments,1))}}function T(r,t){I=I||s[Z];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,I[y](arguments,1));Jt(r,t)}}function j(e,t,a){I=I||s[Z];let o=t&&t[e];return function(t){var n,r=t&&t[e]||o;if(r||a)return n=arguments,(r||a).apply(t,r?I[y](n,1):n);Jt(e,t)}}function Qt(n){return function(t){return t[n]}}X=r.min;const Xt=r.max,Yt=T(Z,t),O=T("substring",t);var tn=j("substr",t,nn);function nn(t,n,r){return i(t)&&m("'polyStrSubstr called with invalid "+w(t)),r<0?c:((n=n||0)<0&&(n=Xt(n+t[u],0)),o(r)?Yt(t,n):Yt(t,n,n+r))}function rn(t,n){return O(t,0,n)}function en(t,n){var r=t[u];return n<=0?c:n<r?O(t,r-n):t}const an=j("startsWith",t,on);function on(t,n,r){v(t)||m("'"+w(t)+"' is not a string");var n=v(n)?n:S(n),e=n[u],r=0<r?r:0;return O(t,r,r+e)===n}const sn="_urid";let un;function cn(){var t;return un||(t=qt(),un=t.gblSym=t.gblSym||{k:{},s:{}}),un}let fn={};function ln(t){var n={description:S(t),toString:()=>H+"("+t+")"};return n[U]=!0,n}function pn(r){var e=cn();if(!Tt(e.k,r)){let t=ln(r),n=kt(e.s).length;t[sn]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[sn]()]=S(r)}return e.k[r]}function yn(t){t&&t.toString&&an(t.toString(),H)||m(t+" is not a symbol");t=t[U]&&t[sn]&&t[sn]();return t?cn().s[t]:void 0}function vn(t){t=Ut[t];return t?fn[t]=fn[t]||ln(H+"."+t):void 0}const dn={e:"enumerable",c:"configurable",v:q,w:"writable",g:"get",s:"set"};function bn(n){let r={};var t;return r[dn.c]=!0,r[dn.e]=!0,n.l&&(r.get=()=>n.l.v,t=wt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),g(n,(t,n)=>{r[dn[t]]=o(n)?r[dn[t]]:n}),r}const E=e.defineProperty,hn=e.defineProperties;function gn(t,n,r,e,a){return E(t,n,bn({e:a,c:e,[d(r)?"g":"v"]:r}))}function mn(t,n,r,e,a,o){o={e:o,c:a};return r&&(o.g=r),e&&(o.s=e),E(t,n,bn(o))}function Sn(t,n,r){return E(t,n,bn(r))}function wn(t,n){let r={};return g(n,(t,n)=>{r[t]=bn(n)}),hn(t,r)}let x,In=function(){x=qt(),In=p};function Tn(n){let r={};return In&&In(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function jn(t){In&&In(),x.lzy=t}function F(t,n){return Tn(()=>tt(t,n))}const On="window";let En,xn,Fn,Pn,Cn,zn,Dn;function P(t){return F(()=>An(t)||f,f)}function kn(t){return(En=!En||!1===t||x&&x.lzy&&!En.b?F(Vt,p):En).v}function An(t,n){n=En&&!1!==n?En.v:kn(n);return n&&n[t]?n[t]:t===On&&xn?xn.v:p}function Nn(){return!!Ln()}function Ln(){return(Fn=!Fn||x&&x.lzy&&!Fn.b?P("document"):Fn).v}function Rn(){return!!_n()}function _n(){return(xn=!xn||x&&x.lzy&&!xn.b?P(On):xn).v}function Wn(){return!!Kn()}function Kn(){return(Pn=!Pn||x&&x.lzy&&!Pn.b?P("navigator"):Pn).v}function Bn(){return!!Gn()}function Gn(){return(Cn=!Cn||x&&x.lzy&&!Cn.b?P("history"):Cn).v}function Hn(){return(Dn=Dn||F(()=>!(!process||!(process.versions||{}).node),!1)).v}function Un(){return(zn=zn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v}let C,$n,Mn;function Vn(t){return F(function(){return C.v?C.v[t]:f},f)}var qn=rt("symbol");function Jn(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),$n&&!t||($n=Vn("for")),Mn&&!t||(Mn=Vn("keyFor")),C.v}function Zn(t,n){var r=Ut[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?f:vn(t)}function Qn(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:ln(t)}function Xn(t){return $n&&(!x.lzy||C.b)||z(),($n.v||pn)(t)}function Yn(t){return Mn&&(!x.lzy||C.b)||z(),(Mn.v||yn)(t)}function tr(t){return!!t&&d(t.next)}function nr(t){return!st(t)&&d(t[Zn(3)])}let rr;function er(e,a,o){if(e&&(tr(e)||(e=e[(rr=rr||Tn(()=>Zn(3))).v]?e[rr.v]():null),tr(e))){let n,r;try{let t=0;for(;!(r=e.next())[V]&&-1!==a[y](o||e,r[q],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[V]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Zt("apply");function ar(n,t){return!o(t)&&n&&(h(t)?D(n.push,n,t):tr(t)||nr(t)?er(t,t=>{n.push(t)}):n.push(t)),n}var or=T("every",s),sr=T("filter",s);function k(n,r,e){if(n){var a=n[u]>>>0;for(let t=0;t<a&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const ur=T($,s);var ir=T(M,s);const cr=T("map",s),A=T(Z,s);function fr(t){return!i(t)&&"[object Array]"===et(t)}function lr(t,n,r){return-1!==ur(t,n,r)}function pr(t,n,r){n=yr(t,n,r);return-1!==n?t[n]:void 0}function yr(r,e,a){let o=-1;return k(r,(t,n)=>{if(e[y](a|r,t,n,r))return o=n,-1}),o}function vr(t,n,r){n=dr(t,n,r);return-1!==n?t[n]:void 0}function dr(n,r,e){let a=-1;for(let t=(n[u]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){a=t;break}return a}function br(t,r,e){var n;if(h(t))return n=A(t),r?cr(n,r,e):n;let a=[];return er(t,(t,n)=>a.push(r?r[y](e,t,n):t)),a}var hr=j("find",s,pr),gr=j("findIndex",s,yr),mr=j("findLast",s,vr),Sr=j("findLastIndex",s,dr),Y=Y.from||br,wr=j("includes",s,lr),Ir=wr,Tr=T("reduce",s),jr=T("some",s);const Or=Zt("bind");var Er=Zt(y);function xr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}function Fr(e,a,t){if(e&&a&&h(t)){let r=d(a);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?xr(a,t.n):Or(a[t.n],a))})}return e}let Pr;function Cr(t,n,o){if(Pr=Pr||Tn(()=>Jn()&&Zn(3)),!Tt(t,u)){var s=Pr.v&&t[Pr.v];if(s){let r=[],e=n===f||n<0?0:n,a=o<0||n<0?f:o;if(er(s[y](t),(t,n)=>{if(a!==f&&n>=a)return-1;n>=e&&r.push(t)}),(n===f||0<=n)&&(o===f||0<=o))return r;t=r}}return A(t,n,o)}const zr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=R)throw new TypeError("Prototype must be an Object or function: "+w(t));function r(){}return r[l]=t,new r};let Dr;function kr(t,n){return(e.setPrototypeOf||function(r,t){(Dr=Dr||Tn(()=>({[K]:[]})instanceof Array)).v?r[K]=t:g(t,(t,n)=>r[t]=n)})(t,n)}const Ar=(t,n)=>{try{n&&(t[J]=n)}catch(t){}},Nr=(t,n)=>{try{Sn(t,J,{v:n,c:!0,e:!1})}catch(t){}};function Lr(e,a,t){let o=t||Error,s=o[l][J],u=Error.captureStackTrace;return r=e,i=function(){var t=this;try{Ar(o,e);var n,r=D(o,t,A(arguments))||t;return r!==t&&(n=Rt(t))!==Rt(r)&&kr(r,n),u&&u(r,t[G]),a&&a(r,arguments),r}finally{Ar(o,s)}},t=o,Nr(i,r),(i=kr(i,t))[l]=t===p?zr(t):(n[l]=t[l],new n),i;function n(){this.constructor=i,Nr(this,r)}var r,i}let Rr;function _r(t){throw new(Rr=Rr||Lr("UnsupportedError"))(t)}function Wr(){return(Date.now||Kr)()}function Kr(){return(new Date).getTime()}function Br(n){return function(t){return i(t)&&m("strTrim called ["+w(t)+"]"),t&&t.replace?t.replace(n,c):t}}var Gr=Br(/^\s+|(?=\s)\s+$/g),Hr=Br(/^\s+/g),Ur=Br(/(?=\s)\s+$/g);const $r=j("trim",t,Gr);var Mr=j("trimStart",t,Hr),Vr=Mr,qr=j("trimEnd",t,Ur),Jr=qr;const N=T("toUpperCase",t),Zr=T("toLowerCase",t);function Qr(t,u,i){return $r(S(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,a,o)=>{let s=e||o||c;return i&&(s=N(s)),(a||c)+u+s})}function Xr(t){return S(t).replace(/(_|\b)\w/g,N)}function Yr(t,n){return Qr(t,"",!0).replace(/^\w/,n?N:Zr)}function te(t,n){t=Qr(t,"-");return(n?N:Zr)(t)}function ne(t,n){t=Qr(t,"_");return(n?N:Zr)(t)}const re=r.floor,ee=r.ceil,ae=r.trunc||function(t){t=+t;return(0<t?re:ee)(t)};function oe(t,n){var r=+t;return r==1/0&&n&&xt("invalid value ["+w(t)+"]"),r!=r||0==r?0:ae(r)}const se=j("repeat",t,ue);function ue(t,n){i(t)&&m("can't convert ["+w(t)+"]"),(n=oe(n,!0))<0&&xt("invalid count must be >= 0 && < Infinity");let r=v(t)?t:S(t),e=c;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function ie(t,n,r){let e=c;n=oe(n,!0),n>>=0;t=t[u];return e=t<n&&(n-=t,(e=n>(e=i(r)?" ":S(r))[u]?se(e,ee(n/e[u])):e)[u]>n)?O(e,0,n):e}const ce=j("padStart",t,fe);r=j("padEnd",t,le);function fe(t,n,r){return ie(t,n,r)+t}function le(t,n,r){return t+ie(t,n,r)}const pe=/([^\w\d_$])/g;let ye;function ve(t,n){t=S(t).replace(pe,"_");return o(n)?t:Yr(t,!n)}function de(t,n){let r;if(v(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+ce(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?lt(n)?n:4:f)}catch(t){r='"'+w(t)+'"'}return r}function be(t){return ye=ye||Tn(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),S(t).replace(/[&<>"']/g,t=>"&"+ye.v[t]+";")}let he,ge,me;function Se(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(me=me||!_n()||_n())){ge||(he=Function[l].toString,ge=he[y](e));try{let t=Rt(n);(r=!t)||(It(t,G)&&(t=t[G]),r=t&&typeof t==R&&he[y](t)===ge)}catch(t){}}return r}const we=t=>(t.value&&Ce(t),!0),Ie=[xe,Ce,Pe,Fe];function Te(e,t,a,n){var o=a.handler,n=a.path?n?a.path.concat(n):a.path:[];let r={handler:a.handler,src:a.src,path:n};var s=typeof t;let u=!1,i=!1,c=(t&&s===W?u=Se(t):i=t===p||ct(s),{type:s,isPrim:i,isPlain:u,value:t,result:t,path:n,origin:a.src,copy:(t,n)=>Te(e,t,n?r:a,n),copyTo:(t,n)=>je(e,t,n,r)});if(c.isPrim)return o&&o[y](a,c)?c.result:t;{var s=e,f=t;let r;if(k(s,t=>{if(t.k===f)return r=t,-1}),!r){r={k:f,v:f},s.push(r);{var l=r;Sn(c,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=o;for(;!(n||(t<Ie.length?Ie[t++]:we))[y](a,c);)n=p}}return r.v}}function je(t,n,r,e){if(!i(r))for(const a in r)n[a]=Te(t,r[a],e,a);return n}function Oe(t,n,r){return je([],t,n,{handler:r,src:n,path:[]})}function Ee(t,n){return Te([],t,{handler:n,src:t})}function xe(t){var n,r=t.value;return!!h(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Fe(t){var n=t.value;return!!ft(n)&&(t.result=new Date(n.getTime()),!0)}function Pe(t){return t.type===R}function Ce(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function ze(n,t){return k(t,t=>{Oe(n,t)}),n}function De(t,n,r,e,a,o,s){return ze(Ee(t)||{},A(arguments))}function ke(t,n,r,e,a,o,s){return ze(t||{},A(arguments))}var Ae=Qt(u);function Ne(t,n){return i(t)?n:lt(t)?t:isNaN(t=parseInt(t,10))?n:t}let Le;function Re(){return!!_e()}function _e(){return(Le=!Le||!Le.b&&x&&x.lzy?P("performance"):Le).v}function We(){var t=_e();return t&&t.now?t.now():Wr()}function Ke(t){return We()-t}const Be="(.*)";function Ge(t,n,r,e,a){return RegExp((a?"^":c)+r(t.replace(n,"\\$1"))+(a?"$":c),e?"i":"")}function He(t,n,r){return Ge(S(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,Be),!!n,r)}function Ue(t,n,r){return Ge(S(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?Be:"(.)"}),!!n,r)}function $e(t,n,r){return Ge(S(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?Be:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)}function Me(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!i(n))if(h(n))e=0<n[u];else if(ft(n))e=!isNaN(n.getTime());else{if(pt(n))return!0;if(b(n)){try{var a=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(d(t)?t():t),-1}),r}(n,[u,"byteLength","size","count"]);if(pt(a))return a;if(d(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!kt(n)[u]}e=St(n)}return e}(t,0)}function Ve(t){return qe({},t)}function qe(t,n){return t[Zn(3)]=function(){return Je(n)},t}function Je(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[V]:r};return r||Sn(t,q,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[V]:!0,[q]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[V]:!0,[q]:n.t&&n.t(t)}}),t}function Ze(t){let n=-1,r=t?t.slice():[],e=r[u];t={n:function(){return++n>=e}};return Sn(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),Je(t)}function Qe(t,n,r){let e=t,a=f,o=(i(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<o?e>n:e<n)||(a=e,e+=o),t}};return Sn(r,"v",{g:function(){return a}}),Je(r)}function Xe(t,n,r){n=n&&n[Zn(9)];return n?n(t,r):[t]}const Ye=T("split",t);var ta=j("split",t,z()?null:Xe);function na(n,t,r){if(!t||!n)return r;var e=Ye(t,"."),a=e.length;for(let t=0;t<a&&!i(n);t++)n=n[e[t]];return i(n)?r:n}function ra(n,t,r){return t&&n&&(er(t,t=>{if(i(n))return-1;n=n[t]}),!i(n))?n:r}function ea(n,t,r){var e;n&&t&&(e=(t=Ye(t,".")).pop(),k(t,t=>{i(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)}function aa(r,t,e){if(r&&t){let n;er(t,t=>{n&&(i(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}}var oa=j("endsWith",t,sa);function sa(t,n,r){v(t)||m("'"+w(t)+"' is not a string");var n=v(n)?n:S(n),e=n[u],a=t[u],r=!o(r)&&r<a?r:a;return O(t,r-e,r)===n}const ua=T($,t);$=T(M,t),M=j("includes",t,ia),t=M;function ia(t,n,r){return yt(n)&&m("'searchString' must not be a regular expression"+w(n)),-1!==ua(t,S(n),r)}function ca(t){return v(t)?t.replace(/[\s\t\r\n\f]+/g,c)===c:i(t)}function fa(t){return v(t)?t===c:i(t)}const la="ref",pa="un"+la,ya="hasRef",va="enabled";function da(t,n,r){let e=!0,a=t?n(p):p,o;const s=()=>(e=!1,a&&a[pa]&&a[pa](),o),u=()=>(a=n(a),e||s(),o),i=()=>{a&&r(a),a=p};return o={cancel:i,refresh:u,[ya]:()=>a&&a[ya]?a[ya]():e,[la]:()=>(e=!0,a&&a[la]&&a[la](),o),[pa]:s,[va]:!1},E(o,va,{get:()=>!!a,set:t=>{!t&&a&&i(),t&&!a&&u()}}),{h:o,dn:()=>{a=p}}}function ba(n,t,r,e){var a=h(r),o=a?r.length:0;let s=(0<o?r[0]:a?f:r)||setTimeout,u=(1<o?r[1]:f)||clearTimeout,i=e[0],c=(e[0]=function(){c.dn(),D(i,n,A(arguments))},da(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(u,n,[t])}return D(s,n,e)},function(t){D(u,n,[t])}));return c.h}function ha(t,n){return ba(this,!0,f,A(arguments))}function ga(t,n,r){return ba(this,!0,t,A(arguments,1))}function ma(t,n){return ba(this,!1,f,A(arguments))}function Sa(t,n,r){return ba(this,!1,t,A(arguments,1))}let wa,Ia=100,Ta=50;function ja(){return!(!(wa=wa||F(()=>ut(requestIdleCallback),!1)).v||!requestIdleCallback)}function Oa(t){Ia=t}function Ea(t){Ta=t}function xa(r,e){function a(t){let n=We();return{didTimeout:t,timeRemaining:()=>Ta-Ke(n)}}if(ja()){let n=da(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||a(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ha(()=>{r(a(!0))},o(t)?Ia:t)}function Fa(t,n){let r=this,e=A(arguments);return da(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h}export{ar as arrAppend,Ir as arrContains,or as arrEvery,sr as arrFilter,hr as arrFind,gr as arrFindIndex,mr as arrFindLast,Sr as arrFindLastIndex,k as arrForEach,Y as arrFrom,wr as arrIncludes,ur as arrIndexOf,ir as arrLastIndexOf,cr as arrMap,Tr as arrReduce,A as arrSlice,jr as arrSome,xe as arrayDeepCopyHandler,S as asString,Ze as createArrayIterator,Lr as createCustomError,Wt as createEnum,Kt as createEnumKeyMap,Bt as createEnumValueMap,Ue as createFilenameRegex,xr as createFnDeferredProxy,Ve as createIterable,Je as createIterator,Fr as createProxyFuncs,Qe as createRangeIterator,Gt as createSimpleMap,ma as createTimeout,Sa as createTimeoutWith,Ht as createTypeMap,He as createWildcardRegex,Fe as dateDeepCopyHandler,De as deepExtend,w as dumpObj,Ke as elapsedTime,be as encodeAsHtml,de as encodeAsJson,D as fnApply,Or as fnBind,Er as fnCall,Pe as functionDeepCopyHandler,Ln as getDocument,kn as getGlobal,Gn as getHistory,An as getInst,Ne as getIntValue,Zn as getKnownSymbol,Tn as getLazy,Ae as getLength,Kn as getNavigator,_e as getPerformance,z as getSymbol,ra as getValueByIter,na as getValueByKey,_n as getWindow,Nn as hasDocument,Bn as hasHistory,ja as hasIdleCallback,Wn as hasNavigator,Re as hasPerformance,Jn as hasSymbol,Me as hasValue,Rn as hasWindow,h as isArray,vt as isArrayBuffer,L as isBlob,pt as isBoolean,ft as isDate,ut as isDefined,dt as isError,B as isFile,_ as isFormData,d as isFunction,nr as isIterable,tr as isIterator,Hn as isNode,mt as isNotTruthy,i as isNullOrUndefined,lt as isNumber,b as isObject,Se as isPlainObject,it as isPrimitive,ct as isPrimitiveType,gt as isPromise,bt as isPromiseLike,yt as isRegExp,st as isStrictNullOrUndefined,ot as isStrictUndefined,v as isString,qn as isSymbol,ht as isThenable,St as isTruthy,at as isTypeof,o as isUndefined,Un as isWebWorker,er as iterForOf,P as lazySafeGetInst,$e as makeGlobRegex,qe as makeIterable,ee as mathCeil,re as mathFloor,Xt as mathMax,X as mathMin,oe as mathToInt,ae as mathTrunc,Qn as newSymbol,ve as normalizeJsName,Dt as objAssign,Oe as objCopyProps,zr as objCreate,Ee as objDeepCopy,At as objDeepFreeze,Sn as objDefine,mn as objDefineAccessors,gn as objDefineGet,E as objDefineProp,hn as objDefineProperties,wn as objDefineProps,_t as objEntries,ke as objExtend,g as objForEachKey,Nt as objFreeze,wt as objGetOwnPropertyDescriptor,Rt as objGetPrototypeOf,Tt as objHasOwn,It as objHasOwnProperty,kt as objKeys,Lt as objSeal,kr as objSetPrototypeOf,et as objToString,We as perfNow,Ce as plainObjDeepCopyHandler,pr as polyArrFind,yr as polyArrFindIndex,vr as polyArrFindLast,dr as polyArrFindLastIndex,br as polyArrFrom,lr as polyArrIncludes,vn as polyGetKnownSymbol,fr as polyIsArray,ln as polyNewSymbol,Pt as polyObjEntries,jt as polyObjHasOwn,Ft as polyObjKeys,ia as polyStrIncludes,nn as polyStrSubstr,Xe as polyStrSymSplit,Gr as polyStrTrim,Ur as polyStrTrimEnd,Hr as polyStrTrimStart,pn as polySymbolFor,yn as polySymbolKeyFor,Kr as polyUtcNow,Cr as readArgs,tt as safeGet,F as safeGetLazy,xa as scheduleIdleCallback,Fa as scheduleInterval,ha as scheduleTimeout,ga as scheduleTimeoutWith,jn as setBypassLazyCache,Oa as setDefaultIdleTimeout,Ea as setDefaultMaxExecutionTime,aa as setValueByIter,ea as setValueByKey,Yr as strCamelCase,t as strContains,oa as strEndsWith,M as strIncludes,ua as strIndexOf,fa as strIsNullOrEmpty,ca as strIsNullOrWhiteSpace,te as strKebabCase,$ as strLastIndexOf,rn as strLeft,Xr as strLetterCase,Zr as strLower,r as strPadEnd,ce as strPadStart,se as strRepeat,en as strRight,Yt as strSlice,ne as strSnakeCase,Ye as strSplit,an as strStartsWith,tn as strSubstr,O as strSubstring,ta as strSymSplit,$r as strTrim,qr as strTrimEnd,Vr as strTrimLeft,Jr as strTrimRight,Mr as strTrimStart,N as strUpper,Xn as symbolFor,Yn as symbolKeyFor,Et as throwError,xt as throwRangeError,m as throwTypeError,_r as throwUnsupported,Wr as utcNow}; | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
const f=void 0,p=null,c="";var L="boolean";const R="function";var _="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol",U="_polyfill";var $="indexOf",M="lastIndexOf";const u="length",V="done",q="value",J="name",Z="slice",y="call",e=Object,Q=e[l];var X=String,t=X[l],r=Math,Y=Array;const s=Y[l];function tt(t,n){let r=n;try{r=t()}catch(t){}return r}const nt=[B,_,L,n,"symbol","bigint"];function rt(n){return function(t){return typeof t===n}}function a(t){const n="[object "+t+"]";return function(t){return!(!t||et(t)!==n)}}function et(t){return Q.toString[y](t)}function at(t,n){return typeof t===n}function o(t){return typeof t===n||t===n}function ot(t){return!ut(t)}function i(t){return t===p||o(t)}function st(t){return t===p||!ut(t)}function ut(t){return!!t||t!==f}function it(t){return t===p||ct(typeof t)}function ct(t){return t!==W&&!!~nt.indexOf(t)}const v=rt(B),d=rt(R);function b(t){return!(!t&&i(t)||!t||typeof t!==W)}const h=Y.isArray,ft=a("Date"),lt=rt(_),pt=rt(L),yt=a("RegExp");var B=a("File"),_=a("FormData"),L=a("Blob"),vt=a("ArrayBuffer");const dt=a("Error");function bt(t){return!!(t&&t.then&&d(t.then))}var ht=bt;function gt(t){return!!(t&&t.then&&t.catch&&d(t.then)&&d(t.catch))}function mt(t){return!t||!tt(()=>t&&0+t,t)}function St(t){return!(!t||tt(()=>!(t&&0+t),!t))}const wt=e.getOwnPropertyDescriptor;function It(t,n){return t&&Q.hasOwnProperty[y](t,n)}const Tt=e.hasOwn||jt;function jt(t,n){return It(t,n)||!!wt(t,n)}function g(t,n,r){if(t&&b(t))for(const e in t)if(Tt(t,e)&&-1===n[y](r||t,e,t[e]))break}function Ot(t,r,e,n){let a={};return g(t,(t,n)=>{a[t]=r?n:t,a[n]=e?n:t}),n(a)}function Et(t){throw Error(t)}function m(t){throw new TypeError(t)}function xt(t){throw new RangeError(t)}function Ft(t){if(!b(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)Tt(t,r)&&n.push(r);return n}function Pt(t){let r=[];return g(t,(t,n)=>{r.push([t,n])}),r}const Ct=e.freeze;function zt(t){return t}var Dt=e.assign;function kt(t){return b(t)&&t!==p||m("objKeys called on non-object"),e.keys(t)}function At(t){return Ct&&g(t,(t,n)=>{(h(n)||b(n))&&Ct(n)}),Nt(t)}const Nt=Ct||zt;var Lt=e.seal||zt;const Rt=e.getPrototypeOf||function(t){return t[K]||p};var _t=e.entries||Pt;function Wt(t){return Ot(t,1,0,At)}function Kt(t){return Ot(t,0,0,At)}function Bt(t){return Ot(t,1,1,At)}function Gt(t){let r={};return g(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),At(r)}function Ht(t){return Gt(t)}const Ut=Kt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),S=X,$t="__tsUtils$gblCfg";let Mt;function Vt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function qt(){var t;return Mt||(t=Vt()||{},Mt=t[$t]=t[$t]||{}),Mt}function w(t,n){let r=c;if(dt(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?lt(n)?n:4:f)}catch(t){r=" - "+w(t,n)}return et(t)+": "+r}let I;function Jt(t,n){m("'"+S(t)+"' not defined for "+w(n))}function Zt(n){return I=I||s[Z],function(t){return t[n].apply(t,I[y](arguments,1))}}function T(r,t){I=I||s[Z];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,I[y](arguments,1));Jt(r,t)}}function j(e,t,a){I=I||s[Z];let o=t&&t[e];return function(t){var n,r=t&&t[e]||o;if(r||a)return n=arguments,(r||a).apply(t,r?I[y](n,1):n);Jt(e,t)}}function Qt(n){return function(t){return t[n]}}X=r.min;const Xt=r.max,Yt=T(Z,t),O=T("substring",t);var tn=j("substr",t,nn);function nn(t,n,r){return i(t)&&m("'polyStrSubstr called with invalid "+w(t)),r<0?c:((n=n||0)<0&&(n=Xt(n+t[u],0)),o(r)?Yt(t,n):Yt(t,n,n+r))}function rn(t,n){return O(t,0,n)}function en(t,n){var r=t[u];return n<=0?c:n<r?O(t,r-n):t}const an=j("startsWith",t,on);function on(t,n,r){v(t)||m("'"+w(t)+"' is not a string");var n=v(n)?n:S(n),e=n[u],r=0<r?r:0;return O(t,r,r+e)===n}const sn="_urid";let un;function cn(){var t;return un||(t=qt(),un=t.gblSym=t.gblSym||{k:{},s:{}}),un}let fn;function ln(t){var n={description:S(t),toString:()=>H+"("+t+")"};return n[U]=!0,n}function pn(r){var e=cn();if(!Tt(e.k,r)){let t=ln(r),n=kt(e.s).length;t[sn]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[sn]()]=S(r)}return e.k[r]}function yn(t){t&&t.toString&&an(t.toString(),H)||m(t+" is not a symbol");t=t[U]&&t[sn]&&t[sn]();return t?cn().s[t]:void 0}function vn(t){fn=fn||{};t=Ut[t];return t?fn[t]=fn[t]||ln(H+"."+t):void 0}const dn={e:"enumerable",c:"configurable",v:q,w:"writable",g:"get",s:"set"};function bn(n){let r={};var t;return r[dn.c]=!0,r[dn.e]=!0,n.l&&(r.get=()=>n.l.v,t=wt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),g(n,(t,n)=>{r[dn[t]]=o(n)?r[dn[t]]:n}),r}const E=e.defineProperty,hn=e.defineProperties;function gn(t,n,r,e,a){return E(t,n,bn({e:a,c:e,[d(r)?"g":"v"]:r}))}function mn(t,n,r,e,a,o){o={e:o,c:a};return r&&(o.g=r),e&&(o.s=e),E(t,n,bn(o))}function Sn(t,n,r){return E(t,n,bn(r))}function wn(t,n){let r={};return g(n,(t,n)=>{r[t]=bn(n)}),hn(t,r)}let x,In=function(){x=qt(),In=p};function Tn(n){let r={};return In&&In(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function jn(t){In&&In(),x.lzy=t}function F(t,n){return Tn(()=>tt(t,n))}const On="window";let En,xn,Fn,Pn,Cn,zn,Dn;function P(t){return F(()=>An(t)||f,f)}function kn(t){return(En=!En||!1===t||x&&x.lzy&&!En.b?F(Vt,p):En).v}function An(t,n){n=En&&!1!==n?En.v:kn(n);return n&&n[t]?n[t]:t===On&&xn?xn.v:p}function Nn(){return!!Ln()}function Ln(){return(Fn=!Fn||x&&x.lzy&&!Fn.b?P("document"):Fn).v}function Rn(){return!!_n()}function _n(){return(xn=!xn||x&&x.lzy&&!xn.b?P(On):xn).v}function Wn(){return!!Kn()}function Kn(){return(Pn=!Pn||x&&x.lzy&&!Pn.b?P("navigator"):Pn).v}function Bn(){return!!Gn()}function Gn(){return(Cn=!Cn||x&&x.lzy&&!Cn.b?P("history"):Cn).v}function Hn(){return(Dn=Dn||F(()=>!(!process||!(process.versions||{}).node),!1)).v}function Un(){return(zn=zn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v}let C,$n,Mn;function Vn(t){return F(function(){return C.v?C.v[t]:f},f)}var qn=rt("symbol");function Jn(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),$n&&!t||($n=Vn("for")),Mn&&!t||(Mn=Vn("keyFor")),C.v}function Zn(t,n){var r=Ut[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?f:vn(t)}function Qn(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:ln(t)}function Xn(t){return $n&&(!x.lzy||C.b)||z(),($n.v||pn)(t)}function Yn(t){return Mn&&(!x.lzy||C.b)||z(),(Mn.v||yn)(t)}function tr(t){return!!t&&d(t.next)}function nr(t){return!st(t)&&d(t[Zn(3)])}let rr;function er(e,a,o){if(e&&(tr(e)||(e=e[(rr=rr||Tn(()=>Zn(3))).v]?e[rr.v]():null),tr(e))){let n,r;try{let t=0;for(;!(r=e.next())[V]&&-1!==a[y](o||e,r[q],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[V]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Zt("apply");function ar(n,t){return!o(t)&&n&&(h(t)?D(n.push,n,t):tr(t)||nr(t)?er(t,t=>{n.push(t)}):n.push(t)),n}var or=T("every",s),sr=T("filter",s);function k(n,r,e){if(n){var a=n[u]>>>0;for(let t=0;t<a&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const ur=T($,s);var ir=T(M,s);const cr=T("map",s),A=T(Z,s);function fr(t){return!i(t)&&"[object Array]"===et(t)}function lr(t,n,r){return-1!==ur(t,n,r)}function pr(t,n,r){n=yr(t,n,r);return-1!==n?t[n]:void 0}function yr(r,e,a){let o=-1;return k(r,(t,n)=>{if(e[y](a|r,t,n,r))return o=n,-1}),o}function vr(t,n,r){n=dr(t,n,r);return-1!==n?t[n]:void 0}function dr(n,r,e){let a=-1;for(let t=(n[u]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){a=t;break}return a}function br(t,r,e){var n;if(h(t))return n=A(t),r?cr(n,r,e):n;let a=[];return er(t,(t,n)=>a.push(r?r[y](e,t,n):t)),a}var hr=j("find",s,pr),gr=j("findIndex",s,yr),mr=j("findLast",s,vr),Sr=j("findLastIndex",s,dr),Y=Y.from||br,wr=j("includes",s,lr),Ir=wr,Tr=T("reduce",s),jr=T("some",s);const Or=Zt("bind");var Er=Zt(y);function xr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}function Fr(e,a,t){if(e&&a&&h(t)){let r=d(a);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?xr(a,t.n):Or(a[t.n],a))})}return e}let Pr;function Cr(t,n,o){if(Pr=Pr||Tn(()=>Jn()&&Zn(3)),!Tt(t,u)){var s=Pr.v&&t[Pr.v];if(s){let r=[],e=n===f||n<0?0:n,a=o<0||n<0?f:o;if(er(s[y](t),(t,n)=>{if(a!==f&&n>=a)return-1;n>=e&&r.push(t)}),(n===f||0<=n)&&(o===f||0<=o))return r;t=r}}return A(t,n,o)}const zr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=R)throw new TypeError("Prototype must be an Object or function: "+w(t));function r(){}return r[l]=t,new r};let Dr;function kr(t,n){return(e.setPrototypeOf||function(r,t){(Dr=Dr||Tn(()=>({[K]:[]})instanceof Array)).v?r[K]=t:g(t,(t,n)=>r[t]=n)})(t,n)}function Ar(t,n){try{n&&(t[J]=n)}catch(t){}}function Nr(t,n){try{Sn(t,J,{v:n,c:!0,e:!1})}catch(t){}}function Lr(e,a,t){let o=t||Error,s=o[l][J],u=Error.captureStackTrace;return t=o,Nr(i=function(){var t=this;try{Ar(o,e);var n,r=D(o,t,A(arguments))||t;return r!==t&&(n=Rt(t))!==Rt(r)&&kr(r,n),u&&u(r,t[G]),a&&a(r,arguments),r}finally{Ar(o,s)}},r=e),(i=kr(i,t))[l]=t===p?zr(t):(n[l]=t[l],new n),i;function n(){this.constructor=i,Nr(this,r)}var r,i}let Rr;function _r(t){throw new(Rr=Rr||Lr("UnsupportedError"))(t)}function Wr(){return(Date.now||Kr)()}function Kr(){return(new Date).getTime()}function Br(n){return function(t){return i(t)&&m("strTrim called ["+w(t)+"]"),t&&t.replace?t.replace(n,c):t}}var Gr=Br(/^\s+|(?=\s)\s+$/g),Hr=Br(/^\s+/g),Ur=Br(/(?=\s)\s+$/g);const $r=j("trim",t,Gr);var Mr=j("trimStart",t,Hr),Vr=Mr,qr=j("trimEnd",t,Ur),Jr=qr;const N=T("toUpperCase",t),Zr=T("toLowerCase",t);function Qr(t,u,i){return $r(S(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,a,o)=>{let s=e||o||c;return i&&(s=N(s)),(a||c)+u+s})}function Xr(t){return S(t).replace(/(_|\b)\w/g,N)}function Yr(t,n){return Qr(t,"",!0).replace(/^\w/,n?N:Zr)}function te(t,n){t=Qr(t,"-");return(n?N:Zr)(t)}function ne(t,n){t=Qr(t,"_");return(n?N:Zr)(t)}const re=r.floor,ee=r.ceil,ae=r.trunc||function(t){t=+t;return(0<t?re:ee)(t)};function oe(t,n){var r=+t;return r==1/0&&n&&xt("invalid value ["+w(t)+"]"),r!=r||0==r?0:ae(r)}const se=j("repeat",t,ue);function ue(t,n){i(t)&&m("can't convert ["+w(t)+"]"),(n=oe(n,!0))<0&&xt("invalid count must be >= 0 && < Infinity");let r=v(t)?t:S(t),e=c;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function ie(t,n,r){let e=c;n=oe(n,!0),n>>=0;t=t[u];return e=t<n&&(n-=t,(e=n>(e=i(r)?" ":S(r))[u]?se(e,ee(n/e[u])):e)[u]>n)?O(e,0,n):e}const ce=j("padStart",t,fe);r=j("padEnd",t,le);function fe(t,n,r){return ie(t,n,r)+t}function le(t,n,r){return t+ie(t,n,r)}const pe=/([^\w\d_$])/g;let ye;function ve(t,n){t=S(t).replace(pe,"_");return o(n)?t:Yr(t,!n)}function de(t,n){let r;if(v(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+ce(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?lt(n)?n:4:f)}catch(t){r='"'+w(t)+'"'}return r}function be(t){return ye=ye||Tn(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),S(t).replace(/[&<>"']/g,t=>"&"+ye.v[t]+";")}let he,ge,me;function Se(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(me=me||!_n()||_n())){ge||(he=Function[l].toString,ge=he[y](e));try{let t=Rt(n);(r=!t)||(It(t,G)&&(t=t[G]),r=t&&typeof t==R&&he[y](t)===ge)}catch(t){}}return r}const we=t=>(t.value&&Ce(t),!0),Ie=[xe,Ce,Pe,Fe];function Te(e,t,a,n){var o=a.handler,n=a.path?n?a.path.concat(n):a.path:[];let r={handler:a.handler,src:a.src,path:n};var s=typeof t;let u=!1,i=!1,c=(t&&s===W?u=Se(t):i=t===p||ct(s),{type:s,isPrim:i,isPlain:u,value:t,result:t,path:n,origin:a.src,copy:(t,n)=>Te(e,t,n?r:a,n),copyTo:(t,n)=>je(e,t,n,r)});if(c.isPrim)return o&&o[y](a,c)?c.result:t;{var s=e,f=t;let r;if(k(s,t=>{if(t.k===f)return r=t,-1}),!r){r={k:f,v:f},s.push(r);{var l=r;Sn(c,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=o;for(;!(n||(t<Ie.length?Ie[t++]:we))[y](a,c);)n=p}}return r.v}}function je(t,n,r,e){if(!i(r))for(const a in r)n[a]=Te(t,r[a],e,a);return n}function Oe(t,n,r){return je([],t,n,{handler:r,src:n,path:[]})}function Ee(t,n){return Te([],t,{handler:n,src:t})}function xe(t){var n,r=t.value;return!!h(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Fe(t){var n=t.value;return!!ft(n)&&(t.result=new Date(n.getTime()),!0)}function Pe(t){return t.type===R}function Ce(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function ze(n,t){return k(t,t=>{Oe(n,t)}),n}function De(t,n,r,e,a,o,s){return ze(Ee(t)||{},A(arguments))}function ke(t,n,r,e,a,o,s){return ze(t||{},A(arguments))}var Ae=Qt(u);function Ne(t,n){return i(t)?n:lt(t)?t:isNaN(t=parseInt(t,10))?n:t}let Le;function Re(){return!!_e()}function _e(){return(Le=!Le||!Le.b&&x&&x.lzy?P("performance"):Le).v}function We(){var t=_e();return t&&t.now?t.now():Wr()}function Ke(t){return We()-t}const Be="(.*)";function Ge(t,n,r,e,a){return RegExp((a?"^":c)+r(t.replace(n,"\\$1"))+(a?"$":c),e?"i":"")}function He(t,n,r){return Ge(S(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,Be),!!n,r)}function Ue(t,n,r){return Ge(S(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?Be:"(.)"}),!!n,r)}function $e(t,n,r){return Ge(S(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?Be:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)}function Me(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!i(n))if(h(n))e=0<n[u];else if(ft(n))e=!isNaN(n.getTime());else{if(pt(n))return!0;if(b(n)){try{var a=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(d(t)?t():t),-1}),r}(n,[u,"byteLength","size","count"]);if(pt(a))return a;if(d(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!kt(n)[u]}e=St(n)}return e}(t,0)}function Ve(t){return qe({},t)}function qe(t,n){return t[Zn(3)]=function(){return Je(n)},t}function Je(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[V]:r};return r||Sn(t,q,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[V]:!0,[q]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[V]:!0,[q]:n.t&&n.t(t)}}),t}function Ze(t){let n=-1,r=t?t.slice():[],e=r[u];t={n:function(){return++n>=e}};return Sn(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),Je(t)}function Qe(t,n,r){let e=t,a=f,o=(i(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<o?e>n:e<n)||(a=e,e+=o),t}};return Sn(r,"v",{g:function(){return a}}),Je(r)}function Xe(t,n,r){n=n&&n[Zn(9)];return n?n(t,r):[t]}const Ye=T("split",t);var ta=j("split",t,z()?null:Xe);function na(n,t,r){if(!t||!n)return r;var e=Ye(t,"."),a=e.length;for(let t=0;t<a&&!i(n);t++)n=n[e[t]];return i(n)?r:n}function ra(n,t,r){return t&&n&&(er(t,t=>{if(i(n))return-1;n=n[t]}),!i(n))?n:r}function ea(n,t,r){var e;n&&t&&(e=(t=Ye(t,".")).pop(),k(t,t=>{i(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)}function aa(r,t,e){if(r&&t){let n;er(t,t=>{n&&(i(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}}var oa=j("endsWith",t,sa);function sa(t,n,r){v(t)||m("'"+w(t)+"' is not a string");var n=v(n)?n:S(n),e=n[u],a=t[u],r=!o(r)&&r<a?r:a;return O(t,r-e,r)===n}const ua=T($,t);$=T(M,t),M=j("includes",t,ia),t=M;function ia(t,n,r){return yt(n)&&m("'searchString' must not be a regular expression"+w(n)),-1!==ua(t,S(n),r)}function ca(t){return v(t)?t.replace(/[\s\t\r\n\f]+/g,c)===c:i(t)}function fa(t){return v(t)?t===c:i(t)}const la="ref",pa="un"+la,ya="hasRef",va="enabled";function da(t,n,r){let e=!0,a=t?n(p):p,o;const s=()=>(e=!1,a&&a[pa]&&a[pa](),o),u=()=>(a=n(a),e||s(),o),i=()=>{a&&r(a),a=p};return o={cancel:i,refresh:u,[ya]:()=>a&&a[ya]?a[ya]():e,[la]:()=>(e=!0,a&&a[la]&&a[la](),o),[pa]:s,[va]:!1},E(o,va,{get:()=>!!a,set:t=>{!t&&a&&i(),t&&!a&&u()}}),{h:o,dn:()=>{a=p}}}function ba(n,t,r,e){var a=h(r),o=a?r.length:0;let s=(0<o?r[0]:a?f:r)||setTimeout,u=(1<o?r[1]:f)||clearTimeout,i=e[0],c=(e[0]=function(){c.dn(),D(i,n,A(arguments))},da(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(u,n,[t])}return D(s,n,e)},function(t){D(u,n,[t])}));return c.h}function ha(t,n){return ba(this,!0,f,A(arguments))}function ga(t,n,r){return ba(this,!0,t,A(arguments,1))}function ma(t,n){return ba(this,!1,f,A(arguments))}function Sa(t,n,r){return ba(this,!1,t,A(arguments,1))}let wa,Ia=100,Ta=50;function ja(){return!(!(wa=wa||F(()=>ut(requestIdleCallback),!1)).v||!requestIdleCallback)}function Oa(t){Ia=t}function Ea(t){Ta=t}function xa(r,e){function a(t){let n=We();return{didTimeout:t,timeRemaining:()=>Ta-Ke(n)}}if(ja()){let n=da(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||a(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ha(()=>{r(a(!0))},o(t)?Ia:t)}function Fa(t,n){let r=this,e=A(arguments);return da(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h}export{ar as arrAppend,Ir as arrContains,or as arrEvery,sr as arrFilter,hr as arrFind,gr as arrFindIndex,mr as arrFindLast,Sr as arrFindLastIndex,k as arrForEach,Y as arrFrom,wr as arrIncludes,ur as arrIndexOf,ir as arrLastIndexOf,cr as arrMap,Tr as arrReduce,A as arrSlice,jr as arrSome,xe as arrayDeepCopyHandler,S as asString,Ze as createArrayIterator,Lr as createCustomError,Wt as createEnum,Kt as createEnumKeyMap,Bt as createEnumValueMap,Ue as createFilenameRegex,xr as createFnDeferredProxy,Ve as createIterable,Je as createIterator,Fr as createProxyFuncs,Qe as createRangeIterator,Gt as createSimpleMap,ma as createTimeout,Sa as createTimeoutWith,Ht as createTypeMap,He as createWildcardRegex,Fe as dateDeepCopyHandler,De as deepExtend,w as dumpObj,Ke as elapsedTime,be as encodeAsHtml,de as encodeAsJson,D as fnApply,Or as fnBind,Er as fnCall,Pe as functionDeepCopyHandler,Ln as getDocument,kn as getGlobal,Gn as getHistory,An as getInst,Ne as getIntValue,Zn as getKnownSymbol,Tn as getLazy,Ae as getLength,Kn as getNavigator,_e as getPerformance,z as getSymbol,ra as getValueByIter,na as getValueByKey,_n as getWindow,Nn as hasDocument,Bn as hasHistory,ja as hasIdleCallback,Wn as hasNavigator,Re as hasPerformance,Jn as hasSymbol,Me as hasValue,Rn as hasWindow,h as isArray,vt as isArrayBuffer,L as isBlob,pt as isBoolean,ft as isDate,ut as isDefined,dt as isError,B as isFile,_ as isFormData,d as isFunction,nr as isIterable,tr as isIterator,Hn as isNode,mt as isNotTruthy,i as isNullOrUndefined,lt as isNumber,b as isObject,Se as isPlainObject,it as isPrimitive,ct as isPrimitiveType,gt as isPromise,bt as isPromiseLike,yt as isRegExp,st as isStrictNullOrUndefined,ot as isStrictUndefined,v as isString,qn as isSymbol,ht as isThenable,St as isTruthy,at as isTypeof,o as isUndefined,Un as isWebWorker,er as iterForOf,P as lazySafeGetInst,$e as makeGlobRegex,qe as makeIterable,ee as mathCeil,re as mathFloor,Xt as mathMax,X as mathMin,oe as mathToInt,ae as mathTrunc,Qn as newSymbol,ve as normalizeJsName,Dt as objAssign,Oe as objCopyProps,zr as objCreate,Ee as objDeepCopy,At as objDeepFreeze,Sn as objDefine,mn as objDefineAccessors,gn as objDefineGet,E as objDefineProp,hn as objDefineProperties,wn as objDefineProps,_t as objEntries,ke as objExtend,g as objForEachKey,Nt as objFreeze,wt as objGetOwnPropertyDescriptor,Rt as objGetPrototypeOf,Tt as objHasOwn,It as objHasOwnProperty,kt as objKeys,Lt as objSeal,kr as objSetPrototypeOf,et as objToString,We as perfNow,Ce as plainObjDeepCopyHandler,pr as polyArrFind,yr as polyArrFindIndex,vr as polyArrFindLast,dr as polyArrFindLastIndex,br as polyArrFrom,lr as polyArrIncludes,vn as polyGetKnownSymbol,fr as polyIsArray,ln as polyNewSymbol,Pt as polyObjEntries,jt as polyObjHasOwn,Ft as polyObjKeys,ia as polyStrIncludes,nn as polyStrSubstr,Xe as polyStrSymSplit,Gr as polyStrTrim,Ur as polyStrTrimEnd,Hr as polyStrTrimStart,pn as polySymbolFor,yn as polySymbolKeyFor,Kr as polyUtcNow,Cr as readArgs,tt as safeGet,F as safeGetLazy,xa as scheduleIdleCallback,Fa as scheduleInterval,ha as scheduleTimeout,ga as scheduleTimeoutWith,jn as setBypassLazyCache,Oa as setDefaultIdleTimeout,Ea as setDefaultMaxExecutionTime,aa as setValueByIter,ea as setValueByKey,Yr as strCamelCase,t as strContains,oa as strEndsWith,M as strIncludes,ua as strIndexOf,fa as strIsNullOrEmpty,ca as strIsNullOrWhiteSpace,te as strKebabCase,$ as strLastIndexOf,rn as strLeft,Xr as strLetterCase,Zr as strLower,r as strPadEnd,ce as strPadStart,se as strRepeat,en as strRight,Yt as strSlice,ne as strSnakeCase,Ye as strSplit,an as strStartsWith,tn as strSubstr,O as strSubstring,ta as strSymSplit,$r as strTrim,qr as strTrimEnd,Vr as strTrimLeft,Jr as strTrimRight,Mr as strTrimStart,N as strUpper,Xn as symbolFor,Yn as symbolKeyFor,Et as throwError,xt as throwRangeError,m as throwTypeError,_r as throwUnsupported,Wr as utcNow}; | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
this.nevware21=this.nevware21||{},this.nevware21["ts-utils"]=function(t){"use strict";const f=void 0,p=null,s="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math,X=Array;const i=X[l];function Y(t,n){let r=n;try{r=t()}catch(t){}return r}const tt=[B,R,L,n,"symbol","bigint"];function nt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||rt(t)!==n)}}function rt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function v(t){return t===p||a(t)}function et(t){return t===p||!ot(t)}function ot(t){return!!t||t!==f}function ut(t){return t!==W&&!!~tt.indexOf(t)}const d=nt(B),b=nt(_);function h(t){return!(!t&&v(t)||!t||typeof t!==W)}const g=X.isArray,it=u("Date"),ct=nt(R),at=nt(L),st=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),ft=u("ArrayBuffer");const lt=u("Error");function pt(t){return!!(t&&t.then&&b(t.then))}var yt=pt;function vt(t){return!(!t||Y(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function bt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const ht=e.hasOwn||gt;function gt(t,n){return bt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(ht(t,e)&&-1===n[y](r||t,e,t[e]))break}function mt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function St(t){throw new RangeError(t)}function wt(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const It=e.freeze;function Tt(t){return t}var jt=e.assign;function Ot(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Et(t){return It&&m(t,(t,n)=>{(g(n)||h(n))&&It(n)}),xt(t)}const xt=It||Tt;var Ft=e.seal||Tt;const Pt=e.getPrototypeOf||function(t){return t[K]||p};var Ct=e.entries||wt;function zt(t){return mt(t,0,0,Et)}function Dt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Et(r)}const kt=zt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,At="__tsUtils$gblCfg";let Nt;function Lt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function _t(){var t;return Nt||(t=Lt()||{},Nt=t[At]=t[At]||{}),Nt}function I(t,n){let r=s;if(lt(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?ct(n)?n:4:f)}catch(t){r=" - "+I(t,n)}return rt(t)+": "+r}let T;function Rt(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Wt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));Rt(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);Rt(e,t)}}function Kt(n){return function(t){return t[n]}}Q=o.min;const Bt=o.max,Gt=j(J,r),Ht=j("substring",r);var Ut=O("substr",r,$t);function $t(t,n,r){return v(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?s:((n=n||0)<0&&(n=Bt(n+t[c],0)),a(r)?Gt(t,n):Gt(t,n,n+r))}const Mt=O("startsWith",r,Vt);function Vt(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],r=0<r?r:0;return Ht(t,r,r+e)===n}const qt="_urid";let Jt;function Zt(){var t;return Jt||(t=_t(),Jt=t.gblSym=t.gblSym||{k:{},s:{}}),Jt}let Qt={};function Xt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Yt(r){var e=Zt();if(!ht(e.k,r)){let t=Xt(r),n=Ot(e.s).length;t[qt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[qt]()]=w(r)}return e.k[r]}function tn(t){t&&t.toString&&Mt(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[qt]&&t[qt]();return t?Zt().s[t]:void 0}function nn(t){t=kt[t];return t?Qt[t]=Qt[t]||Xt(H+"."+t):void 0}const rn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function en(n){let r={};var t;return r[rn.c]=!0,r[rn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[rn[t]]=a(n)?r[rn[t]]:n}),r}const E=e.defineProperty,on=e.defineProperties;function un(t,n,r){return E(t,n,en(r))}let x,cn=function(){x=_t(),cn=p};function an(n){let r={};return cn&&cn(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return an(()=>Y(t,n))}const sn="window";let fn,ln,pn,yn,vn,dn,bn;function P(t){return F(()=>gn(t)||f,f)}function hn(t){return(fn=!fn||!1===t||x&&x.lzy&&!fn.b?F(Lt,p):fn).v}function gn(t,n){n=fn&&!1!==n?fn.v:hn(n);return n&&n[t]?n[t]:t===sn&&ln?ln.v:p}function mn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("document"):pn).v}function Sn(){return(ln=!ln||x&&x.lzy&&!ln.b?P(sn):ln).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("navigator"):yn).v}function In(){return(vn=!vn||x&&x.lzy&&!vn.b?P("history"):vn).v}let C,Tn,jn;function On(t){return F(function(){return C.v?C.v[t]:f},f)}var En=nt("symbol");function xn(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),Tn&&!t||(Tn=On("for")),jn&&!t||(jn=On("keyFor")),C.v}function Fn(t,n){var r=kt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?f:nn(t)}function Pn(t){return!!t&&b(t.next)}function Cn(t){return!et(t)&&b(t[Fn(3)])}let zn;function Dn(e,o,u){if(e&&(Pn(e)||(e=e[(zn=zn||an(()=>Fn(3))).v]?e[zn.v]():null),Pn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Wt("apply");var kn=j("every",i),An=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const Nn=j(U,i);var Ln=j($,i);const _n=j("map",i),A=j(J,i);function Rn(t,n,r){return-1!==Nn(t,n,r)}function Wn(t,n,r){n=Kn(t,n,r);return-1!==n?t[n]:void 0}function Kn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Bn(t,n,r){n=Gn(t,n,r);return-1!==n?t[n]:void 0}function Gn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Hn(t,r,e){var n;if(g(t))return n=A(t),r?_n(n,r,e):n;let o=[];return Dn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Un=O("find",i,Wn),$n=O("findIndex",i,Kn),Mn=O("findLast",i,Bn),Vn=O("findLastIndex",i,Gn),X=X.from||Hn,qn=O("includes",i,Rn),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Wt("bind");var Yn=Wt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||an(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}const ur=(t,n)=>{try{n&&(t[q]=n)}catch(t){}},ir=(t,n)=>{try{un(t,q,{v:n,c:!0,e:!1})}catch(t){}};function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return r=e,a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Pt(t))!==Pt(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},t=u,ir(a,r),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function sr(){return(Date.now||fr)()}function fr(){return(new Date).getTime()}function lr(n){return function(t){return v(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,s):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),vr=lr(/(?=\s)\s+$/g);const dr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,vr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return dr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||s;return a&&(i=N(i)),(o||s)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&St("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){v(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&St("invalid count must be >= 0 && < Infinity");let r=d(t)?t:w(t),e=s;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=s;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=v(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Ht(e,0,n):e}const Cr=O("padStart",r,zr);o=O("padEnd",r,Dr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!Sn()||Sn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Pt(n);(r=!t)||(bt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,s=(t&&i===W?c=Rr(t):a=t===p||ut(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(s.isPrim)return u&&u[y](o,s)?s.result:t;{var i=e,f=t;let r;if(k(i,t=>{if(t.k===f)return r=t,-1}),!r){r={k:f,v:f},i.push(r);{var l=r;un(s,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,s);)n=p}}return r.v}}function Gr(t,n,r,e){if(!v(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!it(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Kt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():sr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":s)+r(t.replace(n,"\\$1"))+(o?"$":s),e?"i":"")}function ee(t,n){return t[Fn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||un(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[Fn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,se);function se(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Ht(t,r-e,r)===n}const fe=j(U,r);U=j($,r),$=O("includes",r,le),r=$;function le(t,n,r){return st(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==fe(t,w(n),r)}const pe="ref",ye="un"+pe,ve="hasRef",de="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[ve]:()=>o&&o[ve]?o[ve]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[de]:!1},E(u,de,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?f:r)||setTimeout,c=(1<u?r[1]:f)||clearTimeout,a=e[0],s=(e[0]=function(){s.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return s.h}function ge(t,n){return he(this,!0,f,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}return t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Pn(t)||Cn(t)?Dn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=kn,t.arrFilter=An,t.arrFind=Un,t.arrFindIndex=$n,t.arrFindLast=Mn,t.arrFindLastIndex=Vn,t.arrForEach=k,t.arrFrom=X,t.arrIncludes=qn,t.arrIndexOf=Nn,t.arrLastIndexOf=Ln,t.arrMap=_n,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return un(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return mt(t,1,0,Et)},t.createEnumKeyMap=zt,t.createEnumValueMap=function(t){return mt(t,1,1,Et)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=f,u=(v(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return un(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=Dt,t.createTimeout=function(t,n){return he(this,!1,f,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=Dt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||an(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(d(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?ct(n)?n:4:f)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=mn,t.getGlobal=hn,t.getHistory=In,t.getInst=gn,t.getIntValue=function(t,n){return v(t)?n:ct(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=Fn,t.getLazy=an,t.getLength=Zr,t.getNavigator=wn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(Dn(t,t=>{if(v(n))return-1;n=n[t]}),!v(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!v(n);t++)n=n[e[t]];return v(n)?r:n},t.getWindow=Sn,t.hasDocument=function(){return!!mn()},t.hasHistory=function(){return!!In()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!wn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=xn,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!v(n))if(g(n))e=0<n[c];else if(it(n))e=!isNaN(n.getTime());else{if(at(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(at(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!Ot(n)[c]}e=vt(n)}return e}(t,0)},t.hasWindow=function(){return!!Sn()},t.isArray=g,t.isArrayBuffer=ft,t.isBlob=L,t.isBoolean=at,t.isDate=it,t.isDefined=ot,t.isError=lt,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Cn,t.isIterator=Pn,t.isNode=function(){return(bn=bn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!Y(()=>t&&0+t,t)},t.isNullOrUndefined=v,t.isNumber=ct,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ut(typeof t)},t.isPrimitiveType=ut,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=pt,t.isRegExp=st,t.isStrictNullOrUndefined=et,t.isStrictUndefined=function(t){return!ot(t)},t.isString=d,t.isSymbol=En,t.isThenable=yt,t.isTruthy=vt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=Dn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Bt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Xt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=jt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Et,t.objDefine=un,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,en(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,en({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=on,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=en(n)}),on(t,r)},t.objEntries=Ct,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=xt,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Pt,t.objHasOwn=ht,t.objHasOwnProperty=bt,t.objKeys=Ot,t.objSeal=Ft,t.objSetPrototypeOf=or,t.objToString=rt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Wn,t.polyArrFindIndex=Kn,t.polyArrFindLast=Bn,t.polyArrFindLastIndex=Gn,t.polyArrFrom=Hn,t.polyArrIncludes=Rn,t.polyGetKnownSymbol=nn,t.polyIsArray=function(t){return!v(t)&&"[object Array]"===rt(t)},t.polyNewSymbol=Xt,t.polyObjEntries=wt,t.polyObjHasOwn=gt,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)ht(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=$t,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=vr,t.polyStrTrimStart=yr,t.polySymbolFor=Yt,t.polySymbolKeyFor=tn,t.polyUtcNow=fr,t.readArgs=function(t,n,u){if(nr=nr||an(()=>xn()&&Fn(3)),!ht(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===f||n<0?0:n,o=u<0||n<0?f:u;if(Dn(i[y](t),(t,n)=>{if(o!==f&&n>=o)return-1;n>=e&&r.push(t)}),(n===f||0<=n)&&(u===f||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=Y,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){cn&&cn(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;Dn(t,t=>{n&&(v(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{v(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=fe,t.strIsNullOrEmpty=function(t){return d(t)?t===s:v(t)},t.strIsNullOrWhiteSpace=function(t){return d(t)?t.replace(/[\s\t\r\n\f]+/g,s)===s:v(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Ht(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?s:n<r?Ht(t,r-n):t},t.strSlice=Gt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=Mt,t.strSubstr=Ut,t.strSubstring=Ht,t.strSymSplit=ce,t.strTrim=dr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.symbolKeyFor=function(t){return jn&&(!x.lzy||C.b)||z(),(jn.v||tn)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=St,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=sr,t}({}); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
this.nevware21=this.nevware21||{},this.nevware21["ts-utils"]=function(t){"use strict";const s=void 0,p=null,f="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math,X=Array;const i=X[l];function Y(t,n){let r=n;try{r=t()}catch(t){}return r}const tt=[B,R,L,n,"symbol","bigint"];function nt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||rt(t)!==n)}}function rt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function v(t){return t===p||a(t)}function et(t){return t===p||!ot(t)}function ot(t){return!!t||t!==s}function ut(t){return t!==W&&!!~tt.indexOf(t)}const d=nt(B),b=nt(_);function h(t){return!(!t&&v(t)||!t||typeof t!==W)}const g=X.isArray,it=u("Date"),ct=nt(R),at=nt(L),ft=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),st=u("ArrayBuffer");const lt=u("Error");function pt(t){return!!(t&&t.then&&b(t.then))}var yt=pt;function vt(t){return!(!t||Y(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function bt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const ht=e.hasOwn||gt;function gt(t,n){return bt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(ht(t,e)&&-1===n[y](r||t,e,t[e]))break}function mt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function St(t){throw new RangeError(t)}function wt(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const It=e.freeze;function Tt(t){return t}var jt=e.assign;function Ot(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Et(t){return It&&m(t,(t,n)=>{(g(n)||h(n))&&It(n)}),xt(t)}const xt=It||Tt;var Ft=e.seal||Tt;const Pt=e.getPrototypeOf||function(t){return t[K]||p};var Ct=e.entries||wt;function zt(t){return mt(t,0,0,Et)}function Dt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Et(r)}const kt=zt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,At="__tsUtils$gblCfg";let Nt;function Lt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function _t(){var t;return Nt||(t=Lt()||{},Nt=t[At]=t[At]||{}),Nt}function I(t,n){let r=f;if(lt(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return rt(t)+": "+r}let T;function Rt(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Wt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));Rt(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);Rt(e,t)}}function Kt(n){return function(t){return t[n]}}Q=o.min;const Bt=o.max,Gt=j(J,r),Ht=j("substring",r);var Ut=O("substr",r,$t);function $t(t,n,r){return v(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Bt(n+t[c],0)),a(r)?Gt(t,n):Gt(t,n,n+r))}const Mt=O("startsWith",r,Vt);function Vt(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],r=0<r?r:0;return Ht(t,r,r+e)===n}const qt="_urid";let Jt;function Zt(){var t;return Jt||(t=_t(),Jt=t.gblSym=t.gblSym||{k:{},s:{}}),Jt}let Qt;function Xt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Yt(r){var e=Zt();if(!ht(e.k,r)){let t=Xt(r),n=Ot(e.s).length;t[qt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[qt]()]=w(r)}return e.k[r]}function tn(t){t&&t.toString&&Mt(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[qt]&&t[qt]();return t?Zt().s[t]:void 0}function nn(t){Qt=Qt||{};t=kt[t];return t?Qt[t]=Qt[t]||Xt(H+"."+t):void 0}const rn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function en(n){let r={};var t;return r[rn.c]=!0,r[rn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[rn[t]]=a(n)?r[rn[t]]:n}),r}const E=e.defineProperty,on=e.defineProperties;function un(t,n,r){return E(t,n,en(r))}let x,cn=function(){x=_t(),cn=p};function an(n){let r={};return cn&&cn(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return an(()=>Y(t,n))}const fn="window";let sn,ln,pn,yn,vn,dn,bn;function P(t){return F(()=>gn(t)||s,s)}function hn(t){return(sn=!sn||!1===t||x&&x.lzy&&!sn.b?F(Lt,p):sn).v}function gn(t,n){n=sn&&!1!==n?sn.v:hn(n);return n&&n[t]?n[t]:t===fn&&ln?ln.v:p}function mn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("document"):pn).v}function Sn(){return(ln=!ln||x&&x.lzy&&!ln.b?P(fn):ln).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("navigator"):yn).v}function In(){return(vn=!vn||x&&x.lzy&&!vn.b?P("history"):vn).v}let C,Tn,jn;function On(t){return F(function(){return C.v?C.v[t]:s},s)}var En=nt("symbol");function xn(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),Tn&&!t||(Tn=On("for")),jn&&!t||(jn=On("keyFor")),C.v}function Fn(t,n){var r=kt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?s:nn(t)}function Pn(t){return!!t&&b(t.next)}function Cn(t){return!et(t)&&b(t[Fn(3)])}let zn;function Dn(e,o,u){if(e&&(Pn(e)||(e=e[(zn=zn||an(()=>Fn(3))).v]?e[zn.v]():null),Pn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Wt("apply");var kn=j("every",i),An=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const Nn=j(U,i);var Ln=j($,i);const _n=j("map",i),A=j(J,i);function Rn(t,n,r){return-1!==Nn(t,n,r)}function Wn(t,n,r){n=Kn(t,n,r);return-1!==n?t[n]:void 0}function Kn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Bn(t,n,r){n=Gn(t,n,r);return-1!==n?t[n]:void 0}function Gn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Hn(t,r,e){var n;if(g(t))return n=A(t),r?_n(n,r,e):n;let o=[];return Dn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Un=O("find",i,Wn),$n=O("findIndex",i,Kn),Mn=O("findLast",i,Bn),Vn=O("findLastIndex",i,Gn),X=X.from||Hn,qn=O("includes",i,Rn),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Wt("bind");var Yn=Wt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||an(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}function ur(t,n){try{n&&(t[q]=n)}catch(t){}}function ir(t,n){try{un(t,q,{v:n,c:!0,e:!1})}catch(t){}}function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return t=u,ir(a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Pt(t))!==Pt(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},r=e),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function fr(){return(Date.now||sr)()}function sr(){return(new Date).getTime()}function lr(n){return function(t){return v(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),vr=lr(/(?=\s)\s+$/g);const dr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,vr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return dr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=N(i)),(o||f)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&St("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){v(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&St("invalid count must be >= 0 && < Infinity");let r=d(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=f;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=v(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Ht(e,0,n):e}const Cr=O("padStart",r,zr);o=O("padEnd",r,Dr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!Sn()||Sn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Pt(n);(r=!t)||(bt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===W?c=Rr(t):a=t===p||ut(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(k(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;un(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,f);)n=p}}return r.v}}function Gr(t,n,r,e){if(!v(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!it(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Kt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():fr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function ee(t,n){return t[Fn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||un(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[Fn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,fe);function fe(t,n,r){d(t)||S("'"+I(t)+"' is not a string");var n=d(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Ht(t,r-e,r)===n}const se=j(U,r);U=j($,r),$=O("includes",r,le),r=$;function le(t,n,r){return ft(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==se(t,w(n),r)}const pe="ref",ye="un"+pe,ve="hasRef",de="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[ve]:()=>o&&o[ve]?o[ve]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[de]:!1},E(u,de,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return f.h}function ge(t,n){return he(this,!0,s,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}return t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Pn(t)||Cn(t)?Dn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=kn,t.arrFilter=An,t.arrFind=Un,t.arrFindIndex=$n,t.arrFindLast=Mn,t.arrFindLastIndex=Vn,t.arrForEach=k,t.arrFrom=X,t.arrIncludes=qn,t.arrIndexOf=Nn,t.arrLastIndexOf=Ln,t.arrMap=_n,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return un(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return mt(t,1,0,Et)},t.createEnumKeyMap=zt,t.createEnumValueMap=function(t){return mt(t,1,1,Et)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=s,u=(v(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return un(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=Dt,t.createTimeout=function(t,n){return he(this,!1,s,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=Dt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||an(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(d(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=mn,t.getGlobal=hn,t.getHistory=In,t.getInst=gn,t.getIntValue=function(t,n){return v(t)?n:ct(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=Fn,t.getLazy=an,t.getLength=Zr,t.getNavigator=wn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(Dn(t,t=>{if(v(n))return-1;n=n[t]}),!v(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!v(n);t++)n=n[e[t]];return v(n)?r:n},t.getWindow=Sn,t.hasDocument=function(){return!!mn()},t.hasHistory=function(){return!!In()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!wn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=xn,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!v(n))if(g(n))e=0<n[c];else if(it(n))e=!isNaN(n.getTime());else{if(at(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(at(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!Ot(n)[c]}e=vt(n)}return e}(t,0)},t.hasWindow=function(){return!!Sn()},t.isArray=g,t.isArrayBuffer=st,t.isBlob=L,t.isBoolean=at,t.isDate=it,t.isDefined=ot,t.isError=lt,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Cn,t.isIterator=Pn,t.isNode=function(){return(bn=bn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!Y(()=>t&&0+t,t)},t.isNullOrUndefined=v,t.isNumber=ct,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ut(typeof t)},t.isPrimitiveType=ut,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=pt,t.isRegExp=ft,t.isStrictNullOrUndefined=et,t.isStrictUndefined=function(t){return!ot(t)},t.isString=d,t.isSymbol=En,t.isThenable=yt,t.isTruthy=vt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=Dn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Bt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Xt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=jt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Et,t.objDefine=un,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,en(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,en({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=on,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=en(n)}),on(t,r)},t.objEntries=Ct,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=xt,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Pt,t.objHasOwn=ht,t.objHasOwnProperty=bt,t.objKeys=Ot,t.objSeal=Ft,t.objSetPrototypeOf=or,t.objToString=rt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Wn,t.polyArrFindIndex=Kn,t.polyArrFindLast=Bn,t.polyArrFindLastIndex=Gn,t.polyArrFrom=Hn,t.polyArrIncludes=Rn,t.polyGetKnownSymbol=nn,t.polyIsArray=function(t){return!v(t)&&"[object Array]"===rt(t)},t.polyNewSymbol=Xt,t.polyObjEntries=wt,t.polyObjHasOwn=gt,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)ht(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=$t,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=vr,t.polyStrTrimStart=yr,t.polySymbolFor=Yt,t.polySymbolKeyFor=tn,t.polyUtcNow=sr,t.readArgs=function(t,n,u){if(nr=nr||an(()=>xn()&&Fn(3)),!ht(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(Dn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=Y,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){cn&&cn(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;Dn(t,t=>{n&&(v(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{v(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=se,t.strIsNullOrEmpty=function(t){return d(t)?t===f:v(t)},t.strIsNullOrWhiteSpace=function(t){return d(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:v(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Ht(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?f:n<r?Ht(t,r-n):t},t.strSlice=Gt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=Mt,t.strSubstr=Ut,t.strSubstring=Ht,t.strSymSplit=ce,t.strTrim=dr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.symbolKeyFor=function(t){return jn&&(!x.lzy||C.b)||z(),(jn.v||tn)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=St,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=fr,t}({}); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
function t(t){"use strict";const s=void 0,p=null,f="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math;const i=(Vn=Array)[l];function X(t,n){let r=n;try{r=t()}catch(t){}return r}const Y=[B,R,L,n,"symbol","bigint"];function tt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||nt(t)!==n)}}function nt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function d(t){return t===p||a(t)}function rt(t){return t===p||!et(t)}function et(t){return!!t||t!==s}function ot(t){return t!==W&&!!~Y.indexOf(t)}const v=tt(B),b=tt(_);function h(t){return!(!t&&d(t)||!t||typeof t!==W)}const g=Vn.isArray,ut=u("Date"),it=tt(R),ct=tt(L),at=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),ft=u("ArrayBuffer");const st=u("Error");function lt(t){return!!(t&&t.then&&b(t.then))}var pt=lt;function yt(t){return!(!t||X(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function vt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const bt=e.hasOwn||ht;function ht(t,n){return vt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(bt(t,e)&&-1===n[y](r||t,e,t[e]))break}function gt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function mt(t){throw new RangeError(t)}function St(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const wt=e.freeze;function It(t){return t}var Tt=e.assign;function jt(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Ot(t){return wt&&m(t,(t,n)=>{(g(n)||h(n))&&wt(n)}),Et(t)}const Et=wt||It;var xt=e.seal||It;const Ft=e.getPrototypeOf||function(t){return t[K]||p};var Pt=e.entries||St;function Ct(t){return gt(t,0,0,Ot)}function zt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Ot(r)}const Dt=Ct({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,kt="__tsUtils$gblCfg";let At;function Nt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function Lt(){var t;return At||(t=Nt()||{},At=t[kt]=t[kt]||{}),At}function I(t,n){let r=f;if(st(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return nt(t)+": "+r}let T;function _t(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Rt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));_t(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);_t(e,t)}}function Wt(n){return function(t){return t[n]}}Q=o.min;const Kt=o.max,Bt=j(J,r),Gt=j("substring",r);var Ht=O("substr",r,Ut);function Ut(t,n,r){return d(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Kt(n+t[c],0)),a(r)?Bt(t,n):Bt(t,n,n+r))}const $t=O("startsWith",r,Mt);function Mt(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],r=0<r?r:0;return Gt(t,r,r+e)===n}const Vt="_urid";let qt;function Jt(){var t;return qt||(t=Lt(),qt=t.gblSym=t.gblSym||{k:{},s:{}}),qt}let Zt={};function Qt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Xt(r){var e=Jt();if(!bt(e.k,r)){let t=Qt(r),n=jt(e.s).length;t[Vt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[Vt]()]=w(r)}return e.k[r]}function Yt(t){t&&t.toString&&$t(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[Vt]&&t[Vt]();return t?Jt().s[t]:void 0}function tn(t){t=Dt[t];return t?Zt[t]=Zt[t]||Qt(H+"."+t):void 0}const nn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function rn(n){let r={};var t;return r[nn.c]=!0,r[nn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[nn[t]]=a(n)?r[nn[t]]:n}),r}const E=e.defineProperty,en=e.defineProperties;function on(t,n,r){return E(t,n,rn(r))}let x,un=function(){x=Lt(),un=p};function cn(n){let r={};return un&&un(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return cn(()=>X(t,n))}const an="window";let fn,sn,ln,pn,yn,dn,vn;function P(t){return F(()=>hn(t)||s,s)}function bn(t){return(fn=!fn||!1===t||x&&x.lzy&&!fn.b?F(Nt,p):fn).v}function hn(t,n){n=fn&&!1!==n?fn.v:bn(n);return n&&n[t]?n[t]:t===an&&sn?sn.v:p}function gn(){return(ln=!ln||x&&x.lzy&&!ln.b?P("document"):ln).v}function mn(){return(sn=!sn||x&&x.lzy&&!sn.b?P(an):sn).v}function Sn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("navigator"):pn).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("history"):yn).v}let C,In,Tn;function jn(t){return F(function(){return C.v?C.v[t]:s},s)}var On=tt("symbol");function En(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),In&&!t||(In=jn("for")),Tn&&!t||(Tn=jn("keyFor")),C.v}function xn(t,n){var r=Dt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?s:tn(t)}function Fn(t){return!!t&&b(t.next)}function Pn(t){return!rt(t)&&b(t[xn(3)])}let Cn;function zn(e,o,u){if(e&&(Fn(e)||(e=e[(Cn=Cn||cn(()=>xn(3))).v]?e[Cn.v]():null),Fn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Rt("apply");var Dn=j("every",i),kn=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const An=j(U,i);var Nn=j($,i);const Ln=j("map",i),A=j(J,i);function _n(t,n,r){return-1!==An(t,n,r)}function Rn(t,n,r){n=Wn(t,n,r);return-1!==n?t[n]:void 0}function Wn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Kn(t,n,r){n=Bn(t,n,r);return-1!==n?t[n]:void 0}function Bn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Gn(t,r,e){var n;if(g(t))return n=A(t),r?Ln(n,r,e):n;let o=[];return zn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Hn=O("find",i,Rn),Un=O("findIndex",i,Wn),$n=O("findLast",i,Kn),Mn=O("findLastIndex",i,Bn),Vn=Vn.from||Gn,qn=O("includes",i,_n),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Rt("bind");var Yn=Rt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||cn(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}const ur=(t,n)=>{try{n&&(t[q]=n)}catch(t){}},ir=(t,n)=>{try{on(t,q,{v:n,c:!0,e:!1})}catch(t){}};function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return r=e,a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Ft(t))!==Ft(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},t=u,ir(a,r),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function fr(){return(Date.now||sr)()}function sr(){return(new Date).getTime()}function lr(n){return function(t){return d(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),dr=lr(/(?=\s)\s+$/g);const vr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,dr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return vr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=N(i)),(o||f)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&mt("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){d(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&mt("invalid count must be >= 0 && < Infinity");let r=v(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=f;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=d(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Gt(e,0,n):e}const Cr=O("padStart",r,zr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}o=O("padEnd",r,Dr);const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!mn()||mn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Ft(n);(r=!t)||(vt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===W?c=Rr(t):a=t===p||ot(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(k(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;on(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,f);)n=p}}return r.v}}function Gr(t,n,r,e){if(!d(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!ut(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Wt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():fr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function ee(t,n){return t[xn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||on(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[xn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,fe);function fe(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Gt(t,r-e,r)===n}const se=j(U,r);function le(t,n,r){return at(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==se(t,w(n),r)}U=j($,r),r=$=O("includes",r,le);const pe="ref",ye="un"+pe,de="hasRef",ve="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[de]:()=>o&&o[de]?o[de]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[ve]:!1},E(u,ve,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return f.h}function ge(t,n){return he(this,!0,s,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>et(requestIdleCallback),!1)).v||!requestIdleCallback)}t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Fn(t)||Pn(t)?zn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=Dn,t.arrFilter=kn,t.arrFind=Hn,t.arrFindIndex=Un,t.arrFindLast=$n,t.arrFindLastIndex=Mn,t.arrForEach=k,t.arrFrom=Vn,t.arrIncludes=qn,t.arrIndexOf=An,t.arrLastIndexOf=Nn,t.arrMap=Ln,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return on(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return gt(t,1,0,Ot)},t.createEnumKeyMap=Ct,t.createEnumValueMap=function(t){return gt(t,1,1,Ot)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=s,u=(d(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return on(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=zt,t.createTimeout=function(t,n){return he(this,!1,s,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=zt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||cn(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(v(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=gn,t.getGlobal=bn,t.getHistory=wn,t.getInst=hn,t.getIntValue=function(t,n){return d(t)?n:it(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=xn,t.getLazy=cn,t.getLength=Zr,t.getNavigator=Sn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(zn(t,t=>{if(d(n))return-1;n=n[t]}),!d(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!d(n);t++)n=n[e[t]];return d(n)?r:n},t.getWindow=mn,t.hasDocument=function(){return!!gn()},t.hasHistory=function(){return!!wn()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!Sn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=En,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!d(n))if(g(n))e=0<n[c];else if(ut(n))e=!isNaN(n.getTime());else{if(ct(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(ct(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!jt(n)[c]}e=yt(n)}return e}(t,0)},t.hasWindow=function(){return!!mn()},t.isArray=g,t.isArrayBuffer=ft,t.isBlob=L,t.isBoolean=ct,t.isDate=ut,t.isDefined=et,t.isError=st,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Pn,t.isIterator=Fn,t.isNode=function(){return(vn=vn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!X(()=>t&&0+t,t)},t.isNullOrUndefined=d,t.isNumber=it,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ot(typeof t)},t.isPrimitiveType=ot,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=lt,t.isRegExp=at,t.isStrictNullOrUndefined=rt,t.isStrictUndefined=function(t){return!et(t)},t.isString=v,t.isSymbol=On,t.isThenable=pt,t.isTruthy=yt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=zn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Kt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Qt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=Tt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Ot,t.objDefine=on,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,rn(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,rn({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=en,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=rn(n)}),en(t,r)},t.objEntries=Pt,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=Et,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Ft,t.objHasOwn=bt,t.objHasOwnProperty=vt,t.objKeys=jt,t.objSeal=xt,t.objSetPrototypeOf=or,t.objToString=nt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Rn,t.polyArrFindIndex=Wn,t.polyArrFindLast=Kn,t.polyArrFindLastIndex=Bn,t.polyArrFrom=Gn,t.polyArrIncludes=_n,t.polyGetKnownSymbol=tn,t.polyIsArray=function(t){return!d(t)&&"[object Array]"===nt(t)},t.polyNewSymbol=Qt,t.polyObjEntries=St,t.polyObjHasOwn=ht,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)bt(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=Ut,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=dr,t.polyStrTrimStart=yr,t.polySymbolFor=Xt,t.polySymbolKeyFor=Yt,t.polyUtcNow=sr,t.readArgs=function(t,n,u){if(nr=nr||cn(()=>En()&&xn(3)),!bt(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(zn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=X,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){un&&un(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;zn(t,t=>{n&&(d(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{d(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=se,t.strIsNullOrEmpty=function(t){return v(t)?t===f:d(t)},t.strIsNullOrWhiteSpace=function(t){return v(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:d(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Gt(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?f:n<r?Gt(t,r-n):t},t.strSlice=Bt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=$t,t.strSubstr=Ht,t.strSubstring=Gt,t.strSymSplit=ce,t.strTrim=vr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return In&&(!x.lzy||C.b)||z(),(In.v||Xt)(t)},t.symbolKeyFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=mt,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=fr}var n=this;"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).nevware21=n.nevware21||{},n.nevware21["ts-utils"]={})); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
function t(t){"use strict";const s=void 0,p=null,f="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math;const i=(Vn=Array)[l];function X(t,n){let r=n;try{r=t()}catch(t){}return r}const Y=[B,R,L,n,"symbol","bigint"];function tt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||nt(t)!==n)}}function nt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function d(t){return t===p||a(t)}function rt(t){return t===p||!et(t)}function et(t){return!!t||t!==s}function ot(t){return t!==W&&!!~Y.indexOf(t)}const v=tt(B),b=tt(_);function h(t){return!(!t&&d(t)||!t||typeof t!==W)}const g=Vn.isArray,ut=u("Date"),it=tt(R),ct=tt(L),at=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),ft=u("ArrayBuffer");const st=u("Error");function lt(t){return!!(t&&t.then&&b(t.then))}var pt=lt;function yt(t){return!(!t||X(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function vt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const bt=e.hasOwn||ht;function ht(t,n){return vt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(bt(t,e)&&-1===n[y](r||t,e,t[e]))break}function gt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function mt(t){throw new RangeError(t)}function St(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const wt=e.freeze;function It(t){return t}var Tt=e.assign;function jt(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Ot(t){return wt&&m(t,(t,n)=>{(g(n)||h(n))&&wt(n)}),Et(t)}const Et=wt||It;var xt=e.seal||It;const Ft=e.getPrototypeOf||function(t){return t[K]||p};var Pt=e.entries||St;function Ct(t){return gt(t,0,0,Ot)}function zt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Ot(r)}const Dt=Ct({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,kt="__tsUtils$gblCfg";let At;function Nt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function Lt(){var t;return At||(t=Nt()||{},At=t[kt]=t[kt]||{}),At}function I(t,n){let r=f;if(st(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return nt(t)+": "+r}let T;function _t(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Rt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));_t(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);_t(e,t)}}function Wt(n){return function(t){return t[n]}}Q=o.min;const Kt=o.max,Bt=j(J,r),Gt=j("substring",r);var Ht=O("substr",r,Ut);function Ut(t,n,r){return d(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Kt(n+t[c],0)),a(r)?Bt(t,n):Bt(t,n,n+r))}const $t=O("startsWith",r,Mt);function Mt(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],r=0<r?r:0;return Gt(t,r,r+e)===n}const Vt="_urid";let qt;function Jt(){var t;return qt||(t=Lt(),qt=t.gblSym=t.gblSym||{k:{},s:{}}),qt}let Zt;function Qt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Xt(r){var e=Jt();if(!bt(e.k,r)){let t=Qt(r),n=jt(e.s).length;t[Vt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[Vt]()]=w(r)}return e.k[r]}function Yt(t){t&&t.toString&&$t(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[Vt]&&t[Vt]();return t?Jt().s[t]:void 0}function tn(t){Zt=Zt||{};t=Dt[t];return t?Zt[t]=Zt[t]||Qt(H+"."+t):void 0}const nn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function rn(n){let r={};var t;return r[nn.c]=!0,r[nn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[nn[t]]=a(n)?r[nn[t]]:n}),r}const E=e.defineProperty,en=e.defineProperties;function on(t,n,r){return E(t,n,rn(r))}let x,un=function(){x=Lt(),un=p};function cn(n){let r={};return un&&un(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return cn(()=>X(t,n))}const an="window";let fn,sn,ln,pn,yn,dn,vn;function P(t){return F(()=>hn(t)||s,s)}function bn(t){return(fn=!fn||!1===t||x&&x.lzy&&!fn.b?F(Nt,p):fn).v}function hn(t,n){n=fn&&!1!==n?fn.v:bn(n);return n&&n[t]?n[t]:t===an&&sn?sn.v:p}function gn(){return(ln=!ln||x&&x.lzy&&!ln.b?P("document"):ln).v}function mn(){return(sn=!sn||x&&x.lzy&&!sn.b?P(an):sn).v}function Sn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("navigator"):pn).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("history"):yn).v}let C,In,Tn;function jn(t){return F(function(){return C.v?C.v[t]:s},s)}var On=tt("symbol");function En(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),In&&!t||(In=jn("for")),Tn&&!t||(Tn=jn("keyFor")),C.v}function xn(t,n){var r=Dt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?s:tn(t)}function Fn(t){return!!t&&b(t.next)}function Pn(t){return!rt(t)&&b(t[xn(3)])}let Cn;function zn(e,o,u){if(e&&(Fn(e)||(e=e[(Cn=Cn||cn(()=>xn(3))).v]?e[Cn.v]():null),Fn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Rt("apply");var Dn=j("every",i),kn=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const An=j(U,i);var Nn=j($,i);const Ln=j("map",i),A=j(J,i);function _n(t,n,r){return-1!==An(t,n,r)}function Rn(t,n,r){n=Wn(t,n,r);return-1!==n?t[n]:void 0}function Wn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Kn(t,n,r){n=Bn(t,n,r);return-1!==n?t[n]:void 0}function Bn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Gn(t,r,e){var n;if(g(t))return n=A(t),r?Ln(n,r,e):n;let o=[];return zn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Hn=O("find",i,Rn),Un=O("findIndex",i,Wn),$n=O("findLast",i,Kn),Mn=O("findLastIndex",i,Bn),Vn=Vn.from||Gn,qn=O("includes",i,_n),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Rt("bind");var Yn=Rt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||cn(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}function ur(t,n){try{n&&(t[q]=n)}catch(t){}}function ir(t,n){try{on(t,q,{v:n,c:!0,e:!1})}catch(t){}}function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return t=u,ir(a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Ft(t))!==Ft(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},r=e),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function fr(){return(Date.now||sr)()}function sr(){return(new Date).getTime()}function lr(n){return function(t){return d(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),dr=lr(/(?=\s)\s+$/g);const vr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,dr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return vr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=N(i)),(o||f)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&mt("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){d(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&mt("invalid count must be >= 0 && < Infinity");let r=v(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=f;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=d(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Gt(e,0,n):e}const Cr=O("padStart",r,zr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}o=O("padEnd",r,Dr);const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!mn()||mn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Ft(n);(r=!t)||(vt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===W?c=Rr(t):a=t===p||ot(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(k(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;on(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,f);)n=p}}return r.v}}function Gr(t,n,r,e){if(!d(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!ut(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Wt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():fr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function ee(t,n){return t[xn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||on(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[xn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,fe);function fe(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Gt(t,r-e,r)===n}const se=j(U,r);function le(t,n,r){return at(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==se(t,w(n),r)}U=j($,r),r=$=O("includes",r,le);const pe="ref",ye="un"+pe,de="hasRef",ve="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[de]:()=>o&&o[de]?o[de]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[ve]:!1},E(u,ve,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return f.h}function ge(t,n){return he(this,!0,s,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>et(requestIdleCallback),!1)).v||!requestIdleCallback)}t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Fn(t)||Pn(t)?zn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=Dn,t.arrFilter=kn,t.arrFind=Hn,t.arrFindIndex=Un,t.arrFindLast=$n,t.arrFindLastIndex=Mn,t.arrForEach=k,t.arrFrom=Vn,t.arrIncludes=qn,t.arrIndexOf=An,t.arrLastIndexOf=Nn,t.arrMap=Ln,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return on(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return gt(t,1,0,Ot)},t.createEnumKeyMap=Ct,t.createEnumValueMap=function(t){return gt(t,1,1,Ot)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=s,u=(d(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return on(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=zt,t.createTimeout=function(t,n){return he(this,!1,s,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=zt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||cn(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(v(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=gn,t.getGlobal=bn,t.getHistory=wn,t.getInst=hn,t.getIntValue=function(t,n){return d(t)?n:it(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=xn,t.getLazy=cn,t.getLength=Zr,t.getNavigator=Sn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(zn(t,t=>{if(d(n))return-1;n=n[t]}),!d(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!d(n);t++)n=n[e[t]];return d(n)?r:n},t.getWindow=mn,t.hasDocument=function(){return!!gn()},t.hasHistory=function(){return!!wn()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!Sn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=En,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!d(n))if(g(n))e=0<n[c];else if(ut(n))e=!isNaN(n.getTime());else{if(ct(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(ct(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!jt(n)[c]}e=yt(n)}return e}(t,0)},t.hasWindow=function(){return!!mn()},t.isArray=g,t.isArrayBuffer=ft,t.isBlob=L,t.isBoolean=ct,t.isDate=ut,t.isDefined=et,t.isError=st,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Pn,t.isIterator=Fn,t.isNode=function(){return(vn=vn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!X(()=>t&&0+t,t)},t.isNullOrUndefined=d,t.isNumber=it,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ot(typeof t)},t.isPrimitiveType=ot,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=lt,t.isRegExp=at,t.isStrictNullOrUndefined=rt,t.isStrictUndefined=function(t){return!et(t)},t.isString=v,t.isSymbol=On,t.isThenable=pt,t.isTruthy=yt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=zn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Kt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Qt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=Tt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Ot,t.objDefine=on,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,rn(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,rn({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=en,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=rn(n)}),en(t,r)},t.objEntries=Pt,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=Et,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Ft,t.objHasOwn=bt,t.objHasOwnProperty=vt,t.objKeys=jt,t.objSeal=xt,t.objSetPrototypeOf=or,t.objToString=nt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Rn,t.polyArrFindIndex=Wn,t.polyArrFindLast=Kn,t.polyArrFindLastIndex=Bn,t.polyArrFrom=Gn,t.polyArrIncludes=_n,t.polyGetKnownSymbol=tn,t.polyIsArray=function(t){return!d(t)&&"[object Array]"===nt(t)},t.polyNewSymbol=Qt,t.polyObjEntries=St,t.polyObjHasOwn=ht,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)bt(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=Ut,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=dr,t.polyStrTrimStart=yr,t.polySymbolFor=Xt,t.polySymbolKeyFor=Yt,t.polyUtcNow=sr,t.readArgs=function(t,n,u){if(nr=nr||cn(()=>En()&&xn(3)),!bt(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(zn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=X,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){un&&un(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;zn(t,t=>{n&&(d(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{d(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=se,t.strIsNullOrEmpty=function(t){return v(t)?t===f:d(t)},t.strIsNullOrWhiteSpace=function(t){return v(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:d(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Gt(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?f:n<r?Gt(t,r-n):t},t.strSlice=Bt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=$t,t.strSubstr=Ht,t.strSubstring=Gt,t.strSymSplit=ce,t.strTrim=vr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return In&&(!x.lzy||C.b)||z(),(In.v||Xt)(t)},t.symbolKeyFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=mt,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=fr}var n=this;"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).nevware21=n.nevware21||{},n.nevware21["ts-utils"]={})); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
System.register("nevware21.ts-utils",[],function(Zr){"use strict";return{execute:function(){Zr({arrAppend:function(n,t){return!a(t)&&n&&(g(t)?k(n.push,n,t):wn(t)||In(t)?jn(t,t=>{n.push(t)}):n.push(t)),n},arrForEach:A,arrayDeepCopyHandler:Sr,createArrayIterator:function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return x(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),kr(t)},createCustomError:Bn,createEnum:function(t){return ht(t,1,0,Tt)},createEnumKeyMap:Et,createEnumValueMap:function(t){return ht(t,1,1,Tt)},createFilenameRegex:function(t,n,r){return zr(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?Pr:Cr}),!!n,r)},createFnDeferredProxy:An,createIterable:function(t){return Dr({},t)},createIterator:kr,createProxyFuncs:function(e,o,t){if(e&&o&&g(t)){let r=v(o);A(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?An(o,t.n):kn(o[t.n],o))})}return e},createRangeIterator:function(t,n,r){let e=t,o=s,u=(d(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return x(r,"v",{g:function(){return o}}),kr(r)},createSimpleMap:xt,createTimeout:function(t,n){return Ur(this,!1,s,N(arguments))},createTimeoutWith:function(t,n,r){return Ur(this,!1,t,N(arguments,1))},createTypeMap:xt,createWildcardRegex:function(t,n,r){return zr(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,Pr),!!n,r)},dateDeepCopyHandler:wr,deepExtend:function(t,n,r,e,o,u,i){return jr(mr(t)||{},N(arguments))},dumpObj:I,elapsedTime:Fr,encodeAsHtml:function(t){return fr=fr||tn(()=>({"&":"amp","<":"lt",">":"gt",[cr]:"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+fr.v[t]+";")},encodeAsJson:function(t,n){let r;if(b(t))r=cr+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return t===cr||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+or(Vn(t),4,"0"))})+cr;else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r=cr+I(t)+cr}return r},functionDeepCopyHandler:Ir,getDocument:pn,getGlobal:sn,getHistory:bn,getInst:ln,getIntValue:function(t,n){return d(t)?n:ct(t)?t:isNaN(t=parseInt(t,10))?n:t},getKnownSymbol:Sn,getLazy:tn,getNavigator:dn,getPerformance:Er,getSymbol:D,getValueByIter:function(n,t,r){return t&&n&&(jn(t,t=>{if(d(n))return-1;n=n[t]}),!d(n))?n:r},getValueByKey:function(n,t,r){if(!t||!n)return r;var e=Nr(t,"."),o=e.length;for(let t=0;t<o&&!d(n);t++)n=n[e[t]];return d(n)?r:n},getWindow:yn,hasDocument:function(){return!!pn()},hasHistory:function(){return!!bn()},hasIdleCallback:Jr,hasNavigator:function(){return!!dn()},hasPerformance:function(){return!!Er()},hasSymbol:mn,hasValue:function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!d(n))if(g(n))e=0<n[c];else if(it(n))e=!isNaN(n.getTime());else{if(at(n))return!0;if(h(n)){try{var o=function(n,t){let r;return A(t,t=>{if(t in n)return t=n[t],r=0<(v(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(at(o))return o;if(v(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!It(n)[c]}e=pt(n)}return e}(t,0)},hasWindow:function(){return!!yn()},isDefined:ot,isIterable:In,isIterator:wn,isNode:function(){return(fn=fn||P(()=>!(!process||!(process.versions||{}).node),!1)).v},isNotTruthy:function(t){return!t||!Y(()=>t&&0+t,t)},isNullOrUndefined:d,isObject:h,isPlainObject:yr,isPrimitive:function(t){return t===p||ut(typeof t)},isPrimitiveType:ut,isPromise:function(t){return!!(t&&t.then&&t.catch&&v(t.then)&&v(t.catch))},isPromiseLike:lt,isStrictNullOrUndefined:et,isStrictUndefined:function(t){return!ot(t)},isTruthy:pt,isTypeof:function(t,n){return typeof t===n},isUndefined:a,isWebWorker:function(){return(an=an||P(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},iterForOf:jn,lazySafeGetInst:C,makeGlobRegex:function(t,n,r){return zr(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?Pr:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},makeIterable:Dr,mathToInt:tr,newSymbol:function(t,n){return z&&(!F.lzy||z.b)||D(),z.v?z.v(t):n?p:Mt(t)},normalizeJsName:function(t,n){t=w(t).replace(ar,"_");return a(n)?t:Zn(t,!n)},objCopyProps:gr,objDeepCopy:mr,objDeepFreeze:Tt,objDefine:x,objDefineAccessors:function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,Qt(u))},objDefineGet:function(t,n,r,e,o){return E(t,n,Qt({e:o,c:e,[v(r)?"g":"v"]:r}))},objDefineProps:function(t,n){let r={};return m(n,(t,n)=>{r[t]=Qt(n)}),Xt(t,r)},objExtend:function(t,n,r,e,o,u,i){return jr(t||{},N(arguments))},objForEachKey:m,objHasOwnProperty:dt,objKeys:It,objSetPrototypeOf:_n,objToString:rt,perfNow:xr,plainObjDeepCopyHandler:Tr,polyArrFind:Fn,polyArrFindIndex:Pn,polyArrFindLast:Cn,polyArrFindLastIndex:zn,polyArrFrom:Dn,polyArrIncludes:xn,polyGetKnownSymbol:Jt,polyIsArray:function(t){return!d(t)&&"[object Array]"===rt(t)},polyNewSymbol:Mt,polyObjEntries:mt,polyObjHasOwn:vt,polyObjKeys:function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)bt(t,r)&&n.push(r);return n},polyStrIncludes:_r,polyStrSubstr:Wt,polyStrSymSplit:Ar,polySymbolFor:Vt,polySymbolKeyFor:qt,polyUtcNow:Un,readArgs:function(t,n,u){if(Nn=Nn||tn(()=>mn()&&Sn(3)),!bt(t,c)){var i=Nn.v&&t[Nn.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(jn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return N(t,n,u)},safeGet:Y,safeGetLazy:P,scheduleIdleCallback:function(r,e){function o(t){let n=xr();return{didTimeout:t,timeRemaining:()=>qr-Fr(n)}}if(Jr()){let n=Hr(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return $r(()=>{r(o(!0))},a(t)?Vr:t)},scheduleInterval:function(t,n){let r=this,e=N(arguments),o=Hr(!0,t=>(t&&clearInterval(t),k(setInterval,r,e)),t=>{k(clearInterval,r,[t])});return o.h},scheduleTimeout:$r,scheduleTimeoutWith:function(t,n,r){return Ur(this,!0,t,N(arguments,1))},setBypassLazyCache:function(t){Yt&&Yt(),F.lzy=t},setDefaultIdleTimeout:function(t){Vr=t},setDefaultMaxExecutionTime:function(t){qr=t},setValueByIter:function(r,t,e){if(r&&t){let n;jn(t,t=>{n&&(d(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},setValueByKey:function(n,t,r){var e;n&&t&&(e=(t=Nr(t,".")).pop(),A(t,t=>{d(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},strCamelCase:Zn,strIsNullOrEmpty:function(t){return b(t)?t===f:d(t)},strIsNullOrWhiteSpace:function(t){return b(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:d(t)},strKebabCase:function(t,n){t=Jn(t,"-");return(n?Vn:qn)(t)},strLeft:function(t,n){return _t(t,0,n)},strLetterCase:function(t){return w(t).replace(/(_|\b)\w/g,Vn)},strRight:function(t,n){var r=t[c];return n<=0?f:n<r?_t(t,r-n):t},strSnakeCase:function(t,n){t=Jn(t,"_");return(n?Vn:qn)(t)},symbolFor:function(t){return vn&&(!F.lzy||z.b)||D(),(vn.v||Vt)(t)},symbolKeyFor:function(t){return hn&&(!F.lzy||z.b)||D(),(hn.v||qt)(t)},throwError:function(t){throw Error(t)},throwRangeError:gt,throwTypeError:S,throwUnsupported:function(t){throw new(Gn=Gn||Bn("UnsupportedError"))(t)},utcNow:Hn});const s=void 0,p=null,f="";var L="boolean";const R="function";var t="number";const _="object",l="prototype",W="__proto__";var n="string";const r="undefined",K="constructor",B="Symbol",G="_polyfill";var H="indexOf",U="lastIndexOf";const c="length",$="done",M="value",V="name",q="slice",y="call",e=Object,J=e[l];var Z=String,o=Z[l],Q=Math,X=Array;const i=X[l];function Y(t,n){let r=n;try{r=t()}catch(t){}return r}const tt=[n,t,L,r,"symbol","bigint"];function nt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||rt(t)!==n)}}function rt(t){return J.toString[y](t)}function a(t){return typeof t===r||t===r}function d(t){return t===p||a(t)}function et(t){return t===p||!ot(t)}function ot(t){return!!t||t!==s}function ut(t){return t!==_&&!!~tt.indexOf(t)}const b=Zr("isString",nt(n)),v=Zr("isFunction",nt(R));function h(t){return!(!t&&d(t)||!t||typeof t!==_)}const g=Zr("isArray",X.isArray),it=Zr("isDate",u("Date")),ct=Zr("isNumber",nt(t)),at=Zr("isBoolean",nt(L)),ft=Zr("isRegExp",u("RegExp")),st=(Zr("isFile",u("File")),Zr("isFormData",u("FormData")),Zr("isBlob",u("Blob")),Zr("isArrayBuffer",u("ArrayBuffer")),Zr("isError",u("Error")));function lt(t){return!!(t&&t.then&&v(t.then))}function pt(t){return!(!t||Y(()=>!(t&&0+t),!t))}Zr("isThenable",lt);const yt=Zr("objGetOwnPropertyDescriptor",e.getOwnPropertyDescriptor);function dt(t,n){return t&&J.hasOwnProperty[y](t,n)}const bt=Zr("objHasOwn",e.hasOwn||vt);function vt(t,n){return dt(t,n)||!!yt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(bt(t,e)&&-1===n[y](r||t,e,t[e]))break}function ht(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function gt(t){throw new RangeError(t)}function mt(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const St=e.freeze;function wt(t){return t}function It(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Tt(t){return St&&m(t,(t,n)=>{(g(n)||h(n))&&St(n)}),jt(t)}Zr("objAssign",e.assign);const jt=Zr("objFreeze",St||wt),Ot=(Zr("objSeal",e.seal||wt),Zr("objGetPrototypeOf",e.getPrototypeOf||function(t){return t[W]||p}));function Et(t){return ht(t,0,0,Tt)}function xt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Tt(r)}Zr("objEntries",e.entries||mt);const Ft=Et({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Zr("asString",Z),Pt="__tsUtils$gblCfg";let Ct;function zt(){var t;return(t=(t=(t=typeof globalThis!==r?globalThis:void 0)||typeof self===r?t:self)||typeof window===r?t:window)||typeof global===r?t:global}function Dt(){var t;return Ct||(t=zt()||{},Ct=t[Pt]=t[Pt]||{}),Ct}function I(t,n){let r=f;if(st(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return rt(t)+": "+r}let T;function kt(t,n){S("'"+w(t)+"' not defined for "+I(n))}function At(n){return T=T||i[q],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[q];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));kt(r,t)}}function O(e,t,o){T=T||i[q];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);kt(e,t)}}function Nt(n){return function(t){return t[n]}}Zr("mathMin",Q.min);const Lt=Zr("mathMax",Q.max),Rt=Zr("strSlice",j(q,o)),_t=Zr("strSubstring",j("substring",o));function Wt(t,n,r){return d(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Lt(n+t[c],0)),a(r)?Rt(t,n):Rt(t,n,n+r))}Zr("strSubstr",O("substr",o,Wt));const Kt=Zr("strStartsWith",O("startsWith",o,Bt));function Bt(t,n,r){b(t)||S("'"+I(t)+"' is not a string");var n=b(n)?n:w(n),e=n[c],r=0<r?r:0;return _t(t,r,r+e)===n}const Gt="_urid";let Ht;function Ut(){var t;return Ht||(t=Dt(),Ht=t.gblSym=t.gblSym||{k:{},s:{}}),Ht}let $t={};function Mt(t){var n={description:w(t),toString:()=>B+"("+t+")"};return n[G]=!0,n}function Vt(r){var e=Ut();if(!bt(e.k,r)){let t=Mt(r),n=It(e.s).length;t[Gt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[Gt]()]=w(r)}return e.k[r]}function qt(t){t&&t.toString&&Kt(t.toString(),B)||S(t+" is not a symbol");t=t[G]&&t[Gt]&&t[Gt]();return t?Ut().s[t]:void 0}function Jt(t){t=Ft[t];return t?$t[t]=$t[t]||Mt(B+"."+t):void 0}const Zt={e:"enumerable",c:"configurable",v:M,w:"writable",g:"get",s:"set"};function Qt(n){let r={};var t;return r[Zt.c]=!0,r[Zt.e]=!0,n.l&&(r.get=()=>n.l.v,t=yt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[Zt[t]]=a(n)?r[Zt[t]]:n}),r}const E=Zr("objDefineProp",e.defineProperty),Xt=Zr("objDefineProperties",e.defineProperties);function x(t,n,r){return E(t,n,Qt(r))}let F,Yt=function(){F=Dt(),Yt=p};function tn(n){let r={};return Yt&&Yt(),r.b=F.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return F.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),F.lzy&&r.b!==F.lzy&&(r.b=F.lzy),t}}),r}function P(t,n){return tn(()=>Y(t,n))}const nn="window";let rn,en,on,un,cn,an,fn;function C(t){return P(()=>ln(t)||s,s)}function sn(t){return(rn=!rn||!1===t||F&&F.lzy&&!rn.b?P(zt,p):rn).v}function ln(t,n){n=rn&&!1!==n?rn.v:sn(n);return n&&n[t]?n[t]:t===nn&&en?en.v:p}function pn(){return(on=!on||F&&F.lzy&&!on.b?C("document"):on).v}function yn(){return(en=!en||F&&F.lzy&&!en.b?C(nn):en).v}function dn(){return(un=!un||F&&F.lzy&&!un.b?C("navigator"):un).v}function bn(){return(cn=!cn||F&&F.lzy&&!cn.b?C("history"):cn).v}let z,vn,hn;function gn(t){return P(function(){return z.v?z.v[t]:s},s)}function mn(){return!!D()}function D(){var t=!z||F&&F.lzy&&!z.b;return t&&(z=C(B)),vn&&!t||(vn=gn("for")),hn&&!t||(hn=gn("keyFor")),z.v}function Sn(t,n){var r=Ft[t];return z&&(!F.lzy||z.b)||D(),z.v?z.v[r||t]:n?s:Jt(t)}function wn(t){return!!t&&v(t.next)}function In(t){return!et(t)&&v(t[Sn(3)])}Zr("isSymbol",nt("symbol"));let Tn;function jn(e,o,u){if(e&&(wn(e)||(e=e[(Tn=Tn||tn(()=>Sn(3))).v]?e[Tn.v]():null),wn(e))){let n,r;try{let t=0;for(;!(r=e.next())[$]&&-1!==o[y](u||e,r[M],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[$]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const k=Zr("fnApply",At("apply"));function A(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}Zr("arrEvery",j("every",i)),Zr("arrFilter",j("filter",i));const On=Zr("arrIndexOf",j(H,i)),En=(Zr("arrLastIndexOf",j(U,i)),Zr("arrMap",j("map",i))),N=Zr("arrSlice",j(q,i));function xn(t,n,r){return-1!==On(t,n,r)}function Fn(t,n,r){n=Pn(t,n,r);return-1!==n?t[n]:void 0}function Pn(r,e,o){let u=-1;return A(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Cn(t,n,r){n=zn(t,n,r);return-1!==n?t[n]:void 0}function zn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Dn(t,r,e){var n;if(g(t))return n=N(t),r?En(n,r,e):n;let o=[];return jn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}Zr("arrFind",O("find",i,Fn)),Zr("arrFindIndex",O("findIndex",i,Pn)),Zr("arrFindLast",O("findLast",i,Cn)),Zr("arrFindLastIndex",O("findLastIndex",i,zn)),Zr("arrFrom",X.from||Dn);n=Zr("arrIncludes",O("includes",i,xn));Zr("arrContains",n),Zr("arrReduce",j("reduce",i)),Zr("arrSome",j("some",i));const kn=Zr("fnBind",At("bind"));function An(r,e){return function(){var t=N(arguments),n=r();return k(n[e],n,t)}}Zr("fnCall",At(y));let Nn;const Ln=Zr("objCreate",e.create||function(t){if(!t)return{};var n=typeof t;if(n!==_&&n!==R)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r});let Rn;function _n(t,n){return(e.setPrototypeOf||function(r,t){(Rn=Rn||tn(()=>({[W]:[]})instanceof Array)).v?r[W]=t:m(t,(t,n)=>r[t]=n)})(t,n)}const Wn=(t,n)=>{try{n&&(t[V]=n)}catch(t){}},Kn=(t,n)=>{try{x(t,V,{v:n,c:!0,e:!1})}catch(t){}};function Bn(e,o,t){let u=t||Error,i=u[l][V],c=Error.captureStackTrace;return r=e,a=function(){var t=this;try{Wn(u,e);var n,r=k(u,t,N(arguments))||t;return r!==t&&(n=Ot(t))!==Ot(r)&&_n(r,n),c&&c(r,t[K]),o&&o(r,arguments),r}finally{Wn(u,i)}},t=u,Kn(a,r),(a=_n(a,t))[l]=t===p?Ln(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,Kn(this,r)}var r,a}let Gn;function Hn(){return(Date.now||Un)()}function Un(){return(new Date).getTime()}function $n(n){return function(t){return d(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}t=Zr("polyStrTrim",$n(/^\s+|(?=\s)\s+$/g)),L=Zr("polyStrTrimStart",$n(/^\s+/g)),Z=Zr("polyStrTrimEnd",$n(/(?=\s)\s+$/g));const Mn=Zr("strTrim",O("trim",o,t));X=Zr("strTrimStart",O("trimStart",o,L)),Zr("strTrimLeft",X),n=Zr("strTrimEnd",O("trimEnd",o,Z));Zr("strTrimRight",n);const Vn=Zr("strUpper",j("toUpperCase",o)),qn=Zr("strLower",j("toLowerCase",o));function Jn(t,c,a){return Mn(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=Vn(i)),(o||f)+c+i})}function Zn(t,n){return Jn(t,"",!0).replace(/^\w/,n?Vn:qn)}const Qn=Zr("mathFloor",Q.floor),Xn=Zr("mathCeil",Q.ceil),Yn=Zr("mathTrunc",Q.trunc||function(t){t=+t;return(0<t?Qn:Xn)(t)});function tr(t,n){var r=+t;return r==1/0&&n&>("invalid value ["+I(t)+"]"),r!=r||0==r?0:Yn(r)}const nr=Zr("strRepeat",O("repeat",o,rr));function rr(t,n){d(t)&&S("can't convert ["+I(t)+"]"),(n=tr(n,!0))<0&>("invalid count must be >= 0 && < Infinity");let r=b(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function er(t,n,r){let e=f;n=tr(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=d(r)?" ":w(r))[c]?nr(e,Xn(n/e[c])):e)[c]>n)?_t(e,0,n):e}const or=Zr("strPadStart",O("padStart",o,ur));function ur(t,n,r){return er(t,n,r)+t}function ir(t,n,r){return t+er(t,n,r)}Zr("strPadEnd",O("padEnd",o,ir));const cr='"',ar=/([^\w\d_$])/g;let fr,sr,lr,pr;function yr(n){if(!n||typeof n!==_)return!1;let r=!1;if(n!==(pr=pr||!yn()||yn())){lr||(sr=Function[l].toString,lr=sr[y](e));try{let t=Ot(n);(r=!t)||(dt(t,K)&&(t=t[K]),r=t&&typeof t===R&&sr[y](t)===lr)}catch(t){}}return r}const dr=t=>(t.value&&Tr(t),!0),br=[Sr,Tr,Ir,wr];function vr(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===_?c=yr(t):a=t===p||ut(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>vr(e,t,n?r:o,n),copyTo:(t,n)=>hr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(A(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;x(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<br.length?br[t++]:dr))[y](o,f);)n=p}}return r.v}}function hr(t,n,r,e){if(!d(r))for(const o in r)n[o]=vr(t,r[o],e,o);return n}function gr(t,n,r){return hr([],t,n,{handler:r,src:n,path:[]})}function mr(t,n){return vr([],t,{handler:n,src:t})}function Sr(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function wr(t){var n=t.value;return!!it(n)&&(t.result=new Date(n.getTime()),!0)}function Ir(t){return t.type===R}function Tr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function jr(n,t){return A(t,t=>{gr(n,t)}),n}Zr("getLength",Nt(c));let Or;function Er(){return(Or=!Or||!Or.b&&F&&F.lzy?C("performance"):Or).v}function xr(){var t=Er();return t&&t.now?t.now():Hn()}function Fr(t){return xr()-t}const Pr="(.*)",Cr="(.)";function zr(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function Dr(t,n){return t[Sn(3)]=function(){return kr(n)},t}function kr(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[$]:r};return r||x(t,M,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[$]:!0,[M]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[$]:!0,[M]:n.t&&n.t(t)}}),t}function Ar(t,n,r){n=n&&n[Sn(9)];return n?n(t,r):[t]}const Nr=Zr("strSplit",j("split",o));function Lr(t,n,r){b(t)||S("'"+I(t)+"' is not a string");var n=b(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return _t(t,r-e,r)===n}Zr("strSymSplit",O("split",o,D()?null:Ar)),Zr("strEndsWith",O("endsWith",o,Lr));const Rr=Zr("strIndexOf",j(H,o));Zr("strLastIndexOf",j(U,o));t=Zr("strIncludes",O("includes",o,_r));function _r(t,n,r){return ft(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==Rr(t,w(n),r)}Zr("strContains",t);const Wr="ref",Kr="un"+Wr,Br="hasRef",Gr="enabled";function Hr(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[Kr]&&o[Kr](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[Br]:()=>o&&o[Br]?o[Br]():e,[Wr]:()=>(e=!0,o&&o[Wr]&&o[Wr](),u),[Kr]:i,[Gr]:!1},E(u,Gr,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function Ur(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),k(a,n,N(arguments))},Hr(t,t=>{if(t){if(t.refresh)return t.refresh(),t;k(c,n,[t])}return k(i,n,e)},function(t){k(c,n,[t])}));return f.h}function $r(t,n){return Ur(this,!0,s,N(arguments))}let Mr,Vr=100,qr=50;function Jr(){return!(!(Mr=Mr||P(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}}}}); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
System.register("nevware21.ts-utils",[],function(Zr){"use strict";return{execute:function(){Zr({arrAppend:function(n,t){return!a(t)&&n&&(g(t)?k(n.push,n,t):wn(t)||In(t)?jn(t,t=>{n.push(t)}):n.push(t)),n},arrForEach:A,arrayDeepCopyHandler:Sr,createArrayIterator:function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return x(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),kr(t)},createCustomError:Bn,createEnum:function(t){return ht(t,1,0,Tt)},createEnumKeyMap:Et,createEnumValueMap:function(t){return ht(t,1,1,Tt)},createFilenameRegex:function(t,n,r){return zr(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?Pr:Cr}),!!n,r)},createFnDeferredProxy:An,createIterable:function(t){return Dr({},t)},createIterator:kr,createProxyFuncs:function(e,o,t){if(e&&o&&g(t)){let r=v(o);A(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?An(o,t.n):kn(o[t.n],o))})}return e},createRangeIterator:function(t,n,r){let e=t,o=s,u=(d(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return x(r,"v",{g:function(){return o}}),kr(r)},createSimpleMap:xt,createTimeout:function(t,n){return Ur(this,!1,s,N(arguments))},createTimeoutWith:function(t,n,r){return Ur(this,!1,t,N(arguments,1))},createTypeMap:xt,createWildcardRegex:function(t,n,r){return zr(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,Pr),!!n,r)},dateDeepCopyHandler:wr,deepExtend:function(t,n,r,e,o,u,i){return jr(mr(t)||{},N(arguments))},dumpObj:I,elapsedTime:Fr,encodeAsHtml:function(t){return fr=fr||tn(()=>({"&":"amp","<":"lt",">":"gt",[cr]:"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+fr.v[t]+";")},encodeAsJson:function(t,n){let r;if(b(t))r=cr+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return t===cr||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+or(Vn(t),4,"0"))})+cr;else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r=cr+I(t)+cr}return r},functionDeepCopyHandler:Ir,getDocument:pn,getGlobal:sn,getHistory:bn,getInst:ln,getIntValue:function(t,n){return d(t)?n:ct(t)?t:isNaN(t=parseInt(t,10))?n:t},getKnownSymbol:Sn,getLazy:tn,getNavigator:dn,getPerformance:Er,getSymbol:D,getValueByIter:function(n,t,r){return t&&n&&(jn(t,t=>{if(d(n))return-1;n=n[t]}),!d(n))?n:r},getValueByKey:function(n,t,r){if(!t||!n)return r;var e=Nr(t,"."),o=e.length;for(let t=0;t<o&&!d(n);t++)n=n[e[t]];return d(n)?r:n},getWindow:yn,hasDocument:function(){return!!pn()},hasHistory:function(){return!!bn()},hasIdleCallback:Jr,hasNavigator:function(){return!!dn()},hasPerformance:function(){return!!Er()},hasSymbol:mn,hasValue:function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!d(n))if(g(n))e=0<n[c];else if(it(n))e=!isNaN(n.getTime());else{if(at(n))return!0;if(h(n)){try{var o=function(n,t){let r;return A(t,t=>{if(t in n)return t=n[t],r=0<(v(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(at(o))return o;if(v(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!It(n)[c]}e=pt(n)}return e}(t,0)},hasWindow:function(){return!!yn()},isDefined:ot,isIterable:In,isIterator:wn,isNode:function(){return(fn=fn||P(()=>!(!process||!(process.versions||{}).node),!1)).v},isNotTruthy:function(t){return!t||!Y(()=>t&&0+t,t)},isNullOrUndefined:d,isObject:h,isPlainObject:yr,isPrimitive:function(t){return t===p||ut(typeof t)},isPrimitiveType:ut,isPromise:function(t){return!!(t&&t.then&&t.catch&&v(t.then)&&v(t.catch))},isPromiseLike:lt,isStrictNullOrUndefined:et,isStrictUndefined:function(t){return!ot(t)},isTruthy:pt,isTypeof:function(t,n){return typeof t===n},isUndefined:a,isWebWorker:function(){return(an=an||P(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},iterForOf:jn,lazySafeGetInst:C,makeGlobRegex:function(t,n,r){return zr(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?Pr:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},makeIterable:Dr,mathToInt:tr,newSymbol:function(t,n){return z&&(!F.lzy||z.b)||D(),z.v?z.v(t):n?p:Mt(t)},normalizeJsName:function(t,n){t=w(t).replace(ar,"_");return a(n)?t:Zn(t,!n)},objCopyProps:gr,objDeepCopy:mr,objDeepFreeze:Tt,objDefine:x,objDefineAccessors:function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,Qt(u))},objDefineGet:function(t,n,r,e,o){return E(t,n,Qt({e:o,c:e,[v(r)?"g":"v"]:r}))},objDefineProps:function(t,n){let r={};return m(n,(t,n)=>{r[t]=Qt(n)}),Xt(t,r)},objExtend:function(t,n,r,e,o,u,i){return jr(t||{},N(arguments))},objForEachKey:m,objHasOwnProperty:dt,objKeys:It,objSetPrototypeOf:_n,objToString:rt,perfNow:xr,plainObjDeepCopyHandler:Tr,polyArrFind:Fn,polyArrFindIndex:Pn,polyArrFindLast:Cn,polyArrFindLastIndex:zn,polyArrFrom:Dn,polyArrIncludes:xn,polyGetKnownSymbol:Jt,polyIsArray:function(t){return!d(t)&&"[object Array]"===rt(t)},polyNewSymbol:Mt,polyObjEntries:mt,polyObjHasOwn:vt,polyObjKeys:function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)bt(t,r)&&n.push(r);return n},polyStrIncludes:_r,polyStrSubstr:Wt,polyStrSymSplit:Ar,polySymbolFor:Vt,polySymbolKeyFor:qt,polyUtcNow:Un,readArgs:function(t,n,u){if(Nn=Nn||tn(()=>mn()&&Sn(3)),!bt(t,c)){var i=Nn.v&&t[Nn.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(jn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return N(t,n,u)},safeGet:Y,safeGetLazy:P,scheduleIdleCallback:function(r,e){function o(t){let n=xr();return{didTimeout:t,timeRemaining:()=>qr-Fr(n)}}if(Jr()){let n=Hr(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return $r(()=>{r(o(!0))},a(t)?Vr:t)},scheduleInterval:function(t,n){let r=this,e=N(arguments),o=Hr(!0,t=>(t&&clearInterval(t),k(setInterval,r,e)),t=>{k(clearInterval,r,[t])});return o.h},scheduleTimeout:$r,scheduleTimeoutWith:function(t,n,r){return Ur(this,!0,t,N(arguments,1))},setBypassLazyCache:function(t){Yt&&Yt(),F.lzy=t},setDefaultIdleTimeout:function(t){Vr=t},setDefaultMaxExecutionTime:function(t){qr=t},setValueByIter:function(r,t,e){if(r&&t){let n;jn(t,t=>{n&&(d(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},setValueByKey:function(n,t,r){var e;n&&t&&(e=(t=Nr(t,".")).pop(),A(t,t=>{d(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},strCamelCase:Zn,strIsNullOrEmpty:function(t){return b(t)?t===f:d(t)},strIsNullOrWhiteSpace:function(t){return b(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:d(t)},strKebabCase:function(t,n){t=Jn(t,"-");return(n?Vn:qn)(t)},strLeft:function(t,n){return _t(t,0,n)},strLetterCase:function(t){return w(t).replace(/(_|\b)\w/g,Vn)},strRight:function(t,n){var r=t[c];return n<=0?f:n<r?_t(t,r-n):t},strSnakeCase:function(t,n){t=Jn(t,"_");return(n?Vn:qn)(t)},symbolFor:function(t){return vn&&(!F.lzy||z.b)||D(),(vn.v||Vt)(t)},symbolKeyFor:function(t){return hn&&(!F.lzy||z.b)||D(),(hn.v||qt)(t)},throwError:function(t){throw Error(t)},throwRangeError:gt,throwTypeError:S,throwUnsupported:function(t){throw new(Gn=Gn||Bn("UnsupportedError"))(t)},utcNow:Hn});const s=void 0,p=null,f="";var L="boolean";const R="function";var t="number";const _="object",l="prototype",W="__proto__";var n="string";const r="undefined",K="constructor",B="Symbol",G="_polyfill";var H="indexOf",U="lastIndexOf";const c="length",$="done",M="value",V="name",q="slice",y="call",e=Object,J=e[l];var Z=String,o=Z[l],Q=Math,X=Array;const i=X[l];function Y(t,n){let r=n;try{r=t()}catch(t){}return r}const tt=[n,t,L,r,"symbol","bigint"];function nt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||rt(t)!==n)}}function rt(t){return J.toString[y](t)}function a(t){return typeof t===r||t===r}function d(t){return t===p||a(t)}function et(t){return t===p||!ot(t)}function ot(t){return!!t||t!==s}function ut(t){return t!==_&&!!~tt.indexOf(t)}const b=Zr("isString",nt(n)),v=Zr("isFunction",nt(R));function h(t){return!(!t&&d(t)||!t||typeof t!==_)}const g=Zr("isArray",X.isArray),it=Zr("isDate",u("Date")),ct=Zr("isNumber",nt(t)),at=Zr("isBoolean",nt(L)),ft=Zr("isRegExp",u("RegExp")),st=(Zr("isFile",u("File")),Zr("isFormData",u("FormData")),Zr("isBlob",u("Blob")),Zr("isArrayBuffer",u("ArrayBuffer")),Zr("isError",u("Error")));function lt(t){return!!(t&&t.then&&v(t.then))}function pt(t){return!(!t||Y(()=>!(t&&0+t),!t))}Zr("isThenable",lt);const yt=Zr("objGetOwnPropertyDescriptor",e.getOwnPropertyDescriptor);function dt(t,n){return t&&J.hasOwnProperty[y](t,n)}const bt=Zr("objHasOwn",e.hasOwn||vt);function vt(t,n){return dt(t,n)||!!yt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(bt(t,e)&&-1===n[y](r||t,e,t[e]))break}function ht(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function gt(t){throw new RangeError(t)}function mt(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const St=e.freeze;function wt(t){return t}function It(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Tt(t){return St&&m(t,(t,n)=>{(g(n)||h(n))&&St(n)}),jt(t)}Zr("objAssign",e.assign);const jt=Zr("objFreeze",St||wt),Ot=(Zr("objSeal",e.seal||wt),Zr("objGetPrototypeOf",e.getPrototypeOf||function(t){return t[W]||p}));function Et(t){return ht(t,0,0,Tt)}function xt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Tt(r)}Zr("objEntries",e.entries||mt);const Ft=Et({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Zr("asString",Z),Pt="__tsUtils$gblCfg";let Ct;function zt(){var t;return(t=(t=(t=typeof globalThis!==r?globalThis:void 0)||typeof self===r?t:self)||typeof window===r?t:window)||typeof global===r?t:global}function Dt(){var t;return Ct||(t=zt()||{},Ct=t[Pt]=t[Pt]||{}),Ct}function I(t,n){let r=f;if(st(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?ct(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return rt(t)+": "+r}let T;function kt(t,n){S("'"+w(t)+"' not defined for "+I(n))}function At(n){return T=T||i[q],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[q];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));kt(r,t)}}function O(e,t,o){T=T||i[q];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);kt(e,t)}}function Nt(n){return function(t){return t[n]}}Zr("mathMin",Q.min);const Lt=Zr("mathMax",Q.max),Rt=Zr("strSlice",j(q,o)),_t=Zr("strSubstring",j("substring",o));function Wt(t,n,r){return d(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Lt(n+t[c],0)),a(r)?Rt(t,n):Rt(t,n,n+r))}Zr("strSubstr",O("substr",o,Wt));const Kt=Zr("strStartsWith",O("startsWith",o,Bt));function Bt(t,n,r){b(t)||S("'"+I(t)+"' is not a string");var n=b(n)?n:w(n),e=n[c],r=0<r?r:0;return _t(t,r,r+e)===n}const Gt="_urid";let Ht;function Ut(){var t;return Ht||(t=Dt(),Ht=t.gblSym=t.gblSym||{k:{},s:{}}),Ht}let $t;function Mt(t){var n={description:w(t),toString:()=>B+"("+t+")"};return n[G]=!0,n}function Vt(r){var e=Ut();if(!bt(e.k,r)){let t=Mt(r),n=It(e.s).length;t[Gt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[Gt]()]=w(r)}return e.k[r]}function qt(t){t&&t.toString&&Kt(t.toString(),B)||S(t+" is not a symbol");t=t[G]&&t[Gt]&&t[Gt]();return t?Ut().s[t]:void 0}function Jt(t){$t=$t||{};t=Ft[t];return t?$t[t]=$t[t]||Mt(B+"."+t):void 0}const Zt={e:"enumerable",c:"configurable",v:M,w:"writable",g:"get",s:"set"};function Qt(n){let r={};var t;return r[Zt.c]=!0,r[Zt.e]=!0,n.l&&(r.get=()=>n.l.v,t=yt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[Zt[t]]=a(n)?r[Zt[t]]:n}),r}const E=Zr("objDefineProp",e.defineProperty),Xt=Zr("objDefineProperties",e.defineProperties);function x(t,n,r){return E(t,n,Qt(r))}let F,Yt=function(){F=Dt(),Yt=p};function tn(n){let r={};return Yt&&Yt(),r.b=F.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return F.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),F.lzy&&r.b!==F.lzy&&(r.b=F.lzy),t}}),r}function P(t,n){return tn(()=>Y(t,n))}const nn="window";let rn,en,on,un,cn,an,fn;function C(t){return P(()=>ln(t)||s,s)}function sn(t){return(rn=!rn||!1===t||F&&F.lzy&&!rn.b?P(zt,p):rn).v}function ln(t,n){n=rn&&!1!==n?rn.v:sn(n);return n&&n[t]?n[t]:t===nn&&en?en.v:p}function pn(){return(on=!on||F&&F.lzy&&!on.b?C("document"):on).v}function yn(){return(en=!en||F&&F.lzy&&!en.b?C(nn):en).v}function dn(){return(un=!un||F&&F.lzy&&!un.b?C("navigator"):un).v}function bn(){return(cn=!cn||F&&F.lzy&&!cn.b?C("history"):cn).v}let z,vn,hn;function gn(t){return P(function(){return z.v?z.v[t]:s},s)}function mn(){return!!D()}function D(){var t=!z||F&&F.lzy&&!z.b;return t&&(z=C(B)),vn&&!t||(vn=gn("for")),hn&&!t||(hn=gn("keyFor")),z.v}function Sn(t,n){var r=Ft[t];return z&&(!F.lzy||z.b)||D(),z.v?z.v[r||t]:n?s:Jt(t)}function wn(t){return!!t&&v(t.next)}function In(t){return!et(t)&&v(t[Sn(3)])}Zr("isSymbol",nt("symbol"));let Tn;function jn(e,o,u){if(e&&(wn(e)||(e=e[(Tn=Tn||tn(()=>Sn(3))).v]?e[Tn.v]():null),wn(e))){let n,r;try{let t=0;for(;!(r=e.next())[$]&&-1!==o[y](u||e,r[M],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[$]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const k=Zr("fnApply",At("apply"));function A(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}Zr("arrEvery",j("every",i)),Zr("arrFilter",j("filter",i));const On=Zr("arrIndexOf",j(H,i)),En=(Zr("arrLastIndexOf",j(U,i)),Zr("arrMap",j("map",i))),N=Zr("arrSlice",j(q,i));function xn(t,n,r){return-1!==On(t,n,r)}function Fn(t,n,r){n=Pn(t,n,r);return-1!==n?t[n]:void 0}function Pn(r,e,o){let u=-1;return A(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Cn(t,n,r){n=zn(t,n,r);return-1!==n?t[n]:void 0}function zn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Dn(t,r,e){var n;if(g(t))return n=N(t),r?En(n,r,e):n;let o=[];return jn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}Zr("arrFind",O("find",i,Fn)),Zr("arrFindIndex",O("findIndex",i,Pn)),Zr("arrFindLast",O("findLast",i,Cn)),Zr("arrFindLastIndex",O("findLastIndex",i,zn)),Zr("arrFrom",X.from||Dn);n=Zr("arrIncludes",O("includes",i,xn));Zr("arrContains",n),Zr("arrReduce",j("reduce",i)),Zr("arrSome",j("some",i));const kn=Zr("fnBind",At("bind"));function An(r,e){return function(){var t=N(arguments),n=r();return k(n[e],n,t)}}Zr("fnCall",At(y));let Nn;const Ln=Zr("objCreate",e.create||function(t){if(!t)return{};var n=typeof t;if(n!==_&&n!==R)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r});let Rn;function _n(t,n){return(e.setPrototypeOf||function(r,t){(Rn=Rn||tn(()=>({[W]:[]})instanceof Array)).v?r[W]=t:m(t,(t,n)=>r[t]=n)})(t,n)}function Wn(t,n){try{n&&(t[V]=n)}catch(t){}}function Kn(t,n){try{x(t,V,{v:n,c:!0,e:!1})}catch(t){}}function Bn(e,o,t){let u=t||Error,i=u[l][V],c=Error.captureStackTrace;return t=u,Kn(a=function(){var t=this;try{Wn(u,e);var n,r=k(u,t,N(arguments))||t;return r!==t&&(n=Ot(t))!==Ot(r)&&_n(r,n),c&&c(r,t[K]),o&&o(r,arguments),r}finally{Wn(u,i)}},r=e),(a=_n(a,t))[l]=t===p?Ln(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,Kn(this,r)}var r,a}let Gn;function Hn(){return(Date.now||Un)()}function Un(){return(new Date).getTime()}function $n(n){return function(t){return d(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}t=Zr("polyStrTrim",$n(/^\s+|(?=\s)\s+$/g)),L=Zr("polyStrTrimStart",$n(/^\s+/g)),Z=Zr("polyStrTrimEnd",$n(/(?=\s)\s+$/g));const Mn=Zr("strTrim",O("trim",o,t));X=Zr("strTrimStart",O("trimStart",o,L)),Zr("strTrimLeft",X),n=Zr("strTrimEnd",O("trimEnd",o,Z));Zr("strTrimRight",n);const Vn=Zr("strUpper",j("toUpperCase",o)),qn=Zr("strLower",j("toLowerCase",o));function Jn(t,c,a){return Mn(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=Vn(i)),(o||f)+c+i})}function Zn(t,n){return Jn(t,"",!0).replace(/^\w/,n?Vn:qn)}const Qn=Zr("mathFloor",Q.floor),Xn=Zr("mathCeil",Q.ceil),Yn=Zr("mathTrunc",Q.trunc||function(t){t=+t;return(0<t?Qn:Xn)(t)});function tr(t,n){var r=+t;return r==1/0&&n&>("invalid value ["+I(t)+"]"),r!=r||0==r?0:Yn(r)}const nr=Zr("strRepeat",O("repeat",o,rr));function rr(t,n){d(t)&&S("can't convert ["+I(t)+"]"),(n=tr(n,!0))<0&>("invalid count must be >= 0 && < Infinity");let r=b(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function er(t,n,r){let e=f;n=tr(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=d(r)?" ":w(r))[c]?nr(e,Xn(n/e[c])):e)[c]>n)?_t(e,0,n):e}const or=Zr("strPadStart",O("padStart",o,ur));function ur(t,n,r){return er(t,n,r)+t}function ir(t,n,r){return t+er(t,n,r)}Zr("strPadEnd",O("padEnd",o,ir));const cr='"',ar=/([^\w\d_$])/g;let fr,sr,lr,pr;function yr(n){if(!n||typeof n!==_)return!1;let r=!1;if(n!==(pr=pr||!yn()||yn())){lr||(sr=Function[l].toString,lr=sr[y](e));try{let t=Ot(n);(r=!t)||(dt(t,K)&&(t=t[K]),r=t&&typeof t===R&&sr[y](t)===lr)}catch(t){}}return r}const dr=t=>(t.value&&Tr(t),!0),br=[Sr,Tr,Ir,wr];function vr(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===_?c=yr(t):a=t===p||ut(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>vr(e,t,n?r:o,n),copyTo:(t,n)=>hr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(A(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;x(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<br.length?br[t++]:dr))[y](o,f);)n=p}}return r.v}}function hr(t,n,r,e){if(!d(r))for(const o in r)n[o]=vr(t,r[o],e,o);return n}function gr(t,n,r){return hr([],t,n,{handler:r,src:n,path:[]})}function mr(t,n){return vr([],t,{handler:n,src:t})}function Sr(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function wr(t){var n=t.value;return!!it(n)&&(t.result=new Date(n.getTime()),!0)}function Ir(t){return t.type===R}function Tr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function jr(n,t){return A(t,t=>{gr(n,t)}),n}Zr("getLength",Nt(c));let Or;function Er(){return(Or=!Or||!Or.b&&F&&F.lzy?C("performance"):Or).v}function xr(){var t=Er();return t&&t.now?t.now():Hn()}function Fr(t){return xr()-t}const Pr="(.*)",Cr="(.)";function zr(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function Dr(t,n){return t[Sn(3)]=function(){return kr(n)},t}function kr(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[$]:r};return r||x(t,M,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[$]:!0,[M]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[$]:!0,[M]:n.t&&n.t(t)}}),t}function Ar(t,n,r){n=n&&n[Sn(9)];return n?n(t,r):[t]}const Nr=Zr("strSplit",j("split",o));function Lr(t,n,r){b(t)||S("'"+I(t)+"' is not a string");var n=b(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return _t(t,r-e,r)===n}Zr("strSymSplit",O("split",o,D()?null:Ar)),Zr("strEndsWith",O("endsWith",o,Lr));const Rr=Zr("strIndexOf",j(H,o));Zr("strLastIndexOf",j(U,o));t=Zr("strIncludes",O("includes",o,_r));function _r(t,n,r){return ft(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==Rr(t,w(n),r)}Zr("strContains",t);const Wr="ref",Kr="un"+Wr,Br="hasRef",Gr="enabled";function Hr(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[Kr]&&o[Kr](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[Br]:()=>o&&o[Br]?o[Br]():e,[Wr]:()=>(e=!0,o&&o[Wr]&&o[Wr](),u),[Kr]:i,[Gr]:!1},E(u,Gr,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function Ur(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),k(a,n,N(arguments))},Hr(t,t=>{if(t){if(t.refresh)return t.refresh(),t;k(c,n,[t])}return k(i,n,e)},function(t){k(c,n,[t])}));return f.h}function $r(t,n){return Ur(this,!0,s,N(arguments))}let Mr,Vr=100,qr=50;function Jr(){return!(!(Mr=Mr||P(()=>ot(requestIdleCallback),!1)).v||!requestIdleCallback)}}}}); | ||
//# sourceMappingURL=ts-utils.min.js.map |
@@ -1,3 +0,3 @@ | ||
/*! https://github.com/nevware21/ts-utils v0.10.3 */ | ||
function t(t){"use strict";const s=void 0,p=null,f="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math;const i=(Vn=Array)[l];function X(t,n){let r=n;try{r=t()}catch(t){}return r}const Y=[B,R,L,n,"symbol","bigint"];function tt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||nt(t)!==n)}}function nt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function d(t){return t===p||a(t)}function rt(t){return t===p||!et(t)}function et(t){return!!t||t!==s}function ot(t){return t!==W&&!!~Y.indexOf(t)}const v=tt(B),b=tt(_);function h(t){return!(!t&&d(t)||!t||typeof t!==W)}const g=Vn.isArray,ut=u("Date"),it=tt(R),ct=tt(L),at=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),ft=u("ArrayBuffer");const st=u("Error");function lt(t){return!!(t&&t.then&&b(t.then))}var pt=lt;function yt(t){return!(!t||X(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function vt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const bt=e.hasOwn||ht;function ht(t,n){return vt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(bt(t,e)&&-1===n[y](r||t,e,t[e]))break}function gt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function mt(t){throw new RangeError(t)}function St(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const wt=e.freeze;function It(t){return t}var Tt=e.assign;function jt(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Ot(t){return wt&&m(t,(t,n)=>{(g(n)||h(n))&&wt(n)}),Et(t)}const Et=wt||It;var xt=e.seal||It;const Ft=e.getPrototypeOf||function(t){return t[K]||p};var Pt=e.entries||St;function Ct(t){return gt(t,0,0,Ot)}function zt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Ot(r)}const Dt=Ct({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,kt="__tsUtils$gblCfg";let At;function Nt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function Lt(){var t;return At||(t=Nt()||{},At=t[kt]=t[kt]||{}),At}function I(t,n){let r=f;if(st(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return nt(t)+": "+r}let T;function _t(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Rt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));_t(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);_t(e,t)}}function Wt(n){return function(t){return t[n]}}Q=o.min;const Kt=o.max,Bt=j(J,r),Gt=j("substring",r);var Ht=O("substr",r,Ut);function Ut(t,n,r){return d(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Kt(n+t[c],0)),a(r)?Bt(t,n):Bt(t,n,n+r))}const $t=O("startsWith",r,Mt);function Mt(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],r=0<r?r:0;return Gt(t,r,r+e)===n}const Vt="_urid";let qt;function Jt(){var t;return qt||(t=Lt(),qt=t.gblSym=t.gblSym||{k:{},s:{}}),qt}let Zt={};function Qt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Xt(r){var e=Jt();if(!bt(e.k,r)){let t=Qt(r),n=jt(e.s).length;t[Vt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[Vt]()]=w(r)}return e.k[r]}function Yt(t){t&&t.toString&&$t(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[Vt]&&t[Vt]();return t?Jt().s[t]:void 0}function tn(t){t=Dt[t];return t?Zt[t]=Zt[t]||Qt(H+"."+t):void 0}const nn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function rn(n){let r={};var t;return r[nn.c]=!0,r[nn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[nn[t]]=a(n)?r[nn[t]]:n}),r}const E=e.defineProperty,en=e.defineProperties;function on(t,n,r){return E(t,n,rn(r))}let x,un=function(){x=Lt(),un=p};function cn(n){let r={};return un&&un(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return cn(()=>X(t,n))}const an="window";let fn,sn,ln,pn,yn,dn,vn;function P(t){return F(()=>hn(t)||s,s)}function bn(t){return(fn=!fn||!1===t||x&&x.lzy&&!fn.b?F(Nt,p):fn).v}function hn(t,n){n=fn&&!1!==n?fn.v:bn(n);return n&&n[t]?n[t]:t===an&&sn?sn.v:p}function gn(){return(ln=!ln||x&&x.lzy&&!ln.b?P("document"):ln).v}function mn(){return(sn=!sn||x&&x.lzy&&!sn.b?P(an):sn).v}function Sn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("navigator"):pn).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("history"):yn).v}let C,In,Tn;function jn(t){return F(function(){return C.v?C.v[t]:s},s)}var On=tt("symbol");function En(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),In&&!t||(In=jn("for")),Tn&&!t||(Tn=jn("keyFor")),C.v}function xn(t,n){var r=Dt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?s:tn(t)}function Fn(t){return!!t&&b(t.next)}function Pn(t){return!rt(t)&&b(t[xn(3)])}let Cn;function zn(e,o,u){if(e&&(Fn(e)||(e=e[(Cn=Cn||cn(()=>xn(3))).v]?e[Cn.v]():null),Fn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Rt("apply");var Dn=j("every",i),kn=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const An=j(U,i);var Nn=j($,i);const Ln=j("map",i),A=j(J,i);function _n(t,n,r){return-1!==An(t,n,r)}function Rn(t,n,r){n=Wn(t,n,r);return-1!==n?t[n]:void 0}function Wn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Kn(t,n,r){n=Bn(t,n,r);return-1!==n?t[n]:void 0}function Bn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Gn(t,r,e){var n;if(g(t))return n=A(t),r?Ln(n,r,e):n;let o=[];return zn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Hn=O("find",i,Rn),Un=O("findIndex",i,Wn),$n=O("findLast",i,Kn),Mn=O("findLastIndex",i,Bn),Vn=Vn.from||Gn,qn=O("includes",i,_n),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Rt("bind");var Yn=Rt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||cn(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}const ur=(t,n)=>{try{n&&(t[q]=n)}catch(t){}},ir=(t,n)=>{try{on(t,q,{v:n,c:!0,e:!1})}catch(t){}};function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return r=e,a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Ft(t))!==Ft(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},t=u,ir(a,r),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function fr(){return(Date.now||sr)()}function sr(){return(new Date).getTime()}function lr(n){return function(t){return d(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),dr=lr(/(?=\s)\s+$/g);const vr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,dr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return vr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=N(i)),(o||f)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&mt("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){d(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&mt("invalid count must be >= 0 && < Infinity");let r=v(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=f;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=d(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Gt(e,0,n):e}const Cr=O("padStart",r,zr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}o=O("padEnd",r,Dr);const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!mn()||mn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Ft(n);(r=!t)||(vt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===W?c=Rr(t):a=t===p||ot(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(k(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;on(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,f);)n=p}}return r.v}}function Gr(t,n,r,e){if(!d(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!ut(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Wt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():fr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function ee(t,n){return t[xn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||on(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[xn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,fe);function fe(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Gt(t,r-e,r)===n}const se=j(U,r);function le(t,n,r){return at(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==se(t,w(n),r)}U=j($,r),r=$=O("includes",r,le);const pe="ref",ye="un"+pe,de="hasRef",ve="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[de]:()=>o&&o[de]?o[de]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[ve]:!1},E(u,ve,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return f.h}function ge(t,n){return he(this,!0,s,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>et(requestIdleCallback),!1)).v||!requestIdleCallback)}t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Fn(t)||Pn(t)?zn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=Dn,t.arrFilter=kn,t.arrFind=Hn,t.arrFindIndex=Un,t.arrFindLast=$n,t.arrFindLastIndex=Mn,t.arrForEach=k,t.arrFrom=Vn,t.arrIncludes=qn,t.arrIndexOf=An,t.arrLastIndexOf=Nn,t.arrMap=Ln,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return on(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return gt(t,1,0,Ot)},t.createEnumKeyMap=Ct,t.createEnumValueMap=function(t){return gt(t,1,1,Ot)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=s,u=(d(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return on(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=zt,t.createTimeout=function(t,n){return he(this,!1,s,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=zt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||cn(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(v(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=gn,t.getGlobal=bn,t.getHistory=wn,t.getInst=hn,t.getIntValue=function(t,n){return d(t)?n:it(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=xn,t.getLazy=cn,t.getLength=Zr,t.getNavigator=Sn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(zn(t,t=>{if(d(n))return-1;n=n[t]}),!d(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!d(n);t++)n=n[e[t]];return d(n)?r:n},t.getWindow=mn,t.hasDocument=function(){return!!gn()},t.hasHistory=function(){return!!wn()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!Sn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=En,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!d(n))if(g(n))e=0<n[c];else if(ut(n))e=!isNaN(n.getTime());else{if(ct(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(ct(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!jt(n)[c]}e=yt(n)}return e}(t,0)},t.hasWindow=function(){return!!mn()},t.isArray=g,t.isArrayBuffer=ft,t.isBlob=L,t.isBoolean=ct,t.isDate=ut,t.isDefined=et,t.isError=st,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Pn,t.isIterator=Fn,t.isNode=function(){return(vn=vn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!X(()=>t&&0+t,t)},t.isNullOrUndefined=d,t.isNumber=it,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ot(typeof t)},t.isPrimitiveType=ot,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=lt,t.isRegExp=at,t.isStrictNullOrUndefined=rt,t.isStrictUndefined=function(t){return!et(t)},t.isString=v,t.isSymbol=On,t.isThenable=pt,t.isTruthy=yt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=zn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Kt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Qt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=Tt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Ot,t.objDefine=on,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,rn(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,rn({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=en,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=rn(n)}),en(t,r)},t.objEntries=Pt,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=Et,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Ft,t.objHasOwn=bt,t.objHasOwnProperty=vt,t.objKeys=jt,t.objSeal=xt,t.objSetPrototypeOf=or,t.objToString=nt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Rn,t.polyArrFindIndex=Wn,t.polyArrFindLast=Kn,t.polyArrFindLastIndex=Bn,t.polyArrFrom=Gn,t.polyArrIncludes=_n,t.polyGetKnownSymbol=tn,t.polyIsArray=function(t){return!d(t)&&"[object Array]"===nt(t)},t.polyNewSymbol=Qt,t.polyObjEntries=St,t.polyObjHasOwn=ht,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)bt(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=Ut,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=dr,t.polyStrTrimStart=yr,t.polySymbolFor=Xt,t.polySymbolKeyFor=Yt,t.polyUtcNow=sr,t.readArgs=function(t,n,u){if(nr=nr||cn(()=>En()&&xn(3)),!bt(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(zn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=X,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){un&&un(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;zn(t,t=>{n&&(d(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{d(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=se,t.strIsNullOrEmpty=function(t){return v(t)?t===f:d(t)},t.strIsNullOrWhiteSpace=function(t){return v(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:d(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Gt(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?f:n<r?Gt(t,r-n):t},t.strSlice=Bt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=$t,t.strSubstr=Ht,t.strSubstring=Gt,t.strSymSplit=ce,t.strTrim=vr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return In&&(!x.lzy||C.b)||z(),(In.v||Xt)(t)},t.symbolKeyFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=mt,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=fr}var n=this;"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).nevware21=n.nevware21||{},n.nevware21["ts-utils"]={})); | ||
/*! https://github.com/nevware21/ts-utils v0.10.4 */ | ||
function t(t){"use strict";const s=void 0,p=null,f="";var L="boolean";const _="function";var R="number";const W="object",l="prototype",K="__proto__";var B="string";const n="undefined",G="constructor",H="Symbol";var U="indexOf",$="lastIndexOf";const c="length",M="done",V="value",q="name",J="slice",y="call",e=Object,Z=e[l];var Q=String,r=Q[l],o=Math;const i=(Vn=Array)[l];function X(t,n){let r=n;try{r=t()}catch(t){}return r}const Y=[B,R,L,n,"symbol","bigint"];function tt(n){return function(t){return typeof t===n}}function u(t){const n="[object "+t+"]";return function(t){return!(!t||nt(t)!==n)}}function nt(t){return Z.toString[y](t)}function a(t){return typeof t===n||t===n}function d(t){return t===p||a(t)}function rt(t){return t===p||!et(t)}function et(t){return!!t||t!==s}function ot(t){return t!==W&&!!~Y.indexOf(t)}const v=tt(B),b=tt(_);function h(t){return!(!t&&d(t)||!t||typeof t!==W)}const g=Vn.isArray,ut=u("Date"),it=tt(R),ct=tt(L),at=u("RegExp");var B=u("File"),R=u("FormData"),L=u("Blob"),ft=u("ArrayBuffer");const st=u("Error");function lt(t){return!!(t&&t.then&&b(t.then))}var pt=lt;function yt(t){return!(!t||X(()=>!(t&&0+t),!t))}const dt=e.getOwnPropertyDescriptor;function vt(t,n){return t&&Z.hasOwnProperty[y](t,n)}const bt=e.hasOwn||ht;function ht(t,n){return vt(t,n)||!!dt(t,n)}function m(t,n,r){if(t&&h(t))for(const e in t)if(bt(t,e)&&-1===n[y](r||t,e,t[e]))break}function gt(t,r,e,n){let o={};return m(t,(t,n)=>{o[t]=r?n:t,o[n]=e?n:t}),n(o)}function S(t){throw new TypeError(t)}function mt(t){throw new RangeError(t)}function St(t){let r=[];return m(t,(t,n)=>{r.push([t,n])}),r}const wt=e.freeze;function It(t){return t}var Tt=e.assign;function jt(t){return h(t)&&t!==p||S("objKeys called on non-object"),e.keys(t)}function Ot(t){return wt&&m(t,(t,n)=>{(g(n)||h(n))&&wt(n)}),Et(t)}const Et=wt||It;var xt=e.seal||It;const Ft=e.getPrototypeOf||function(t){return t[K]||p};var Pt=e.entries||St;function Ct(t){return gt(t,0,0,Ot)}function zt(t){let r={};return m(t,(t,n)=>{r[t]=n[1],r[n[0]]=n[1]}),Ot(r)}const Dt=Ct({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),w=Q,kt="__tsUtils$gblCfg";let At;function Nt(){var t;return(t=(t=(t=typeof globalThis!==n?globalThis:void 0)||typeof self===n?t:self)||typeof window===n?t:window)||typeof global===n?t:global}function Lt(){var t;return At||(t=Nt()||{},At=t[kt]=t[kt]||{}),At}function I(t,n){let r=f;if(st(t))r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'";else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r=" - "+I(t,n)}return nt(t)+": "+r}let T;function _t(t,n){S("'"+w(t)+"' not defined for "+I(n))}function Rt(n){return T=T||i[J],function(t){return t[n].apply(t,T[y](arguments,1))}}function j(r,t){T=T||i[J];let e=t&&t[r];return function(t){var n=t&&t[r]||e;if(n)return n.apply(t,T[y](arguments,1));_t(r,t)}}function O(e,t,o){T=T||i[J];let u=t&&t[e];return function(t){var n,r=t&&t[e]||u;if(r||o)return n=arguments,(r||o).apply(t,r?T[y](n,1):n);_t(e,t)}}function Wt(n){return function(t){return t[n]}}Q=o.min;const Kt=o.max,Bt=j(J,r),Gt=j("substring",r);var Ht=O("substr",r,Ut);function Ut(t,n,r){return d(t)&&S("'polyStrSubstr called with invalid "+I(t)),r<0?f:((n=n||0)<0&&(n=Kt(n+t[c],0)),a(r)?Bt(t,n):Bt(t,n,n+r))}const $t=O("startsWith",r,Mt);function Mt(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],r=0<r?r:0;return Gt(t,r,r+e)===n}const Vt="_urid";let qt;function Jt(){var t;return qt||(t=Lt(),qt=t.gblSym=t.gblSym||{k:{},s:{}}),qt}let Zt;function Qt(t){return{description:w(t),toString:()=>H+"("+t+")",_polyfill:!0}}function Xt(r){var e=Jt();if(!bt(e.k,r)){let t=Qt(r),n=jt(e.s).length;t[Vt]=()=>n+"_"+t.toString(),e.k[r]=t,e.s[t[Vt]()]=w(r)}return e.k[r]}function Yt(t){t&&t.toString&&$t(t.toString(),H)||S(t+" is not a symbol");t=t._polyfill&&t[Vt]&&t[Vt]();return t?Jt().s[t]:void 0}function tn(t){Zt=Zt||{};t=Dt[t];return t?Zt[t]=Zt[t]||Qt(H+"."+t):void 0}const nn={e:"enumerable",c:"configurable",v:V,w:"writable",g:"get",s:"set"};function rn(n){let r={};var t;return r[nn.c]=!0,r[nn.e]=!0,n.l&&(r.get=()=>n.l.v,t=dt(n.l,"v"))&&t.set&&(r.set=t=>{n.l.v=t}),m(n,(t,n)=>{r[nn[t]]=a(n)?r[nn[t]]:n}),r}const E=e.defineProperty,en=e.defineProperties;function on(t,n,r){return E(t,n,rn(r))}let x,un=function(){x=Lt(),un=p};function cn(n){let r={};return un&&un(),r.b=x.lzy,E(r,"v",{configurable:!0,get:function(){var t=n();return x.lzy||(E(r,"v",{value:t}),r.b&&delete r.b),x.lzy&&r.b!==x.lzy&&(r.b=x.lzy),t}}),r}function F(t,n){return cn(()=>X(t,n))}const an="window";let fn,sn,ln,pn,yn,dn,vn;function P(t){return F(()=>hn(t)||s,s)}function bn(t){return(fn=!fn||!1===t||x&&x.lzy&&!fn.b?F(Nt,p):fn).v}function hn(t,n){n=fn&&!1!==n?fn.v:bn(n);return n&&n[t]?n[t]:t===an&&sn?sn.v:p}function gn(){return(ln=!ln||x&&x.lzy&&!ln.b?P("document"):ln).v}function mn(){return(sn=!sn||x&&x.lzy&&!sn.b?P(an):sn).v}function Sn(){return(pn=!pn||x&&x.lzy&&!pn.b?P("navigator"):pn).v}function wn(){return(yn=!yn||x&&x.lzy&&!yn.b?P("history"):yn).v}let C,In,Tn;function jn(t){return F(function(){return C.v?C.v[t]:s},s)}var On=tt("symbol");function En(){return!!z()}function z(){var t=!C||x&&x.lzy&&!C.b;return t&&(C=P(H)),In&&!t||(In=jn("for")),Tn&&!t||(Tn=jn("keyFor")),C.v}function xn(t,n){var r=Dt[t];return C&&(!x.lzy||C.b)||z(),C.v?C.v[r||t]:n?s:tn(t)}function Fn(t){return!!t&&b(t.next)}function Pn(t){return!rt(t)&&b(t[xn(3)])}let Cn;function zn(e,o,u){if(e&&(Fn(e)||(e=e[(Cn=Cn||cn(()=>xn(3))).v]?e[Cn.v]():null),Fn(e))){let n,r;try{let t=0;for(;!(r=e.next())[M]&&-1!==o[y](u||e,r[V],t,e);)t++}catch(t){n={e:t},e.throw&&(r=null,e.throw(n))}finally{try{r&&!r[M]&&e.return&&e.return(r)}finally{if(n)throw n.e}}}}const D=Rt("apply");var Dn=j("every",i),kn=j("filter",i);function k(n,r,e){if(n){var o=n[c]>>>0;for(let t=0;t<o&&!(t in n&&-1===r[y](e||n,n[t],t,n));t++);}}const An=j(U,i);var Nn=j($,i);const Ln=j("map",i),A=j(J,i);function _n(t,n,r){return-1!==An(t,n,r)}function Rn(t,n,r){n=Wn(t,n,r);return-1!==n?t[n]:void 0}function Wn(r,e,o){let u=-1;return k(r,(t,n)=>{if(e[y](o|r,t,n,r))return u=n,-1}),u}function Kn(t,n,r){n=Bn(t,n,r);return-1!==n?t[n]:void 0}function Bn(n,r,e){let o=-1;for(let t=(n[c]>>>0)-1;0<=t;t--)if(t in n&&r[y](e|n,n[t],t,n)){o=t;break}return o}function Gn(t,r,e){var n;if(g(t))return n=A(t),r?Ln(n,r,e):n;let o=[];return zn(t,(t,n)=>o.push(r?r[y](e,t,n):t)),o}var Hn=O("find",i,Rn),Un=O("findIndex",i,Wn),$n=O("findLast",i,Kn),Mn=O("findLastIndex",i,Bn),Vn=Vn.from||Gn,qn=O("includes",i,_n),Jn=qn,Zn=j("reduce",i),Qn=j("some",i);const Xn=Rt("bind");var Yn=Rt(y);function tr(r,e){return function(){var t=A(arguments),n=r();return D(n[e],n,t)}}let nr;const rr=e.create||function(t){if(!t)return{};var n=typeof t;if(n!==W&&n!=_)throw new TypeError("Prototype must be an Object or function: "+I(t));function r(){}return r[l]=t,new r};let er;function or(t,n){return(e.setPrototypeOf||function(r,t){(er=er||cn(()=>({[K]:[]})instanceof Array)).v?r[K]=t:m(t,(t,n)=>r[t]=n)})(t,n)}function ur(t,n){try{n&&(t[q]=n)}catch(t){}}function ir(t,n){try{on(t,q,{v:n,c:!0,e:!1})}catch(t){}}function cr(e,o,t){let u=t||Error,i=u[l][q],c=Error.captureStackTrace;return t=u,ir(a=function(){var t=this;try{ur(u,e);var n,r=D(u,t,A(arguments))||t;return r!==t&&(n=Ft(t))!==Ft(r)&&or(r,n),c&&c(r,t[G]),o&&o(r,arguments),r}finally{ur(u,i)}},r=e),(a=or(a,t))[l]=t===p?rr(t):(n[l]=t[l],new n),a;function n(){this.constructor=a,ir(this,r)}var r,a}let ar;function fr(){return(Date.now||sr)()}function sr(){return(new Date).getTime()}function lr(n){return function(t){return d(t)&&S("strTrim called ["+I(t)+"]"),t&&t.replace?t.replace(n,f):t}}var pr=lr(/^\s+|(?=\s)\s+$/g),yr=lr(/^\s+/g),dr=lr(/(?=\s)\s+$/g);const vr=O("trim",r,pr);var br=O("trimStart",r,yr),hr=br,gr=O("trimEnd",r,dr),mr=gr;const N=j("toUpperCase",r),Sr=j("toLowerCase",r);function wr(t,c,a){return vr(w(t)).replace(/((_|\W)+(\w){0,1}|([a-z])([A-Z]))/g,(t,n,r,e,o,u)=>{let i=e||u||f;return a&&(i=N(i)),(o||f)+c+i})}function Ir(t,n){return wr(t,"",!0).replace(/^\w/,n?N:Sr)}const Tr=o.floor,jr=o.ceil,Or=o.trunc||function(t){t=+t;return(0<t?Tr:jr)(t)};function Er(t,n){var r=+t;return r==1/0&&n&&mt("invalid value ["+I(t)+"]"),r!=r||0==r?0:Or(r)}const xr=O("repeat",r,Fr);function Fr(t,n){d(t)&&S("can't convert ["+I(t)+"]"),(n=Er(n,!0))<0&&mt("invalid count must be >= 0 && < Infinity");let r=v(t)?t:w(t),e=f;for(;0<n;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e}function Pr(t,n,r){let e=f;n=Er(n,!0),n>>=0;t=t[c];return e=t<n&&(n-=t,(e=n>(e=d(r)?" ":w(r))[c]?xr(e,jr(n/e[c])):e)[c]>n)?Gt(e,0,n):e}const Cr=O("padStart",r,zr);function zr(t,n,r){return Pr(t,n,r)+t}function Dr(t,n,r){return t+Pr(t,n,r)}o=O("padEnd",r,Dr);const kr=/([^\w\d_$])/g;let Ar,Nr,Lr,_r;function Rr(n){if(!n||typeof n!==W)return!1;let r=!1;if(n!==(_r=_r||!mn()||mn())){Lr||(Nr=Function[l].toString,Lr=Nr[y](e));try{let t=Ft(n);(r=!t)||(vt(t,G)&&(t=t[G]),r=t&&typeof t==_&&Nr[y](t)===Lr)}catch(t){}}return r}const Wr=t=>(t.value&&qr(t),!0),Kr=[$r,qr,Vr,Mr];function Br(e,t,o,n){var u=o.handler,n=o.path?n?o.path.concat(n):o.path:[];let r={handler:o.handler,src:o.src,path:n};var i=typeof t;let c=!1,a=!1,f=(t&&i===W?c=Rr(t):a=t===p||ot(i),{type:i,isPrim:a,isPlain:c,value:t,result:t,path:n,origin:o.src,copy:(t,n)=>Br(e,t,n?r:o,n),copyTo:(t,n)=>Gr(e,t,n,r)});if(f.isPrim)return u&&u[y](o,f)?f.result:t;{var i=e,s=t;let r;if(k(i,t=>{if(t.k===s)return r=t,-1}),!r){r={k:s,v:s},i.push(r);{var l=r;on(f,"result",{g:function(){return l.v},s:function(t){l.v=t}});let t=0,n=u;for(;!(n||(t<Kr.length?Kr[t++]:Wr))[y](o,f);)n=p}}return r.v}}function Gr(t,n,r,e){if(!d(r))for(const o in r)n[o]=Br(t,r[o],e,o);return n}function Hr(t,n,r){return Gr([],t,n,{handler:r,src:n,path:[]})}function Ur(t,n){return Br([],t,{handler:n,src:t})}function $r(t){var n,r=t.value;return!!g(r)&&((n=t.result=[]).length=r.length,t.copyTo(n,r),!0)}function Mr(t){var n=t.value;return!!ut(n)&&(t.result=new Date(n.getTime()),!0)}function Vr(t){return t.type===_}function qr(t){var n,r=t.value;return!(!r||!t.isPlain||(n=t.result={},t.copyTo(n,r),0))}function Jr(n,t){return k(t,t=>{Hr(n,t)}),n}var Zr=Wt(c);let Qr;function Xr(){return(Qr=!Qr||!Qr.b&&x&&x.lzy?P("performance"):Qr).v}function Yr(){var t=Xr();return t&&t.now?t.now():fr()}function te(t){return Yr()-t}const ne="(.*)";function re(t,n,r,e,o){return RegExp((o?"^":f)+r(t.replace(n,"\\$1"))+(o?"$":f),e?"i":"")}function ee(t,n){return t[xn(3)]=function(){return oe(n)},t}function oe(n){let r=!1;function e(){return n.v}var t={next:function(){r=r||!n.n||n.n(arguments);var t={[M]:r};return r||on(t,V,{g:e}),t}};return n.r&&(t.return=function(t){return r=!0,{[M]:!0,[V]:n.r&&n.r(t)}}),n.t&&(t.throw=function(t){return r=!0,{[M]:!0,[V]:n.t&&n.t(t)}}),t}function ue(t,n,r){n=n&&n[xn(9)];return n?n(t,r):[t]}const ie=j("split",r);var ce=O("split",r,z()?null:ue),ae=O("endsWith",r,fe);function fe(t,n,r){v(t)||S("'"+I(t)+"' is not a string");var n=v(n)?n:w(n),e=n[c],o=t[c],r=!a(r)&&r<o?r:o;return Gt(t,r-e,r)===n}const se=j(U,r);function le(t,n,r){return at(n)&&S("'searchString' must not be a regular expression"+I(n)),-1!==se(t,w(n),r)}U=j($,r),r=$=O("includes",r,le);const pe="ref",ye="un"+pe,de="hasRef",ve="enabled";function be(t,n,r){let e=!0,o=t?n(p):p,u;const i=()=>(e=!1,o&&o[ye]&&o[ye](),u),c=()=>(o=n(o),e||i(),u),a=()=>{o&&r(o),o=p};return u={cancel:a,refresh:c,[de]:()=>o&&o[de]?o[de]():e,[pe]:()=>(e=!0,o&&o[pe]&&o[pe](),u),[ye]:i,[ve]:!1},E(u,ve,{get:()=>!!o,set:t=>{!t&&o&&a(),t&&!o&&c()}}),{h:u,dn:()=>{o=p}}}function he(n,t,r,e){var o=g(r),u=o?r.length:0;let i=(0<u?r[0]:o?s:r)||setTimeout,c=(1<u?r[1]:s)||clearTimeout,a=e[0],f=(e[0]=function(){f.dn(),D(a,n,A(arguments))},be(t,t=>{if(t){if(t.refresh)return t.refresh(),t;D(c,n,[t])}return D(i,n,e)},function(t){D(c,n,[t])}));return f.h}function ge(t,n){return he(this,!0,s,A(arguments))}let me,Se=100,we=50;function Ie(){return!(!(me=me||F(()=>et(requestIdleCallback),!1)).v||!requestIdleCallback)}t.arrAppend=function(n,t){return!a(t)&&n&&(g(t)?D(n.push,n,t):Fn(t)||Pn(t)?zn(t,t=>{n.push(t)}):n.push(t)),n},t.arrContains=Jn,t.arrEvery=Dn,t.arrFilter=kn,t.arrFind=Hn,t.arrFindIndex=Un,t.arrFindLast=$n,t.arrFindLastIndex=Mn,t.arrForEach=k,t.arrFrom=Vn,t.arrIncludes=qn,t.arrIndexOf=An,t.arrLastIndexOf=Nn,t.arrMap=Ln,t.arrReduce=Zn,t.arrSlice=A,t.arrSome=Qn,t.arrayDeepCopyHandler=$r,t.asString=w,t.createArrayIterator=function(t){let n=-1,r=t?t.slice():[],e=r[c];t={n:function(){return++n>=e}};return on(t,"v",{g:function(){if(0<=n&&n<e)return r[n]}}),oe(t)},t.createCustomError=cr,t.createEnum=function(t){return gt(t,1,0,Ot)},t.createEnumKeyMap=Ct,t.createEnumValueMap=function(t){return gt(t,1,1,Ot)},t.createFilenameRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\\\\|\\\/|\*|\?)/g,function(t,n){return"\\/"==n||"\\\\"==n?"[\\\\\\/]{1}":"*"==n?ne:"(.)"}),!!n,r)},t.createFnDeferredProxy=tr,t.createIterable=function(t){return ee({},t)},t.createIterator=oe,t.createProxyFuncs=function(e,o,t){if(e&&o&&g(t)){let r=b(o);k(t,t=>{var n=t.as||t.n;!1===t.rp&&e[n]||(e[n]=r?tr(o,t.n):Xn(o[t.n],o))})}return e},t.createRangeIterator=function(t,n,r){let e=t,o=s,u=(d(n)&&(n=t),r||(t<=n?1:-1));r={n:function(){var t;return(t=0<u?e>n:e<n)||(o=e,e+=u),t}};return on(r,"v",{g:function(){return o}}),oe(r)},t.createSimpleMap=zt,t.createTimeout=function(t,n){return he(this,!1,s,A(arguments))},t.createTimeoutWith=function(t,n,r){return he(this,!1,t,A(arguments,1))},t.createTypeMap=zt,t.createWildcardRegex=function(t,n,r){return re(w(t),/([-+|^$#.\?{}()\[\]\\/\"\'])/g,t=>t.replace(/\*/g,ne),!!n,r)},t.dateDeepCopyHandler=Mr,t.deepExtend=function(t,n,r,e,o,u,i){return Jr(Ur(t)||{},A(arguments))},t.dumpObj=I,t.elapsedTime=te,t.encodeAsHtml=function(t){return Ar=Ar||cn(()=>({"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#39"})),w(t).replace(/[&<>"']/g,t=>"&"+Ar.v[t]+";")},t.encodeAsJson=function(t,n){let r;if(v(t))r='"'+t.replace(/[^\w .,\-!@#$%\^&*\(\)_+={}\[\]:;|<>?]/g,t=>{return'"'===t||"\\"===t?"\\"+t:(t=t.charCodeAt(0).toString(16),"\\u"+Cr(N(t),4,"0"))})+'"';else try{r=JSON.stringify(t,p,n?it(n)?n:4:s)}catch(t){r='"'+I(t)+'"'}return r},t.fnApply=D,t.fnBind=Xn,t.fnCall=Yn,t.functionDeepCopyHandler=Vr,t.getDocument=gn,t.getGlobal=bn,t.getHistory=wn,t.getInst=hn,t.getIntValue=function(t,n){return d(t)?n:it(t)?t:isNaN(t=parseInt(t,10))?n:t},t.getKnownSymbol=xn,t.getLazy=cn,t.getLength=Zr,t.getNavigator=Sn,t.getPerformance=Xr,t.getSymbol=z,t.getValueByIter=function(n,t,r){return t&&n&&(zn(t,t=>{if(d(n))return-1;n=n[t]}),!d(n))?n:r},t.getValueByKey=function(n,t,r){if(!t||!n)return r;var e=ie(t,"."),o=e.length;for(let t=0;t<o&&!d(n);t++)n=n[e[t]];return d(n)?r:n},t.getWindow=mn,t.hasDocument=function(){return!!gn()},t.hasHistory=function(){return!!wn()},t.hasIdleCallback=Ie,t.hasNavigator=function(){return!!Sn()},t.hasPerformance=function(){return!!Xr()},t.hasSymbol=En,t.hasValue=function(t){return function t(n,r){let e=!1===n||0===n;if(!e&&!d(n))if(g(n))e=0<n[c];else if(ut(n))e=!isNaN(n.getTime());else{if(ct(n))return!0;if(h(n)){try{var o=function(n,t){let r;return k(t,t=>{if(t in n)return t=n[t],r=0<(b(t)?t():t),-1}),r}(n,[c,"byteLength","size","count"]);if(ct(o))return o;if(b(n.valueOf)&&r<5)return t(n.valueOf(),++r)}catch(t){}return!!jt(n)[c]}e=yt(n)}return e}(t,0)},t.hasWindow=function(){return!!mn()},t.isArray=g,t.isArrayBuffer=ft,t.isBlob=L,t.isBoolean=ct,t.isDate=ut,t.isDefined=et,t.isError=st,t.isFile=B,t.isFormData=R,t.isFunction=b,t.isIterable=Pn,t.isIterator=Fn,t.isNode=function(){return(vn=vn||F(()=>!(!process||!(process.versions||{}).node),!1)).v},t.isNotTruthy=function(t){return!t||!X(()=>t&&0+t,t)},t.isNullOrUndefined=d,t.isNumber=it,t.isObject=h,t.isPlainObject=Rr,t.isPrimitive=function(t){return t===p||ot(typeof t)},t.isPrimitiveType=ot,t.isPromise=function(t){return!!(t&&t.then&&t.catch&&b(t.then)&&b(t.catch))},t.isPromiseLike=lt,t.isRegExp=at,t.isStrictNullOrUndefined=rt,t.isStrictUndefined=function(t){return!et(t)},t.isString=v,t.isSymbol=On,t.isThenable=pt,t.isTruthy=yt,t.isTypeof=function(t,n){return typeof t===n},t.isUndefined=a,t.isWebWorker=function(){return(dn=dn||F(()=>!!(self&&self instanceof WorkerGlobalScope),!1)).v},t.iterForOf=zn,t.lazySafeGetInst=P,t.makeGlobRegex=function(t,n,r){return re(w(t),/([-+|^$#.{}()\\\/\[\]\"\'])/g,t=>t.replace(/(\*\*\\[\\\/]|\\\\|\\\/|\*\*|\*|\?)/g,function(t,n){return"**\\/"==n||"**\\\\"==n?"(.*[\\\\\\/])*":"\\/"===n||"\\\\"==n?"[\\\\\\/]{1}":"**"===n?ne:"*"===n?"([^\\\\\\/]*)":"([^\\\\\\/]{1})"}),!!n,r)},t.makeIterable=ee,t.mathCeil=jr,t.mathFloor=Tr,t.mathMax=Kt,t.mathMin=Q,t.mathToInt=Er,t.mathTrunc=Or,t.newSymbol=function(t,n){return C&&(!x.lzy||C.b)||z(),C.v?C.v(t):n?p:Qt(t)},t.normalizeJsName=function(t,n){t=w(t).replace(kr,"_");return a(n)?t:Ir(t,!n)},t.objAssign=Tt,t.objCopyProps=Hr,t.objCreate=rr,t.objDeepCopy=Ur,t.objDeepFreeze=Ot,t.objDefine=on,t.objDefineAccessors=function(t,n,r,e,o,u){u={e:u,c:o};return r&&(u.g=r),e&&(u.s=e),E(t,n,rn(u))},t.objDefineGet=function(t,n,r,e,o){return E(t,n,rn({e:o,c:e,[b(r)?"g":"v"]:r}))},t.objDefineProp=E,t.objDefineProperties=en,t.objDefineProps=function(t,n){let r={};return m(n,(t,n)=>{r[t]=rn(n)}),en(t,r)},t.objEntries=Pt,t.objExtend=function(t,n,r,e,o,u,i){return Jr(t||{},A(arguments))},t.objForEachKey=m,t.objFreeze=Et,t.objGetOwnPropertyDescriptor=dt,t.objGetPrototypeOf=Ft,t.objHasOwn=bt,t.objHasOwnProperty=vt,t.objKeys=jt,t.objSeal=xt,t.objSetPrototypeOf=or,t.objToString=nt,t.perfNow=Yr,t.plainObjDeepCopyHandler=qr,t.polyArrFind=Rn,t.polyArrFindIndex=Wn,t.polyArrFindLast=Kn,t.polyArrFindLastIndex=Bn,t.polyArrFrom=Gn,t.polyArrIncludes=_n,t.polyGetKnownSymbol=tn,t.polyIsArray=function(t){return!d(t)&&"[object Array]"===nt(t)},t.polyNewSymbol=Qt,t.polyObjEntries=St,t.polyObjHasOwn=ht,t.polyObjKeys=function(t){if(!h(t)||t===p)throw new TypeError("polyObjKeys called on non-object");var n=[];for(const r in t)bt(t,r)&&n.push(r);return n},t.polyStrIncludes=le,t.polyStrSubstr=Ut,t.polyStrSymSplit=ue,t.polyStrTrim=pr,t.polyStrTrimEnd=dr,t.polyStrTrimStart=yr,t.polySymbolFor=Xt,t.polySymbolKeyFor=Yt,t.polyUtcNow=sr,t.readArgs=function(t,n,u){if(nr=nr||cn(()=>En()&&xn(3)),!bt(t,c)){var i=nr.v&&t[nr.v];if(i){let r=[],e=n===s||n<0?0:n,o=u<0||n<0?s:u;if(zn(i[y](t),(t,n)=>{if(o!==s&&n>=o)return-1;n>=e&&r.push(t)}),(n===s||0<=n)&&(u===s||0<=u))return r;t=r}}return A(t,n,u)},t.safeGet=X,t.safeGetLazy=F,t.scheduleIdleCallback=function(r,e){function o(t){let n=Yr();return{didTimeout:t,timeRemaining:()=>we-te(n)}}if(Ie()){let n=be(!0,t=>(t&&cancelIdleCallback(t),requestIdleCallback(t=>{n.dn(),r(t||o(!1))},e)),t=>{cancelIdleCallback(t)});return n.h}var t=(e||{}).timeout;return ge(()=>{r(o(!0))},a(t)?Se:t)},t.scheduleInterval=function(t,n){let r=this,e=A(arguments);return be(!0,t=>(t&&clearInterval(t),D(setInterval,r,e)),t=>{D(clearInterval,r,[t])}).h},t.scheduleTimeout=ge,t.scheduleTimeoutWith=function(t,n,r){return he(this,!0,t,A(arguments,1))},t.setBypassLazyCache=function(t){un&&un(),x.lzy=t},t.setDefaultIdleTimeout=function(t){Se=t},t.setDefaultMaxExecutionTime=function(t){we=t},t.setValueByIter=function(r,t,e){if(r&&t){let n;zn(t,t=>{n&&(d(r[n])&&(r[n]={}),r=r[n]),n=t}),r[n]=e}},t.setValueByKey=function(n,t,r){var e;n&&t&&(e=(t=ie(t,".")).pop(),k(t,t=>{d(n[t])&&(n[t]={}),n=n[t]}),n[e]=r)},t.strCamelCase=Ir,t.strContains=r,t.strEndsWith=ae,t.strIncludes=$,t.strIndexOf=se,t.strIsNullOrEmpty=function(t){return v(t)?t===f:d(t)},t.strIsNullOrWhiteSpace=function(t){return v(t)?t.replace(/[\s\t\r\n\f]+/g,f)===f:d(t)},t.strKebabCase=function(t,n){t=wr(t,"-");return(n?N:Sr)(t)},t.strLastIndexOf=U,t.strLeft=function(t,n){return Gt(t,0,n)},t.strLetterCase=function(t){return w(t).replace(/(_|\b)\w/g,N)},t.strLower=Sr,t.strPadEnd=o,t.strPadStart=Cr,t.strRepeat=xr,t.strRight=function(t,n){var r=t[c];return n<=0?f:n<r?Gt(t,r-n):t},t.strSlice=Bt,t.strSnakeCase=function(t,n){t=wr(t,"_");return(n?N:Sr)(t)},t.strSplit=ie,t.strStartsWith=$t,t.strSubstr=Ht,t.strSubstring=Gt,t.strSymSplit=ce,t.strTrim=vr,t.strTrimEnd=gr,t.strTrimLeft=hr,t.strTrimRight=mr,t.strTrimStart=br,t.strUpper=N,t.symbolFor=function(t){return In&&(!x.lzy||C.b)||z(),(In.v||Xt)(t)},t.symbolKeyFor=function(t){return Tn&&(!x.lzy||C.b)||z(),(Tn.v||Yt)(t)},t.throwError=function(t){throw Error(t)},t.throwRangeError=mt,t.throwTypeError=S,t.throwUnsupported=function(t){throw new(ar=ar||cr("UnsupportedError"))(t)},t.utcNow=fr}var n=this;"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).nevware21=n.nevware21||{},n.nevware21["ts-utils"]={})); | ||
//# sourceMappingURL=ts-utils.min.js.map |
{ | ||
"name": "@nevware21/ts-utils", | ||
"description": "Common JavaScript/TypeScript helper functions for better minification", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"homepage": "https://github.com/nevware21/ts-utils", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -74,3 +74,3 @@ <h1 align="center">@nevware21 ts-utils</h1> | ||
> ```json | ||
> "@nevware21/ts-utils": ">= 0.10.3 < 2.x" | ||
> "@nevware21/ts-utils": ">= 0.10.4 < 2.x" | ||
> ``` | ||
@@ -77,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16250277
55292