@vtj/base 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 陈华春
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs ADDED
@@ -0,0 +1,49 @@
1
+ "use strict";var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol=root$1.Symbol;const Symbol$1=Symbol;var objectProto$h=Object.prototype,hasOwnProperty$e=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(n){var e=hasOwnProperty$e.call(n,symToStringTag$1),a=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var u=!0}catch{}var f=nativeObjectToString$1.call(n);return u&&(e?n[symToStringTag$1]=a:delete n[symToStringTag$1]),f}var objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(n){return nativeObjectToString.call(n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?getRawTag(n):objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}var symbolTag$3="[object Symbol]";function isSymbol(n){return typeof n=="symbol"||isObjectLike(n)&&baseGetTag(n)==symbolTag$3}function arrayMap(n,e){for(var a=-1,u=n==null?0:n.length,f=Array(u);++a<u;)f[a]=e(n[a],a,n);return f}var isArray=Array.isArray;const isArray$1=isArray;var INFINITY$1=1/0,symbolProto$2=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(n){if(typeof n=="string")return n;if(isArray$1(n))return arrayMap(n,baseToString)+"";if(isSymbol(n))return symbolToString?symbolToString.call(n):"";var e=n+"";return e=="0"&&1/n==-INFINITY$1?"-0":e}var reWhitespace=/\s/;function trimmedEndIndex(n){for(var e=n.length;e--&&reWhitespace.test(n.charAt(e)););return e}var reTrimStart=/^\s+/;function baseTrim(n){return n&&n.slice(0,trimmedEndIndex(n)+1).replace(reTrimStart,"")}function isObject(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(n){if(typeof n=="number")return n;if(isSymbol(n))return NAN;if(isObject(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=isObject(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=baseTrim(n);var a=reIsBinary.test(n);return a||reIsOctal.test(n)?freeParseInt(n.slice(2),a?2:8):reIsBadHex.test(n)?NAN:+n}function identity(n){return n}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(n){if(!isObject(n))return!1;var e=baseGetTag(n);return e==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var n=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function isMasked(n){return!!maskSrcKey&&maskSrcKey in n}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(n){if(n!=null){try{return funcToString$2.call(n)}catch{}try{return n+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$f=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$d=objectProto$f.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(n){if(!isObject(n)||isMasked(n))return!1;var e=isFunction(n)?reIsNative:reIsHostCtor;return e.test(toSource(n))}function getValue(n,e){return n?.[e]}function getNative(n,e){var a=getValue(n,e);return baseIsNative(a)?a:void 0}var WeakMap=getNative(root$1,"WeakMap");const WeakMap$1=WeakMap;var objectCreate=Object.create,baseCreate=function(){function n(){}return function(e){if(!isObject(e))return{};if(objectCreate)return objectCreate(e);n.prototype=e;var a=new n;return n.prototype=void 0,a}}();const baseCreate$1=baseCreate;function apply(n,e,a){switch(a.length){case 0:return n.call(e);case 1:return n.call(e,a[0]);case 2:return n.call(e,a[0],a[1]);case 3:return n.call(e,a[0],a[1],a[2])}return n.apply(e,a)}function noop(){}function copyArray(n,e){var a=-1,u=n.length;for(e||(e=Array(u));++a<u;)e[a]=n[a];return e}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(n){var e=0,a=0;return function(){var u=nativeNow(),f=HOT_SPAN-(u-a);if(a=u,f>0){if(++e>=HOT_COUNT)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function constant(n){return function(){return n}}var defineProperty=function(){try{var n=getNative(Object,"defineProperty");return n({},"",{}),n}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(n,e){return defineProperty$1(n,"toString",{configurable:!0,enumerable:!1,value:constant(e),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(n,e){for(var a=-1,u=n==null?0:n.length;++a<u&&e(n[a],a,n)!==!1;);return n}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,e){var a=typeof n;return e=e??MAX_SAFE_INTEGER$1,!!e&&(a=="number"||a!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n<e}function baseAssignValue(n,e,a){e=="__proto__"&&defineProperty$1?defineProperty$1(n,e,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[e]=a}function eq(n,e){return n===e||n!==n&&e!==e}var objectProto$e=Object.prototype,hasOwnProperty$c=objectProto$e.hasOwnProperty;function assignValue(n,e,a){var u=n[e];(!(hasOwnProperty$c.call(n,e)&&eq(u,a))||a===void 0&&!(e in n))&&baseAssignValue(n,e,a)}function copyObject(n,e,a,u){var f=!a;a||(a={});for(var h=-1,p=e.length;++h<p;){var d=e[h],y=u?u(a[d],n[d],d,a,n):void 0;y===void 0&&(y=n[d]),f?baseAssignValue(a,d,y):assignValue(a,d,y)}return a}var nativeMax$1=Math.max;function overRest(n,e,a){return e=nativeMax$1(e===void 0?n.length-1:e,0),function(){for(var u=arguments,f=-1,h=nativeMax$1(u.length-e,0),p=Array(h);++f<h;)p[f]=u[e+f];f=-1;for(var d=Array(e+1);++f<e;)d[f]=u[f];return d[e]=a(p),apply(n,this,d)}}function baseRest(n,e){return setToString$1(overRest(n,e,identity),n+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=MAX_SAFE_INTEGER}function isArrayLike(n){return n!=null&&isLength(n.length)&&!isFunction(n)}function isIterateeCall(n,e,a){if(!isObject(a))return!1;var u=typeof e;return(u=="number"?isArrayLike(a)&&isIndex(e,a.length):u=="string"&&e in a)?eq(a[e],n):!1}function createAssigner(n){return baseRest(function(e,a){var u=-1,f=a.length,h=f>1?a[f-1]:void 0,p=f>2?a[2]:void 0;for(h=n.length>3&&typeof h=="function"?(f--,h):void 0,p&&isIterateeCall(a[0],a[1],p)&&(h=f<3?void 0:h,f=1),e=Object(e);++u<f;){var d=a[u];d&&n(e,d,u,h)}return e})}var objectProto$d=Object.prototype;function isPrototype(n){var e=n&&n.constructor,a=typeof e=="function"&&e.prototype||objectProto$d;return n===a}function baseTimes(n,e){for(var a=-1,u=Array(n);++a<n;)u[a]=e(a);return u}var argsTag$3="[object Arguments]";function baseIsArguments(n){return isObjectLike(n)&&baseGetTag(n)==argsTag$3}var objectProto$c=Object.prototype,hasOwnProperty$b=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(n){return isObjectLike(n)&&hasOwnProperty$b.call(n,"callee")&&!propertyIsEnumerable$1.call(n,"callee")};const isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse;const isBuffer$1=isBuffer;var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$4="[object Boolean]",dateTag$4="[object Date]",errorTag$3="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$4="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$4]=typedArrayTags[boolTag$4]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$4]=typedArrayTags[errorTag$3]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$4]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(n){return isObjectLike(n)&&isLength(n.length)&&!!typedArrayTags[baseGetTag(n)]}function baseUnary(n){return function(e){return n(e)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var n=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return n||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$1=isTypedArray;var objectProto$b=Object.prototype,hasOwnProperty$a=objectProto$b.hasOwnProperty;function arrayLikeKeys(n,e){var a=isArray$1(n),u=!a&&isArguments$1(n),f=!a&&!u&&isBuffer$1(n),h=!a&&!u&&!f&&isTypedArray$1(n),p=a||u||f||h,d=p?baseTimes(n.length,String):[],y=d.length;for(var l in n)(e||hasOwnProperty$a.call(n,l))&&!(p&&(l=="length"||f&&(l=="offset"||l=="parent")||h&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||isIndex(l,y)))&&d.push(l);return d}function overArg(n,e){return function(a){return n(e(a))}}var nativeKeys=overArg(Object.keys,Object);const nativeKeys$1=nativeKeys;var objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty;function baseKeys(n){if(!isPrototype(n))return nativeKeys$1(n);var e=[];for(var a in Object(n))hasOwnProperty$9.call(n,a)&&a!="constructor"&&e.push(a);return e}function keys(n){return isArrayLike(n)?arrayLikeKeys(n):baseKeys(n)}function nativeKeysIn(n){var e=[];if(n!=null)for(var a in Object(n))e.push(a);return e}var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty;function baseKeysIn(n){if(!isObject(n))return nativeKeysIn(n);var e=isPrototype(n),a=[];for(var u in n)u=="constructor"&&(e||!hasOwnProperty$8.call(n,u))||a.push(u);return a}function keysIn(n){return isArrayLike(n)?arrayLikeKeys(n,!0):baseKeysIn(n)}var assignInWith=createAssigner(function(n,e,a,u){copyObject(e,keysIn(e),n,u)});const extendWith=assignInWith;var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(n,e){if(isArray$1(n))return!1;var a=typeof n;return a=="number"||a=="symbol"||a=="boolean"||n==null||isSymbol(n)?!0:reIsPlainProp.test(n)||!reIsDeepProp.test(n)||e!=null&&n in Object(e)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet(n){var e=this.__data__;if(nativeCreate$1){var a=e[n];return a===HASH_UNDEFINED$2?void 0:a}return hasOwnProperty$7.call(e,n)?e[n]:void 0}var objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas(n){var e=this.__data__;return nativeCreate$1?e[n]!==void 0:hasOwnProperty$6.call(e,n)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(n,e){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=nativeCreate$1&&e===void 0?HASH_UNDEFINED$1:e,this}function Hash(n){var e=-1,a=n==null?0:n.length;for(this.clear();++e<a;){var u=n[e];this.set(u[0],u[1])}}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(n,e){for(var a=n.length;a--;)if(eq(n[a][0],e))return a;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(n){var e=this.__data__,a=assocIndexOf(e,n);if(a<0)return!1;var u=e.length-1;return a==u?e.pop():splice.call(e,a,1),--this.size,!0}function listCacheGet(n){var e=this.__data__,a=assocIndexOf(e,n);return a<0?void 0:e[a][1]}function listCacheHas(n){return assocIndexOf(this.__data__,n)>-1}function listCacheSet(n,e){var a=this.__data__,u=assocIndexOf(a,n);return u<0?(++this.size,a.push([n,e])):a[u][1]=e,this}function ListCache(n){var e=-1,a=n==null?0:n.length;for(this.clear();++e<a;){var u=n[e];this.set(u[0],u[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function getMapData(n,e){var a=n.__data__;return isKeyable(e)?a[typeof e=="string"?"string":"hash"]:a.map}function mapCacheDelete(n){var e=getMapData(this,n).delete(n);return this.size-=e?1:0,e}function mapCacheGet(n){return getMapData(this,n).get(n)}function mapCacheHas(n){return getMapData(this,n).has(n)}function mapCacheSet(n,e){var a=getMapData(this,n),u=a.size;return a.set(n,e),this.size+=a.size==u?0:1,this}function MapCache(n){var e=-1,a=n==null?0:n.length;for(this.clear();++e<a;){var u=n[e];this.set(u[0],u[1])}}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$2="Expected a function";function memoize(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var a=function(){var u=arguments,f=e?e.apply(this,u):u[0],h=a.cache;if(h.has(f))return h.get(f);var p=n.apply(this,u);return a.cache=h.set(f,p)||h,p};return a.cache=new(memoize.Cache||MapCache),a}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(n){var e=memoize(n,function(u){return a.size===MAX_MEMOIZE_SIZE&&a.clear(),u}),a=e.cache;return e}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(rePropName,function(a,u,f,h){e.push(f?h.replace(reEscapeChar,"$1"):u||a)}),e});const stringToPath$1=stringToPath;function toString(n){return n==null?"":baseToString(n)}function castPath(n,e){return isArray$1(n)?n:isKey(n,e)?[n]:stringToPath$1(toString(n))}var INFINITY=1/0;function toKey(n){if(typeof n=="string"||isSymbol(n))return n;var e=n+"";return e=="0"&&1/n==-INFINITY?"-0":e}function baseGet(n,e){e=castPath(e,n);for(var a=0,u=e.length;n!=null&&a<u;)n=n[toKey(e[a++])];return a&&a==u?n:void 0}function get(n,e,a){var u=n==null?void 0:baseGet(n,e);return u===void 0?a:u}function arrayPush(n,e){for(var a=-1,u=e.length,f=n.length;++a<u;)n[f+a]=e[a];return n}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$6=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$5=objectProto$6.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject(n){if(!isObjectLike(n)||baseGetTag(n)!=objectTag$3)return!1;var e=getPrototype$1(n);if(e===null)return!0;var a=hasOwnProperty$5.call(e,"constructor")&&e.constructor;return typeof a=="function"&&a instanceof a&&funcToString.call(a)==objectCtorString}var domExcTag="[object DOMException]",errorTag$2="[object Error]";function isError(n){if(!isObjectLike(n))return!1;var e=baseGetTag(n);return e==errorTag$2||e==domExcTag||typeof n.message=="string"&&typeof n.name=="string"&&!isPlainObject(n)}var attempt=baseRest(function(n,e){try{return apply(n,void 0,e)}catch(a){return isError(a)?a:new Error(a)}});const attempt$1=attempt;function baseSlice(n,e,a){var u=-1,f=n.length;e<0&&(e=-e>f?0:f+e),a=a>f?f:a,a<0&&(a+=f),f=e>a?0:a-e>>>0,e>>>=0;for(var h=Array(f);++u<f;)h[u]=n[u+e];return h}function castSlice(n,e,a){var u=n.length;return a=a===void 0?u:a,!e&&a>=u?n:baseSlice(n,e,a)}var rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode(n){return reHasUnicode.test(n)}function asciiToArray(n){return n.split("")}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray(n){return n.match(reUnicode)||[]}function stringToArray(n){return hasUnicode(n)?unicodeToArray(n):asciiToArray(n)}function createCaseFirst(n){return function(e){e=toString(e);var a=hasUnicode(e)?stringToArray(e):void 0,u=a?a[0]:e.charAt(0),f=a?castSlice(a,1).join(""):e.slice(1);return u[n]()+f}}var upperFirst=createCaseFirst("toUpperCase");const i$1=upperFirst;function capitalize(n){return i$1(toString(n).toLowerCase())}function arrayReduce(n,e,a,u){var f=-1,h=n==null?0:n.length;for(u&&h&&(a=n[++f]);++f<h;)a=e(a,n[f],f,n);return a}function basePropertyOf(n){return function(e){return n?.[e]}}var deburredLetters={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},deburrLetter=basePropertyOf(deburredLetters);const deburrLetter$1=deburrLetter;var reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr(n){return n=toString(n),n&&n.replace(reLatin,deburrLetter$1).replace(reComboMark,"")}var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords(n){return n.match(reAsciiWord)||[]}var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord(n){return reHasUnicodeWord.test(n)}var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['\u2019]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords(n){return n.match(reUnicodeWord)||[]}function words(n,e,a){return n=toString(n),e=a?void 0:e,e===void 0?hasUnicodeWord(n)?unicodeWords(n):asciiWords(n):n.match(e)||[]}var rsApos="['\u2019]",reApos=RegExp(rsApos,"g");function createCompounder(n){return function(e){return arrayReduce(words(deburr(e).replace(reApos,"")),n,"")}}var camelCase=createCompounder(function(n,e,a){return e=e.toLowerCase(),n+(a?capitalize(e):e)});const r$2=camelCase;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var e=this.__data__,a=e.delete(n);return this.size=e.size,a}function stackGet(n){return this.__data__.get(n)}function stackHas(n){return this.__data__.has(n)}var LARGE_ARRAY_SIZE=200;function stackSet(n,e){var a=this.__data__;if(a instanceof ListCache){var u=a.__data__;if(!Map$2||u.length<LARGE_ARRAY_SIZE-1)return u.push([n,e]),this.size=++a.size,this;a=this.__data__=new MapCache(u)}return a.set(n,e),this.size=a.size,this}function Stack(n){var e=this.__data__=new ListCache(n);this.size=e.size}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;function baseAssign(n,e){return n&&copyObject(e,keys(e),n)}function baseAssignIn(n,e){return n&&copyObject(e,keysIn(e),n)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(n,e){if(e)return n.slice();var a=n.length,u=allocUnsafe?allocUnsafe(a):new n.constructor(a);return n.copy(u),u}function arrayFilter(n,e){for(var a=-1,u=n==null?0:n.length,f=0,h=[];++a<u;){var p=n[a];e(p,a,n)&&(h[f++]=p)}return h}function stubArray(){return[]}var objectProto$5=Object.prototype,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(n){return n==null?[]:(n=Object(n),arrayFilter(nativeGetSymbols$1(n),function(e){return propertyIsEnumerable.call(n,e)}))}:stubArray;const getSymbols$1=getSymbols;function copySymbols(n,e){return copyObject(n,getSymbols$1(n),e)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(n){for(var e=[];n;)arrayPush(e,getSymbols$1(n)),n=getPrototype$1(n);return e}:stubArray;const getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(n,e){return copyObject(n,getSymbolsIn$1(n),e)}function baseGetAllKeys(n,e,a){var u=e(n);return isArray$1(n)?u:arrayPush(u,a(n))}function getAllKeys(n){return baseGetAllKeys(n,keys,getSymbols$1)}function getAllKeysIn(n){return baseGetAllKeys(n,keysIn,getSymbolsIn$1)}var DataView=getNative(root$1,"DataView");const DataView$1=DataView;var Promise$1=getNative(root$1,"Promise");const Promise$2=Promise$1;var Set$1=getNative(root$1,"Set");const Set$2=Set$1;var mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(n){var e=baseGetTag(n),a=e==objectTag$2?n.constructor:void 0,u=a?toSource(a):"";if(u)switch(u){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return e});const getTag$1=getTag;var objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function initCloneArray(n){var e=n.length,a=new n.constructor(e);return e&&typeof n[0]=="string"&&hasOwnProperty$4.call(n,"index")&&(a.index=n.index,a.input=n.input),a}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer(n){var e=new n.constructor(n.byteLength);return new Uint8Array$2(e).set(new Uint8Array$2(n)),e}function cloneDataView(n,e){var a=e?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.byteLength)}var reFlags=/\w*$/;function cloneRegExp(n){var e=new n.constructor(n.source,reFlags.exec(n));return e.lastIndex=n.lastIndex,e}var symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(n){return symbolValueOf$1?Object(symbolValueOf$1.call(n)):{}}function cloneTypedArray(n,e){var a=e?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}var boolTag$3="[object Boolean]",dateTag$3="[object Date]",mapTag$3="[object Map]",numberTag$3="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$3="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(n,e,a){var u=n.constructor;switch(e){case arrayBufferTag$3:return cloneArrayBuffer(n);case boolTag$3:case dateTag$3:return new u(+n);case dataViewTag$2:return cloneDataView(n,a);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(n,a);case mapTag$3:return new u;case numberTag$3:case stringTag$3:return new u(n);case regexpTag$2:return cloneRegExp(n);case setTag$3:return new u;case symbolTag$2:return cloneSymbol(n)}}function initCloneObject(n){return typeof n.constructor=="function"&&!isPrototype(n)?baseCreate$1(getPrototype$1(n)):{}}var mapTag$2="[object Map]";function baseIsMap(n){return isObjectLike(n)&&getTag$1(n)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;const isMap$1=isMap;var setTag$2="[object Set]";function baseIsSet(n){return isObjectLike(n)&&getTag$1(n)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;const isSet$1=isSet;var CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$2="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$2="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$2]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$2]=cloneableTags[dateTag$2]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$2]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$2]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(n,e,a,u,f,h){var p,d=e&CLONE_DEEP_FLAG$1,y=e&CLONE_FLAT_FLAG,l=e&CLONE_SYMBOLS_FLAG$1;if(a&&(p=f?a(n,u,f,h):a(n)),p!==void 0)return p;if(!isObject(n))return n;var v=isArray$1(n);if(v){if(p=initCloneArray(n),!d)return copyArray(n,p)}else{var m=getTag$1(n),b=m==funcTag||m==genTag;if(isBuffer$1(n))return cloneBuffer(n,d);if(m==objectTag$1||m==argsTag$1||b&&!f){if(p=y||b?{}:initCloneObject(n),!d)return y?copySymbolsIn(n,baseAssignIn(p,n)):copySymbols(n,baseAssign(p,n))}else{if(!cloneableTags[m])return f?n:{};p=initCloneByTag(n,m,d)}}h||(h=new Stack);var x=h.get(n);if(x)return x;h.set(n,p),isSet$1(n)?n.forEach(function(O){p.add(baseClone(O,e,a,O,n,h))}):isMap$1(n)&&n.forEach(function(O,I){p.set(I,baseClone(O,e,a,I,n,h))});var w=l?y?getAllKeysIn:getAllKeys:y?keysIn:keys,E=v?void 0:w(n);return arrayEach(E||n,function(O,I){E&&(I=O,O=n[I]),assignValue(p,I,baseClone(O,e,a,I,n,h))}),p}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(n){return baseClone(n,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(n){return this.__data__.set(n,HASH_UNDEFINED),this}function setCacheHas(n){return this.__data__.has(n)}function SetCache(n){var e=-1,a=n==null?0:n.length;for(this.__data__=new MapCache;++e<a;)this.add(n[e])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;function arraySome(n,e){for(var a=-1,u=n==null?0:n.length;++a<u;)if(e(n[a],a,n))return!0;return!1}function cacheHas(n,e){return n.has(e)}var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(n,e,a,u,f,h){var p=a&COMPARE_PARTIAL_FLAG$3,d=n.length,y=e.length;if(d!=y&&!(p&&y>d))return!1;var l=h.get(n),v=h.get(e);if(l&&v)return l==e&&v==n;var m=-1,b=!0,x=a&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(h.set(n,e),h.set(e,n);++m<d;){var w=n[m],E=e[m];if(u)var O=p?u(E,w,m,e,n,h):u(w,E,m,n,e,h);if(O!==void 0){if(O)continue;b=!1;break}if(x){if(!arraySome(e,function(I,T){if(!cacheHas(x,T)&&(w===I||f(w,I,a,u,h)))return x.push(T)})){b=!1;break}}else if(!(w===E||f(w,E,a,u,h))){b=!1;break}}return h.delete(n),h.delete(e),b}function mapToArray(n){var e=-1,a=Array(n.size);return n.forEach(function(u,f){a[++e]=[f,u]}),a}function setToArray(n){var e=-1,a=Array(n.size);return n.forEach(function(u){a[++e]=u}),a}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag$1="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(n,e,a,u,f,h,p){switch(a){case dataViewTag:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case arrayBufferTag$1:return!(n.byteLength!=e.byteLength||!h(new Uint8Array$2(n),new Uint8Array$2(e)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+n,+e);case errorTag:return n.name==e.name&&n.message==e.message;case regexpTag:case stringTag$1:return n==e+"";case mapTag:var d=mapToArray;case setTag:var y=u&COMPARE_PARTIAL_FLAG$2;if(d||(d=setToArray),n.size!=e.size&&!y)return!1;var l=p.get(n);if(l)return l==e;u|=COMPARE_UNORDERED_FLAG,p.set(n,e);var v=equalArrays(d(n),d(e),u,f,h,p);return p.delete(n),v;case symbolTag:if(symbolValueOf)return symbolValueOf.call(n)==symbolValueOf.call(e)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function equalObjects(n,e,a,u,f,h){var p=a&COMPARE_PARTIAL_FLAG$1,d=getAllKeys(n),y=d.length,l=getAllKeys(e),v=l.length;if(y!=v&&!p)return!1;for(var m=y;m--;){var b=d[m];if(!(p?b in e:hasOwnProperty$3.call(e,b)))return!1}var x=h.get(n),w=h.get(e);if(x&&w)return x==e&&w==n;var E=!0;h.set(n,e),h.set(e,n);for(var O=p;++m<y;){b=d[m];var I=n[b],T=e[b];if(u)var S=p?u(T,I,b,e,n,h):u(I,T,b,n,e,h);if(!(S===void 0?I===T||f(I,T,a,u,h):S)){E=!1;break}O||(O=b=="constructor")}if(E&&!O){var $=n.constructor,B=e.constructor;$!=B&&"constructor"in n&&"constructor"in e&&!(typeof $=="function"&&$ instanceof $&&typeof B=="function"&&B instanceof B)&&(E=!1)}return h.delete(n),h.delete(e),E}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function baseIsEqualDeep(n,e,a,u,f,h){var p=isArray$1(n),d=isArray$1(e),y=p?arrayTag:getTag$1(n),l=d?arrayTag:getTag$1(e);y=y==argsTag?objectTag:y,l=l==argsTag?objectTag:l;var v=y==objectTag,m=l==objectTag,b=y==l;if(b&&isBuffer$1(n)){if(!isBuffer$1(e))return!1;p=!0,v=!1}if(b&&!v)return h||(h=new Stack),p||isTypedArray$1(n)?equalArrays(n,e,a,u,f,h):equalByTag(n,e,y,a,u,f,h);if(!(a&COMPARE_PARTIAL_FLAG)){var x=v&&hasOwnProperty$2.call(n,"__wrapped__"),w=m&&hasOwnProperty$2.call(e,"__wrapped__");if(x||w){var E=x?n.value():n,O=w?e.value():e;return h||(h=new Stack),f(E,O,a,u,h)}}return b?(h||(h=new Stack),equalObjects(n,e,a,u,f,h)):!1}function baseIsEqual(n,e,a,u,f){return n===e?!0:n==null||e==null||!isObjectLike(n)&&!isObjectLike(e)?n!==n&&e!==e:baseIsEqualDeep(n,e,a,u,baseIsEqual,f)}function createBaseFor(n){return function(e,a,u){for(var f=-1,h=Object(e),p=u(e),d=p.length;d--;){var y=p[n?d:++f];if(a(h[y],y,h)===!1)break}return e}}var baseFor=createBaseFor();const baseFor$1=baseFor;var now$1=function(){return root$1.Date.now()};const now$2=now$1;var FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(n,e,a){var u,f,h,p,d,y,l=0,v=!1,m=!1,b=!0;if(typeof n!="function")throw new TypeError(FUNC_ERROR_TEXT$1);e=toNumber(e)||0,isObject(a)&&(v=!!a.leading,m="maxWait"in a,h=m?nativeMax(toNumber(a.maxWait)||0,e):h,b="trailing"in a?!!a.trailing:b);function x(_){var C=u,N=f;return u=f=void 0,l=_,p=n.apply(N,C),p}function w(_){return l=_,d=setTimeout(I,e),v?x(_):p}function E(_){var C=_-y,N=_-l,Y=e-C;return m?nativeMin(Y,h-N):Y}function O(_){var C=_-y,N=_-l;return y===void 0||C>=e||C<0||m&&N>=h}function I(){var _=now$2();if(O(_))return T(_);d=setTimeout(I,E(_))}function T(_){return d=void 0,b&&u?x(_):(u=f=void 0,p)}function S(){d!==void 0&&clearTimeout(d),l=0,u=y=f=d=void 0}function $(){return d===void 0?p:T(now$2())}function B(){var _=now$2(),C=O(_);if(u=arguments,f=this,y=_,C){if(d===void 0)return w(y);if(m)return clearTimeout(d),d=setTimeout(I,e),x(y)}return d===void 0&&(d=setTimeout(I,e)),p}return B.cancel=S,B.flush=$,B}function assignMergeValue(n,e,a){(a!==void 0&&!eq(n[e],a)||a===void 0&&!(e in n))&&baseAssignValue(n,e,a)}function isArrayLikeObject(n){return isObjectLike(n)&&isArrayLike(n)}function safeGet(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function toPlainObject(n){return copyObject(n,keysIn(n))}function baseMergeDeep(n,e,a,u,f,h,p){var d=safeGet(n,a),y=safeGet(e,a),l=p.get(y);if(l){assignMergeValue(n,a,l);return}var v=h?h(d,y,a+"",n,e,p):void 0,m=v===void 0;if(m){var b=isArray$1(y),x=!b&&isBuffer$1(y),w=!b&&!x&&isTypedArray$1(y);v=y,b||x||w?isArray$1(d)?v=d:isArrayLikeObject(d)?v=copyArray(d):x?(m=!1,v=cloneBuffer(y,!0)):w?(m=!1,v=cloneTypedArray(y,!0)):v=[]:isPlainObject(y)||isArguments$1(y)?(v=d,isArguments$1(d)?v=toPlainObject(d):(!isObject(d)||isFunction(d))&&(v=initCloneObject(y))):m=!1}m&&(p.set(y,v),f(v,y,u,h,p),p.delete(y)),assignMergeValue(n,a,v)}function baseMerge(n,e,a,u,f){n!==e&&baseFor$1(e,function(h,p){if(f||(f=new Stack),isObject(h))baseMergeDeep(n,e,p,a,baseMerge,u,f);else{var d=u?u(safeGet(n,p),h,p+"",n,e,f):void 0;d===void 0&&(d=h),assignMergeValue(n,p,d)}},keysIn)}var htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},escapeHtmlChar=basePropertyOf(htmlEscapes);const escapeHtmlChar$1=escapeHtmlChar;var reUnescapedHtml=/[&<>"']/g,reHasUnescapedHtml=RegExp(reUnescapedHtml.source);function escape$1(n){return n=toString(n),n&&reHasUnescapedHtml.test(n)?n.replace(reUnescapedHtml,escapeHtmlChar$1):n}var stringTag="[object String]";function isString(n){return typeof n=="string"||!isArray$1(n)&&isObjectLike(n)&&baseGetTag(n)==stringTag}function baseValues(n,e){return arrayMap(e,function(a){return n[a]})}var arrayBufferTag="[object ArrayBuffer]";function baseIsArrayBuffer(n){return isObjectLike(n)&&baseGetTag(n)==arrayBufferTag}var nodeIsArrayBuffer=nodeUtil$1&&nodeUtil$1.isArrayBuffer,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer;const isArrayBuffer$1=isArrayBuffer;var boolTag="[object Boolean]";function isBoolean(n){return n===!0||n===!1||isObjectLike(n)&&baseGetTag(n)==boolTag}var dateTag="[object Date]";function baseIsDate(n){return isObjectLike(n)&&baseGetTag(n)==dateTag}var nodeIsDate=nodeUtil$1&&nodeUtil$1.isDate,isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate;const isDate$1=isDate;function isEqual(n,e){return baseIsEqual(n,e)}var numberTag="[object Number]";function isNumber(n){return typeof n=="number"||isObjectLike(n)&&baseGetTag(n)==numberTag}function isNaN$1(n){return isNumber(n)&&n!=+n}function isNull(n){return n===null}function isUndefined(n){return n===void 0}var kebabCase=createCompounder(function(n,e,a){return n+(a?"-":"")+e.toLowerCase()});const kebabCase$1=kebabCase;var lowerFirst=createCaseFirst("toLowerCase");const lowerFirst$1=lowerFirst;var merge=createAssigner(function(n,e,a){baseMerge(n,e,a)});const merge$1=merge;function baseSet(n,e,a,u){if(!isObject(n))return n;e=castPath(e,n);for(var f=-1,h=e.length,p=h-1,d=n;d!=null&&++f<h;){var y=toKey(e[f]),l=a;if(y==="__proto__"||y==="constructor"||y==="prototype")return n;if(f!=p){var v=d[y];l=u?u(v,y,d):void 0,l===void 0&&(l=isObject(v)?v:isIndex(e[f+1])?[]:{})}assignValue(d,y,l),d=d[y]}return n}function set(n,e,a){return n==null?n:baseSet(n,e,a)}var objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function customDefaultsAssignIn(n,e,a,u){return n===void 0||eq(n,objectProto$1[a])&&!hasOwnProperty$1.call(u,a)?e:n}var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(n){return"\\"+stringEscapes[n]}var reInterpolate=/<%=([\s\S]+?)%>/g;const reInterpolate$1=reInterpolate;var reEscape=/<%-([\s\S]+?)%>/g;const reEscape$1=reEscape;var reEvaluate=/<%([\s\S]+?)%>/g;const reEvaluate$1=reEvaluate;var templateSettings={escape:reEscape$1,evaluate:reEvaluate$1,interpolate:reInterpolate$1,variable:"",imports:{_:{escape:escape$1}}};const templateSettings$1=templateSettings;var INVALID_TEMPL_VAR_ERROR_TEXT="Invalid `variable` option passed into `_.template`",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function template(n,e,a){var u=templateSettings$1.imports._.templateSettings||templateSettings$1;a&&isIterateeCall(n,e,a)&&(e=void 0),n=toString(n),e=extendWith({},e,u,customDefaultsAssignIn);var f=extendWith({},e.imports,u.imports,customDefaultsAssignIn),h=keys(f),p=baseValues(f,h),d,y,l=0,v=e.interpolate||reNoMatch,m="__p += '",b=RegExp((e.escape||reNoMatch).source+"|"+v.source+"|"+(v===reInterpolate$1?reEsTemplate:reNoMatch).source+"|"+(e.evaluate||reNoMatch).source+"|$","g"),x=hasOwnProperty.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
2
+ `:"";n.replace(b,function(O,I,T,S,$,B){return T||(T=S),m+=n.slice(l,B).replace(reUnescapedString,escapeStringChar),I&&(d=!0,m+=`' +
3
+ __e(`+I+`) +
4
+ '`),$&&(y=!0,m+=`';
5
+ `+$+`;
6
+ __p += '`),T&&(m+=`' +
7
+ ((__t = (`+T+`)) == null ? '' : __t) +
8
+ '`),l=B+O.length,O}),m+=`';
9
+ `;var w=hasOwnProperty.call(e,"variable")&&e.variable;if(!w)m=`with (obj) {
10
+ `+m+`
11
+ }
12
+ `;else if(reForbiddenIdentifierChars.test(w))throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);m=(y?m.replace(reEmptyStringLeading,""):m).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),m="function("+(w||"obj")+`) {
13
+ `+(w?"":`obj || (obj = {});
14
+ `)+"var __t, __p = ''"+(d?", __e = _.escape":"")+(y?`, __j = Array.prototype.join;
15
+ function print() { __p += __j.call(arguments, '') }
16
+ `:`;
17
+ `)+m+`return __p
18
+ }`;var E=attempt$1(function(){return Function(h,x+"return "+m).apply(void 0,p)});if(E.source=m,isError(E))throw E;return E}var FUNC_ERROR_TEXT="Expected a function";function throttle(n,e,a){var u=!0,f=!0;if(typeof n!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject(a)&&(u="leading"in a?!!a.leading:u,f="trailing"in a?!!a.trailing:f),debounce(n,e,{leading:u,maxWait:e,trailing:f})}function upperFirstCamelCase(n){return i$1(r$2(n))}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var md5={exports:{}};function commonjsRequire(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}},hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(n,e){(function(a,u){n.exports=u()})(commonjsGlobal,function(){var a=a||function(u,f){var h;if(typeof window<"u"&&window.crypto&&(h=window.crypto),typeof self<"u"&&self.crypto&&(h=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(h=globalThis.crypto),!h&&typeof window<"u"&&window.msCrypto&&(h=window.msCrypto),!h&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(h=commonjsGlobal.crypto),!h&&typeof commonjsRequire=="function")try{h=require("crypto")}catch{}var p=function(){if(h){if(typeof h.getRandomValues=="function")try{return h.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof h.randomBytes=="function")try{return h.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function T(){}return function(S){var $;return T.prototype=S,$=new T,T.prototype=null,$}}(),y={},l=y.lib={},v=l.Base=function(){return{extend:function(T){var S=d(this);return T&&S.mixIn(T),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var S in T)T.hasOwnProperty(S)&&(this[S]=T[S]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),m=l.WordArray=v.extend({init:function(T,S){T=this.words=T||[],S!=f?this.sigBytes=S:this.sigBytes=T.length*4},toString:function(T){return(T||x).stringify(this)},concat:function(T){var S=this.words,$=T.words,B=this.sigBytes,_=T.sigBytes;if(this.clamp(),B%4)for(var C=0;C<_;C++){var N=$[C>>>2]>>>24-C%4*8&255;S[B+C>>>2]|=N<<24-(B+C)%4*8}else for(var Y=0;Y<_;Y+=4)S[B+Y>>>2]=$[Y>>>2];return this.sigBytes+=_,this},clamp:function(){var T=this.words,S=this.sigBytes;T[S>>>2]&=4294967295<<32-S%4*8,T.length=u.ceil(S/4)},clone:function(){var T=v.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var S=[],$=0;$<T;$+=4)S.push(p());return new m.init(S,T)}}),b=y.enc={},x=b.Hex={stringify:function(T){for(var S=T.words,$=T.sigBytes,B=[],_=0;_<$;_++){var C=S[_>>>2]>>>24-_%4*8&255;B.push((C>>>4).toString(16)),B.push((C&15).toString(16))}return B.join("")},parse:function(T){for(var S=T.length,$=[],B=0;B<S;B+=2)$[B>>>3]|=parseInt(T.substr(B,2),16)<<24-B%8*4;return new m.init($,S/2)}},w=b.Latin1={stringify:function(T){for(var S=T.words,$=T.sigBytes,B=[],_=0;_<$;_++){var C=S[_>>>2]>>>24-_%4*8&255;B.push(String.fromCharCode(C))}return B.join("")},parse:function(T){for(var S=T.length,$=[],B=0;B<S;B++)$[B>>>2]|=(T.charCodeAt(B)&255)<<24-B%4*8;return new m.init($,S)}},E=b.Utf8={stringify:function(T){try{return decodeURIComponent(escape(w.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return w.parse(unescape(encodeURIComponent(T)))}},O=l.BufferedBlockAlgorithm=v.extend({reset:function(){this._data=new m.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=E.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var S,$=this._data,B=$.words,_=$.sigBytes,C=this.blockSize,N=C*4,Y=_/N;T?Y=u.ceil(Y):Y=u.max((Y|0)-this._minBufferSize,0);var D=Y*C,R=u.min(D*4,_);if(D){for(var q=0;q<D;q+=C)this._doProcessBlock(B,q);S=B.splice(0,D),$.sigBytes-=R}return new m.init(S,R)},clone:function(){var T=v.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0});l.Hasher=O.extend({cfg:v.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){O.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){T&&this._append(T);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(T){return function(S,$){return new T.init($).finalize(S)}},_createHmacHelper:function(T){return function(S,$){return new I.HMAC.init(T,$).finalize(S)}}});var I=y.algo={};return y}(Math);return a})}(core)),core.exports}(function(n,e){(function(a,u){n.exports=u(requireCore())})(commonjsGlobal,function(a){return function(u){var f=a,h=f.lib,p=h.WordArray,d=h.Hasher,y=f.algo,l=[];(function(){for(var E=0;E<64;E++)l[E]=u.abs(u.sin(E+1))*4294967296|0})();var v=y.MD5=d.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,O){for(var I=0;I<16;I++){var T=O+I,S=E[T];E[T]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var $=this._hash.words,B=E[O+0],_=E[O+1],C=E[O+2],N=E[O+3],Y=E[O+4],D=E[O+5],R=E[O+6],q=E[O+7],j=E[O+8],V=E[O+9],P=E[O+10],H=E[O+11],K=E[O+12],k=E[O+13],W=E[O+14],Z=E[O+15],M=$[0],F=$[1],L=$[2],U=$[3];M=m(M,F,L,U,B,7,l[0]),U=m(U,M,F,L,_,12,l[1]),L=m(L,U,M,F,C,17,l[2]),F=m(F,L,U,M,N,22,l[3]),M=m(M,F,L,U,Y,7,l[4]),U=m(U,M,F,L,D,12,l[5]),L=m(L,U,M,F,R,17,l[6]),F=m(F,L,U,M,q,22,l[7]),M=m(M,F,L,U,j,7,l[8]),U=m(U,M,F,L,V,12,l[9]),L=m(L,U,M,F,P,17,l[10]),F=m(F,L,U,M,H,22,l[11]),M=m(M,F,L,U,K,7,l[12]),U=m(U,M,F,L,k,12,l[13]),L=m(L,U,M,F,W,17,l[14]),F=m(F,L,U,M,Z,22,l[15]),M=b(M,F,L,U,_,5,l[16]),U=b(U,M,F,L,R,9,l[17]),L=b(L,U,M,F,H,14,l[18]),F=b(F,L,U,M,B,20,l[19]),M=b(M,F,L,U,D,5,l[20]),U=b(U,M,F,L,P,9,l[21]),L=b(L,U,M,F,Z,14,l[22]),F=b(F,L,U,M,Y,20,l[23]),M=b(M,F,L,U,V,5,l[24]),U=b(U,M,F,L,W,9,l[25]),L=b(L,U,M,F,N,14,l[26]),F=b(F,L,U,M,j,20,l[27]),M=b(M,F,L,U,k,5,l[28]),U=b(U,M,F,L,C,9,l[29]),L=b(L,U,M,F,q,14,l[30]),F=b(F,L,U,M,K,20,l[31]),M=x(M,F,L,U,D,4,l[32]),U=x(U,M,F,L,j,11,l[33]),L=x(L,U,M,F,H,16,l[34]),F=x(F,L,U,M,W,23,l[35]),M=x(M,F,L,U,_,4,l[36]),U=x(U,M,F,L,Y,11,l[37]),L=x(L,U,M,F,q,16,l[38]),F=x(F,L,U,M,P,23,l[39]),M=x(M,F,L,U,k,4,l[40]),U=x(U,M,F,L,B,11,l[41]),L=x(L,U,M,F,N,16,l[42]),F=x(F,L,U,M,R,23,l[43]),M=x(M,F,L,U,V,4,l[44]),U=x(U,M,F,L,K,11,l[45]),L=x(L,U,M,F,Z,16,l[46]),F=x(F,L,U,M,C,23,l[47]),M=w(M,F,L,U,B,6,l[48]),U=w(U,M,F,L,q,10,l[49]),L=w(L,U,M,F,W,15,l[50]),F=w(F,L,U,M,D,21,l[51]),M=w(M,F,L,U,K,6,l[52]),U=w(U,M,F,L,N,10,l[53]),L=w(L,U,M,F,P,15,l[54]),F=w(F,L,U,M,_,21,l[55]),M=w(M,F,L,U,j,6,l[56]),U=w(U,M,F,L,Z,10,l[57]),L=w(L,U,M,F,R,15,l[58]),F=w(F,L,U,M,k,21,l[59]),M=w(M,F,L,U,Y,6,l[60]),U=w(U,M,F,L,H,10,l[61]),L=w(L,U,M,F,C,15,l[62]),F=w(F,L,U,M,V,21,l[63]),$[0]=$[0]+M|0,$[1]=$[1]+F|0,$[2]=$[2]+L|0,$[3]=$[3]+U|0},_doFinalize:function(){var E=this._data,O=E.words,I=this._nDataBytes*8,T=E.sigBytes*8;O[T>>>5]|=128<<24-T%32;var S=u.floor(I/4294967296),$=I;O[(T+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,O[(T+64>>>9<<4)+14]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,E.sigBytes=(O.length+1)*4,this._process();for(var B=this._hash,_=B.words,C=0;C<4;C++){var N=_[C];_[C]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return B},clone:function(){var E=d.clone.call(this);return E._hash=this._hash.clone(),E}});function m(E,O,I,T,S,$,B){var _=E+(O&I|~O&T)+S+B;return(_<<$|_>>>32-$)+O}function b(E,O,I,T,S,$,B){var _=E+(O&T|I&~T)+S+B;return(_<<$|_>>>32-$)+O}function x(E,O,I,T,S,$,B){var _=E+(O^I^T)+S+B;return(_<<$|_>>>32-$)+O}function w(E,O,I,T,S,$,B){var _=E+(I^(O|~T))+S+B;return(_<<$|_>>>32-$)+O}f.MD5=d._createHelper(v),f.HmacMD5=d._createHmacHelper(v)}(Math),a.MD5})})(md5);var md5Exports=md5.exports;const s=getDefaultExportFromCjs(md5Exports);var encBase64={exports:{}};(function(n,e){(function(a,u){n.exports=u(requireCore())})(commonjsGlobal,function(a){return function(){var u=a,f=u.lib,h=f.WordArray,p=u.enc;p.Base64={stringify:function(y){var l=y.words,v=y.sigBytes,m=this._map;y.clamp();for(var b=[],x=0;x<v;x+=3)for(var w=l[x>>>2]>>>24-x%4*8&255,E=l[x+1>>>2]>>>24-(x+1)%4*8&255,O=l[x+2>>>2]>>>24-(x+2)%4*8&255,I=w<<16|E<<8|O,T=0;T<4&&x+T*.75<v;T++)b.push(m.charAt(I>>>6*(3-T)&63));var S=m.charAt(64);if(S)for(;b.length%4;)b.push(S);return b.join("")},parse:function(y){var l=y.length,v=this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var b=0;b<v.length;b++)m[v.charCodeAt(b)]=b}var x=v.charAt(64);if(x){var w=y.indexOf(x);w!==-1&&(l=w)}return d(y,l,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(y,l,v){for(var m=[],b=0,x=0;x<l;x++)if(x%4){var w=v[y.charCodeAt(x-1)]<<x%4*2,E=v[y.charCodeAt(x)]>>>6-x%4*2,O=w|E;m[b>>>2]|=O<<24-b%4*8,b++}return h.create(m,b)}}(),a.enc.Base64})})(encBase64);var encBase64Exports=encBase64.exports;const A=getDefaultExportFromCjs(encBase64Exports);var encUtf8={exports:{}};(function(n,e){(function(a,u){n.exports=u(requireCore())})(commonjsGlobal,function(a){return a.enc.Utf8})})(encUtf8);var encUtf8Exports=encUtf8.exports;const o=getDefaultExportFromCjs(encUtf8Exports);var aes={exports:{}},evpkdf={exports:{}},sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(n,e){(function(a,u){n.exports=u(requireCore())})(commonjsGlobal,function(a){return function(){var u=a,f=u.lib,h=f.WordArray,p=f.Hasher,d=u.algo,y=[],l=d.SHA1=p.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,m){for(var b=this._hash.words,x=b[0],w=b[1],E=b[2],O=b[3],I=b[4],T=0;T<80;T++){if(T<16)y[T]=v[m+T]|0;else{var S=y[T-3]^y[T-8]^y[T-14]^y[T-16];y[T]=S<<1|S>>>31}var $=(x<<5|x>>>27)+I+y[T];T<20?$+=(w&E|~w&O)+1518500249:T<40?$+=(w^E^O)+1859775393:T<60?$+=(w&E|w&O|E&O)-1894007588:$+=(w^E^O)-899497514,I=O,O=E,E=w<<30|w>>>2,w=x,x=$}b[0]=b[0]+x|0,b[1]=b[1]+w|0,b[2]=b[2]+E|0,b[3]=b[3]+O|0,b[4]=b[4]+I|0},_doFinalize:function(){var v=this._data,m=v.words,b=this._nDataBytes*8,x=v.sigBytes*8;return m[x>>>5]|=128<<24-x%32,m[(x+64>>>9<<4)+14]=Math.floor(b/4294967296),m[(x+64>>>9<<4)+15]=b,v.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var v=p.clone.call(this);return v._hash=this._hash.clone(),v}});u.SHA1=p._createHelper(l),u.HmacSHA1=p._createHmacHelper(l)}(),a.SHA1})}(sha1)),sha1.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(n,e){(function(a,u){n.exports=u(requireCore())})(commonjsGlobal,function(a){(function(){var u=a,f=u.lib,h=f.Base,p=u.enc,d=p.Utf8,y=u.algo;y.HMAC=h.extend({init:function(l,v){l=this._hasher=new l.init,typeof v=="string"&&(v=d.parse(v));var m=l.blockSize,b=m*4;v.sigBytes>b&&(v=l.finalize(v)),v.clamp();for(var x=this._oKey=v.clone(),w=this._iKey=v.clone(),E=x.words,O=w.words,I=0;I<m;I++)E[I]^=1549556828,O[I]^=909522486;x.sigBytes=w.sigBytes=b,this.reset()},reset:function(){var l=this._hasher;l.reset(),l.update(this._iKey)},update:function(l){return this._hasher.update(l),this},finalize:function(l){var v=this._hasher,m=v.finalize(l);v.reset();var b=v.finalize(this._oKey.clone().concat(m));return b}})})()})}(hmac)),hmac.exports}var hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(n,e){(function(a,u,f){n.exports=u(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(a){return function(){var u=a,f=u.lib,h=f.Base,p=f.WordArray,d=u.algo,y=d.MD5,l=d.EvpKDF=h.extend({cfg:h.extend({keySize:128/32,hasher:y,iterations:1}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,m){for(var b,x=this.cfg,w=x.hasher.create(),E=p.create(),O=E.words,I=x.keySize,T=x.iterations;O.length<I;){b&&w.update(b),b=w.update(v).finalize(m),w.reset();for(var S=1;S<T;S++)b=w.finalize(b),w.reset();E.concat(b)}return E.sigBytes=I*4,E}});u.EvpKDF=function(v,m,b){return l.create(b).compute(v,m)}}(),a.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(n,e){(function(a,u,f){n.exports=u(requireCore(),requireEvpkdf())})(commonjsGlobal,function(a){a.lib.Cipher||function(u){var f=a,h=f.lib,p=h.Base,d=h.WordArray,y=h.BufferedBlockAlgorithm,l=f.enc;l.Utf8;var v=l.Base64,m=f.algo,b=m.EvpKDF,x=h.Cipher=y.extend({cfg:p.extend(),createEncryptor:function(D,R){return this.create(this._ENC_XFORM_MODE,D,R)},createDecryptor:function(D,R){return this.create(this._DEC_XFORM_MODE,D,R)},init:function(D,R,q){this.cfg=this.cfg.extend(q),this._xformMode=D,this._key=R,this.reset()},reset:function(){y.reset.call(this),this._doReset()},process:function(D){return this._append(D),this._process()},finalize:function(D){D&&this._append(D);var R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function D(R){return typeof R=="string"?Y:_}return function(R){return{encrypt:function(q,j,V){return D(j).encrypt(R,q,j,V)},decrypt:function(q,j,V){return D(j).decrypt(R,q,j,V)}}}}()});h.StreamCipher=x.extend({_doFinalize:function(){var D=this._process(!0);return D},blockSize:1});var w=f.mode={},E=h.BlockCipherMode=p.extend({createEncryptor:function(D,R){return this.Encryptor.create(D,R)},createDecryptor:function(D,R){return this.Decryptor.create(D,R)},init:function(D,R){this._cipher=D,this._iv=R}}),O=w.CBC=function(){var D=E.extend();D.Encryptor=D.extend({processBlock:function(q,j){var V=this._cipher,P=V.blockSize;R.call(this,q,j,P),V.encryptBlock(q,j),this._prevBlock=q.slice(j,j+P)}}),D.Decryptor=D.extend({processBlock:function(q,j){var V=this._cipher,P=V.blockSize,H=q.slice(j,j+P);V.decryptBlock(q,j),R.call(this,q,j,P),this._prevBlock=H}});function R(q,j,V){var P,H=this._iv;H?(P=H,this._iv=u):P=this._prevBlock;for(var K=0;K<V;K++)q[j+K]^=P[K]}return D}(),I=f.pad={},T=I.Pkcs7={pad:function(D,R){for(var q=R*4,j=q-D.sigBytes%q,V=j<<24|j<<16|j<<8|j,P=[],H=0;H<j;H+=4)P.push(V);var K=d.create(P,j);D.concat(K)},unpad:function(D){var R=D.words[D.sigBytes-1>>>2]&255;D.sigBytes-=R}};h.BlockCipher=x.extend({cfg:x.cfg.extend({mode:O,padding:T}),reset:function(){var D;x.reset.call(this);var R=this.cfg,q=R.iv,j=R.mode;this._xformMode==this._ENC_XFORM_MODE?D=j.createEncryptor:(D=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==D?this._mode.init(this,q&&q.words):(this._mode=D.call(j,this,q&&q.words),this._mode.__creator=D)},_doProcessBlock:function(D,R){this._mode.processBlock(D,R)},_doFinalize:function(){var D,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),D=this._process(!0)):(D=this._process(!0),R.unpad(D)),D},blockSize:128/32});var S=h.CipherParams=p.extend({init:function(D){this.mixIn(D)},toString:function(D){return(D||this.formatter).stringify(this)}}),$=f.format={},B=$.OpenSSL={stringify:function(D){var R,q=D.ciphertext,j=D.salt;return j?R=d.create([1398893684,1701076831]).concat(j).concat(q):R=q,R.toString(v)},parse:function(D){var R,q=v.parse(D),j=q.words;return j[0]==1398893684&&j[1]==1701076831&&(R=d.create(j.slice(2,4)),j.splice(0,4),q.sigBytes-=16),S.create({ciphertext:q,salt:R})}},_=h.SerializableCipher=p.extend({cfg:p.extend({format:B}),encrypt:function(D,R,q,j){j=this.cfg.extend(j);var V=D.createEncryptor(q,j),P=V.finalize(R),H=V.cfg;return S.create({ciphertext:P,key:q,iv:H.iv,algorithm:D,mode:H.mode,padding:H.padding,blockSize:D.blockSize,formatter:j.format})},decrypt:function(D,R,q,j){j=this.cfg.extend(j),R=this._parse(R,j.format);var V=D.createDecryptor(q,j).finalize(R.ciphertext);return V},_parse:function(D,R){return typeof D=="string"?R.parse(D,this):D}}),C=f.kdf={},N=C.OpenSSL={execute:function(D,R,q,j,V){if(j||(j=d.random(64/8)),V)var P=b.create({keySize:R+q,hasher:V}).compute(D,j);else var P=b.create({keySize:R+q}).compute(D,j);var H=d.create(P.words.slice(R),q*4);return P.sigBytes=R*4,S.create({key:P,iv:H,salt:j})}},Y=h.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:N}),encrypt:function(D,R,q,j){j=this.cfg.extend(j);var V=j.kdf.execute(q,D.keySize,D.ivSize,j.salt,j.hasher);j.iv=V.iv;var P=_.encrypt.call(this,D,R,V.key,j);return P.mixIn(V),P},decrypt:function(D,R,q,j){j=this.cfg.extend(j),R=this._parse(R,j.format);var V=j.kdf.execute(q,D.keySize,D.ivSize,R.salt,j.hasher);j.iv=V.iv;var P=_.decrypt.call(this,D,R,V.key,j);return P}})}()})}(cipherCore)),cipherCore.exports}(function(n,e){(function(a,u,f){n.exports=u(requireCore(),encBase64Exports,md5Exports,requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(a){return function(){var u=a,f=u.lib,h=f.BlockCipher,p=u.algo,d=[],y=[],l=[],v=[],m=[],b=[],x=[],w=[],E=[],O=[];(function(){for(var S=[],$=0;$<256;$++)$<128?S[$]=$<<1:S[$]=$<<1^283;for(var B=0,_=0,$=0;$<256;$++){var C=_^_<<1^_<<2^_<<3^_<<4;C=C>>>8^C&255^99,d[B]=C,y[C]=B;var N=S[B],Y=S[N],D=S[Y],R=S[C]*257^C*16843008;l[B]=R<<24|R>>>8,v[B]=R<<16|R>>>16,m[B]=R<<8|R>>>24,b[B]=R;var R=D*16843009^Y*65537^N*257^B*16843008;x[C]=R<<24|R>>>8,w[C]=R<<16|R>>>16,E[C]=R<<8|R>>>24,O[C]=R,B?(B=N^S[S[S[D^N]]],_^=S[S[_]]):B=_=1}})();var I=[0,1,2,4,8,16,32,64,128,27,54],T=p.AES=h.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var $=this._keyPriorReset=this._key,B=$.words,_=$.sigBytes/4,C=this._nRounds=_+6,N=(C+1)*4,Y=this._keySchedule=[],D=0;D<N;D++)D<_?Y[D]=B[D]:(S=Y[D-1],D%_?_>6&&D%_==4&&(S=d[S>>>24]<<24|d[S>>>16&255]<<16|d[S>>>8&255]<<8|d[S&255]):(S=S<<8|S>>>24,S=d[S>>>24]<<24|d[S>>>16&255]<<16|d[S>>>8&255]<<8|d[S&255],S^=I[D/_|0]<<24),Y[D]=Y[D-_]^S);for(var R=this._invKeySchedule=[],q=0;q<N;q++){var D=N-q;if(q%4)var S=Y[D];else var S=Y[D-4];q<4||D<=4?R[q]=S:R[q]=x[d[S>>>24]]^w[d[S>>>16&255]]^E[d[S>>>8&255]]^O[d[S&255]]}}},encryptBlock:function(S,$){this._doCryptBlock(S,$,this._keySchedule,l,v,m,b,d)},decryptBlock:function(S,$){var B=S[$+1];S[$+1]=S[$+3],S[$+3]=B,this._doCryptBlock(S,$,this._invKeySchedule,x,w,E,O,y);var B=S[$+1];S[$+1]=S[$+3],S[$+3]=B},_doCryptBlock:function(S,$,B,_,C,N,Y,D){for(var R=this._nRounds,q=S[$]^B[0],j=S[$+1]^B[1],V=S[$+2]^B[2],P=S[$+3]^B[3],H=4,K=1;K<R;K++){var k=_[q>>>24]^C[j>>>16&255]^N[V>>>8&255]^Y[P&255]^B[H++],W=_[j>>>24]^C[V>>>16&255]^N[P>>>8&255]^Y[q&255]^B[H++],Z=_[V>>>24]^C[P>>>16&255]^N[q>>>8&255]^Y[j&255]^B[H++],M=_[P>>>24]^C[q>>>16&255]^N[j>>>8&255]^Y[V&255]^B[H++];q=k,j=W,V=Z,P=M}var k=(D[q>>>24]<<24|D[j>>>16&255]<<16|D[V>>>8&255]<<8|D[P&255])^B[H++],W=(D[j>>>24]<<24|D[V>>>16&255]<<16|D[P>>>8&255]<<8|D[q&255])^B[H++],Z=(D[V>>>24]<<24|D[P>>>16&255]<<16|D[q>>>8&255]<<8|D[j&255])^B[H++],M=(D[P>>>24]<<24|D[q>>>16&255]<<16|D[j>>>8&255]<<8|D[V&255])^B[H++];S[$]=k,S[$+1]=W,S[$+2]=Z,S[$+3]=M},keySize:256/32});u.AES=h._createHelper(T)}(),a.AES})})(aes);var aesExports=aes.exports;const i=getDefaultExportFromCjs(aesExports);var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";function int2char(n){return BI_RM.charAt(n)}function op_and(n,e){return n&e}function op_or(n,e){return n|e}function op_xor(n,e){return n^e}function op_andnot(n,e){return n&~e}function lbit(n){if(n==0)return-1;var e=0;return n&65535||(n>>=16,e+=16),n&255||(n>>=8,e+=8),n&15||(n>>=4,e+=4),n&3||(n>>=2,e+=2),n&1||++e,e}function cbit(n){for(var e=0;n!=0;)n&=n-1,++e;return e}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";function hex2b64(n){var e,a,u="";for(e=0;e+3<=n.length;e+=3)a=parseInt(n.substring(e,e+3),16),u+=b64map.charAt(a>>6)+b64map.charAt(a&63);for(e+1==n.length?(a=parseInt(n.substring(e,e+1),16),u+=b64map.charAt(a<<2)):e+2==n.length&&(a=parseInt(n.substring(e,e+2),16),u+=b64map.charAt(a>>2)+b64map.charAt((a&3)<<4));(u.length&3)>0;)u+=b64pad;return u}function b64tohex(n){var e="",a,u=0,f=0;for(a=0;a<n.length&&n.charAt(a)!=b64pad;++a){var h=b64map.indexOf(n.charAt(a));h<0||(u==0?(e+=int2char(h>>2),f=h&3,u=1):u==1?(e+=int2char(f<<2|h>>4),f=h&15,u=2):u==2?(e+=int2char(f),e+=int2char(h>>2),f=h&3,u=3):(e+=int2char(f<<2|h>>4),e+=int2char(h&15),u=0))}return u==1&&(e+=int2char(f<<2)),e}var decoder$1,Hex={decode:function(n){var e;if(decoder$1===void 0){var a="0123456789ABCDEF",u=` \f
19
+ \r \xA0\u2028\u2029`;for(decoder$1={},e=0;e<16;++e)decoder$1[a.charAt(e)]=e;for(a=a.toLowerCase(),e=10;e<16;++e)decoder$1[a.charAt(e)]=e;for(e=0;e<u.length;++e)decoder$1[u.charAt(e)]=-1}var f=[],h=0,p=0;for(e=0;e<n.length;++e){var d=n.charAt(e);if(d=="=")break;if(d=decoder$1[d],d!=-1){if(d===void 0)throw new Error("Illegal character at offset "+e);h|=d,++p>=2?(f[f.length]=h,h=0,p=0):h<<=4}}if(p)throw new Error("Hex encoding incomplete: 4 bits missing");return f}},decoder,Base64={decode:function(n){var e;if(decoder===void 0){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=`= \f
20
+ \r \xA0\u2028\u2029`;for(decoder=Object.create(null),e=0;e<64;++e)decoder[a.charAt(e)]=e;for(decoder["-"]=62,decoder._=63,e=0;e<u.length;++e)decoder[u.charAt(e)]=-1}var f=[],h=0,p=0;for(e=0;e<n.length;++e){var d=n.charAt(e);if(d=="=")break;if(d=decoder[d],d!=-1){if(d===void 0)throw new Error("Illegal character at offset "+e);h|=d,++p>=4?(f[f.length]=h>>16,f[f.length]=h>>8&255,f[f.length]=h&255,h=0,p=0):h<<=6}}switch(p){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:f[f.length]=h>>10;break;case 3:f[f.length]=h>>16,f[f.length]=h>>8&255;break}return f},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var e=Base64.re.exec(n);if(e)if(e[1])n=e[1];else if(e[2])n=e[2];else throw new Error("RegExp out of sync");return Base64.decode(n)}},max=1e13,Int10=function(){function n(e){this.buf=[+e||0]}return n.prototype.mulAdd=function(e,a){var u=this.buf,f=u.length,h,p;for(h=0;h<f;++h)p=u[h]*e+a,p<max?a=0:(a=0|p/max,p-=a*max),u[h]=p;a>0&&(u[h]=a)},n.prototype.sub=function(e){var a=this.buf,u=a.length,f,h;for(f=0;f<u;++f)h=a[f]-e,h<0?(h+=max,e=1):e=0,a[f]=h;for(;a[a.length-1]===0;)a.pop()},n.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var a=this.buf,u=a[a.length-1].toString(),f=a.length-2;f>=0;--f)u+=(max+a[f]).toString().substring(1);return u},n.prototype.valueOf=function(){for(var e=this.buf,a=0,u=e.length-1;u>=0;--u)a=a*max+e[u];return a},n.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},n}(),ellipsis="\u2026",reTimeS=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,reTimeL=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function stringCut(n,e){return n.length>e&&(n=n.substring(0,e)+ellipsis),n}var Stream=function(){function n(e,a){this.hexDigits="0123456789ABCDEF",e instanceof n?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=a)}return n.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},n.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},n.prototype.hexDump=function(e,a,u){for(var f="",h=e;h<a;++h)if(f+=this.hexByte(this.get(h)),u!==!0)switch(h&15){case 7:f+=" ";break;case 15:f+=`
21
+ `;break;default:f+=" "}return f},n.prototype.isASCII=function(e,a){for(var u=e;u<a;++u){var f=this.get(u);if(f<32||f>176)return!1}return!0},n.prototype.parseStringISO=function(e,a){for(var u="",f=e;f<a;++f)u+=String.fromCharCode(this.get(f));return u},n.prototype.parseStringUTF=function(e,a){for(var u="",f=e;f<a;){var h=this.get(f++);h<128?u+=String.fromCharCode(h):h>191&&h<224?u+=String.fromCharCode((h&31)<<6|this.get(f++)&63):u+=String.fromCharCode((h&15)<<12|(this.get(f++)&63)<<6|this.get(f++)&63)}return u},n.prototype.parseStringBMP=function(e,a){for(var u="",f,h,p=e;p<a;)f=this.get(p++),h=this.get(p++),u+=String.fromCharCode(f<<8|h);return u},n.prototype.parseTime=function(e,a,u){var f=this.parseStringISO(e,a),h=(u?reTimeS:reTimeL).exec(f);return h?(u&&(h[1]=+h[1],h[1]+=+h[1]<70?2e3:1900),f=h[1]+"-"+h[2]+"-"+h[3]+" "+h[4],h[5]&&(f+=":"+h[5],h[6]&&(f+=":"+h[6],h[7]&&(f+="."+h[7]))),h[8]&&(f+=" UTC",h[8]!="Z"&&(f+=h[8],h[9]&&(f+=":"+h[9]))),f):"Unrecognized time: "+f},n.prototype.parseInteger=function(e,a){for(var u=this.get(e),f=u>127,h=f?255:0,p,d="";u==h&&++e<a;)u=this.get(e);if(p=a-e,p===0)return f?-1:0;if(p>4){for(d=u,p<<=3;!((+d^h)&128);)d=+d<<1,--p;d="("+p+` bit)
22
+ `}f&&(u=u-256);for(var y=new Int10(u),l=e+1;l<a;++l)y.mulAdd(256,this.get(l));return d+y.toString()},n.prototype.parseBitString=function(e,a,u){for(var f=this.get(e),h=(a-e-1<<3)-f,p="("+h+` bit)
23
+ `,d="",y=e+1;y<a;++y){for(var l=this.get(y),v=y==a-1?f:0,m=7;m>=v;--m)d+=l>>m&1?"1":"0";if(d.length>u)return p+stringCut(d,u)}return p+d},n.prototype.parseOctetString=function(e,a,u){if(this.isASCII(e,a))return stringCut(this.parseStringISO(e,a),u);var f=a-e,h="("+f+` byte)
24
+ `;u/=2,f>u&&(a=e+u);for(var p=e;p<a;++p)h+=this.hexByte(this.get(p));return f>u&&(h+=ellipsis),h},n.prototype.parseOID=function(e,a,u){for(var f="",h=new Int10,p=0,d=e;d<a;++d){var y=this.get(d);if(h.mulAdd(128,y&127),p+=7,!(y&128)){if(f==="")if(h=h.simplify(),h instanceof Int10)h.sub(80),f="2."+h.toString();else{var l=h<80?h<40?0:1:2;f=l+"."+(h-l*40)}else f+="."+h.toString();if(f.length>u)return stringCut(f,u);h=new Int10,p=0}}return p>0&&(f+=".incomplete"),f},n}(),ASN1=function(){function n(e,a,u,f,h){if(!(f instanceof ASN1Tag))throw new Error("Invalid tag value.");this.stream=e,this.header=a,this.length=u,this.tag=f,this.sub=h}return n.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},n.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var a=this.posContent(),u=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(a,a+u,e);switch(this.tag.tagNumber){case 1:return this.stream.get(a)===0?"false":"true";case 2:return this.stream.parseInteger(a,a+u);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(a,a+u,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(a,a+u,e);case 6:return this.stream.parseOID(a,a+u,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return stringCut(this.stream.parseStringUTF(a,a+u),e);case 18:case 19:case 20:case 21:case 22:case 26:return stringCut(this.stream.parseStringISO(a,a+u),e);case 30:return stringCut(this.stream.parseStringBMP(a,a+u),e);case 23:case 24:return this.stream.parseTime(a,a+u,this.tag.tagNumber==23)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(e){e===void 0&&(e="");var a=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(a+="+"),a+=this.length,this.tag.tagConstructed?a+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(a+=" (encapsulates)"),a+=`
25
+ `,this.sub!==null){e+=" ";for(var u=0,f=this.sub.length;u<f;++u)a+=this.sub[u].toPrettyString(e)}return a},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(e){var a=e.get(),u=a&127;if(u==a)return u;if(u>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(u===0)return null;a=0;for(var f=0;f<u;++f)a=a*256+e.get();return a},n.prototype.getHexStringValue=function(){var e=this.toHexString(),a=this.header*2,u=this.length*2;return e.substr(a,u)},n.decode=function(e){var a;e instanceof Stream?a=e:a=new Stream(e,0);var u=new Stream(a),f=new ASN1Tag(a),h=n.decodeLength(a),p=a.pos,d=p-u.pos,y=null,l=function(){var m=[];if(h!==null){for(var b=p+h;a.pos<b;)m[m.length]=n.decode(a);if(a.pos!=b)throw new Error("Content size is not correct for container starting at offset "+p)}else try{for(;;){var x=n.decode(a);if(x.tag.isEOC())break;m[m.length]=x}h=p-a.pos}catch(w){throw new Error("Exception while decoding undefined length content: "+w)}return m};if(f.tagConstructed)y=l();else if(f.isUniversal()&&(f.tagNumber==3||f.tagNumber==4))try{if(f.tagNumber==3&&a.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");y=l();for(var v=0;v<y.length;++v)if(y[v].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{y=null}if(y===null){if(h===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+p);a.pos=p+Math.abs(h)}return new n(u,d,h,f,y)},n}(),ASN1Tag=function(){function n(e){var a=e.get();if(this.tagClass=a>>6,this.tagConstructed=(a&32)!==0,this.tagNumber=a&31,this.tagNumber==31){var u=new Int10;do a=e.get(),u.mulAdd(128,a&127);while(a&128);this.tagNumber=u.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n}(),dbits,canary=0xdeadbeefcafe,j_lm=(canary&16777215)==15715070,lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],lplim=(1<<26)/lowprimes[lowprimes.length-1],BigInteger=function(){function n(e,a,u){e!=null&&(typeof e=="number"?this.fromNumber(e,a,u):a==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,a))}return n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var a;if(e==16)a=4;else if(e==8)a=3;else if(e==2)a=1;else if(e==32)a=5;else if(e==4)a=2;else return this.toRadix(e);var u=(1<<a)-1,f,h=!1,p="",d=this.t,y=this.DB-d*this.DB%a;if(d-- >0)for(y<this.DB&&(f=this[d]>>y)>0&&(h=!0,p=int2char(f));d>=0;)y<a?(f=(this[d]&(1<<y)-1)<<a-y,f|=this[--d]>>(y+=this.DB-a)):(f=this[d]>>(y-=a)&u,y<=0&&(y+=this.DB,--d)),f>0&&(h=!0),h&&(p+=int2char(f));return h?p:"0"},n.prototype.negate=function(){var e=nbi();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var a=this.s-e.s;if(a!=0)return a;var u=this.t;if(a=u-e.t,a!=0)return this.s<0?-a:a;for(;--u>=0;)if((a=this[u]-e[u])!=0)return a;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var a=nbi();return this.abs().divRemTo(e,null,a),this.s<0&&a.compareTo(n.ZERO)>0&&e.subTo(a,a),a},n.prototype.modPowInt=function(e,a){var u;return e<256||a.isEven()?u=new Classic(a):u=new Montgomery(a),this.exp(e,u)},n.prototype.clone=function(){var e=nbi();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,a=[];a[0]=this.s;var u=this.DB-e*this.DB%8,f,h=0;if(e-- >0)for(u<this.DB&&(f=this[e]>>u)!=(this.s&this.DM)>>u&&(a[h++]=f|this.s<<this.DB-u);e>=0;)u<8?(f=(this[e]&(1<<u)-1)<<8-u,f|=this[--e]>>(u+=this.DB-8)):(f=this[e]>>(u-=8)&255,u<=0&&(u+=this.DB,--e)),f&128&&(f|=-256),h==0&&(this.s&128)!=(f&128)&&++h,(h>0||f!=this.s)&&(a[h++]=f);return a},n.prototype.equals=function(e){return this.compareTo(e)==0},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var a=nbi();return this.bitwiseTo(e,op_and,a),a},n.prototype.or=function(e){var a=nbi();return this.bitwiseTo(e,op_or,a),a},n.prototype.xor=function(e){var a=nbi();return this.bitwiseTo(e,op_xor,a),a},n.prototype.andNot=function(e){var a=nbi();return this.bitwiseTo(e,op_andnot,a),a},n.prototype.not=function(){for(var e=nbi(),a=0;a<this.t;++a)e[a]=this.DM&~this[a];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var a=nbi();return e<0?this.rShiftTo(-e,a):this.lShiftTo(e,a),a},n.prototype.shiftRight=function(e){var a=nbi();return e<0?this.lShiftTo(-e,a):this.rShiftTo(e,a),a},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+lbit(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,a=this.s&this.DM,u=0;u<this.t;++u)e+=cbit(this[u]^a);return e},n.prototype.testBit=function(e){var a=Math.floor(e/this.DB);return a>=this.t?this.s!=0:(this[a]&1<<e%this.DB)!=0},n.prototype.setBit=function(e){return this.changeBit(e,op_or)},n.prototype.clearBit=function(e){return this.changeBit(e,op_andnot)},n.prototype.flipBit=function(e){return this.changeBit(e,op_xor)},n.prototype.add=function(e){var a=nbi();return this.addTo(e,a),a},n.prototype.subtract=function(e){var a=nbi();return this.subTo(e,a),a},n.prototype.multiply=function(e){var a=nbi();return this.multiplyTo(e,a),a},n.prototype.divide=function(e){var a=nbi();return this.divRemTo(e,a,null),a},n.prototype.remainder=function(e){var a=nbi();return this.divRemTo(e,null,a),a},n.prototype.divideAndRemainder=function(e){var a=nbi(),u=nbi();return this.divRemTo(e,a,u),[a,u]},n.prototype.modPow=function(e,a){var u=e.bitLength(),f,h=nbv(1),p;if(u<=0)return h;u<18?f=1:u<48?f=3:u<144?f=4:u<768?f=5:f=6,u<8?p=new Classic(a):a.isEven()?p=new Barrett(a):p=new Montgomery(a);var d=[],y=3,l=f-1,v=(1<<f)-1;if(d[1]=p.convert(this),f>1){var m=nbi();for(p.sqrTo(d[1],m);y<=v;)d[y]=nbi(),p.mulTo(m,d[y-2],d[y]),y+=2}var b=e.t-1,x,w=!0,E=nbi(),O;for(u=nbits(e[b])-1;b>=0;){for(u>=l?x=e[b]>>u-l&v:(x=(e[b]&(1<<u+1)-1)<<l-u,b>0&&(x|=e[b-1]>>this.DB+u-l)),y=f;!(x&1);)x>>=1,--y;if((u-=y)<0&&(u+=this.DB,--b),w)d[x].copyTo(h),w=!1;else{for(;y>1;)p.sqrTo(h,E),p.sqrTo(E,h),y-=2;y>0?p.sqrTo(h,E):(O=h,h=E,E=O),p.mulTo(E,d[x],h)}for(;b>=0&&!(e[b]&1<<u);)p.sqrTo(h,E),O=h,h=E,E=O,--u<0&&(u=this.DB-1,--b)}return p.revert(h)},n.prototype.modInverse=function(e){var a=e.isEven();if(this.isEven()&&a||e.signum()==0)return n.ZERO;for(var u=e.clone(),f=this.clone(),h=nbv(1),p=nbv(0),d=nbv(0),y=nbv(1);u.signum()!=0;){for(;u.isEven();)u.rShiftTo(1,u),a?((!h.isEven()||!p.isEven())&&(h.addTo(this,h),p.subTo(e,p)),h.rShiftTo(1,h)):p.isEven()||p.subTo(e,p),p.rShiftTo(1,p);for(;f.isEven();)f.rShiftTo(1,f),a?((!d.isEven()||!y.isEven())&&(d.addTo(this,d),y.subTo(e,y)),d.rShiftTo(1,d)):y.isEven()||y.subTo(e,y),y.rShiftTo(1,y);u.compareTo(f)>=0?(u.subTo(f,u),a&&h.subTo(d,h),p.subTo(y,p)):(f.subTo(u,f),a&&d.subTo(h,d),y.subTo(p,y))}if(f.compareTo(n.ONE)!=0)return n.ZERO;if(y.compareTo(e)>=0)return y.subtract(e);if(y.signum()<0)y.addTo(e,y);else return y;return y.signum()<0?y.add(e):y},n.prototype.pow=function(e){return this.exp(e,new NullExp)},n.prototype.gcd=function(e){var a=this.s<0?this.negate():this.clone(),u=e.s<0?e.negate():e.clone();if(a.compareTo(u)<0){var f=a;a=u,u=f}var h=a.getLowestSetBit(),p=u.getLowestSetBit();if(p<0)return a;for(h<p&&(p=h),p>0&&(a.rShiftTo(p,a),u.rShiftTo(p,u));a.signum()>0;)(h=a.getLowestSetBit())>0&&a.rShiftTo(h,a),(h=u.getLowestSetBit())>0&&u.rShiftTo(h,u),a.compareTo(u)>=0?(a.subTo(u,a),a.rShiftTo(1,a)):(u.subTo(a,u),u.rShiftTo(1,u));return p>0&&u.lShiftTo(p,u),u},n.prototype.isProbablePrime=function(e){var a,u=this.abs();if(u.t==1&&u[0]<=lowprimes[lowprimes.length-1]){for(a=0;a<lowprimes.length;++a)if(u[0]==lowprimes[a])return!0;return!1}if(u.isEven())return!1;for(a=1;a<lowprimes.length;){for(var f=lowprimes[a],h=a+1;h<lowprimes.length&&f<lplim;)f*=lowprimes[h++];for(f=u.modInt(f);a<h;)if(f%lowprimes[a++]==0)return!1}return u.millerRabin(e)},n.prototype.copyTo=function(e){for(var a=this.t-1;a>=0;--a)e[a]=this[a];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,a){var u;if(a==16)u=4;else if(a==8)u=3;else if(a==256)u=8;else if(a==2)u=1;else if(a==32)u=5;else if(a==4)u=2;else{this.fromRadix(e,a);return}this.t=0,this.s=0;for(var f=e.length,h=!1,p=0;--f>=0;){var d=u==8?+e[f]&255:intAt(e,f);if(d<0){e.charAt(f)=="-"&&(h=!0);continue}h=!1,p==0?this[this.t++]=d:p+u>this.DB?(this[this.t-1]|=(d&(1<<this.DB-p)-1)<<p,this[this.t++]=d>>this.DB-p):this[this.t-1]|=d<<p,p+=u,p>=this.DB&&(p-=this.DB)}u==8&&+e[0]&128&&(this.s=-1,p>0&&(this[this.t-1]|=(1<<this.DB-p)-1<<p)),this.clamp(),h&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,a){var u;for(u=this.t-1;u>=0;--u)a[u+e]=this[u];for(u=e-1;u>=0;--u)a[u]=0;a.t=this.t+e,a.s=this.s},n.prototype.drShiftTo=function(e,a){for(var u=e;u<this.t;++u)a[u-e]=this[u];a.t=Math.max(this.t-e,0),a.s=this.s},n.prototype.lShiftTo=function(e,a){for(var u=e%this.DB,f=this.DB-u,h=(1<<f)-1,p=Math.floor(e/this.DB),d=this.s<<u&this.DM,y=this.t-1;y>=0;--y)a[y+p+1]=this[y]>>f|d,d=(this[y]&h)<<u;for(var y=p-1;y>=0;--y)a[y]=0;a[p]=d,a.t=this.t+p+1,a.s=this.s,a.clamp()},n.prototype.rShiftTo=function(e,a){a.s=this.s;var u=Math.floor(e/this.DB);if(u>=this.t){a.t=0;return}var f=e%this.DB,h=this.DB-f,p=(1<<f)-1;a[0]=this[u]>>f;for(var d=u+1;d<this.t;++d)a[d-u-1]|=(this[d]&p)<<h,a[d-u]=this[d]>>f;f>0&&(a[this.t-u-1]|=(this.s&p)<<h),a.t=this.t-u,a.clamp()},n.prototype.subTo=function(e,a){for(var u=0,f=0,h=Math.min(e.t,this.t);u<h;)f+=this[u]-e[u],a[u++]=f&this.DM,f>>=this.DB;if(e.t<this.t){for(f-=e.s;u<this.t;)f+=this[u],a[u++]=f&this.DM,f>>=this.DB;f+=this.s}else{for(f+=this.s;u<e.t;)f-=e[u],a[u++]=f&this.DM,f>>=this.DB;f-=e.s}a.s=f<0?-1:0,f<-1?a[u++]=this.DV+f:f>0&&(a[u++]=f),a.t=u,a.clamp()},n.prototype.multiplyTo=function(e,a){var u=this.abs(),f=e.abs(),h=u.t;for(a.t=h+f.t;--h>=0;)a[h]=0;for(h=0;h<f.t;++h)a[h+u.t]=u.am(0,f[h],a,h,0,u.t);a.s=0,a.clamp(),this.s!=e.s&&n.ZERO.subTo(a,a)},n.prototype.squareTo=function(e){for(var a=this.abs(),u=e.t=2*a.t;--u>=0;)e[u]=0;for(u=0;u<a.t-1;++u){var f=a.am(u,a[u],e,2*u,0,1);(e[u+a.t]+=a.am(u+1,2*a[u],e,2*u+1,f,a.t-u-1))>=a.DV&&(e[u+a.t]-=a.DV,e[u+a.t+1]=1)}e.t>0&&(e[e.t-1]+=a.am(u,a[u],e,2*u,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,a,u){var f=e.abs();if(!(f.t<=0)){var h=this.abs();if(h.t<f.t){a?.fromInt(0),u!=null&&this.copyTo(u);return}u==null&&(u=nbi());var p=nbi(),d=this.s,y=e.s,l=this.DB-nbits(f[f.t-1]);l>0?(f.lShiftTo(l,p),h.lShiftTo(l,u)):(f.copyTo(p),h.copyTo(u));var v=p.t,m=p[v-1];if(m!=0){var b=m*(1<<this.F1)+(v>1?p[v-2]>>this.F2:0),x=this.FV/b,w=(1<<this.F1)/b,E=1<<this.F2,O=u.t,I=O-v,T=a??nbi();for(p.dlShiftTo(I,T),u.compareTo(T)>=0&&(u[u.t++]=1,u.subTo(T,u)),n.ONE.dlShiftTo(v,T),T.subTo(p,p);p.t<v;)p[p.t++]=0;for(;--I>=0;){var S=u[--O]==m?this.DM:Math.floor(u[O]*x+(u[O-1]+E)*w);if((u[O]+=p.am(0,S,u,I,0,v))<S)for(p.dlShiftTo(I,T),u.subTo(T,u);u[O]<--S;)u.subTo(T,u)}a!=null&&(u.drShiftTo(v,a),d!=y&&n.ZERO.subTo(a,a)),u.t=v,u.clamp(),l>0&&u.rShiftTo(l,u),d<0&&n.ZERO.subTo(u,u)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var a=e&3;return a=a*(2-(e&15)*a)&15,a=a*(2-(e&255)*a)&255,a=a*(2-((e&65535)*a&65535))&65535,a=a*(2-e*a%this.DV)%this.DV,a>0?this.DV-a:-a},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(e,a){if(e>4294967295||e<1)return n.ONE;var u=nbi(),f=nbi(),h=a.convert(this),p=nbits(e)-1;for(h.copyTo(u);--p>=0;)if(a.sqrTo(u,f),(e&1<<p)>0)a.mulTo(f,h,u);else{var d=u;u=f,f=d}return a.revert(u)},n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var a=this.chunkSize(e),u=Math.pow(e,a),f=nbv(u),h=nbi(),p=nbi(),d="";for(this.divRemTo(f,h,p);h.signum()>0;)d=(u+p.intValue()).toString(e).substr(1)+d,h.divRemTo(f,h,p);return p.intValue().toString(e)+d},n.prototype.fromRadix=function(e,a){this.fromInt(0),a==null&&(a=10);for(var u=this.chunkSize(a),f=Math.pow(a,u),h=!1,p=0,d=0,y=0;y<e.length;++y){var l=intAt(e,y);if(l<0){e.charAt(y)=="-"&&this.signum()==0&&(h=!0);continue}d=a*d+l,++p>=u&&(this.dMultiply(f),this.dAddOffset(d,0),p=0,d=0)}p>0&&(this.dMultiply(Math.pow(a,p)),this.dAddOffset(d,0)),h&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,a,u){if(typeof a=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,u),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(a);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var f=[],h=e&7;f.length=(e>>3)+1,a.nextBytes(f),h>0?f[0]&=(1<<h)-1:f[0]=0,this.fromString(f,256)}},n.prototype.bitwiseTo=function(e,a,u){var f,h,p=Math.min(e.t,this.t);for(f=0;f<p;++f)u[f]=a(this[f],e[f]);if(e.t<this.t){for(h=e.s&this.DM,f=p;f<this.t;++f)u[f]=a(this[f],h);u.t=this.t}else{for(h=this.s&this.DM,f=p;f<e.t;++f)u[f]=a(h,e[f]);u.t=e.t}u.s=a(this.s,e.s),u.clamp()},n.prototype.changeBit=function(e,a){var u=n.ONE.shiftLeft(e);return this.bitwiseTo(u,a,u),u},n.prototype.addTo=function(e,a){for(var u=0,f=0,h=Math.min(e.t,this.t);u<h;)f+=this[u]+e[u],a[u++]=f&this.DM,f>>=this.DB;if(e.t<this.t){for(f+=e.s;u<this.t;)f+=this[u],a[u++]=f&this.DM,f>>=this.DB;f+=this.s}else{for(f+=this.s;u<e.t;)f+=e[u],a[u++]=f&this.DM,f>>=this.DB;f+=e.s}a.s=f<0?-1:0,f>0?a[u++]=f:f<-1&&(a[u++]=this.DV+f),a.t=u,a.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,a){if(e!=0){for(;this.t<=a;)this[this.t++]=0;for(this[a]+=e;this[a]>=this.DV;)this[a]-=this.DV,++a>=this.t&&(this[this.t++]=0),++this[a]}},n.prototype.multiplyLowerTo=function(e,a,u){var f=Math.min(this.t+e.t,a);for(u.s=0,u.t=f;f>0;)u[--f]=0;for(var h=u.t-this.t;f<h;++f)u[f+this.t]=this.am(0,e[f],u,f,0,this.t);for(var h=Math.min(e.t,a);f<h;++f)this.am(0,e[f],u,f,0,a-f);u.clamp()},n.prototype.multiplyUpperTo=function(e,a,u){--a;var f=u.t=this.t+e.t-a;for(u.s=0;--f>=0;)u[f]=0;for(f=Math.max(a-this.t,0);f<e.t;++f)u[this.t+f-a]=this.am(a-f,e[f],u,0,0,this.t+f-a);u.clamp(),u.drShiftTo(1,u)},n.prototype.modInt=function(e){if(e<=0)return 0;var a=this.DV%e,u=this.s<0?e-1:0;if(this.t>0)if(a==0)u=this[0]%e;else for(var f=this.t-1;f>=0;--f)u=(a*u+this[f])%e;return u},n.prototype.millerRabin=function(e){var a=this.subtract(n.ONE),u=a.getLowestSetBit();if(u<=0)return!1;var f=a.shiftRight(u);e=e+1>>1,e>lowprimes.length&&(e=lowprimes.length);for(var h=nbi(),p=0;p<e;++p){h.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var d=h.modPow(f,this);if(d.compareTo(n.ONE)!=0&&d.compareTo(a)!=0){for(var y=1;y++<u&&d.compareTo(a)!=0;)if(d=d.modPowInt(2,this),d.compareTo(n.ONE)==0)return!1;if(d.compareTo(a)!=0)return!1}}return!0},n.prototype.square=function(){var e=nbi();return this.squareTo(e),e},n.prototype.gcda=function(e,a){var u=this.s<0?this.negate():this.clone(),f=e.s<0?e.negate():e.clone();if(u.compareTo(f)<0){var h=u;u=f,f=h}var p=u.getLowestSetBit(),d=f.getLowestSetBit();if(d<0){a(u);return}p<d&&(d=p),d>0&&(u.rShiftTo(d,u),f.rShiftTo(d,f));var y=function(){(p=u.getLowestSetBit())>0&&u.rShiftTo(p,u),(p=f.getLowestSetBit())>0&&f.rShiftTo(p,f),u.compareTo(f)>=0?(u.subTo(f,u),u.rShiftTo(1,u)):(f.subTo(u,f),f.rShiftTo(1,f)),u.signum()>0?setTimeout(y,0):(d>0&&f.lShiftTo(d,f),setTimeout(function(){a(f)},0))};setTimeout(y,10)},n.prototype.fromNumberAsync=function(e,a,u,f){if(typeof a=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,u),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);var h=this,p=function(){h.dAddOffset(2,0),h.bitLength()>e&&h.subTo(n.ONE.shiftLeft(e-1),h),h.isProbablePrime(a)?setTimeout(function(){f()},0):setTimeout(p,0)};setTimeout(p,0)}else{var d=[],y=e&7;d.length=(e>>3)+1,a.nextBytes(d),y>0?d[0]&=(1<<y)-1:d[0]=0,this.fromString(d,256)}},n}(),NullExp=function(){function n(){}return n.prototype.convert=function(e){return e},n.prototype.revert=function(e){return e},n.prototype.mulTo=function(e,a,u){e.multiplyTo(a,u)},n.prototype.sqrTo=function(e,a){e.squareTo(a)},n}(),Classic=function(){function n(e){this.m=e}return n.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},n.prototype.mulTo=function(e,a,u){e.multiplyTo(a,u),this.reduce(u)},n.prototype.sqrTo=function(e,a){e.squareTo(a),this.reduce(a)},n}(),Montgomery=function(){function n(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return n.prototype.convert=function(e){var a=nbi();return e.abs().dlShiftTo(this.m.t,a),a.divRemTo(this.m,null,a),e.s<0&&a.compareTo(BigInteger.ZERO)>0&&this.m.subTo(a,a),a},n.prototype.revert=function(e){var a=nbi();return e.copyTo(a),this.reduce(a),a},n.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var a=0;a<this.m.t;++a){var u=e[a]&32767,f=u*this.mpl+((u*this.mph+(e[a]>>15)*this.mpl&this.um)<<15)&e.DM;for(u=a+this.m.t,e[u]+=this.m.am(0,f,e,a,0,this.m.t);e[u]>=e.DV;)e[u]-=e.DV,e[++u]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},n.prototype.mulTo=function(e,a,u){e.multiplyTo(a,u),this.reduce(u)},n.prototype.sqrTo=function(e,a){e.squareTo(a),this.reduce(a)},n}(),Barrett=function(){function n(e){this.m=e,this.r2=nbi(),this.q3=nbi(),BigInteger.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return n.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var a=nbi();return e.copyTo(a),this.reduce(a),a},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},n.prototype.mulTo=function(e,a,u){e.multiplyTo(a,u),this.reduce(u)},n.prototype.sqrTo=function(e,a){e.squareTo(a),this.reduce(a)},n}();function nbi(){return new BigInteger(null)}function parseBigInt(n,e){return new BigInteger(n,e)}var inBrowser=typeof navigator<"u";inBrowser&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=function(e,a,u,f,h,p){for(var d=a&32767,y=a>>15;--p>=0;){var l=this[e]&32767,v=this[e++]>>15,m=y*l+v*d;l=d*l+((m&32767)<<15)+u[f]+(h&1073741823),h=(l>>>30)+(m>>>15)+y*v+(h>>>30),u[f++]=l&1073741823}return h},dbits=30):inBrowser&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=function(e,a,u,f,h,p){for(;--p>=0;){var d=a*this[e++]+u[f]+h;h=Math.floor(d/67108864),u[f++]=d&67108863}return h},dbits=26):(BigInteger.prototype.am=function(e,a,u,f,h,p){for(var d=a&16383,y=a>>14;--p>=0;){var l=this[e]&16383,v=this[e++]>>14,m=y*l+v*d;l=d*l+((m&16383)<<14)+u[f]+h,h=(l>>28)+(m>>14)+y*v,u[f++]=l&268435455}return h},dbits=28),BigInteger.prototype.DB=dbits,BigInteger.prototype.DM=(1<<dbits)-1,BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP),BigInteger.prototype.F1=BI_FP-dbits,BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RC=[],rr,vv;for(rr=48,vv=0;vv<=9;++vv)BI_RC[rr++]=vv;for(rr=97,vv=10;vv<36;++vv)BI_RC[rr++]=vv;for(rr=65,vv=10;vv<36;++vv)BI_RC[rr++]=vv;function intAt(n,e){var a=BI_RC[n.charCodeAt(e)];return a??-1}function nbv(n){var e=nbi();return e.fromInt(n),e}function nbits(n){var e=1,a;return(a=n>>>16)!=0&&(n=a,e+=16),(a=n>>8)!=0&&(n=a,e+=8),(a=n>>4)!=0&&(n=a,e+=4),(a=n>>2)!=0&&(n=a,e+=2),(a=n>>1)!=0&&(n=a,e+=1),e}BigInteger.ZERO=nbv(0),BigInteger.ONE=nbv(1);var Arcfour=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(e){var a,u,f;for(a=0;a<256;++a)this.S[a]=a;for(u=0,a=0;a<256;++a)u=u+this.S[a]+e[a%e.length]&255,f=this.S[a],this.S[a]=this.S[u],this.S[u]=f;this.i=0,this.j=0},n.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},n}();function prng_newstate(){return new Arcfour}var rng_psize=256,rng_state,rng_pool=null,rng_pptr;if(rng_pool==null){rng_pool=[],rng_pptr=0;var t=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),t=0;t<z.length;++t)rng_pool[rng_pptr++]=z[t]&255}var count=0,onMouseMoveListener_1=function(n){if(count=count||0,count>=256||rng_pptr>=rng_psize){window.removeEventListener?window.removeEventListener("mousemove",onMouseMoveListener_1,!1):window.detachEvent&&window.detachEvent("onmousemove",onMouseMoveListener_1);return}try{var e=n.x+n.y;rng_pool[rng_pptr++]=e&255,count+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",onMouseMoveListener_1,!1):window.attachEvent&&window.attachEvent("onmousemove",onMouseMoveListener_1))}function rng_get_byte(){if(rng_state==null){for(rng_state=prng_newstate();rng_pptr<rng_psize;){var n=Math.floor(65536*Math.random());rng_pool[rng_pptr++]=n&255}for(rng_state.init(rng_pool),rng_pptr=0;rng_pptr<rng_pool.length;++rng_pptr)rng_pool[rng_pptr]=0;rng_pptr=0}return rng_state.next()}var SecureRandom=function(){function n(){}return n.prototype.nextBytes=function(e){for(var a=0;a<e.length;++a)e[a]=rng_get_byte()},n}();function pkcs1pad1(n,e){if(e<n.length+22)return console.error("Message too long for RSA"),null;for(var a=e-n.length-6,u="",f=0;f<a;f+=2)u+="ff";var h="0001"+u+"00"+n;return parseBigInt(h,16)}function pkcs1pad2(n,e){if(e<n.length+11)return console.error("Message too long for RSA"),null;for(var a=[],u=n.length-1;u>=0&&e>0;){var f=n.charCodeAt(u--);f<128?a[--e]=f:f>127&&f<2048?(a[--e]=f&63|128,a[--e]=f>>6|192):(a[--e]=f&63|128,a[--e]=f>>6&63|128,a[--e]=f>>12|224)}a[--e]=0;for(var h=new SecureRandom,p=[];e>2;){for(p[0]=0;p[0]==0;)h.nextBytes(p);a[--e]=p[0]}return a[--e]=2,a[--e]=0,new BigInteger(a)}var RSAKey=function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var a=e.mod(this.p).modPow(this.dmp1,this.p),u=e.mod(this.q).modPow(this.dmq1,this.q);a.compareTo(u)<0;)a=a.add(this.p);return a.subtract(u).multiply(this.coeff).mod(this.p).multiply(this.q).add(u)},n.prototype.setPublic=function(e,a){e!=null&&a!=null&&e.length>0&&a.length>0?(this.n=parseBigInt(e,16),this.e=parseInt(a,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(e){var a=this.n.bitLength()+7>>3,u=pkcs1pad2(e,a);if(u==null)return null;var f=this.doPublic(u);if(f==null)return null;for(var h=f.toString(16),p=h.length,d=0;d<a*2-p;d++)h="0"+h;return h},n.prototype.setPrivate=function(e,a,u){e!=null&&a!=null&&e.length>0&&a.length>0?(this.n=parseBigInt(e,16),this.e=parseInt(a,16),this.d=parseBigInt(u,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(e,a,u,f,h,p,d,y){e!=null&&a!=null&&e.length>0&&a.length>0?(this.n=parseBigInt(e,16),this.e=parseInt(a,16),this.d=parseBigInt(u,16),this.p=parseBigInt(f,16),this.q=parseBigInt(h,16),this.dmp1=parseBigInt(p,16),this.dmq1=parseBigInt(d,16),this.coeff=parseBigInt(y,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(e,a){var u=new SecureRandom,f=e>>1;this.e=parseInt(a,16);for(var h=new BigInteger(a,16);;){for(;this.p=new BigInteger(e-f,1,u),!(this.p.subtract(BigInteger.ONE).gcd(h).compareTo(BigInteger.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new BigInteger(f,1,u),!(this.q.subtract(BigInteger.ONE).gcd(h).compareTo(BigInteger.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var p=this.p;this.p=this.q,this.q=p}var d=this.p.subtract(BigInteger.ONE),y=this.q.subtract(BigInteger.ONE),l=d.multiply(y);if(l.gcd(h).compareTo(BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=h.modInverse(l),this.dmp1=this.d.mod(d),this.dmq1=this.d.mod(y),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(e){var a=parseBigInt(e,16),u=this.doPrivate(a);return u==null?null:pkcs1unpad2(u,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(e,a,u){var f=new SecureRandom,h=e>>1;this.e=parseInt(a,16);var p=new BigInteger(a,16),d=this,y=function(){var l=function(){if(d.p.compareTo(d.q)<=0){var b=d.p;d.p=d.q,d.q=b}var x=d.p.subtract(BigInteger.ONE),w=d.q.subtract(BigInteger.ONE),E=x.multiply(w);E.gcd(p).compareTo(BigInteger.ONE)==0?(d.n=d.p.multiply(d.q),d.d=p.modInverse(E),d.dmp1=d.d.mod(x),d.dmq1=d.d.mod(w),d.coeff=d.q.modInverse(d.p),setTimeout(function(){u()},0)):setTimeout(y,0)},v=function(){d.q=nbi(),d.q.fromNumberAsync(h,1,f,function(){d.q.subtract(BigInteger.ONE).gcda(p,function(b){b.compareTo(BigInteger.ONE)==0&&d.q.isProbablePrime(10)?setTimeout(l,0):setTimeout(v,0)})})},m=function(){d.p=nbi(),d.p.fromNumberAsync(e-h,1,f,function(){d.p.subtract(BigInteger.ONE).gcda(p,function(b){b.compareTo(BigInteger.ONE)==0&&d.p.isProbablePrime(10)?setTimeout(v,0):setTimeout(m,0)})})};setTimeout(m,0)};setTimeout(y,0)},n.prototype.sign=function(e,a,u){var f=getDigestHeader(u),h=f+a(e).toString(),p=pkcs1pad1(h,this.n.bitLength()/4);if(p==null)return null;var d=this.doPrivate(p);if(d==null)return null;var y=d.toString(16);return y.length&1?"0"+y:y},n.prototype.verify=function(e,a,u){var f=parseBigInt(a,16),h=this.doPublic(f);if(h==null)return null;var p=h.toString(16).replace(/^1f+00/,""),d=removeDigestHeader(p);return d==u(e).toString()},n}();function pkcs1unpad2(n,e){for(var a=n.toByteArray(),u=0;u<a.length&&a[u]==0;)++u;if(a.length-u!=e-1||a[u]!=2)return null;for(++u;a[u]!=0;)if(++u>=a.length)return null;for(var f="";++u<a.length;){var h=a[u]&255;h<128?f+=String.fromCharCode(h):h>191&&h<224?(f+=String.fromCharCode((h&31)<<6|a[u+1]&63),++u):(f+=String.fromCharCode((h&15)<<12|(a[u+1]&63)<<6|a[u+2]&63),u+=2)}return f}var DIGEST_HEADERS={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function getDigestHeader(n){return DIGEST_HEADERS[n]||""}function removeDigestHeader(n){for(var e in DIGEST_HEADERS)if(DIGEST_HEADERS.hasOwnProperty(e)){var a=DIGEST_HEADERS[e],u=a.length;if(n.substr(0,u)==a)return n.substr(u)}return n}/*!
26
+ Copyright (c) 2011, Yahoo! Inc. All rights reserved.
27
+ Code licensed under the BSD License:
28
+ http://developer.yahoo.com/yui/license.html
29
+ version: 2.9.0
30
+ */var YAHOO={};YAHOO.lang={extend:function(n,e,a){if(!e||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var u=function(){};if(u.prototype=e.prototype,n.prototype=new u,n.prototype.constructor=n,n.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),a){var f;for(f in a)n.prototype[f]=a[f];var h=function(){},p=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(h=function(d,y){for(f=0;f<p.length;f=f+1){var l=p[f],v=y[l];typeof v=="function"&&v!=Object.prototype[l]&&(d[l]=v)}})}catch{}h(n.prototype,a)}}};/**
31
+ * @fileOverview
32
+ * @name asn1-1.0.js
33
+ * @author Kenji Urushima kenji.urushima@gmail.com
34
+ * @version asn1 1.0.13 (2017-Jun-02)
35
+ * @since jsrsasign 2.1
36
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
37
+ */var KJUR={};(typeof KJUR.asn1>"u"||!KJUR.asn1)&&(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var e=n.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(n){var e=n.toString(16);if(e.substr(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var a=e.substr(1),u=a.length;u%2==1?u+=1:e.match(/^[0-7]/)||(u+=2);for(var f="",h=0;h<u;h++)f+="f";var p=new BigInteger(f,16),d=p.xor(n).add(BigInteger.ONE);e=d.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(n,e){return hextopem(n,e)},this.newObject=function(n){var e=KJUR,a=e.asn1,u=a.DERBoolean,f=a.DERInteger,h=a.DERBitString,p=a.DEROctetString,d=a.DERNull,y=a.DERObjectIdentifier,l=a.DEREnumerated,v=a.DERUTF8String,m=a.DERNumericString,b=a.DERPrintableString,x=a.DERTeletexString,w=a.DERIA5String,E=a.DERUTCTime,O=a.DERGeneralizedTime,I=a.DERSequence,T=a.DERSet,S=a.DERTaggedObject,$=a.ASN1Util.newObject,B=Object.keys(n);if(B.length!=1)throw"key of param shall be only one.";var _=B[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":")==-1)throw"undefined key: "+_;if(_=="bool")return new u(n[_]);if(_=="int")return new f(n[_]);if(_=="bitstr")return new h(n[_]);if(_=="octstr")return new p(n[_]);if(_=="null")return new d(n[_]);if(_=="oid")return new y(n[_]);if(_=="enum")return new l(n[_]);if(_=="utf8str")return new v(n[_]);if(_=="numstr")return new m(n[_]);if(_=="prnstr")return new b(n[_]);if(_=="telstr")return new x(n[_]);if(_=="ia5str")return new w(n[_]);if(_=="utctime")return new E(n[_]);if(_=="gentime")return new O(n[_]);if(_=="seq"){for(var C=n[_],N=[],Y=0;Y<C.length;Y++){var D=$(C[Y]);N.push(D)}return new I({array:N})}if(_=="set"){for(var C=n[_],N=[],Y=0;Y<C.length;Y++){var D=$(C[Y]);N.push(D)}return new T({array:N})}if(_=="tag"){var R=n[_];if(Object.prototype.toString.call(R)==="[object Array]"&&R.length==3){var q=$(R[2]);return new S({tag:R[0],explicit:R[1],obj:q})}else{var j={};if(R.explicit!==void 0&&(j.explicit=R.explicit),R.tag!==void 0&&(j.tag=R.tag),R.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=$(R.obj),new S(j)}}},this.jsonToASN1HEX=function(n){var e=this.newObject(n);return e.getEncodedHex()}},KJUR.asn1.ASN1Util.oidHexToInt=function(n){for(var f="",e=parseInt(n.substr(0,2),16),a=Math.floor(e/40),u=e%40,f=a+"."+u,h="",p=2;p<n.length;p+=2){var d=parseInt(n.substr(p,2),16),y=("00000000"+d.toString(2)).slice(-8);if(h=h+y.substr(1,7),y.substr(0,1)=="0"){var l=new BigInteger(h,2);f=f+"."+l.toString(10),h=""}}return f},KJUR.asn1.ASN1Util.oidIntToHex=function(n){var e=function(d){var y=d.toString(16);return y.length==1&&(y="0"+y),y},a=function(d){var y="",l=new BigInteger(d,10),v=l.toString(2),m=7-v.length%7;m==7&&(m=0);for(var b="",x=0;x<m;x++)b+="0";v=b+v;for(var x=0;x<v.length-1;x+=7){var w=v.substr(x,7);x!=v.length-7&&(w="1"+w),y+=e(parseInt(w,2))}return y};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var u="",f=n.split("."),h=parseInt(f[0])*40+parseInt(f[1]);u+=e(h),f.splice(0,2);for(var p=0;p<f.length;p++)u+=a(f[p]);return u},KJUR.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var e=this.hV.length/2,a=e.toString(16);if(a.length%2==1&&(a="0"+a),e<128)return a;var u=a.length/2;if(u>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var f=128+u;return f.toString(16)+a},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},KJUR.asn1.DERAbstractString=function(n){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},YAHOO.lang.extend(KJUR.asn1.DERAbstractString,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractTime=function(n){KJUR.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var a=new Date(utc);return a},this.formatDate=function(e,a,u){var f=this.zeroPadding,h=this.localDateToUTC(e),p=String(h.getFullYear());a=="utc"&&(p=p.substr(2,2));var d=f(String(h.getMonth()+1),2),y=f(String(h.getDate()),2),l=f(String(h.getHours()),2),v=f(String(h.getMinutes()),2),m=f(String(h.getSeconds()),2),b=p+d+y+l+v+m;if(u===!0){var x=h.getMilliseconds();if(x!=0){var w=f(String(x),3);w=w.replace(/[0]+$/,""),b=b+"."+w}}return b+"Z"},this.zeroPadding=function(e,a){return e.length>=a?e:new Array(a-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,a,u,f,h,p){var d=new Date(Date.UTC(e,a-1,u,f,h,p,0));this.setByDate(d)},this.getFreshValueHex=function(){return this.hV}},YAHOO.lang.extend(KJUR.asn1.DERAbstractTime,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractStructured=function(n){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},YAHOO.lang.extend(KJUR.asn1.DERAbstractStructured,KJUR.asn1.ASN1Object),KJUR.asn1.DERBoolean=function(){KJUR.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},YAHOO.lang.extend(KJUR.asn1.DERBoolean,KJUR.asn1.ASN1Object),KJUR.asn1.DERInteger=function(n){KJUR.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var a=new BigInteger(String(e),10);this.setByBigInteger(a)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},YAHOO.lang.extend(KJUR.asn1.DERInteger,KJUR.asn1.ASN1Object),KJUR.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=KJUR.asn1.ASN1Util.newObject(n.obj);n.hex="00"+e.getEncodedHex()}KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(a){this.hTLV=null,this.isModified=!0,this.hV=a},this.setUnusedBitsAndHexValue=function(a,u){if(a<0||7<a)throw"unused bits shall be from 0 to 7: u = "+a;var f="0"+a;this.hTLV=null,this.isModified=!0,this.hV=f+u},this.setByBinaryString=function(a){a=a.replace(/0+$/,"");var u=8-a.length%8;u==8&&(u=0);for(var f=0;f<=u;f++)a+="0";for(var h="",f=0;f<a.length-1;f+=8){var p=a.substr(f,8),d=parseInt(p,2).toString(16);d.length==1&&(d="0"+d),h+=d}this.hTLV=null,this.isModified=!0,this.hV="0"+u+h},this.setByBooleanArray=function(a){for(var u="",f=0;f<a.length;f++)a[f]==!0?u+="1":u+="0";this.setByBinaryString(u)},this.newFalseArray=function(a){for(var u=new Array(a),f=0;f<a;f++)u[f]=!1;return u},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex<"u"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin<"u"?this.setByBinaryString(n.bin):typeof n.array<"u"&&this.setByBooleanArray(n.array))},YAHOO.lang.extend(KJUR.asn1.DERBitString,KJUR.asn1.ASN1Object),KJUR.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=KJUR.asn1.ASN1Util.newObject(n.obj);n.hex=e.getEncodedHex()}KJUR.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},YAHOO.lang.extend(KJUR.asn1.DEROctetString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNull=function(){KJUR.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},YAHOO.lang.extend(KJUR.asn1.DERNull,KJUR.asn1.ASN1Object),KJUR.asn1.DERObjectIdentifier=function(n){var e=function(u){var f=u.toString(16);return f.length==1&&(f="0"+f),f},a=function(u){var f="",h=new BigInteger(u,10),p=h.toString(2),d=7-p.length%7;d==7&&(d=0);for(var y="",l=0;l<d;l++)y+="0";p=y+p;for(var l=0;l<p.length-1;l+=7){var v=p.substr(l,7);l!=p.length-7&&(v="1"+v),f+=e(parseInt(v,2))}return f};KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(u){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=u},this.setValueOidString=function(u){if(!u.match(/^[0-9.]+$/))throw"malformed oid string: "+u;var f="",h=u.split("."),p=parseInt(h[0])*40+parseInt(h[1]);f+=e(p),h.splice(0,2);for(var d=0;d<h.length;d++)f+=a(h[d]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=f},this.setValueName=function(u){var f=KJUR.asn1.x509.OID.name2oid(u);if(f!=="")this.setValueOidString(f);else throw"DERObjectIdentifier oidName undefined: "+u},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))},YAHOO.lang.extend(KJUR.asn1.DERObjectIdentifier,KJUR.asn1.ASN1Object),KJUR.asn1.DEREnumerated=function(n){KJUR.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var a=new BigInteger(String(e),10);this.setByBigInteger(a)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},YAHOO.lang.extend(KJUR.asn1.DEREnumerated,KJUR.asn1.ASN1Object),KJUR.asn1.DERUTF8String=function(n){KJUR.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},YAHOO.lang.extend(KJUR.asn1.DERUTF8String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNumericString=function(n){KJUR.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},YAHOO.lang.extend(KJUR.asn1.DERNumericString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERPrintableString=function(n){KJUR.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},YAHOO.lang.extend(KJUR.asn1.DERPrintableString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERTeletexString=function(n){KJUR.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},YAHOO.lang.extend(KJUR.asn1.DERTeletexString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERIA5String=function(n){KJUR.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},YAHOO.lang.extend(KJUR.asn1.DERIA5String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERUTCTime=function(n){KJUR.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},YAHOO.lang.extend(KJUR.asn1.DERUTCTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERGeneralizedTime=function(n){KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},YAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERSequence=function(n){KJUR.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var e="",a=0;a<this.asn1Array.length;a++){var u=this.asn1Array[a];e+=u.getEncodedHex()}return this.hV=e,this.hV}},YAHOO.lang.extend(KJUR.asn1.DERSequence,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERSet=function(n){KJUR.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,a=0;a<this.asn1Array.length;a++){var u=this.asn1Array[a];e.push(u.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof n<"u"&&typeof n.sortflag<"u"&&n.sortflag==!1&&(this.sortFlag=!1)},YAHOO.lang.extend(KJUR.asn1.DERSet,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERTaggedObject=function(n){KJUR.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,a,u){this.hT=a,this.isExplicit=e,this.asn1Object=u,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=u.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,a),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.tag<"u"&&(this.hT=n.tag),typeof n.explicit<"u"&&(this.isExplicit=n.explicit),typeof n.obj<"u"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},YAHOO.lang.extend(KJUR.asn1.DERTaggedObject,KJUR.asn1.ASN1Object);var __extends=function(){var n=function(e,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(u[h]=f[h])},n(e,a)};return function(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(e,a);function u(){this.constructor=e}e.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)}}(),JSEncryptRSAKey=function(n){__extends(e,n);function e(a){var u=n.call(this)||this;return a&&(typeof a=="string"?u.parseKey(a):(e.hasPrivateKeyProperty(a)||e.hasPublicKeyProperty(a))&&u.parsePropertiesFrom(a)),u}return e.prototype.parseKey=function(a){try{var u=0,f=0,h=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,p=h.test(a)?Hex.decode(a):Base64.unarmor(a),d=ASN1.decode(p);if(d.sub.length===3&&(d=d.sub[2].sub[0]),d.sub.length===9){u=d.sub[1].getHexStringValue(),this.n=parseBigInt(u,16),f=d.sub[2].getHexStringValue(),this.e=parseInt(f,16);var y=d.sub[3].getHexStringValue();this.d=parseBigInt(y,16);var l=d.sub[4].getHexStringValue();this.p=parseBigInt(l,16);var v=d.sub[5].getHexStringValue();this.q=parseBigInt(v,16);var m=d.sub[6].getHexStringValue();this.dmp1=parseBigInt(m,16);var b=d.sub[7].getHexStringValue();this.dmq1=parseBigInt(b,16);var x=d.sub[8].getHexStringValue();this.coeff=parseBigInt(x,16)}else if(d.sub.length===2)if(d.sub[0].sub){var w=d.sub[1],E=w.sub[0];u=E.sub[0].getHexStringValue(),this.n=parseBigInt(u,16),f=E.sub[1].getHexStringValue(),this.e=parseInt(f,16)}else u=d.sub[0].getHexStringValue(),this.n=parseBigInt(u,16),f=d.sub[1].getHexStringValue(),this.e=parseInt(f,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var a={array:[new KJUR.asn1.DERInteger({int:0}),new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e}),new KJUR.asn1.DERInteger({bigint:this.d}),new KJUR.asn1.DERInteger({bigint:this.p}),new KJUR.asn1.DERInteger({bigint:this.q}),new KJUR.asn1.DERInteger({bigint:this.dmp1}),new KJUR.asn1.DERInteger({bigint:this.dmq1}),new KJUR.asn1.DERInteger({bigint:this.coeff})]},u=new KJUR.asn1.DERSequence(a);return u.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return hex2b64(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var a=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new KJUR.asn1.DERNull]}),u=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e})]}),f=new KJUR.asn1.DERBitString({hex:"00"+u.getEncodedHex()}),h=new KJUR.asn1.DERSequence({array:[a,f]});return h.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return hex2b64(this.getPublicBaseKey())},e.wordwrap=function(a,u){if(u=u||64,!a)return a;var f="(.{1,"+u+`})( +|$
38
+ ?)|(.{1,`+u+"})";return a.match(RegExp(f,"g")).join(`
39
+ `)},e.prototype.getPrivateKey=function(){var a=`-----BEGIN RSA PRIVATE KEY-----
40
+ `;return a+=e.wordwrap(this.getPrivateBaseKeyB64())+`
41
+ `,a+="-----END RSA PRIVATE KEY-----",a},e.prototype.getPublicKey=function(){var a=`-----BEGIN PUBLIC KEY-----
42
+ `;return a+=e.wordwrap(this.getPublicBaseKeyB64())+`
43
+ `,a+="-----END PUBLIC KEY-----",a},e.hasPublicKeyProperty=function(a){return a=a||{},a.hasOwnProperty("n")&&a.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(a){return a=a||{},a.hasOwnProperty("n")&&a.hasOwnProperty("e")&&a.hasOwnProperty("d")&&a.hasOwnProperty("p")&&a.hasOwnProperty("q")&&a.hasOwnProperty("dmp1")&&a.hasOwnProperty("dmq1")&&a.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(a){this.n=a.n,this.e=a.e,a.hasOwnProperty("d")&&(this.d=a.d,this.p=a.p,this.q=a.q,this.dmp1=a.dmp1,this.dmq1=a.dmq1,this.coeff=a.coeff)},e}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function n(e){e===void 0&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return n.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(e)},n.prototype.setPrivateKey=function(e){this.setKey(e)},n.prototype.setPublicKey=function(e){this.setKey(e)},n.prototype.decrypt=function(e){try{return this.getKey().decrypt(b64tohex(e))}catch{return!1}},n.prototype.encrypt=function(e){try{return hex2b64(this.getKey().encrypt(e))}catch{return!1}},n.prototype.sign=function(e,a,u){try{return hex2b64(this.getKey().sign(e,a,u))}catch{return!1}},n.prototype.verify=function(e,a,u){try{return this.getKey().verify(e,b64tohex(a),u)}catch{return!1}},n.prototype.getKey=function(e){if(!this.key){if(this.key=new JSEncryptRSAKey,e&&{}.toString.call(e)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},n.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},n.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},n.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},n.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},n.version=version,n}();const g="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",c="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function MD5(n){return String(s(n))}function base64(n){const e=o.parse(n);return A.stringify(e)}function unBase64(n){return o.stringify(A.parse(n))}function RSA(n,e=g){const a=new JSEncrypt;return a.setKey(e),a.encrypt(n)}function unRSA(n,e=c){const a=new JSEncrypt;return a.setPrivateKey(e),a.decrypt(n)}function AES(n,e){return i.encrypt(n,e).toString()}function unAES(n,e){return i.decrypt(n,e).toString(o)}const rURL=/^(http|https):\/\/[\w.:\-@]*/,rEmail=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,rID=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,rMobile=/^(0|86|17951)?(1[\d]{10})$/,rCar=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1})$/;function isUrl(n){return rURL.test(n)}function isEmail(n){return rEmail.test(n)}function isIdCardNo(n){return rID.test(n)}function isMobilePhone(n){return rMobile.test(n)}function isCarNo(n){return rCar.test(n)}var numeral={exports:{}};/*! @preserve
44
+ * numeral.js
45
+ * version : 2.0.6
46
+ * author : Adam Draper
47
+ * license : MIT
48
+ * http://adamwdraper.github.com/Numeral-js/
49
+ */(function(n){(function(e,a){n.exports?n.exports=a():e.numeral=a()})(commonjsGlobal,function(){var e,a,u="2.0.6",f={},h={},p={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},d={currentLocale:p.currentLocale,zeroFormat:p.zeroFormat,nullFormat:p.nullFormat,defaultFormat:p.defaultFormat,scalePercentBy100:p.scalePercentBy100};function y(l,v){this._input=l,this._value=v}return e=function(l){var v,m,b,x;if(e.isNumeral(l))v=l.value();else if(l===0||typeof l>"u")v=0;else if(l===null||a.isNaN(l))v=null;else if(typeof l=="string")if(d.zeroFormat&&l===d.zeroFormat)v=0;else if(d.nullFormat&&l===d.nullFormat||!l.replace(/[^0-9]+/g,"").length)v=null;else{for(m in f)if(x=typeof f[m].regexps.unformat=="function"?f[m].regexps.unformat():f[m].regexps.unformat,x&&l.match(x)){b=f[m].unformat;break}b=b||e._.stringToNumber,v=b(l)}else v=Number(l)||null;return new y(l,v)},e.version=u,e.isNumeral=function(l){return l instanceof y},e._=a={numberToFormat:function(l,v,m){var b=h[e.options.currentLocale],x=!1,w=!1,E=0,O="",I=1e12,T=1e9,S=1e6,$=1e3,B="",_=!1,C,N,Y,D,R,q,j;if(l=l||0,N=Math.abs(l),e._.includes(v,"(")?(x=!0,v=v.replace(/[\(|\)]/g,"")):(e._.includes(v,"+")||e._.includes(v,"-"))&&(R=e._.includes(v,"+")?v.indexOf("+"):l<0?v.indexOf("-"):-1,v=v.replace(/[\+|\-]/g,"")),e._.includes(v,"a")&&(C=v.match(/a(k|m|b|t)?/),C=C?C[1]:!1,e._.includes(v," a")&&(O=" "),v=v.replace(new RegExp(O+"a[kmbt]?"),""),N>=I&&!C||C==="t"?(O+=b.abbreviations.trillion,l=l/I):N<I&&N>=T&&!C||C==="b"?(O+=b.abbreviations.billion,l=l/T):N<T&&N>=S&&!C||C==="m"?(O+=b.abbreviations.million,l=l/S):(N<S&&N>=$&&!C||C==="k")&&(O+=b.abbreviations.thousand,l=l/$)),e._.includes(v,"[.]")&&(w=!0,v=v.replace("[.]",".")),Y=l.toString().split(".")[0],D=v.split(".")[1],q=v.indexOf(","),E=(v.split(".")[0].split(",")[0].match(/0/g)||[]).length,D?(e._.includes(D,"[")?(D=D.replace("]",""),D=D.split("["),B=e._.toFixed(l,D[0].length+D[1].length,m,D[1].length)):B=e._.toFixed(l,D.length,m),Y=B.split(".")[0],e._.includes(B,".")?B=b.delimiters.decimal+B.split(".")[1]:B="",w&&Number(B.slice(1))===0&&(B="")):Y=e._.toFixed(l,0,m),O&&!C&&Number(Y)>=1e3&&O!==b.abbreviations.trillion)switch(Y=String(Number(Y)/1e3),O){case b.abbreviations.thousand:O=b.abbreviations.million;break;case b.abbreviations.million:O=b.abbreviations.billion;break;case b.abbreviations.billion:O=b.abbreviations.trillion;break}if(e._.includes(Y,"-")&&(Y=Y.slice(1),_=!0),Y.length<E)for(var V=E-Y.length;V>0;V--)Y="0"+Y;return q>-1&&(Y=Y.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+b.delimiters.thousands)),v.indexOf(".")===0&&(Y=""),j=Y+B+(O||""),x?j=(x&&_?"(":"")+j+(x&&_?")":""):R>=0?j=R===0?(_?"-":"+")+j:j+(_?"-":"+"):_&&(j="-"+j),j},stringToNumber:function(l){var v=h[d.currentLocale],m=l,b={thousand:3,million:6,billion:9,trillion:12},x,w,E;if(d.zeroFormat&&l===d.zeroFormat)w=0;else if(d.nullFormat&&l===d.nullFormat||!l.replace(/[^0-9]+/g,"").length)w=null;else{w=1,v.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(v.delimiters.decimal,"."));for(x in b)if(E=new RegExp("[^a-zA-Z]"+v.abbreviations[x]+"(?:\\)|(\\"+v.currency.symbol+")?(?:\\))?)?$"),m.match(E)){w*=Math.pow(10,b[x]);break}w*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),w*=Number(l)}return w},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,v){return l.indexOf(v)!==-1},insert:function(l,v,m){return l.slice(0,m)+v+l.slice(m)},reduce:function(l,v){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof v!="function")throw new TypeError(v+" is not a function");var m=Object(l),b=m.length>>>0,x=0,w;if(arguments.length===3)w=arguments[2];else{for(;x<b&&!(x in m);)x++;if(x>=b)throw new TypeError("Reduce of empty array with no initial value");w=m[x++]}for(;x<b;x++)x in m&&(w=v(w,m[x],x,m));return w},multiplier:function(l){var v=l.toString().split(".");return v.length<2?1:Math.pow(10,v[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(v,m){var b=a.multiplier(m);return v>b?v:b},1)},toFixed:function(l,v,m,b){var x=l.toString().split("."),w=v-(b||0),E,O,I,T;return x.length===2?E=Math.min(Math.max(x[1].length,w),v):E=w,I=Math.pow(10,E),T=(m(l+"e+"+E)/I).toFixed(E),b>v-E&&(O=new RegExp("\\.?0{1,"+(b-(v-E))+"}$"),T=T.replace(O,"")),T}},e.options=d,e.formats=f,e.locales=h,e.locale=function(l){return l&&(d.currentLocale=l.toLowerCase()),d.currentLocale},e.localeData=function(l){if(!l)return h[d.currentLocale];if(l=l.toLowerCase(),!h[l])throw new Error("Unknown locale : "+l);return h[l]},e.reset=function(){for(var l in p)d[l]=p[l]},e.zeroFormat=function(l){d.zeroFormat=typeof l=="string"?l:null},e.nullFormat=function(l){d.nullFormat=typeof l=="string"?l:null},e.defaultFormat=function(l){d.defaultFormat=typeof l=="string"?l:"0.0"},e.register=function(l,v,m){if(v=v.toLowerCase(),this[l+"s"][v])throw new TypeError(v+" "+l+" already registered.");return this[l+"s"][v]=m,m},e.validate=function(l,v){var m,b,x,w,E,O,I,T;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{I=e.localeData(v)}catch{I=e.localeData(e.locale())}return x=I.currency.symbol,E=I.abbreviations,m=I.delimiters.decimal,I.delimiters.thousands==="."?b="\\.":b=I.delimiters.thousands,T=l.match(/^[^\d]+/),T!==null&&(l=l.substr(1),T[0]!==x)||(T=l.match(/[^\d]+$/),T!==null&&(l=l.slice(0,-1),T[0]!==E.thousand&&T[0]!==E.million&&T[0]!==E.billion&&T[0]!==E.trillion))?!1:(O=new RegExp(b+"{2}"),l.match(/[^\d.,]/g)?!1:(w=l.split(m),w.length>2?!1:w.length<2?!!w[0].match(/^\d+.*\d$/)&&!w[0].match(O):w[0].length===1?!!w[0].match(/^\d+$/)&&!w[0].match(O)&&!!w[1].match(/^\d+$/):!!w[0].match(/^\d+.*\d$/)&&!w[0].match(O)&&!!w[1].match(/^\d+$/)))},e.fn=y.prototype={clone:function(){return e(this)},format:function(l,v){var m=this._value,b=l||d.defaultFormat,x,w,E;if(v=v||Math.round,m===0&&d.zeroFormat!==null)w=d.zeroFormat;else if(m===null&&d.nullFormat!==null)w=d.nullFormat;else{for(x in f)if(b.match(f[x].regexps.format)){E=f[x].format;break}E=E||e._.numberToFormat,w=E(m,b,v)}return w},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var v=a.correctionFactor.call(null,this._value,l);function m(b,x,w,E){return b+Math.round(v*x)}return this._value=a.reduce([this._value,l],m,0)/v,this},subtract:function(l){var v=a.correctionFactor.call(null,this._value,l);function m(b,x,w,E){return b-Math.round(v*x)}return this._value=a.reduce([l],m,Math.round(this._value*v))/v,this},multiply:function(l){function v(m,b,x,w){var E=a.correctionFactor(m,b);return Math.round(m*E)*Math.round(b*E)/Math.round(E*E)}return this._value=a.reduce([this._value,l],v,1),this},divide:function(l){function v(m,b,x,w){var E=a.correctionFactor(m,b);return Math.round(m*E)/Math.round(b*E)}return this._value=a.reduce([this._value,l],v),this},difference:function(l){return Math.abs(e(this._value).subtract(l).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var v=l%10;return~~(l%100/10)===1?"th":v===1?"st":v===2?"nd":v===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,v,m){var b=e._.includes(v," BPS")?" ":"",x;return l=l*1e4,v=v.replace(/\s?BPS/,""),x=e._.numberToFormat(l,v,m),e._.includes(x,")")?(x=x.split(""),x.splice(-1,0,b+"BPS"),x=x.join("")):x=x+b+"BPS",x},unformat:function(l){return+(e._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},v={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},m=l.suffixes.concat(v.suffixes.filter(function(x){return l.suffixes.indexOf(x)<0})),b=m.join("|");b="("+b.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(b)},format:function(x,w,E){var O,I=e._.includes(w,"ib")?v:l,T=e._.includes(w," b")||e._.includes(w," ib")?" ":"",S,$,B;for(w=w.replace(/\s?i?b/,""),S=0;S<=I.suffixes.length;S++)if($=Math.pow(I.base,S),B=Math.pow(I.base,S+1),x===null||x===0||x>=$&&x<B){T+=I.suffixes[S],$>0&&(x=x/$);break}return O=e._.numberToFormat(x,w,E),O+T},unformat:function(x){var w=e._.stringToNumber(x),E,O;if(w){for(E=l.suffixes.length-1;E>=0;E--){if(e._.includes(x,l.suffixes[E])){O=Math.pow(l.base,E);break}if(e._.includes(x,v.suffixes[E])){O=Math.pow(v.base,E);break}}w*=O||1}return w}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(l,v,m){var b=e.locales[e.options.currentLocale],x={before:v.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:v.match(/([\+|\-|\)|\s|\$]*)$/)[0]},w,E,O;for(v=v.replace(/\s?\$\s?/,""),w=e._.numberToFormat(l,v,m),l>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):l<0&&!e._.includes(x.before,"-")&&!e._.includes(x.before,"(")&&(x.before="-"+x.before),O=0;O<x.before.length;O++)switch(E=x.before[O],E){case"$":w=e._.insert(w,b.currency.symbol,O);break;case" ":w=e._.insert(w," ",O+b.currency.symbol.length-1);break}for(O=x.after.length-1;O>=0;O--)switch(E=x.after[O],E){case"$":w=O===x.after.length-1?w+b.currency.symbol:e._.insert(w,b.currency.symbol,-(x.after.length-(1+O)));break;case" ":w=O===x.after.length-1?w+" ":e._.insert(w," ",-(x.after.length-(1+O)+b.currency.symbol.length-1));break}return w}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,v,m){var b,x=typeof l=="number"&&!e._.isNaN(l)?l.toExponential():"0e+0",w=x.split("e");return v=v.replace(/e[\+|\-]{1}0/,""),b=e._.numberToFormat(Number(w[0]),v,m),b+"e"+w[1]},unformat:function(l){var v=e._.includes(l,"e+")?l.split("e+"):l.split("e-"),m=Number(v[0]),b=Number(v[1]);b=e._.includes(l,"e-")?b*=-1:b;function x(w,E,O,I){var T=e._.correctionFactor(w,E),S=w*T*(E*T)/(T*T);return S}return e._.reduce([m,Math.pow(10,b)],x,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,v,m){var b=e.locales[e.options.currentLocale],x,w=e._.includes(v," o")?" ":"";return v=v.replace(/\s?o/,""),w+=b.ordinal(l),x=e._.numberToFormat(l,v,m),x+w}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,v,m){var b=e._.includes(v," %")?" ":"",x;return e.options.scalePercentBy100&&(l=l*100),v=v.replace(/\s?\%/,""),x=e._.numberToFormat(l,v,m),e._.includes(x,")")?(x=x.split(""),x.splice(-1,0,b+"%"),x=x.join("")):x=x+b+"%",x},unformat:function(l){var v=e._.stringToNumber(l);return e.options.scalePercentBy100?v*.01:v}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,v,m){var b=Math.floor(l/60/60),x=Math.floor((l-b*60*60)/60),w=Math.round(l-b*60*60-x*60);return b+":"+(x<10?"0"+x:x)+":"+(w<10?"0"+w:w)},unformat:function(l){var v=l.split(":"),m=0;return v.length===3?(m=m+Number(v[0])*60*60,m=m+Number(v[1])*60,m=m+Number(v[2])):v.length===2&&(m=m+Number(v[0])*60,m=m+Number(v[1])),Number(m)}})}(),e})})(numeral);var numeralExports=numeral.exports;const r$1=getDefaultExportFromCjs(numeralExports);function numberFormat(n,e="0.00"){return r$1(n).format(e)}function toFixed(n,e=2,a){return(a?Math.round:Math.floor)(Math.pow(10,e)*n)/Math.pow(10,e)}var dayjs_min={exports:{}};(function(n,e){(function(a,u){n.exports=u()})(commonjsGlobal,function(){var a=1e3,u=6e4,f=36e5,h="millisecond",p="second",d="minute",y="hour",l="day",v="week",m="month",b="quarter",x="year",w="date",E="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var P=["th","st","nd","rd"],H=V%100;return"["+V+(P[(H-20)%10]||P[H]||P[0])+"]"}},S=function(V,P,H){var K=String(V);return!K||K.length>=P?V:""+Array(P+1-K.length).join(H)+V},$={s:S,z:function(V){var P=-V.utcOffset(),H=Math.abs(P),K=Math.floor(H/60),k=H%60;return(P<=0?"+":"-")+S(K,2,"0")+":"+S(k,2,"0")},m:function V(P,H){if(P.date()<H.date())return-V(H,P);var K=12*(H.year()-P.year())+(H.month()-P.month()),k=P.clone().add(K,m),W=H-k<0,Z=P.clone().add(K+(W?-1:1),m);return+(-(K+(H-k)/(W?k-Z:Z-k))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:m,y:x,w:v,d:l,D:w,h:y,m:d,s:p,ms:h,Q:b}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},B="en",_={};_[B]=T;var C="$isDayjsObject",N=function(V){return V instanceof q||!(!V||!V[C])},Y=function V(P,H,K){var k;if(!P)return B;if(typeof P=="string"){var W=P.toLowerCase();_[W]&&(k=W),H&&(_[W]=H,k=W);var Z=P.split("-");if(!k&&Z.length>1)return V(Z[0])}else{var M=P.name;_[M]=P,k=M}return!K&&k&&(B=k),k||!K&&B},D=function(V,P){if(N(V))return V.clone();var H=typeof P=="object"?P:{};return H.date=V,H.args=arguments,new q(H)},R=$;R.l=Y,R.i=N,R.w=function(V,P){return D(V,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var q=function(){function V(H){this.$L=Y(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[C]=!0}var P=V.prototype;return P.parse=function(H){this.$d=function(K){var k=K.date,W=K.utc;if(k===null)return new Date(NaN);if(R.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var Z=k.match(O);if(Z){var M=Z[2]-1||0,F=(Z[7]||"0").substring(0,3);return W?new Date(Date.UTC(Z[1],M,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,F)):new Date(Z[1],M,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,F)}}return new Date(k)}(H),this.init()},P.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==E},P.isSame=function(H,K){var k=D(H);return this.startOf(K)<=k&&k<=this.endOf(K)},P.isAfter=function(H,K){return D(H)<this.startOf(K)},P.isBefore=function(H,K){return this.endOf(K)<D(H)},P.$g=function(H,K,k){return R.u(H)?this[K]:this.set(k,H)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(H,K){var k=this,W=!!R.u(K)||K,Z=R.p(H),M=function(tt,G){var Q=R.w(k.$u?Date.UTC(k.$y,G,tt):new Date(k.$y,G,tt),k);return W?Q:Q.endOf(l)},F=function(tt,G){return R.w(k.toDate()[tt].apply(k.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(G)),k)},L=this.$W,U=this.$M,J=this.$D,et="set"+(this.$u?"UTC":"");switch(Z){case x:return W?M(1,0):M(31,11);case m:return W?M(1,U):M(0,U+1);case v:var X=this.$locale().weekStart||0,rt=(L<X?L+7:L)-X;return M(W?J-rt:J+(6-rt),U);case l:case w:return F(et+"Hours",0);case y:return F(et+"Minutes",1);case d:return F(et+"Seconds",2);case p:return F(et+"Milliseconds",3);default:return this.clone()}},P.endOf=function(H){return this.startOf(H,!1)},P.$set=function(H,K){var k,W=R.p(H),Z="set"+(this.$u?"UTC":""),M=(k={},k[l]=Z+"Date",k[w]=Z+"Date",k[m]=Z+"Month",k[x]=Z+"FullYear",k[y]=Z+"Hours",k[d]=Z+"Minutes",k[p]=Z+"Seconds",k[h]=Z+"Milliseconds",k)[W],F=W===l?this.$D+(K-this.$W):K;if(W===m||W===x){var L=this.clone().set(w,1);L.$d[M](F),L.init(),this.$d=L.set(w,Math.min(this.$D,L.daysInMonth())).$d}else M&&this.$d[M](F);return this.init(),this},P.set=function(H,K){return this.clone().$set(H,K)},P.get=function(H){return this[R.p(H)]()},P.add=function(H,K){var k,W=this;H=Number(H);var Z=R.p(K),M=function(U){var J=D(W);return R.w(J.date(J.date()+Math.round(U*H)),W)};if(Z===m)return this.set(m,this.$M+H);if(Z===x)return this.set(x,this.$y+H);if(Z===l)return M(1);if(Z===v)return M(7);var F=(k={},k[d]=u,k[y]=f,k[p]=a,k)[Z]||1,L=this.$d.getTime()+H*F;return R.w(L,this)},P.subtract=function(H,K){return this.add(-1*H,K)},P.format=function(H){var K=this,k=this.$locale();if(!this.isValid())return k.invalidDate||E;var W=H||"YYYY-MM-DDTHH:mm:ssZ",Z=R.z(this),M=this.$H,F=this.$m,L=this.$M,U=k.weekdays,J=k.months,et=k.meridiem,X=function(G,Q,nt,it){return G&&(G[Q]||G(K,W))||nt[Q].slice(0,it)},rt=function(G){return R.s(M%12||12,G,"0")},tt=et||function(G,Q,nt){var it=G<12?"AM":"PM";return nt?it.toLowerCase():it};return W.replace(I,function(G,Q){return Q||function(nt){switch(nt){case"YY":return String(K.$y).slice(-2);case"YYYY":return R.s(K.$y,4,"0");case"M":return L+1;case"MM":return R.s(L+1,2,"0");case"MMM":return X(k.monthsShort,L,J,3);case"MMMM":return X(J,L);case"D":return K.$D;case"DD":return R.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return X(k.weekdaysMin,K.$W,U,2);case"ddd":return X(k.weekdaysShort,K.$W,U,3);case"dddd":return U[K.$W];case"H":return String(M);case"HH":return R.s(M,2,"0");case"h":return rt(1);case"hh":return rt(2);case"a":return tt(M,F,!0);case"A":return tt(M,F,!1);case"m":return String(F);case"mm":return R.s(F,2,"0");case"s":return String(K.$s);case"ss":return R.s(K.$s,2,"0");case"SSS":return R.s(K.$ms,3,"0");case"Z":return Z}return null}(G)||Z.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(H,K,k){var W,Z=this,M=R.p(K),F=D(H),L=(F.utcOffset()-this.utcOffset())*u,U=this-F,J=function(){return R.m(Z,F)};switch(M){case x:W=J()/12;break;case m:W=J();break;case b:W=J()/3;break;case v:W=(U-L)/6048e5;break;case l:W=(U-L)/864e5;break;case y:W=U/f;break;case d:W=U/u;break;case p:W=U/a;break;default:W=U}return k?W:R.a(W)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return _[this.$L]},P.locale=function(H,K){if(!H)return this.$L;var k=this.clone(),W=Y(H,K,!0);return W&&(k.$L=W),k},P.clone=function(){return R.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},V}(),j=q.prototype;return D.prototype=j,[["$ms",h],["$s",p],["$m",d],["$H",y],["$W",l],["$M",m],["$y",x],["$D",w]].forEach(function(V){j[V[1]]=function(P){return this.$g(P,V[0],V[1])}}),D.extend=function(V,P){return V.$i||(V(P,q,D),V.$i=!0),D},D.locale=Y,D.isDayjs=N,D.unix=function(V){return D(1e3*V)},D.en=_[B],D.Ls=_,D.p={},D})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const r=getDefaultExportFromCjs(dayjs_minExports);var zhCn={exports:{}};(function(n,e){(function(a,u){n.exports=u(dayjs_minExports)})(commonjsGlobal,function(a){function u(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var f=u(a),h={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(p,d){return d==="W"?p+"\u5468":p+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(p,d){var y=100*p+d;return y<600?"\u51CC\u6668":y<900?"\u65E9\u4E0A":y<1100?"\u4E0A\u5348":y<1300?"\u4E2D\u5348":y<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};return f.default.locale(h,null,!0),h})})(zhCn),r.locale("zh-cn");function dateFormat(n,e="YYYY-MM-DD HH:mm:ss"){return r(n).format(e)}const toTypeString=n=>Object.prototype.toString.call(n),toRawType=n=>toTypeString(n).slice(8,-1),isDef=n=>typeof n<"u",now=()=>Date.now(),timestamp=()=>+Date.now(),random=(n,e)=>(n=Math.ceil(n),e=Math.floor(e),Math.floor(Math.random()*(e-n+1))+n);function uid(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function uuid(n=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){const u=Math.random()*16|0;return(a==="x"?u:u&3|8).toString(16)});return n?e.toLowerCase():e.replace(/-/gi,"")}async function delay(n=0){return new Promise(e=>{setTimeout(e,n)})}function arrayToMap(n,e){return n.reduce((a,u)=>{const f=u[e];return a.set(f,u),a},new Map)}function mapToObject(n){return[...n.entries()].reduce((e,[a,u])=>(e[a]=u,e),{})}function dedupArray(n,e){if(e){const a=arrayToMap(n,e);return Array.from(a.values())}else return Array.from(new Set(n))}function toArray(n){return n?[].concat(n):[]}function zipObject(n){return Object.keys(n).reduce((e,a)=>{const u=n[a];return u!=null&&(e[a]=u),e},{})}function omit(n,e){const a={};if(Array.isArray(e))Object.keys(n).forEach(u=>{e.includes(u)||(a[u]=n[u])});else{const u=e;Object.entries(n).forEach(([f,h])=>{u(f,h)||(a[f]=h)})}return a}function pick(n,e){const a={};if(Array.isArray(e))Object.keys(n).forEach(u=>{e.includes(u)&&(a[u]=n[u])});else{const u=e;Object.entries(n).forEach(([f,h])=>{u(f,h)&&(a[f]=h)})}return a}function trim(n){const e=typeof n;return e==="string"?n.trim():Array.isArray(n)?n.map(a=>trim(a)):(n&&e==="object"&&Object.entries(n).forEach(([a,u])=>{n[a]=trim(u)}),n)}var lzString={exports:{}};lzString.exports,function(n){var e=function(){var a=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",h={};function p(y,l){if(!h[y]){h[y]={};for(var v=0;v<y.length;v++)h[y][y.charAt(v)]=v}return h[y][l]}var d={compressToBase64:function(y){if(y==null)return"";var l=d._compress(y,6,function(v){return u.charAt(v)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(y){return y==null?"":y==""?null:d._decompress(y.length,32,function(l){return p(u,y.charAt(l))})},compressToUTF16:function(y){return y==null?"":d._compress(y,15,function(l){return a(l+32)})+" "},decompressFromUTF16:function(y){return y==null?"":y==""?null:d._decompress(y.length,16384,function(l){return y.charCodeAt(l)-32})},compressToUint8Array:function(y){for(var l=d.compress(y),v=new Uint8Array(l.length*2),m=0,b=l.length;m<b;m++){var x=l.charCodeAt(m);v[m*2]=x>>>8,v[m*2+1]=x%256}return v},decompressFromUint8Array:function(y){if(y==null)return d.decompress(y);for(var l=new Array(y.length/2),v=0,m=l.length;v<m;v++)l[v]=y[v*2]*256+y[v*2+1];var b=[];return l.forEach(function(x){b.push(a(x))}),d.decompress(b.join(""))},compressToEncodedURIComponent:function(y){return y==null?"":d._compress(y,6,function(l){return f.charAt(l)})},decompressFromEncodedURIComponent:function(y){return y==null?"":y==""?null:(y=y.replace(/ /g,"+"),d._decompress(y.length,32,function(l){return p(f,y.charAt(l))}))},compress:function(y){return d._compress(y,16,function(l){return a(l)})},_compress:function(y,l,v){if(y==null)return"";var m,b,x={},w={},E="",O="",I="",T=2,S=3,$=2,B=[],_=0,C=0,N;for(N=0;N<y.length;N+=1)if(E=y.charAt(N),Object.prototype.hasOwnProperty.call(x,E)||(x[E]=S++,w[E]=!0),O=I+E,Object.prototype.hasOwnProperty.call(x,O))I=O;else{if(Object.prototype.hasOwnProperty.call(w,I)){if(I.charCodeAt(0)<256){for(m=0;m<$;m++)_=_<<1,C==l-1?(C=0,B.push(v(_)),_=0):C++;for(b=I.charCodeAt(0),m=0;m<8;m++)_=_<<1|b&1,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=b>>1}else{for(b=1,m=0;m<$;m++)_=_<<1|b,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=0;for(b=I.charCodeAt(0),m=0;m<16;m++)_=_<<1|b&1,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=b>>1}T--,T==0&&(T=Math.pow(2,$),$++),delete w[I]}else for(b=x[I],m=0;m<$;m++)_=_<<1|b&1,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=b>>1;T--,T==0&&(T=Math.pow(2,$),$++),x[O]=S++,I=String(E)}if(I!==""){if(Object.prototype.hasOwnProperty.call(w,I)){if(I.charCodeAt(0)<256){for(m=0;m<$;m++)_=_<<1,C==l-1?(C=0,B.push(v(_)),_=0):C++;for(b=I.charCodeAt(0),m=0;m<8;m++)_=_<<1|b&1,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=b>>1}else{for(b=1,m=0;m<$;m++)_=_<<1|b,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=0;for(b=I.charCodeAt(0),m=0;m<16;m++)_=_<<1|b&1,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=b>>1}T--,T==0&&(T=Math.pow(2,$),$++),delete w[I]}else for(b=x[I],m=0;m<$;m++)_=_<<1|b&1,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=b>>1;T--,T==0&&(T=Math.pow(2,$),$++)}for(b=2,m=0;m<$;m++)_=_<<1|b&1,C==l-1?(C=0,B.push(v(_)),_=0):C++,b=b>>1;for(;;)if(_=_<<1,C==l-1){B.push(v(_));break}else C++;return B.join("")},decompress:function(y){return y==null?"":y==""?null:d._decompress(y.length,32768,function(l){return y.charCodeAt(l)})},_decompress:function(y,l,v){var m=[],b=4,x=4,w=3,E="",O=[],I,T,S,$,B,_,C,N={val:v(0),position:l,index:1};for(I=0;I<3;I+=1)m[I]=I;for(S=0,B=Math.pow(2,2),_=1;_!=B;)$=N.val&N.position,N.position>>=1,N.position==0&&(N.position=l,N.val=v(N.index++)),S|=($>0?1:0)*_,_<<=1;switch(S){case 0:for(S=0,B=Math.pow(2,8),_=1;_!=B;)$=N.val&N.position,N.position>>=1,N.position==0&&(N.position=l,N.val=v(N.index++)),S|=($>0?1:0)*_,_<<=1;C=a(S);break;case 1:for(S=0,B=Math.pow(2,16),_=1;_!=B;)$=N.val&N.position,N.position>>=1,N.position==0&&(N.position=l,N.val=v(N.index++)),S|=($>0?1:0)*_,_<<=1;C=a(S);break;case 2:return""}for(m[3]=C,T=C,O.push(C);;){if(N.index>y)return"";for(S=0,B=Math.pow(2,w),_=1;_!=B;)$=N.val&N.position,N.position>>=1,N.position==0&&(N.position=l,N.val=v(N.index++)),S|=($>0?1:0)*_,_<<=1;switch(C=S){case 0:for(S=0,B=Math.pow(2,8),_=1;_!=B;)$=N.val&N.position,N.position>>=1,N.position==0&&(N.position=l,N.val=v(N.index++)),S|=($>0?1:0)*_,_<<=1;m[x++]=a(S),C=x-1,b--;break;case 1:for(S=0,B=Math.pow(2,16),_=1;_!=B;)$=N.val&N.position,N.position>>=1,N.position==0&&(N.position=l,N.val=v(N.index++)),S|=($>0?1:0)*_,_<<=1;m[x++]=a(S),C=x-1,b--;break;case 2:return O.join("")}if(b==0&&(b=Math.pow(2,w),w++),m[C])E=m[C];else if(C===x)E=T+T.charAt(0);else return null;O.push(E),m[x++]=T+E.charAt(0),b--,T=E,b==0&&(b=Math.pow(2,w),w++)}}};return d}();n!=null?n.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(lzString);var lzStringExports=lzString.exports;exports.AES=AES,exports.MD5=MD5,exports.RSA=RSA,exports.arrayToMap=arrayToMap,exports.base64=base64,exports.camelCase=r$2,exports.cloneDeep=cloneDeep,exports.compress=lzStringExports.compress,exports.dateFormat=dateFormat,exports.dayjs=r,exports.debounce=debounce,exports.decompress=lzStringExports.decompress,exports.dedupArray=dedupArray,exports.delay=delay,exports.get=get,exports.isArray=isArray$1,exports.isArrayBuffer=isArrayBuffer$1,exports.isBoolean=isBoolean,exports.isBuffer=isBuffer$1,exports.isCarNo=isCarNo,exports.isDate=isDate$1,exports.isDef=isDef,exports.isEmail=isEmail,exports.isEqual=isEqual,exports.isFunction=isFunction,exports.isIdCardNo=isIdCardNo,exports.isMobilePhone=isMobilePhone,exports.isNaN=isNaN$1,exports.isNull=isNull,exports.isNumber=isNumber,exports.isObject=isObject,exports.isPlainObject=isPlainObject,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isUrl=isUrl,exports.kebabCase=kebabCase$1,exports.lowerFirst=lowerFirst$1,exports.mapToObject=mapToObject,exports.merge=merge$1,exports.noop=noop,exports.now=now,exports.numberFormat=numberFormat,exports.numeral=r$1,exports.omit=omit,exports.pick=pick,exports.rCar=rCar,exports.rEmail=rEmail,exports.rID=rID,exports.rMobile=rMobile,exports.rURL=rURL,exports.random=random,exports.set=set,exports.template=template,exports.throttle=throttle,exports.timestamp=timestamp,exports.toArray=toArray,exports.toFixed=toFixed,exports.toRawType=toRawType,exports.toTypeString=toTypeString,exports.trim=trim,exports.uid=uid,exports.unAES=unAES,exports.unBase64=unBase64,exports.unRSA=unRSA,exports.upperFirst=i$1,exports.upperFirstCamelCase=upperFirstCamelCase,exports.uuid=uuid,exports.zipObject=zipObject;
package/dist/index.mjs ADDED
@@ -0,0 +1,49 @@
1
+ var Ii=typeof global=="object"&&global&&global.Object===Object&&global;const Xe=Ii;var Pi=typeof self=="object"&&self&&self.Object===Object&&self,Ni=Xe||Pi||Function("return this")();const nt=Ni;var Fi=nt.Symbol;const st=Fi;var tr=Object.prototype,ji=tr.hasOwnProperty,Li=tr.toString,jt=st?st.toStringTag:void 0;function Hi(e){var t=ji.call(e,jt),r=e[jt];try{e[jt]=void 0;var n=!0}catch{}var i=Li.call(e);return n&&(t?e[jt]=r:delete e[jt]),i}var Ui=Object.prototype,Vi=Ui.toString;function zi(e){return Vi.call(e)}var qi="[object Null]",ki="[object Undefined]",er=st?st.toStringTag:void 0;function X(e){return e==null?e===void 0?ki:qi:er&&er in Object(e)?Hi(e):zi(e)}function W(e){return e!=null&&typeof e=="object"}var Ki="[object Symbol]";function Lt(e){return typeof e=="symbol"||W(e)&&X(e)==Ki}function rr(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Yi=Array.isArray;const et=Yi;var Wi=1/0,nr=st?st.prototype:void 0,ir=nr?nr.toString:void 0;function sr(e){if(typeof e=="string")return e;if(et(e))return rr(e,sr)+"";if(Lt(e))return ir?ir.call(e):"";var t=e+"";return t=="0"&&1/e==-Wi?"-0":t}var Zi=/\s/;function Gi(e){for(var t=e.length;t--&&Zi.test(e.charAt(t)););return t}var Ji=/^\s+/;function Qi(e){return e&&e.slice(0,Gi(e)+1).replace(Ji,"")}function Z(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var or=NaN,Xi=/^[-+]0x[0-9a-f]+$/i,ts=/^0b[01]+$/i,es=/^0o[0-7]+$/i,rs=parseInt;function ar(e){if(typeof e=="number")return e;if(Lt(e))return or;if(Z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Qi(e);var r=ts.test(e);return r||es.test(e)?rs(e.slice(2),r?2:8):Xi.test(e)?or:+e}function ur(e){return e}var ns="[object AsyncFunction]",is="[object Function]",ss="[object GeneratorFunction]",os="[object Proxy]";function Yt(e){if(!Z(e))return!1;var t=X(e);return t==is||t==ss||t==ns||t==os}var as=nt["__core-js_shared__"];const de=as;var fr=function(){var e=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function us(e){return!!fr&&fr in e}var fs=Function.prototype,cs=fs.toString;function mt(e){if(e!=null){try{return cs.call(e)}catch{}try{return e+""}catch{}}return""}var hs=/[\\^$.*+?()[\]{}|]/g,ls=/^\[object .+?Constructor\]$/,ds=Function.prototype,ps=Object.prototype,vs=ds.toString,gs=ps.hasOwnProperty,ys=RegExp("^"+vs.call(gs).replace(hs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ms(e){if(!Z(e)||us(e))return!1;var t=Yt(e)?ys:ls;return t.test(mt(e))}function bs(e,t){return e?.[t]}function bt(e,t){var r=bs(e,t);return ms(r)?r:void 0}var xs=bt(nt,"WeakMap");const pe=xs;var cr=Object.create,_s=function(){function e(){}return function(t){if(!Z(t))return{};if(cr)return cr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ws=_s;function hr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ts(){}function lr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ss=800,Es=16,As=Date.now;function Ds(e){var t=0,r=0;return function(){var n=As(),i=Es-(n-r);if(r=n,i>0){if(++t>=Ss)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Os(e){return function(){return e}}var $s=function(){try{var e=bt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Wt=$s;var Bs=Wt?function(e,t){return Wt(e,"toString",{configurable:!0,enumerable:!1,value:Os(t),writable:!0})}:ur;const Rs=Bs;var Ms=Ds(Rs);const Cs=Ms;function Is(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ps=9007199254740991,Ns=/^(?:0|[1-9]\d*)$/;function ve(e,t){var r=typeof e;return t=t??Ps,!!t&&(r=="number"||r!="symbol"&&Ns.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,r){t=="__proto__"&&Wt?Wt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Et(e,t){return e===t||e!==e&&t!==t}var Fs=Object.prototype,js=Fs.hasOwnProperty;function ye(e,t,r){var n=e[t];(!(js.call(e,t)&&Et(n,r))||r===void 0&&!(t in e))&&ge(e,t,r)}function At(e,t,r,n){var i=!r;r||(r={});for(var s=-1,u=t.length;++s<u;){var a=t[s],c=n?n(r[a],e[a],a,r,e):void 0;c===void 0&&(c=e[a]),i?ge(r,a,c):ye(r,a,c)}return r}var dr=Math.max;function Ls(e,t,r){return t=dr(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=dr(n.length-t,0),u=Array(s);++i<s;)u[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(u),hr(e,this,a)}}function pr(e,t){return Cs(Ls(e,t,ur),e+"")}var Hs=9007199254740991;function vr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hs}function Zt(e){return e!=null&&vr(e.length)&&!Yt(e)}function gr(e,t,r){if(!Z(r))return!1;var n=typeof t;return(n=="number"?Zt(r)&&ve(t,r.length):n=="string"&&t in r)?Et(r[t],e):!1}function yr(e){return pr(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,u&&gr(r[0],r[1],u)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var Us=Object.prototype;function me(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Us;return e===r}function Vs(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var zs="[object Arguments]";function mr(e){return W(e)&&X(e)==zs}var br=Object.prototype,qs=br.hasOwnProperty,ks=br.propertyIsEnumerable,Ks=mr(function(){return arguments}())?mr:function(e){return W(e)&&qs.call(e,"callee")&&!ks.call(e,"callee")};const be=Ks;function Ys(){return!1}var xr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_r=xr&&typeof module=="object"&&module&&!module.nodeType&&module,Ws=_r&&_r.exports===xr,wr=Ws?nt.Buffer:void 0,Zs=wr?wr.isBuffer:void 0,Gs=Zs||Ys;const Dt=Gs;var Js="[object Arguments]",Qs="[object Array]",Xs="[object Boolean]",to="[object Date]",eo="[object Error]",ro="[object Function]",no="[object Map]",io="[object Number]",so="[object Object]",oo="[object RegExp]",ao="[object Set]",uo="[object String]",fo="[object WeakMap]",co="[object ArrayBuffer]",ho="[object DataView]",lo="[object Float32Array]",po="[object Float64Array]",vo="[object Int8Array]",go="[object Int16Array]",yo="[object Int32Array]",mo="[object Uint8Array]",bo="[object Uint8ClampedArray]",xo="[object Uint16Array]",_o="[object Uint32Array]",k={};k[lo]=k[po]=k[vo]=k[go]=k[yo]=k[mo]=k[bo]=k[xo]=k[_o]=!0,k[Js]=k[Qs]=k[co]=k[Xs]=k[ho]=k[to]=k[eo]=k[ro]=k[no]=k[io]=k[so]=k[oo]=k[ao]=k[uo]=k[fo]=!1;function wo(e){return W(e)&&vr(e.length)&&!!k[X(e)]}function Ht(e){return function(t){return e(t)}}var Tr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ut=Tr&&typeof module=="object"&&module&&!module.nodeType&&module,To=Ut&&Ut.exports===Tr,xe=To&&Xe.process,So=function(){try{var e=Ut&&Ut.require&&Ut.require("util").types;return e||xe&&xe.binding&&xe.binding("util")}catch{}}();const ot=So;var Sr=ot&&ot.isTypedArray,Eo=Sr?Ht(Sr):wo;const _e=Eo;var Ao=Object.prototype,Do=Ao.hasOwnProperty;function Er(e,t){var r=et(e),n=!r&&be(e),i=!r&&!n&&Dt(e),s=!r&&!n&&!i&&_e(e),u=r||n||i||s,a=u?Vs(e.length,String):[],c=a.length;for(var o in e)(t||Do.call(e,o))&&!(u&&(o=="length"||i&&(o=="offset"||o=="parent")||s&&(o=="buffer"||o=="byteLength"||o=="byteOffset")||ve(o,c)))&&a.push(o);return a}function Ar(e,t){return function(r){return e(t(r))}}var Oo=Ar(Object.keys,Object);const $o=Oo;var Bo=Object.prototype,Ro=Bo.hasOwnProperty;function Mo(e){if(!me(e))return $o(e);var t=[];for(var r in Object(e))Ro.call(e,r)&&r!="constructor"&&t.push(r);return t}function Gt(e){return Zt(e)?Er(e):Mo(e)}function Co(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Io=Object.prototype,Po=Io.hasOwnProperty;function No(e){if(!Z(e))return Co(e);var t=me(e),r=[];for(var n in e)n=="constructor"&&(t||!Po.call(e,n))||r.push(n);return r}function Ot(e){return Zt(e)?Er(e,!0):No(e)}var Fo=yr(function(e,t,r,n){At(t,Ot(t),e,n)});const Dr=Fo;var jo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lo=/^\w*$/;function Ho(e,t){if(et(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Lt(e)?!0:Lo.test(e)||!jo.test(e)||t!=null&&e in Object(t)}var Uo=bt(Object,"create");const Vt=Uo;function Vo(){this.__data__=Vt?Vt(null):{},this.size=0}function zo(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qo="__lodash_hash_undefined__",ko=Object.prototype,Ko=ko.hasOwnProperty;function Yo(e){var t=this.__data__;if(Vt){var r=t[e];return r===qo?void 0:r}return Ko.call(t,e)?t[e]:void 0}var Wo=Object.prototype,Zo=Wo.hasOwnProperty;function Go(e){var t=this.__data__;return Vt?t[e]!==void 0:Zo.call(t,e)}var Jo="__lodash_hash_undefined__";function Qo(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vt&&t===void 0?Jo:t,this}function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xt.prototype.clear=Vo,xt.prototype.delete=zo,xt.prototype.get=Yo,xt.prototype.has=Go,xt.prototype.set=Qo;function Xo(){this.__data__=[],this.size=0}function Jt(e,t){for(var r=e.length;r--;)if(Et(e[r][0],t))return r;return-1}var ta=Array.prototype,ea=ta.splice;function ra(e){var t=this.__data__,r=Jt(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ea.call(t,r,1),--this.size,!0}function na(e){var t=this.__data__,r=Jt(t,e);return r<0?void 0:t[r][1]}function ia(e){return Jt(this.__data__,e)>-1}function sa(e,t){var r=this.__data__,n=Jt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ut(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ut.prototype.clear=Xo,ut.prototype.delete=ra,ut.prototype.get=na,ut.prototype.has=ia,ut.prototype.set=sa;var oa=bt(nt,"Map");const zt=oa;function aa(){this.size=0,this.__data__={hash:new xt,map:new(zt||ut),string:new xt}}function ua(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qt(e,t){var r=e.__data__;return ua(t)?r[typeof t=="string"?"string":"hash"]:r.map}function fa(e){var t=Qt(this,e).delete(e);return this.size-=t?1:0,t}function ca(e){return Qt(this,e).get(e)}function ha(e){return Qt(this,e).has(e)}function la(e,t){var r=Qt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ft.prototype.clear=aa,ft.prototype.delete=fa,ft.prototype.get=ca,ft.prototype.has=ha,ft.prototype.set=la;var da="Expected a function";function we(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(da);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var u=e.apply(this,n);return r.cache=s.set(i,u)||s,u};return r.cache=new(we.Cache||ft),r}we.Cache=ft;var pa=500;function va(e){var t=we(e,function(n){return r.size===pa&&r.clear(),n}),r=t.cache;return t}var ga=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ya=/\\(\\)?/g,ma=va(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ga,function(r,n,i,s){t.push(i?s.replace(ya,"$1"):n||r)}),t});const ba=ma;function _t(e){return e==null?"":sr(e)}function Or(e,t){return et(e)?e:Ho(e,t)?[e]:ba(_t(e))}var xa=1/0;function $r(e){if(typeof e=="string"||Lt(e))return e;var t=e+"";return t=="0"&&1/e==-xa?"-0":t}function _a(e,t){t=Or(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[$r(t[r++])];return r&&r==n?e:void 0}function wa(e,t,r){var n=e==null?void 0:_a(e,t);return n===void 0?r:n}function Br(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Ta=Ar(Object.getPrototypeOf,Object);const Te=Ta;var Sa="[object Object]",Ea=Function.prototype,Aa=Object.prototype,Rr=Ea.toString,Da=Aa.hasOwnProperty,Oa=Rr.call(Object);function Se(e){if(!W(e)||X(e)!=Sa)return!1;var t=Te(e);if(t===null)return!0;var r=Da.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Rr.call(r)==Oa}var $a="[object DOMException]",Ba="[object Error]";function Mr(e){if(!W(e))return!1;var t=X(e);return t==Ba||t==$a||typeof e.message=="string"&&typeof e.name=="string"&&!Se(e)}var Ra=pr(function(e,t){try{return hr(e,void 0,t)}catch(r){return Mr(r)?r:new Error(r)}});const Ma=Ra;function Ca(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function Ia(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Ca(e,t,r)}var Pa="\\ud800-\\udfff",Na="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",ja="\\u20d0-\\u20ff",La=Na+Fa+ja,Ha="\\ufe0e\\ufe0f",Ua="\\u200d",Va=RegExp("["+Ua+Pa+La+Ha+"]");function Cr(e){return Va.test(e)}function za(e){return e.split("")}var Ir="\\ud800-\\udfff",qa="\\u0300-\\u036f",ka="\\ufe20-\\ufe2f",Ka="\\u20d0-\\u20ff",Ya=qa+ka+Ka,Wa="\\ufe0e\\ufe0f",Za="["+Ir+"]",Ee="["+Ya+"]",Ae="\\ud83c[\\udffb-\\udfff]",Ga="(?:"+Ee+"|"+Ae+")",Pr="[^"+Ir+"]",Nr="(?:\\ud83c[\\udde6-\\uddff]){2}",Fr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ja="\\u200d",jr=Ga+"?",Lr="["+Wa+"]?",Qa="(?:"+Ja+"(?:"+[Pr,Nr,Fr].join("|")+")"+Lr+jr+")*",Xa=Lr+jr+Qa,tu="(?:"+[Pr+Ee+"?",Ee,Nr,Fr,Za].join("|")+")",eu=RegExp(Ae+"(?="+Ae+")|"+tu+Xa,"g");function ru(e){return e.match(eu)||[]}function nu(e){return Cr(e)?ru(e):za(e)}function Hr(e){return function(t){t=_t(t);var r=Cr(t)?nu(t):void 0,n=r?r[0]:t.charAt(0),i=r?Ia(r,1).join(""):t.slice(1);return n[e]()+i}}var iu=Hr("toUpperCase");const De=iu;function su(e){return De(_t(e).toLowerCase())}function ou(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function Ur(e){return function(t){return e?.[t]}}var au={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},uu=Ur(au);const fu=uu;var cu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hu="\\u0300-\\u036f",lu="\\ufe20-\\ufe2f",du="\\u20d0-\\u20ff",pu=hu+lu+du,vu="["+pu+"]",gu=RegExp(vu,"g");function yu(e){return e=_t(e),e&&e.replace(cu,fu).replace(gu,"")}var mu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function bu(e){return e.match(mu)||[]}var xu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function _u(e){return xu.test(e)}var Vr="\\ud800-\\udfff",wu="\\u0300-\\u036f",Tu="\\ufe20-\\ufe2f",Su="\\u20d0-\\u20ff",Eu=wu+Tu+Su,zr="\\u2700-\\u27bf",qr="a-z\\xdf-\\xf6\\xf8-\\xff",Au="\\xac\\xb1\\xd7\\xf7",Du="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ou="\\u2000-\\u206f",$u=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kr="A-Z\\xc0-\\xd6\\xd8-\\xde",Bu="\\ufe0e\\ufe0f",Kr=Au+Du+Ou+$u,Yr="['\u2019]",Wr="["+Kr+"]",Ru="["+Eu+"]",Zr="\\d+",Mu="["+zr+"]",Gr="["+qr+"]",Jr="[^"+Vr+Kr+Zr+zr+qr+kr+"]",Cu="\\ud83c[\\udffb-\\udfff]",Iu="(?:"+Ru+"|"+Cu+")",Pu="[^"+Vr+"]",Qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Xr="[\\ud800-\\udbff][\\udc00-\\udfff]",$t="["+kr+"]",Nu="\\u200d",tn="(?:"+Gr+"|"+Jr+")",Fu="(?:"+$t+"|"+Jr+")",en="(?:"+Yr+"(?:d|ll|m|re|s|t|ve))?",rn="(?:"+Yr+"(?:D|LL|M|RE|S|T|VE))?",nn=Iu+"?",sn="["+Bu+"]?",ju="(?:"+Nu+"(?:"+[Pu,Qr,Xr].join("|")+")"+sn+nn+")*",Lu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Uu=sn+nn+ju,Vu="(?:"+[Mu,Qr,Xr].join("|")+")"+Uu,zu=RegExp([$t+"?"+Gr+"+"+en+"(?="+[Wr,$t,"$"].join("|")+")",Fu+"+"+rn+"(?="+[Wr,$t+tn,"$"].join("|")+")",$t+"?"+tn+"+"+en,$t+"+"+rn,Hu,Lu,Zr,Vu].join("|"),"g");function qu(e){return e.match(zu)||[]}function ku(e,t,r){return e=_t(e),t=r?void 0:t,t===void 0?_u(e)?qu(e):bu(e):e.match(t)||[]}var Ku="['\u2019]",Yu=RegExp(Ku,"g");function on(e){return function(t){return ou(ku(yu(t).replace(Yu,"")),e,"")}}var Wu=on(function(e,t,r){return t=t.toLowerCase(),e+(r?su(t):t)});const an=Wu;function Zu(){this.__data__=new ut,this.size=0}function Gu(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ju(e){return this.__data__.get(e)}function Qu(e){return this.__data__.has(e)}var Xu=200;function tf(e,t){var r=this.__data__;if(r instanceof ut){var n=r.__data__;if(!zt||n.length<Xu-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ft(n)}return r.set(e,t),this.size=r.size,this}function at(e){var t=this.__data__=new ut(e);this.size=t.size}at.prototype.clear=Zu,at.prototype.delete=Gu,at.prototype.get=Ju,at.prototype.has=Qu,at.prototype.set=tf;function ef(e,t){return e&&At(t,Gt(t),e)}function rf(e,t){return e&&At(t,Ot(t),e)}var un=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fn=un&&typeof module=="object"&&module&&!module.nodeType&&module,nf=fn&&fn.exports===un,cn=nf?nt.Buffer:void 0,hn=cn?cn.allocUnsafe:void 0;function ln(e,t){if(t)return e.slice();var r=e.length,n=hn?hn(r):new e.constructor(r);return e.copy(n),n}function sf(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var u=e[r];t(u,r,e)&&(s[i++]=u)}return s}function dn(){return[]}var of=Object.prototype,af=of.propertyIsEnumerable,pn=Object.getOwnPropertySymbols,uf=pn?function(e){return e==null?[]:(e=Object(e),sf(pn(e),function(t){return af.call(e,t)}))}:dn;const Oe=uf;function ff(e,t){return At(e,Oe(e),t)}var cf=Object.getOwnPropertySymbols,hf=cf?function(e){for(var t=[];e;)Br(t,Oe(e)),e=Te(e);return t}:dn;const vn=hf;function lf(e,t){return At(e,vn(e),t)}function gn(e,t,r){var n=t(e);return et(e)?n:Br(n,r(e))}function $e(e){return gn(e,Gt,Oe)}function df(e){return gn(e,Ot,vn)}var pf=bt(nt,"DataView");const Be=pf;var vf=bt(nt,"Promise");const Re=vf;var gf=bt(nt,"Set");const Me=gf;var yn="[object Map]",yf="[object Object]",mn="[object Promise]",bn="[object Set]",xn="[object WeakMap]",_n="[object DataView]",mf=mt(Be),bf=mt(zt),xf=mt(Re),_f=mt(Me),wf=mt(pe),wt=X;(Be&&wt(new Be(new ArrayBuffer(1)))!=_n||zt&&wt(new zt)!=yn||Re&&wt(Re.resolve())!=mn||Me&&wt(new Me)!=bn||pe&&wt(new pe)!=xn)&&(wt=function(e){var t=X(e),r=t==yf?e.constructor:void 0,n=r?mt(r):"";if(n)switch(n){case mf:return _n;case bf:return yn;case xf:return mn;case _f:return bn;case wf:return xn}return t});const qt=wt;var Tf=Object.prototype,Sf=Tf.hasOwnProperty;function Ef(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Sf.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Af=nt.Uint8Array;const Xt=Af;function Ce(e){var t=new e.constructor(e.byteLength);return new Xt(t).set(new Xt(e)),t}function Df(e,t){var r=t?Ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Of=/\w*$/;function $f(e){var t=new e.constructor(e.source,Of.exec(e));return t.lastIndex=e.lastIndex,t}var wn=st?st.prototype:void 0,Tn=wn?wn.valueOf:void 0;function Bf(e){return Tn?Object(Tn.call(e)):{}}function Sn(e,t){var r=t?Ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Rf="[object Boolean]",Mf="[object Date]",Cf="[object Map]",If="[object Number]",Pf="[object RegExp]",Nf="[object Set]",Ff="[object String]",jf="[object Symbol]",Lf="[object ArrayBuffer]",Hf="[object DataView]",Uf="[object Float32Array]",Vf="[object Float64Array]",zf="[object Int8Array]",qf="[object Int16Array]",kf="[object Int32Array]",Kf="[object Uint8Array]",Yf="[object Uint8ClampedArray]",Wf="[object Uint16Array]",Zf="[object Uint32Array]";function Gf(e,t,r){var n=e.constructor;switch(t){case Lf:return Ce(e);case Rf:case Mf:return new n(+e);case Hf:return Df(e,r);case Uf:case Vf:case zf:case qf:case kf:case Kf:case Yf:case Wf:case Zf:return Sn(e,r);case Cf:return new n;case If:case Ff:return new n(e);case Pf:return $f(e);case Nf:return new n;case jf:return Bf(e)}}function En(e){return typeof e.constructor=="function"&&!me(e)?ws(Te(e)):{}}var Jf="[object Map]";function Qf(e){return W(e)&&qt(e)==Jf}var An=ot&&ot.isMap,Xf=An?Ht(An):Qf;const tc=Xf;var ec="[object Set]";function rc(e){return W(e)&&qt(e)==ec}var Dn=ot&&ot.isSet,nc=Dn?Ht(Dn):rc;const ic=nc;var sc=1,oc=2,ac=4,On="[object Arguments]",uc="[object Array]",fc="[object Boolean]",cc="[object Date]",hc="[object Error]",$n="[object Function]",lc="[object GeneratorFunction]",dc="[object Map]",pc="[object Number]",Bn="[object Object]",vc="[object RegExp]",gc="[object Set]",yc="[object String]",mc="[object Symbol]",bc="[object WeakMap]",xc="[object ArrayBuffer]",_c="[object DataView]",wc="[object Float32Array]",Tc="[object Float64Array]",Sc="[object Int8Array]",Ec="[object Int16Array]",Ac="[object Int32Array]",Dc="[object Uint8Array]",Oc="[object Uint8ClampedArray]",$c="[object Uint16Array]",Bc="[object Uint32Array]",q={};q[On]=q[uc]=q[xc]=q[_c]=q[fc]=q[cc]=q[wc]=q[Tc]=q[Sc]=q[Ec]=q[Ac]=q[dc]=q[pc]=q[Bn]=q[vc]=q[gc]=q[yc]=q[mc]=q[Dc]=q[Oc]=q[$c]=q[Bc]=!0,q[hc]=q[$n]=q[bc]=!1;function te(e,t,r,n,i,s){var u,a=t&sc,c=t&oc,o=t&ac;if(r&&(u=i?r(e,n,i,s):r(e)),u!==void 0)return u;if(!Z(e))return e;var f=et(e);if(f){if(u=Ef(e),!a)return lr(e,u)}else{var h=qt(e),l=h==$n||h==lc;if(Dt(e))return ln(e,a);if(h==Bn||h==On||l&&!i){if(u=c||l?{}:En(e),!a)return c?lf(e,rf(u,e)):ff(e,ef(u,e))}else{if(!q[h])return i?e:{};u=Gf(e,h,a)}}s||(s=new at);var d=s.get(e);if(d)return d;s.set(e,u),ic(e)?e.forEach(function(x){u.add(te(x,t,r,x,e,s))}):tc(e)&&e.forEach(function(x,A){u.set(A,te(x,t,r,A,e,s))});var v=o?c?df:$e:c?Ot:Gt,m=f?void 0:v(e);return Is(m||e,function(x,A){m&&(A=x,x=e[A]),ye(u,A,te(x,t,r,A,e,s))}),u}var Rc=1,Mc=4;function Cc(e){return te(e,Rc|Mc)}var Ic="__lodash_hash_undefined__";function Pc(e){return this.__data__.set(e,Ic),this}function Nc(e){return this.__data__.has(e)}function ee(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ft;++t<r;)this.add(e[t])}ee.prototype.add=ee.prototype.push=Pc,ee.prototype.has=Nc;function Fc(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function jc(e,t){return e.has(t)}var Lc=1,Hc=2;function Rn(e,t,r,n,i,s){var u=r&Lc,a=e.length,c=t.length;if(a!=c&&!(u&&c>a))return!1;var o=s.get(e),f=s.get(t);if(o&&f)return o==t&&f==e;var h=-1,l=!0,d=r&Hc?new ee:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var v=e[h],m=t[h];if(n)var x=u?n(m,v,h,t,e,s):n(v,m,h,e,t,s);if(x!==void 0){if(x)continue;l=!1;break}if(d){if(!Fc(t,function(A,g){if(!jc(d,g)&&(v===A||i(v,A,r,n,s)))return d.push(g)})){l=!1;break}}else if(!(v===m||i(v,m,r,n,s))){l=!1;break}}return s.delete(e),s.delete(t),l}function Uc(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Vc(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var zc=1,qc=2,kc="[object Boolean]",Kc="[object Date]",Yc="[object Error]",Wc="[object Map]",Zc="[object Number]",Gc="[object RegExp]",Jc="[object Set]",Qc="[object String]",Xc="[object Symbol]",th="[object ArrayBuffer]",eh="[object DataView]",Mn=st?st.prototype:void 0,Ie=Mn?Mn.valueOf:void 0;function rh(e,t,r,n,i,s,u){switch(r){case eh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case th:return!(e.byteLength!=t.byteLength||!s(new Xt(e),new Xt(t)));case kc:case Kc:case Zc:return Et(+e,+t);case Yc:return e.name==t.name&&e.message==t.message;case Gc:case Qc:return e==t+"";case Wc:var a=Uc;case Jc:var c=n&zc;if(a||(a=Vc),e.size!=t.size&&!c)return!1;var o=u.get(e);if(o)return o==t;n|=qc,u.set(e,t);var f=Rn(a(e),a(t),n,i,s,u);return u.delete(e),f;case Xc:if(Ie)return Ie.call(e)==Ie.call(t)}return!1}var nh=1,ih=Object.prototype,sh=ih.hasOwnProperty;function oh(e,t,r,n,i,s){var u=r&nh,a=$e(e),c=a.length,o=$e(t),f=o.length;if(c!=f&&!u)return!1;for(var h=c;h--;){var l=a[h];if(!(u?l in t:sh.call(t,l)))return!1}var d=s.get(e),v=s.get(t);if(d&&v)return d==t&&v==e;var m=!0;s.set(e,t),s.set(t,e);for(var x=u;++h<c;){l=a[h];var A=e[l],g=t[l];if(n)var y=u?n(g,A,l,t,e,s):n(A,g,l,e,t,s);if(!(y===void 0?A===g||i(A,g,r,n,s):y)){m=!1;break}x||(x=l=="constructor")}if(m&&!x){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(m=!1)}return s.delete(e),s.delete(t),m}var ah=1,Cn="[object Arguments]",In="[object Array]",re="[object Object]",uh=Object.prototype,Pn=uh.hasOwnProperty;function fh(e,t,r,n,i,s){var u=et(e),a=et(t),c=u?In:qt(e),o=a?In:qt(t);c=c==Cn?re:c,o=o==Cn?re:o;var f=c==re,h=o==re,l=c==o;if(l&&Dt(e)){if(!Dt(t))return!1;u=!0,f=!1}if(l&&!f)return s||(s=new at),u||_e(e)?Rn(e,t,r,n,i,s):rh(e,t,c,r,n,i,s);if(!(r&ah)){var d=f&&Pn.call(e,"__wrapped__"),v=h&&Pn.call(t,"__wrapped__");if(d||v){var m=d?e.value():e,x=v?t.value():t;return s||(s=new at),i(m,x,r,n,s)}}return l?(s||(s=new at),oh(e,t,r,n,i,s)):!1}function Nn(e,t,r,n,i){return e===t?!0:e==null||t==null||!W(e)&&!W(t)?e!==e&&t!==t:fh(e,t,r,n,Nn,i)}function ch(e){return function(t,r,n){for(var i=-1,s=Object(t),u=n(t),a=u.length;a--;){var c=u[e?a:++i];if(r(s[c],c,s)===!1)break}return t}}var hh=ch();const lh=hh;var dh=function(){return nt.Date.now()};const Pe=dh;var ph="Expected a function",vh=Math.max,gh=Math.min;function Fn(e,t,r){var n,i,s,u,a,c,o=0,f=!1,h=!1,l=!0;if(typeof e!="function")throw new TypeError(ph);t=ar(t)||0,Z(r)&&(f=!!r.leading,h="maxWait"in r,s=h?vh(ar(r.maxWait)||0,t):s,l="trailing"in r?!!r.trailing:l);function d(p){var S=n,$=i;return n=i=void 0,o=p,u=e.apply($,S),u}function v(p){return o=p,a=setTimeout(A,t),f?d(p):u}function m(p){var S=p-c,$=p-o,L=t-S;return h?gh(L,s-$):L}function x(p){var S=p-c,$=p-o;return c===void 0||S>=t||S<0||h&&$>=s}function A(){var p=Pe();if(x(p))return g(p);a=setTimeout(A,m(p))}function g(p){return a=void 0,l&&n?d(p):(n=i=void 0,u)}function y(){a!==void 0&&clearTimeout(a),o=0,n=c=i=a=void 0}function _(){return a===void 0?u:g(Pe())}function w(){var p=Pe(),S=x(p);if(n=arguments,i=this,c=p,S){if(a===void 0)return v(c);if(h)return clearTimeout(a),a=setTimeout(A,t),d(c)}return a===void 0&&(a=setTimeout(A,t)),u}return w.cancel=y,w.flush=_,w}function Ne(e,t,r){(r!==void 0&&!Et(e[t],r)||r===void 0&&!(t in e))&&ge(e,t,r)}function yh(e){return W(e)&&Zt(e)}function Fe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function mh(e){return At(e,Ot(e))}function bh(e,t,r,n,i,s,u){var a=Fe(e,r),c=Fe(t,r),o=u.get(c);if(o){Ne(e,r,o);return}var f=s?s(a,c,r+"",e,t,u):void 0,h=f===void 0;if(h){var l=et(c),d=!l&&Dt(c),v=!l&&!d&&_e(c);f=c,l||d||v?et(a)?f=a:yh(a)?f=lr(a):d?(h=!1,f=ln(c,!0)):v?(h=!1,f=Sn(c,!0)):f=[]:Se(c)||be(c)?(f=a,be(a)?f=mh(a):(!Z(a)||Yt(a))&&(f=En(c))):h=!1}h&&(u.set(c,f),i(f,c,n,s,u),u.delete(c)),Ne(e,r,f)}function jn(e,t,r,n,i){e!==t&&lh(t,function(s,u){if(i||(i=new at),Z(s))bh(e,t,u,r,jn,n,i);else{var a=n?n(Fe(e,u),s,u+"",e,t,i):void 0;a===void 0&&(a=s),Ne(e,u,a)}},Ot)}var xh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_h=Ur(xh);const wh=_h;var Ln=/[&<>"']/g,Th=RegExp(Ln.source);function Sh(e){return e=_t(e),e&&Th.test(e)?e.replace(Ln,wh):e}var Eh="[object String]";function Ah(e){return typeof e=="string"||!et(e)&&W(e)&&X(e)==Eh}function Dh(e,t){return rr(t,function(r){return e[r]})}var Oh="[object ArrayBuffer]";function $h(e){return W(e)&&X(e)==Oh}var Hn=ot&&ot.isArrayBuffer,Bh=Hn?Ht(Hn):$h;const Rh=Bh;var Mh="[object Boolean]";function Ch(e){return e===!0||e===!1||W(e)&&X(e)==Mh}var Ih="[object Date]";function Ph(e){return W(e)&&X(e)==Ih}var Un=ot&&ot.isDate,Nh=Un?Ht(Un):Ph;const Fh=Nh;function jh(e,t){return Nn(e,t)}var Lh="[object Number]";function Vn(e){return typeof e=="number"||W(e)&&X(e)==Lh}function Hh(e){return Vn(e)&&e!=+e}function Uh(e){return e===null}function Vh(e){return e===void 0}var zh=on(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const qh=zh;var kh=Hr("toLowerCase");const Kh=kh;var Yh=yr(function(e,t,r){jn(e,t,r)});const Wh=Yh;function Zh(e,t,r,n){if(!Z(e))return e;t=Or(t,e);for(var i=-1,s=t.length,u=s-1,a=e;a!=null&&++i<s;){var c=$r(t[i]),o=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=u){var f=a[c];o=n?n(f,c,a):void 0,o===void 0&&(o=Z(f)?f:ve(t[i+1])?[]:{})}ye(a,c,o),a=a[c]}return e}function Gh(e,t,r){return e==null?e:Zh(e,t,r)}var zn=Object.prototype,Jh=zn.hasOwnProperty;function qn(e,t,r,n){return e===void 0||Et(e,zn[r])&&!Jh.call(n,r)?t:e}var Qh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Xh(e){return"\\"+Qh[e]}var tl=/<%=([\s\S]+?)%>/g;const kn=tl;var el=/<%-([\s\S]+?)%>/g;const rl=el;var nl=/<%([\s\S]+?)%>/g;const il=nl;var sl={escape:rl,evaluate:il,interpolate:kn,variable:"",imports:{_:{escape:Sh}}};const Kn=sl;var ol="Invalid `variable` option passed into `_.template`",al=/\b__p \+= '';/g,ul=/\b(__p \+=) '' \+/g,fl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cl=/[()=,{}\[\]\/\s]/,hl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/($^)/,ll=/['\n\r\u2028\u2029\\]/g,dl=Object.prototype,Yn=dl.hasOwnProperty;function pl(e,t,r){var n=Kn.imports._.templateSettings||Kn;r&&gr(e,t,r)&&(t=void 0),e=_t(e),t=Dr({},t,n,qn);var i=Dr({},t.imports,n.imports,qn),s=Gt(i),u=Dh(i,s),a,c,o=0,f=t.interpolate||ne,h="__p += '",l=RegExp((t.escape||ne).source+"|"+f.source+"|"+(f===kn?hl:ne).source+"|"+(t.evaluate||ne).source+"|$","g"),d=Yn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
2
+ `:"";e.replace(l,function(x,A,g,y,_,w){return g||(g=y),h+=e.slice(o,w).replace(ll,Xh),A&&(a=!0,h+=`' +
3
+ __e(`+A+`) +
4
+ '`),_&&(c=!0,h+=`';
5
+ `+_+`;
6
+ __p += '`),g&&(h+=`' +
7
+ ((__t = (`+g+`)) == null ? '' : __t) +
8
+ '`),o=w+x.length,x}),h+=`';
9
+ `;var v=Yn.call(t,"variable")&&t.variable;if(!v)h=`with (obj) {
10
+ `+h+`
11
+ }
12
+ `;else if(cl.test(v))throw new Error(ol);h=(c?h.replace(al,""):h).replace(ul,"$1").replace(fl,"$1;"),h="function("+(v||"obj")+`) {
13
+ `+(v?"":`obj || (obj = {});
14
+ `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
15
+ function print() { __p += __j.call(arguments, '') }
16
+ `:`;
17
+ `)+h+`return __p
18
+ }`;var m=Ma(function(){return Function(s,d+"return "+h).apply(void 0,u)});if(m.source=h,Mr(m))throw m;return m}var vl="Expected a function";function gl(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(vl);return Z(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Fn(e,t,{leading:n,maxWait:t,trailing:i})}function yl(e){return De(an(e))}var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wn={exports:{}};function ml(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var je={exports:{}},Zn;function lt(){return Zn||(Zn=1,function(e,t){(function(r,n){e.exports=n()})(G,function(){var r=r||function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof G<"u"&&G.crypto&&(s=G.crypto),!s&&typeof ml=="function")try{s=require("crypto")}catch{}var u=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(y){var _;return g.prototype=y,_=new g,g.prototype=null,_}}(),c={},o=c.lib={},f=o.Base=function(){return{extend:function(g){var y=a(this);return g&&y.mixIn(g),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var y in g)g.hasOwnProperty(y)&&(this[y]=g[y]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=o.WordArray=f.extend({init:function(g,y){g=this.words=g||[],y!=i?this.sigBytes=y:this.sigBytes=g.length*4},toString:function(g){return(g||d).stringify(this)},concat:function(g){var y=this.words,_=g.words,w=this.sigBytes,p=g.sigBytes;if(this.clamp(),w%4)for(var S=0;S<p;S++){var $=_[S>>>2]>>>24-S%4*8&255;y[w+S>>>2]|=$<<24-(w+S)%4*8}else for(var L=0;L<p;L+=4)y[w+L>>>2]=_[L>>>2];return this.sigBytes+=p,this},clamp:function(){var g=this.words,y=this.sigBytes;g[y>>>2]&=4294967295<<32-y%4*8,g.length=n.ceil(y/4)},clone:function(){var g=f.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var y=[],_=0;_<g;_+=4)y.push(u());return new h.init(y,g)}}),l=c.enc={},d=l.Hex={stringify:function(g){for(var y=g.words,_=g.sigBytes,w=[],p=0;p<_;p++){var S=y[p>>>2]>>>24-p%4*8&255;w.push((S>>>4).toString(16)),w.push((S&15).toString(16))}return w.join("")},parse:function(g){for(var y=g.length,_=[],w=0;w<y;w+=2)_[w>>>3]|=parseInt(g.substr(w,2),16)<<24-w%8*4;return new h.init(_,y/2)}},v=l.Latin1={stringify:function(g){for(var y=g.words,_=g.sigBytes,w=[],p=0;p<_;p++){var S=y[p>>>2]>>>24-p%4*8&255;w.push(String.fromCharCode(S))}return w.join("")},parse:function(g){for(var y=g.length,_=[],w=0;w<y;w++)_[w>>>2]|=(g.charCodeAt(w)&255)<<24-w%4*8;return new h.init(_,y)}},m=l.Utf8={stringify:function(g){try{return decodeURIComponent(escape(v.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return v.parse(unescape(encodeURIComponent(g)))}},x=o.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=m.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var y,_=this._data,w=_.words,p=_.sigBytes,S=this.blockSize,$=S*4,L=p/$;g?L=n.ceil(L):L=n.max((L|0)-this._minBufferSize,0);var b=L*S,T=n.min(b*4,p);if(b){for(var N=0;N<b;N+=S)this._doProcessBlock(w,N);y=w.splice(0,b),_.sigBytes-=T}return new h.init(y,T)},clone:function(){var g=f.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});o.Hasher=x.extend({cfg:f.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){x.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(g){return function(y,_){return new g.init(_).finalize(y)}},_createHmacHelper:function(g){return function(y,_){return new A.HMAC.init(g,_).finalize(y)}}});var A=c.algo={};return c}(Math);return r})}(je)),je.exports}(function(e,t){(function(r,n){e.exports=n(lt())})(G,function(r){return function(n){var i=r,s=i.lib,u=s.WordArray,a=s.Hasher,c=i.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=n.abs(n.sin(m+1))*4294967296|0})();var f=c.MD5=a.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,x){for(var A=0;A<16;A++){var g=x+A,y=m[g];m[g]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,w=m[x+0],p=m[x+1],S=m[x+2],$=m[x+3],L=m[x+4],b=m[x+5],T=m[x+6],N=m[x+7],R=m[x+8],P=m[x+9],O=m[x+10],C=m[x+11],j=m[x+12],F=m[x+13],H=m[x+14],U=m[x+15],E=_[0],B=_[1],M=_[2],I=_[3];E=h(E,B,M,I,w,7,o[0]),I=h(I,E,B,M,p,12,o[1]),M=h(M,I,E,B,S,17,o[2]),B=h(B,M,I,E,$,22,o[3]),E=h(E,B,M,I,L,7,o[4]),I=h(I,E,B,M,b,12,o[5]),M=h(M,I,E,B,T,17,o[6]),B=h(B,M,I,E,N,22,o[7]),E=h(E,B,M,I,R,7,o[8]),I=h(I,E,B,M,P,12,o[9]),M=h(M,I,E,B,O,17,o[10]),B=h(B,M,I,E,C,22,o[11]),E=h(E,B,M,I,j,7,o[12]),I=h(I,E,B,M,F,12,o[13]),M=h(M,I,E,B,H,17,o[14]),B=h(B,M,I,E,U,22,o[15]),E=l(E,B,M,I,p,5,o[16]),I=l(I,E,B,M,T,9,o[17]),M=l(M,I,E,B,C,14,o[18]),B=l(B,M,I,E,w,20,o[19]),E=l(E,B,M,I,b,5,o[20]),I=l(I,E,B,M,O,9,o[21]),M=l(M,I,E,B,U,14,o[22]),B=l(B,M,I,E,L,20,o[23]),E=l(E,B,M,I,P,5,o[24]),I=l(I,E,B,M,H,9,o[25]),M=l(M,I,E,B,$,14,o[26]),B=l(B,M,I,E,R,20,o[27]),E=l(E,B,M,I,F,5,o[28]),I=l(I,E,B,M,S,9,o[29]),M=l(M,I,E,B,N,14,o[30]),B=l(B,M,I,E,j,20,o[31]),E=d(E,B,M,I,b,4,o[32]),I=d(I,E,B,M,R,11,o[33]),M=d(M,I,E,B,C,16,o[34]),B=d(B,M,I,E,H,23,o[35]),E=d(E,B,M,I,p,4,o[36]),I=d(I,E,B,M,L,11,o[37]),M=d(M,I,E,B,N,16,o[38]),B=d(B,M,I,E,O,23,o[39]),E=d(E,B,M,I,F,4,o[40]),I=d(I,E,B,M,w,11,o[41]),M=d(M,I,E,B,$,16,o[42]),B=d(B,M,I,E,T,23,o[43]),E=d(E,B,M,I,P,4,o[44]),I=d(I,E,B,M,j,11,o[45]),M=d(M,I,E,B,U,16,o[46]),B=d(B,M,I,E,S,23,o[47]),E=v(E,B,M,I,w,6,o[48]),I=v(I,E,B,M,N,10,o[49]),M=v(M,I,E,B,H,15,o[50]),B=v(B,M,I,E,b,21,o[51]),E=v(E,B,M,I,j,6,o[52]),I=v(I,E,B,M,$,10,o[53]),M=v(M,I,E,B,O,15,o[54]),B=v(B,M,I,E,p,21,o[55]),E=v(E,B,M,I,R,6,o[56]),I=v(I,E,B,M,U,10,o[57]),M=v(M,I,E,B,T,15,o[58]),B=v(B,M,I,E,F,21,o[59]),E=v(E,B,M,I,L,6,o[60]),I=v(I,E,B,M,C,10,o[61]),M=v(M,I,E,B,S,15,o[62]),B=v(B,M,I,E,P,21,o[63]),_[0]=_[0]+E|0,_[1]=_[1]+B|0,_[2]=_[2]+M|0,_[3]=_[3]+I|0},_doFinalize:function(){var m=this._data,x=m.words,A=this._nDataBytes*8,g=m.sigBytes*8;x[g>>>5]|=128<<24-g%32;var y=n.floor(A/4294967296),_=A;x[(g+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,x[(g+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m.sigBytes=(x.length+1)*4,this._process();for(var w=this._hash,p=w.words,S=0;S<4;S++){var $=p[S];p[S]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return w},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,x,A,g,y,_,w){var p=m+(x&A|~x&g)+y+w;return(p<<_|p>>>32-_)+x}function l(m,x,A,g,y,_,w){var p=m+(x&g|A&~g)+y+w;return(p<<_|p>>>32-_)+x}function d(m,x,A,g,y,_,w){var p=m+(x^A^g)+y+w;return(p<<_|p>>>32-_)+x}function v(m,x,A,g,y,_,w){var p=m+(A^(x|~g))+y+w;return(p<<_|p>>>32-_)+x}i.MD5=a._createHelper(f),i.HmacMD5=a._createHmacHelper(f)}(Math),r.MD5})})(Wn);var Gn=Wn.exports;const bl=Bt(Gn);var Jn={exports:{}};(function(e,t){(function(r,n){e.exports=n(lt())})(G,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,u=n.enc;u.Base64={stringify:function(c){var o=c.words,f=c.sigBytes,h=this._map;c.clamp();for(var l=[],d=0;d<f;d+=3)for(var v=o[d>>>2]>>>24-d%4*8&255,m=o[d+1>>>2]>>>24-(d+1)%4*8&255,x=o[d+2>>>2]>>>24-(d+2)%4*8&255,A=v<<16|m<<8|x,g=0;g<4&&d+g*.75<f;g++)l.push(h.charAt(A>>>6*(3-g)&63));var y=h.charAt(64);if(y)for(;l.length%4;)l.push(y);return l.join("")},parse:function(c){var o=c.length,f=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var l=0;l<f.length;l++)h[f.charCodeAt(l)]=l}var d=f.charAt(64);if(d){var v=c.indexOf(d);v!==-1&&(o=v)}return a(c,o,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,o,f){for(var h=[],l=0,d=0;d<o;d++)if(d%4){var v=f[c.charCodeAt(d-1)]<<d%4*2,m=f[c.charCodeAt(d)]>>>6-d%4*2,x=v|m;h[l>>>2]|=x<<24-l%4*8,l++}return s.create(h,l)}}(),r.enc.Base64})})(Jn);var Qn=Jn.exports;const Xn=Bt(Qn);var ti={exports:{}};(function(e,t){(function(r,n){e.exports=n(lt())})(G,function(r){return r.enc.Utf8})})(ti);var xl=ti.exports;const Le=Bt(xl);var ei={exports:{}},He={exports:{}},Ue={exports:{}},ri;function _l(){return ri||(ri=1,function(e,t){(function(r,n){e.exports=n(lt())})(G,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,u=i.Hasher,a=n.algo,c=[],o=a.SHA1=u.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,h){for(var l=this._hash.words,d=l[0],v=l[1],m=l[2],x=l[3],A=l[4],g=0;g<80;g++){if(g<16)c[g]=f[h+g]|0;else{var y=c[g-3]^c[g-8]^c[g-14]^c[g-16];c[g]=y<<1|y>>>31}var _=(d<<5|d>>>27)+A+c[g];g<20?_+=(v&m|~v&x)+1518500249:g<40?_+=(v^m^x)+1859775393:g<60?_+=(v&m|v&x|m&x)-1894007588:_+=(v^m^x)-899497514,A=x,x=m,m=v<<30|v>>>2,v=d,d=_}l[0]=l[0]+d|0,l[1]=l[1]+v|0,l[2]=l[2]+m|0,l[3]=l[3]+x|0,l[4]=l[4]+A|0},_doFinalize:function(){var f=this._data,h=f.words,l=this._nDataBytes*8,d=f.sigBytes*8;return h[d>>>5]|=128<<24-d%32,h[(d+64>>>9<<4)+14]=Math.floor(l/4294967296),h[(d+64>>>9<<4)+15]=l,f.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var f=u.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=u._createHelper(o),n.HmacSHA1=u._createHmacHelper(o)}(),r.SHA1})}(Ue)),Ue.exports}var Ve={exports:{}},ni;function wl(){return ni||(ni=1,function(e,t){(function(r,n){e.exports=n(lt())})(G,function(r){(function(){var n=r,i=n.lib,s=i.Base,u=n.enc,a=u.Utf8,c=n.algo;c.HMAC=s.extend({init:function(o,f){o=this._hasher=new o.init,typeof f=="string"&&(f=a.parse(f));var h=o.blockSize,l=h*4;f.sigBytes>l&&(f=o.finalize(f)),f.clamp();for(var d=this._oKey=f.clone(),v=this._iKey=f.clone(),m=d.words,x=v.words,A=0;A<h;A++)m[A]^=1549556828,x[A]^=909522486;d.sigBytes=v.sigBytes=l,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var f=this._hasher,h=f.finalize(o);f.reset();var l=f.finalize(this._oKey.clone().concat(h));return l}})})()})}(Ve)),Ve.exports}var ii;function si(){return ii||(ii=1,function(e,t){(function(r,n,i){e.exports=n(lt(),_l(),wl())})(G,function(r){return function(){var n=r,i=n.lib,s=i.Base,u=i.WordArray,a=n.algo,c=a.MD5,o=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:c,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,h){for(var l,d=this.cfg,v=d.hasher.create(),m=u.create(),x=m.words,A=d.keySize,g=d.iterations;x.length<A;){l&&v.update(l),l=v.update(f).finalize(h),v.reset();for(var y=1;y<g;y++)l=v.finalize(l),v.reset();m.concat(l)}return m.sigBytes=A*4,m}});n.EvpKDF=function(f,h,l){return o.create(l).compute(f,h)}}(),r.EvpKDF})}(He)),He.exports}var ze={exports:{}},oi;function Tl(){return oi||(oi=1,function(e,t){(function(r,n,i){e.exports=n(lt(),si())})(G,function(r){r.lib.Cipher||function(n){var i=r,s=i.lib,u=s.Base,a=s.WordArray,c=s.BufferedBlockAlgorithm,o=i.enc;o.Utf8;var f=o.Base64,h=i.algo,l=h.EvpKDF,d=s.Cipher=c.extend({cfg:u.extend(),createEncryptor:function(b,T){return this.create(this._ENC_XFORM_MODE,b,T)},createDecryptor:function(b,T){return this.create(this._DEC_XFORM_MODE,b,T)},init:function(b,T,N){this.cfg=this.cfg.extend(N),this._xformMode=b,this._key=T,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(b){return this._append(b),this._process()},finalize:function(b){b&&this._append(b);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function b(T){return typeof T=="string"?L:p}return function(T){return{encrypt:function(N,R,P){return b(R).encrypt(T,N,R,P)},decrypt:function(N,R,P){return b(R).decrypt(T,N,R,P)}}}}()});s.StreamCipher=d.extend({_doFinalize:function(){var b=this._process(!0);return b},blockSize:1});var v=i.mode={},m=s.BlockCipherMode=u.extend({createEncryptor:function(b,T){return this.Encryptor.create(b,T)},createDecryptor:function(b,T){return this.Decryptor.create(b,T)},init:function(b,T){this._cipher=b,this._iv=T}}),x=v.CBC=function(){var b=m.extend();b.Encryptor=b.extend({processBlock:function(N,R){var P=this._cipher,O=P.blockSize;T.call(this,N,R,O),P.encryptBlock(N,R),this._prevBlock=N.slice(R,R+O)}}),b.Decryptor=b.extend({processBlock:function(N,R){var P=this._cipher,O=P.blockSize,C=N.slice(R,R+O);P.decryptBlock(N,R),T.call(this,N,R,O),this._prevBlock=C}});function T(N,R,P){var O,C=this._iv;C?(O=C,this._iv=n):O=this._prevBlock;for(var j=0;j<P;j++)N[R+j]^=O[j]}return b}(),A=i.pad={},g=A.Pkcs7={pad:function(b,T){for(var N=T*4,R=N-b.sigBytes%N,P=R<<24|R<<16|R<<8|R,O=[],C=0;C<R;C+=4)O.push(P);var j=a.create(O,R);b.concat(j)},unpad:function(b){var T=b.words[b.sigBytes-1>>>2]&255;b.sigBytes-=T}};s.BlockCipher=d.extend({cfg:d.cfg.extend({mode:x,padding:g}),reset:function(){var b;d.reset.call(this);var T=this.cfg,N=T.iv,R=T.mode;this._xformMode==this._ENC_XFORM_MODE?b=R.createEncryptor:(b=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==b?this._mode.init(this,N&&N.words):(this._mode=b.call(R,this,N&&N.words),this._mode.__creator=b)},_doProcessBlock:function(b,T){this._mode.processBlock(b,T)},_doFinalize:function(){var b,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),b=this._process(!0)):(b=this._process(!0),T.unpad(b)),b},blockSize:128/32});var y=s.CipherParams=u.extend({init:function(b){this.mixIn(b)},toString:function(b){return(b||this.formatter).stringify(this)}}),_=i.format={},w=_.OpenSSL={stringify:function(b){var T,N=b.ciphertext,R=b.salt;return R?T=a.create([1398893684,1701076831]).concat(R).concat(N):T=N,T.toString(f)},parse:function(b){var T,N=f.parse(b),R=N.words;return R[0]==1398893684&&R[1]==1701076831&&(T=a.create(R.slice(2,4)),R.splice(0,4),N.sigBytes-=16),y.create({ciphertext:N,salt:T})}},p=s.SerializableCipher=u.extend({cfg:u.extend({format:w}),encrypt:function(b,T,N,R){R=this.cfg.extend(R);var P=b.createEncryptor(N,R),O=P.finalize(T),C=P.cfg;return y.create({ciphertext:O,key:N,iv:C.iv,algorithm:b,mode:C.mode,padding:C.padding,blockSize:b.blockSize,formatter:R.format})},decrypt:function(b,T,N,R){R=this.cfg.extend(R),T=this._parse(T,R.format);var P=b.createDecryptor(N,R).finalize(T.ciphertext);return P},_parse:function(b,T){return typeof b=="string"?T.parse(b,this):b}}),S=i.kdf={},$=S.OpenSSL={execute:function(b,T,N,R,P){if(R||(R=a.random(64/8)),P)var O=l.create({keySize:T+N,hasher:P}).compute(b,R);else var O=l.create({keySize:T+N}).compute(b,R);var C=a.create(O.words.slice(T),N*4);return O.sigBytes=T*4,y.create({key:O,iv:C,salt:R})}},L=s.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:$}),encrypt:function(b,T,N,R){R=this.cfg.extend(R);var P=R.kdf.execute(N,b.keySize,b.ivSize,R.salt,R.hasher);R.iv=P.iv;var O=p.encrypt.call(this,b,T,P.key,R);return O.mixIn(P),O},decrypt:function(b,T,N,R){R=this.cfg.extend(R),T=this._parse(T,R.format);var P=R.kdf.execute(N,b.keySize,b.ivSize,T.salt,R.hasher);R.iv=P.iv;var O=p.decrypt.call(this,b,T,P.key,R);return O}})}()})}(ze)),ze.exports}(function(e,t){(function(r,n,i){e.exports=n(lt(),Qn,Gn,si(),Tl())})(G,function(r){return function(){var n=r,i=n.lib,s=i.BlockCipher,u=n.algo,a=[],c=[],o=[],f=[],h=[],l=[],d=[],v=[],m=[],x=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var w=0,p=0,_=0;_<256;_++){var S=p^p<<1^p<<2^p<<3^p<<4;S=S>>>8^S&255^99,a[w]=S,c[S]=w;var $=y[w],L=y[$],b=y[L],T=y[S]*257^S*16843008;o[w]=T<<24|T>>>8,f[w]=T<<16|T>>>16,h[w]=T<<8|T>>>24,l[w]=T;var T=b*16843009^L*65537^$*257^w*16843008;d[S]=T<<24|T>>>8,v[S]=T<<16|T>>>16,m[S]=T<<8|T>>>24,x[S]=T,w?(w=$^y[y[y[b^$]]],p^=y[y[p]]):w=p=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],g=u.AES=s.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,w=_.words,p=_.sigBytes/4,S=this._nRounds=p+6,$=(S+1)*4,L=this._keySchedule=[],b=0;b<$;b++)b<p?L[b]=w[b]:(y=L[b-1],b%p?p>6&&b%p==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=A[b/p|0]<<24),L[b]=L[b-p]^y);for(var T=this._invKeySchedule=[],N=0;N<$;N++){var b=$-N;if(N%4)var y=L[b];else var y=L[b-4];N<4||b<=4?T[N]=y:T[N]=d[a[y>>>24]]^v[a[y>>>16&255]]^m[a[y>>>8&255]]^x[a[y&255]]}}},encryptBlock:function(y,_){this._doCryptBlock(y,_,this._keySchedule,o,f,h,l,a)},decryptBlock:function(y,_){var w=y[_+1];y[_+1]=y[_+3],y[_+3]=w,this._doCryptBlock(y,_,this._invKeySchedule,d,v,m,x,c);var w=y[_+1];y[_+1]=y[_+3],y[_+3]=w},_doCryptBlock:function(y,_,w,p,S,$,L,b){for(var T=this._nRounds,N=y[_]^w[0],R=y[_+1]^w[1],P=y[_+2]^w[2],O=y[_+3]^w[3],C=4,j=1;j<T;j++){var F=p[N>>>24]^S[R>>>16&255]^$[P>>>8&255]^L[O&255]^w[C++],H=p[R>>>24]^S[P>>>16&255]^$[O>>>8&255]^L[N&255]^w[C++],U=p[P>>>24]^S[O>>>16&255]^$[N>>>8&255]^L[R&255]^w[C++],E=p[O>>>24]^S[N>>>16&255]^$[R>>>8&255]^L[P&255]^w[C++];N=F,R=H,P=U,O=E}var F=(b[N>>>24]<<24|b[R>>>16&255]<<16|b[P>>>8&255]<<8|b[O&255])^w[C++],H=(b[R>>>24]<<24|b[P>>>16&255]<<16|b[O>>>8&255]<<8|b[N&255])^w[C++],U=(b[P>>>24]<<24|b[O>>>16&255]<<16|b[N>>>8&255]<<8|b[R&255])^w[C++],E=(b[O>>>24]<<24|b[N>>>16&255]<<16|b[R>>>8&255]<<8|b[P&255])^w[C++];y[_]=F,y[_+1]=H,y[_+2]=U,y[_+3]=E},keySize:256/32});n.AES=s._createHelper(g)}(),r.AES})})(ei);var Sl=ei.exports;const ai=Bt(Sl);var El="0123456789abcdefghijklmnopqrstuvwxyz";function ct(e){return El.charAt(e)}function Al(e,t){return e&t}function ie(e,t){return e|t}function ui(e,t){return e^t}function fi(e,t){return e&~t}function Dl(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function Ol(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ci="=";function se(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=Rt.charAt(r>>6)+Rt.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=Rt.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=Rt.charAt(r>>2)+Rt.charAt((r&3)<<4));(n.length&3)>0;)n+=ci;return n}function hi(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=ci;++r){var s=Rt.indexOf(e.charAt(r));s<0||(n==0?(t+=ct(s>>2),i=s&3,n=1):n==1?(t+=ct(i<<2|s>>4),i=s&15,n=2):n==2?(t+=ct(i),t+=ct(s>>2),i=s&3,n=3):(t+=ct(i<<2|s>>4),t+=ct(s&15),n=0))}return n==1&&(t+=ct(i<<2)),t}var Mt,$l={decode:function(e){var t;if(Mt===void 0){var r="0123456789ABCDEF",n=` \f
19
+ \r \xA0\u2028\u2029`;for(Mt={},t=0;t<16;++t)Mt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Mt[r.charAt(t)]=t;for(t=0;t<n.length;++t)Mt[n.charAt(t)]=-1}var i=[],s=0,u=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Mt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++u>=2?(i[i.length]=s,s=0,u=0):s<<=4}}if(u)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Tt,qe={decode:function(e){var t;if(Tt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
20
+ \r \xA0\u2028\u2029`;for(Tt=Object.create(null),t=0;t<64;++t)Tt[r.charAt(t)]=t;for(Tt["-"]=62,Tt._=63,t=0;t<n.length;++t)Tt[n.charAt(t)]=-1}var i=[],s=0,u=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Tt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++u>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,u=0):s<<=6}}switch(u){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=qe.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return qe.decode(e)}},Ct=1e13,kt=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,u;for(s=0;s<i;++s)u=n[s]*t+r,u<Ct?r=0:(r=0|u/Ct,u-=r*Ct),n[s]=u;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=Ct,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(Ct+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*Ct+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),li="\u2026",Bl=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Rl=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function It(e,t){return e.length>t&&(e=e.substring(0,t)+li),e}var ke=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
21
+ `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,u=t;u<r;)i=this.get(u++),s=this.get(u++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?Bl:Rl).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,u,a="";n==s&&++t<r;)n=this.get(t);if(u=r-t,u===0)return i?-1:0;if(u>4){for(a=n,u<<=3;!((+a^s)&128);)a=+a<<1,--u;a="("+u+` bit)
22
+ `}i&&(n=n-256);for(var c=new kt(n),o=t+1;o<r;++o)c.mulAdd(256,this.get(o));return a+c.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,u="("+s+` bit)
23
+ `,a="",c=t+1;c<r;++c){for(var o=this.get(c),f=c==r-1?i:0,h=7;h>=f;--h)a+=o>>h&1?"1":"0";if(a.length>n)return u+It(a,n)}return u+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return It(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
24
+ `;n/=2,i>n&&(r=t+n);for(var u=t;u<r;++u)s+=this.hexByte(this.get(u));return i>n&&(s+=li),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new kt,u=0,a=t;a<r;++a){var c=this.get(a);if(s.mulAdd(128,c&127),u+=7,!(c&128)){if(i==="")if(s=s.simplify(),s instanceof kt)s.sub(80),i="2."+s.toString();else{var o=s<80?s<40?0:1:2;i=o+"."+(s-o*40)}else i+="."+s.toString();if(i.length>n)return It(i,n);s=new kt,u=0}}return u>0&&(i+=".incomplete"),i},e}(),Ml=function(){function e(t,r,n,i,s){if(!(i instanceof di))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return It(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return It(this.stream.parseStringISO(r,r+n),t);case 30:return It(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
25
+ `,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof ke?r=t:r=new ke(t,0);var n=new ke(r),i=new di(r),s=e.decodeLength(r),u=r.pos,a=u-n.pos,c=null,o=function(){var h=[];if(s!==null){for(var l=u+s;r.pos<l;)h[h.length]=e.decode(r);if(r.pos!=l)throw new Error("Content size is not correct for container starting at offset "+u)}else try{for(;;){var d=e.decode(r);if(d.tag.isEOC())break;h[h.length]=d}s=u-r.pos}catch(v){throw new Error("Exception while decoding undefined length content: "+v)}return h};if(i.tagConstructed)c=o();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=o();for(var f=0;f<c.length;++f)if(c[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{c=null}if(c===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+u);r.pos=u+Math.abs(s)}return new e(n,a,s,i,c)},e}(),di=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new kt;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),dt,Cl=0xdeadbeefcafe,pi=(Cl&16777215)==15715070,J=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Il=(1<<26)/J[J.length-1],V=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,u="",a=this.t,c=this.DB-a*this.DB%r;if(a-- >0)for(c<this.DB&&(i=this[a]>>c)>0&&(s=!0,u=ct(i));a>=0;)c<r?(i=(this[a]&(1<<c)-1)<<r-c,i|=this[--a]>>(c+=this.DB-r)):(i=this[a]>>(c-=r)&n,c<=0&&(c+=this.DB,--a)),i>0&&(s=!0),s&&(u+=ct(i));return s?u:"0"},e.prototype.negate=function(){var t=z();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ae(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=z();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new vi(r):n=new gi(r),this.exp(t,n)},e.prototype.clone=function(){var t=z();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=z();return this.bitwiseTo(t,Al,r),r},e.prototype.or=function(t){var r=z();return this.bitwiseTo(t,ie,r),r},e.prototype.xor=function(t){var r=z();return this.bitwiseTo(t,ui,r),r},e.prototype.andNot=function(t){var r=z();return this.bitwiseTo(t,fi,r),r},e.prototype.not=function(){for(var t=z(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=z();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=z();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Dl(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=Ol(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,ie)},e.prototype.clearBit=function(t){return this.changeBit(t,fi)},e.prototype.flipBit=function(t){return this.changeBit(t,ui)},e.prototype.add=function(t){var r=z();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=z();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=z();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=z();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=z();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=z(),n=z();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=pt(1),u;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?u=new vi(r):r.isEven()?u=new Nl(r):u=new gi(r);var a=[],c=3,o=i-1,f=(1<<i)-1;if(a[1]=u.convert(this),i>1){var h=z();for(u.sqrTo(a[1],h);c<=f;)a[c]=z(),u.mulTo(h,a[c-2],a[c]),c+=2}var l=t.t-1,d,v=!0,m=z(),x;for(n=ae(t[l])-1;l>=0;){for(n>=o?d=t[l]>>n-o&f:(d=(t[l]&(1<<n+1)-1)<<o-n,l>0&&(d|=t[l-1]>>this.DB+n-o)),c=i;!(d&1);)d>>=1,--c;if((n-=c)<0&&(n+=this.DB,--l),v)a[d].copyTo(s),v=!1;else{for(;c>1;)u.sqrTo(s,m),u.sqrTo(m,s),c-=2;c>0?u.sqrTo(s,m):(x=s,s=m,m=x),u.mulTo(m,a[d],s)}for(;l>=0&&!(t[l]&1<<n);)u.sqrTo(s,m),x=s,s=m,m=x,--n<0&&(n=this.DB-1,--l)}return u.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=pt(1),u=pt(0),a=pt(0),c=pt(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!u.isEven())&&(s.addTo(this,s),u.subTo(t,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),u.subTo(c,u)):(i.subTo(n,i),r&&a.subTo(s,a),c.subTo(u,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new Pl)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),u=n.getLowestSetBit();if(u<0)return r;for(s<u&&(u=s),u>0&&(r.rShiftTo(u,r),n.rShiftTo(u,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return u>0&&n.lShiftTo(u,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=J[J.length-1]){for(r=0;r<J.length;++r)if(n[0]==J[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<J.length;){for(var i=J[r],s=r+1;s<J.length&&i<Il;)i*=J[s++];for(i=n.modInt(i);r<s;)if(i%J[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,u=0;--i>=0;){var a=n==8?+t[i]&255:mi(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,u==0?this[this.t++]=a:u+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-u)-1)<<u,this[this.t++]=a>>this.DB-u):this[this.t-1]|=a<<u,u+=n,u>=this.DB&&(u-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,u>0&&(this[this.t-1]|=(1<<this.DB-u)-1<<u)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,u=Math.floor(t/this.DB),a=this.s<<n&this.DM,c=this.t-1;c>=0;--c)r[c+u+1]=this[c]>>i|a,a=(this[c]&s)<<n;for(var c=u-1;c>=0;--c)r[c]=0;r[u]=a,r.t=this.t+u+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,u=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&u)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&u)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r?.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=z());var u=z(),a=this.s,c=t.s,o=this.DB-ae(i[i.t-1]);o>0?(i.lShiftTo(o,u),s.lShiftTo(o,n)):(i.copyTo(u),s.copyTo(n));var f=u.t,h=u[f-1];if(h!=0){var l=h*(1<<this.F1)+(f>1?u[f-2]>>this.F2:0),d=this.FV/l,v=(1<<this.F1)/l,m=1<<this.F2,x=n.t,A=x-f,g=r??z();for(u.dlShiftTo(A,g),n.compareTo(g)>=0&&(n[n.t++]=1,n.subTo(g,n)),e.ONE.dlShiftTo(f,g),g.subTo(u,u);u.t<f;)u[u.t++]=0;for(;--A>=0;){var y=n[--x]==h?this.DM:Math.floor(n[x]*d+(n[x-1]+m)*v);if((n[x]+=u.am(0,y,n,A,0,f))<y)for(u.dlShiftTo(A,g),n.subTo(g,n);n[x]<--y;)n.subTo(g,n)}r!=null&&(n.drShiftTo(f,r),a!=c&&e.ZERO.subTo(r,r)),n.t=f,n.clamp(),o>0&&n.rShiftTo(o,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=z(),i=z(),s=r.convert(this),u=ae(t)-1;for(s.copyTo(n);--u>=0;)if(r.sqrTo(n,i),(t&1<<u)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=pt(n),s=z(),u=z(),a="";for(this.divRemTo(i,s,u);s.signum()>0;)a=(n+u.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,u);return u.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,u=0,a=0,c=0;c<t.length;++c){var o=mi(t,c);if(o<0){t.charAt(c)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+o,++u>=n&&(this.dMultiply(i),this.dAddOffset(a,0),u=0,a=0)}u>0&&(this.dMultiply(Math.pow(r,u)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),ie,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,u=Math.min(t.t,this.t);for(i=0;i<u;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=u;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=u;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>J.length&&(t=J.length);for(var s=z(),u=0;u<t;++u){s.fromInt(J[Math.floor(Math.random()*J.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var c=1;c++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=z();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var u=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}u<a&&(a=u),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var c=function(){(u=n.getLowestSetBit())>0&&n.rShiftTo(u,n),(u=i.getLowestSetBit())>0&&i.rShiftTo(u,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(c,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),ie,this),this.isEven()&&this.dAddOffset(1,0);var s=this,u=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(u,0)};setTimeout(u,0)}else{var a=[],c=t&7;a.length=(t>>3)+1,r.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e}(),Pl=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),vi=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),gi=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=z();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(V.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=z();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Nl=function(){function e(t){this.m=t,this.r2=z(),this.q3=z(),V.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=z();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function z(){return new V(null)}function K(e,t){return new V(e,t)}var yi=typeof navigator<"u";yi&&pi&&navigator.appName=="Microsoft Internet Explorer"?(V.prototype.am=function(t,r,n,i,s,u){for(var a=r&32767,c=r>>15;--u>=0;){var o=this[t]&32767,f=this[t++]>>15,h=c*o+f*a;o=a*o+((h&32767)<<15)+n[i]+(s&1073741823),s=(o>>>30)+(h>>>15)+c*f+(s>>>30),n[i++]=o&1073741823}return s},dt=30):yi&&pi&&navigator.appName!="Netscape"?(V.prototype.am=function(t,r,n,i,s,u){for(;--u>=0;){var a=r*this[t++]+n[i]+s;s=Math.floor(a/67108864),n[i++]=a&67108863}return s},dt=26):(V.prototype.am=function(t,r,n,i,s,u){for(var a=r&16383,c=r>>14;--u>=0;){var o=this[t]&16383,f=this[t++]>>14,h=c*o+f*a;o=a*o+((h&16383)<<14)+n[i]+s,s=(o>>28)+(h>>14)+c*f,n[i++]=o&268435455}return s},dt=28),V.prototype.DB=dt,V.prototype.DM=(1<<dt)-1,V.prototype.DV=1<<dt;var Ke=52;V.prototype.FV=Math.pow(2,Ke),V.prototype.F1=Ke-dt,V.prototype.F2=2*dt-Ke;var oe=[],Pt,rt;for(Pt=48,rt=0;rt<=9;++rt)oe[Pt++]=rt;for(Pt=97,rt=10;rt<36;++rt)oe[Pt++]=rt;for(Pt=65,rt=10;rt<36;++rt)oe[Pt++]=rt;function mi(e,t){var r=oe[e.charCodeAt(t)];return r??-1}function pt(e){var t=z();return t.fromInt(e),t}function ae(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}V.ZERO=pt(0),V.ONE=pt(1);var Fl=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function jl(){return new Fl}var bi=256,ue,vt=null,it;if(vt==null){vt=[],it=0;var fe=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Ye=new Uint32Array(256);for(window.crypto.getRandomValues(Ye),fe=0;fe<Ye.length;++fe)vt[it++]=Ye[fe]&255}var ce=0,he=function(e){if(ce=ce||0,ce>=256||it>=bi){window.removeEventListener?window.removeEventListener("mousemove",he,!1):window.detachEvent&&window.detachEvent("onmousemove",he);return}try{var t=e.x+e.y;vt[it++]=t&255,ce+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",he,!1):window.attachEvent&&window.attachEvent("onmousemove",he))}function Ll(){if(ue==null){for(ue=jl();it<bi;){var e=Math.floor(65536*Math.random());vt[it++]=e&255}for(ue.init(vt),it=0;it<vt.length;++it)vt[it]=0;it=0}return ue.next()}var We=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=Ll()},e}();function Hl(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return K(s,16)}function Ul(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new We,u=[];t>2;){for(u[0]=0;u[0]==0;)s.nextBytes(u);r[--t]=u[0]}return r[--t]=2,r[--t]=0,new V(r)}var Vl=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=K(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=Ul(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),u=s.length,a=0;a<r*2-u;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=K(t,16),this.e=parseInt(r,16),this.d=K(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,u,a,c){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=K(t,16),this.e=parseInt(r,16),this.d=K(n,16),this.p=K(i,16),this.q=K(s,16),this.dmp1=K(u,16),this.dmq1=K(a,16),this.coeff=K(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new We,i=t>>1;this.e=parseInt(r,16);for(var s=new V(r,16);;){for(;this.p=new V(t-i,1,n),!(this.p.subtract(V.ONE).gcd(s).compareTo(V.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new V(i,1,n),!(this.q.subtract(V.ONE).gcd(s).compareTo(V.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var u=this.p;this.p=this.q,this.q=u}var a=this.p.subtract(V.ONE),c=this.q.subtract(V.ONE),o=a.multiply(c);if(o.gcd(s).compareTo(V.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(o),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=K(t,16),n=this.doPrivate(r);return n==null?null:zl(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new We,s=t>>1;this.e=parseInt(r,16);var u=new V(r,16),a=this,c=function(){var o=function(){if(a.p.compareTo(a.q)<=0){var l=a.p;a.p=a.q,a.q=l}var d=a.p.subtract(V.ONE),v=a.q.subtract(V.ONE),m=d.multiply(v);m.gcd(u).compareTo(V.ONE)==0?(a.n=a.p.multiply(a.q),a.d=u.modInverse(m),a.dmp1=a.d.mod(d),a.dmq1=a.d.mod(v),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(c,0)},f=function(){a.q=z(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(V.ONE).gcda(u,function(l){l.compareTo(V.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(o,0):setTimeout(f,0)})})},h=function(){a.p=z(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(V.ONE).gcda(u,function(l){l.compareTo(V.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(c,0)},e.prototype.sign=function(t,r,n){var i=ql(n),s=i+r(t).toString(),u=Hl(s,this.n.bitLength()/4);if(u==null)return null;var a=this.doPrivate(u);if(a==null)return null;var c=a.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(t,r,n){var i=K(r,16),s=this.doPublic(i);if(s==null)return null;var u=s.toString(16).replace(/^1f+00/,""),a=kl(u);return a==n(t).toString()},e}();function zl(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var le={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ql(e){return le[e]||""}function kl(e){for(var t in le)if(le.hasOwnProperty(t)){var r=le[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
26
+ Copyright (c) 2011, Yahoo! Inc. All rights reserved.
27
+ Code licensed under the BSD License:
28
+ http://developer.yahoo.com/yui/license.html
29
+ version: 2.9.0
30
+ */var Y={};Y.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,c){for(i=0;i<u.length;i=i+1){var o=u[i],f=c[o];typeof f=="function"&&f!=Object.prototype[o]&&(a[o]=f)}})}catch{}s(e.prototype,r)}}};/**
31
+ * @fileOverview
32
+ * @name asn1-1.0.js
33
+ * @author Kenji Urushima kenji.urushima@gmail.com
34
+ * @version asn1 1.0.13 (2017-Jun-02)
35
+ * @since jsrsasign 2.1
36
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
37
+ */var D={};(typeof D.asn1>"u"||!D.asn1)&&(D.asn1={}),D.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var u=new V(i,16),a=u.xor(e).add(V.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=D,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,u=r.DEROctetString,a=r.DERNull,c=r.DERObjectIdentifier,o=r.DEREnumerated,f=r.DERUTF8String,h=r.DERNumericString,l=r.DERPrintableString,d=r.DERTeletexString,v=r.DERIA5String,m=r.DERUTCTime,x=r.DERGeneralizedTime,A=r.DERSequence,g=r.DERSet,y=r.DERTaggedObject,_=r.ASN1Util.newObject,w=Object.keys(e);if(w.length!=1)throw"key of param shall be only one.";var p=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+p+":")==-1)throw"undefined key: "+p;if(p=="bool")return new n(e[p]);if(p=="int")return new i(e[p]);if(p=="bitstr")return new s(e[p]);if(p=="octstr")return new u(e[p]);if(p=="null")return new a(e[p]);if(p=="oid")return new c(e[p]);if(p=="enum")return new o(e[p]);if(p=="utf8str")return new f(e[p]);if(p=="numstr")return new h(e[p]);if(p=="prnstr")return new l(e[p]);if(p=="telstr")return new d(e[p]);if(p=="ia5str")return new v(e[p]);if(p=="utctime")return new m(e[p]);if(p=="gentime")return new x(e[p]);if(p=="seq"){for(var S=e[p],$=[],L=0;L<S.length;L++){var b=_(S[L]);$.push(b)}return new A({array:$})}if(p=="set"){for(var S=e[p],$=[],L=0;L<S.length;L++){var b=_(S[L]);$.push(b)}return new g({array:$})}if(p=="tag"){var T=e[p];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var N=_(T[2]);return new y({tag:T[0],explicit:T[1],obj:N})}else{var R={};if(T.explicit!==void 0&&(R.explicit=T.explicit),T.tag!==void 0&&(R.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return R.obj=_(T.obj),new y(R)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},D.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",u=2;u<e.length;u+=2){var a=parseInt(e.substr(u,2),16),c=("00000000"+a.toString(2)).slice(-8);if(s=s+c.substr(1,7),c.substr(0,1)=="0"){var o=new V(s,2);i=i+"."+o.toString(10),s=""}}return i},D.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},r=function(a){var c="",o=new V(a,10),f=o.toString(2),h=7-f.length%7;h==7&&(h=0);for(var l="",d=0;d<h;d++)l+="0";f=l+f;for(var d=0;d<f.length-1;d+=7){var v=f.substr(d,7);d!=f.length-7&&(v="1"+v),c+=t(parseInt(v,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var u=0;u<i.length;u++)n+=r(i[u]);return n},D.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},D.asn1.DERAbstractString=function(e){D.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Y.lang.extend(D.asn1.DERAbstractString,D.asn1.ASN1Object),D.asn1.DERAbstractTime=function(e){D.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),u=String(s.getFullYear());r=="utc"&&(u=u.substr(2,2));var a=i(String(s.getMonth()+1),2),c=i(String(s.getDate()),2),o=i(String(s.getHours()),2),f=i(String(s.getMinutes()),2),h=i(String(s.getSeconds()),2),l=u+a+c+o+f+h;if(n===!0){var d=s.getMilliseconds();if(d!=0){var v=i(String(d),3);v=v.replace(/[0]+$/,""),l=l+"."+v}}return l+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,u){var a=new Date(Date.UTC(t,r-1,n,i,s,u,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Y.lang.extend(D.asn1.DERAbstractTime,D.asn1.ASN1Object),D.asn1.DERAbstractStructured=function(e){D.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Y.lang.extend(D.asn1.DERAbstractStructured,D.asn1.ASN1Object),D.asn1.DERBoolean=function(){D.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Y.lang.extend(D.asn1.DERBoolean,D.asn1.ASN1Object),D.asn1.DERInteger=function(e){D.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=D.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new V(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Y.lang.extend(D.asn1.DERInteger,D.asn1.ASN1Object),D.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=D.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}D.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var u=r.substr(i,8),a=parseInt(u,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Y.lang.extend(D.asn1.DERBitString,D.asn1.ASN1Object),D.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=D.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}D.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Y.lang.extend(D.asn1.DEROctetString,D.asn1.DERAbstractString),D.asn1.DERNull=function(){D.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Y.lang.extend(D.asn1.DERNull,D.asn1.ASN1Object),D.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new V(n,10),u=s.toString(2),a=7-u.length%7;a==7&&(a=0);for(var c="",o=0;o<a;o++)c+="0";u=c+u;for(var o=0;o<u.length-1;o+=7){var f=u.substr(o,7);o!=u.length-7&&(f="1"+f),i+=t(parseInt(f,2))}return i};D.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),u=parseInt(s[0])*40+parseInt(s[1]);i+=t(u),s.splice(0,2);for(var a=0;a<s.length;a++)i+=r(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=D.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Y.lang.extend(D.asn1.DERObjectIdentifier,D.asn1.ASN1Object),D.asn1.DEREnumerated=function(e){D.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=D.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new V(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Y.lang.extend(D.asn1.DEREnumerated,D.asn1.ASN1Object),D.asn1.DERUTF8String=function(e){D.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Y.lang.extend(D.asn1.DERUTF8String,D.asn1.DERAbstractString),D.asn1.DERNumericString=function(e){D.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Y.lang.extend(D.asn1.DERNumericString,D.asn1.DERAbstractString),D.asn1.DERPrintableString=function(e){D.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Y.lang.extend(D.asn1.DERPrintableString,D.asn1.DERAbstractString),D.asn1.DERTeletexString=function(e){D.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Y.lang.extend(D.asn1.DERTeletexString,D.asn1.DERAbstractString),D.asn1.DERIA5String=function(e){D.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Y.lang.extend(D.asn1.DERIA5String,D.asn1.DERAbstractString),D.asn1.DERUTCTime=function(e){D.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Y.lang.extend(D.asn1.DERUTCTime,D.asn1.DERAbstractTime),D.asn1.DERGeneralizedTime=function(e){D.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Y.lang.extend(D.asn1.DERGeneralizedTime,D.asn1.DERAbstractTime),D.asn1.DERSequence=function(e){D.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},Y.lang.extend(D.asn1.DERSequence,D.asn1.DERAbstractStructured),D.asn1.DERSet=function(e){D.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Y.lang.extend(D.asn1.DERSet,D.asn1.DERAbstractStructured),D.asn1.DERTaggedObject=function(e){D.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Y.lang.extend(D.asn1.DERTaggedObject,D.asn1.ASN1Object);var Kl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xi=function(e){Kl(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,u=s.test(r)?$l.decode(r):qe.unarmor(r),a=Ml.decode(u);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=K(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=a.sub[3].getHexStringValue();this.d=K(c,16);var o=a.sub[4].getHexStringValue();this.p=K(o,16);var f=a.sub[5].getHexStringValue();this.q=K(f,16);var h=a.sub[6].getHexStringValue();this.dmp1=K(h,16);var l=a.sub[7].getHexStringValue();this.dmq1=K(l,16);var d=a.sub[8].getHexStringValue();this.coeff=K(d,16)}else if(a.sub.length===2)if(a.sub[0].sub){var v=a.sub[1],m=v.sub[0];n=m.sub[0].getHexStringValue(),this.n=K(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=K(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new D.asn1.DERInteger({int:0}),new D.asn1.DERInteger({bigint:this.n}),new D.asn1.DERInteger({int:this.e}),new D.asn1.DERInteger({bigint:this.d}),new D.asn1.DERInteger({bigint:this.p}),new D.asn1.DERInteger({bigint:this.q}),new D.asn1.DERInteger({bigint:this.dmp1}),new D.asn1.DERInteger({bigint:this.dmq1}),new D.asn1.DERInteger({bigint:this.coeff})]},n=new D.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return se(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new D.asn1.DERSequence({array:[new D.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new D.asn1.DERNull]}),n=new D.asn1.DERSequence({array:[new D.asn1.DERInteger({bigint:this.n}),new D.asn1.DERInteger({int:this.e})]}),i=new D.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new D.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return se(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
38
+ ?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
39
+ `)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
40
+ `;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
41
+ `,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
42
+ `;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
43
+ `,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t}(Vl),Ze,Yl=typeof process<"u"?(Ze=process.env)===null||Ze===void 0?void 0:Ze.npm_package_version:void 0,_i=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new xi(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(hi(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return se(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,r,n){try{return se(this.getKey().sign(t,r,n))}catch{return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,hi(r),n)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new xi,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Yl,e}();const Wl="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",Zl="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function Gl(e){return String(bl(e))}function Jl(e){const t=Le.parse(e);return Xn.stringify(t)}function Ql(e){return Le.stringify(Xn.parse(e))}function Xl(e,t=Wl){const r=new _i;return r.setKey(t),r.encrypt(e)}function t0(e,t=Zl){const r=new _i;return r.setPrivateKey(t),r.decrypt(e)}function e0(e,t){return ai.encrypt(e,t).toString()}function r0(e,t){return ai.decrypt(e,t).toString(Le)}const wi=/^(http|https):\/\/[\w.:\-@]*/,Ti=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,Si=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,Ei=/^(0|86|17951)?(1[\d]{10})$/,Ai=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1})$/;function n0(e){return wi.test(e)}function i0(e){return Ti.test(e)}function s0(e){return Si.test(e)}function o0(e){return Ei.test(e)}function a0(e){return Ai.test(e)}var Di={exports:{}};/*! @preserve
44
+ * numeral.js
45
+ * version : 2.0.6
46
+ * author : Adam Draper
47
+ * license : MIT
48
+ * http://adamwdraper.github.com/Numeral-js/
49
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(G,function(){var t,r,n="2.0.6",i={},s={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function c(o,f){this._input=o,this._value=f}return t=function(o){var f,h,l,d;if(t.isNumeral(o))f=o.value();else if(o===0||typeof o>"u")f=0;else if(o===null||r.isNaN(o))f=null;else if(typeof o=="string")if(a.zeroFormat&&o===a.zeroFormat)f=0;else if(a.nullFormat&&o===a.nullFormat||!o.replace(/[^0-9]+/g,"").length)f=null;else{for(h in i)if(d=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,d&&o.match(d)){l=i[h].unformat;break}l=l||t._.stringToNumber,f=l(o)}else f=Number(o)||null;return new c(o,f)},t.version=n,t.isNumeral=function(o){return o instanceof c},t._=r={numberToFormat:function(o,f,h){var l=s[t.options.currentLocale],d=!1,v=!1,m=0,x="",A=1e12,g=1e9,y=1e6,_=1e3,w="",p=!1,S,$,L,b,T,N,R;if(o=o||0,$=Math.abs(o),t._.includes(f,"(")?(d=!0,f=f.replace(/[\(|\)]/g,"")):(t._.includes(f,"+")||t._.includes(f,"-"))&&(T=t._.includes(f,"+")?f.indexOf("+"):o<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),t._.includes(f,"a")&&(S=f.match(/a(k|m|b|t)?/),S=S?S[1]:!1,t._.includes(f," a")&&(x=" "),f=f.replace(new RegExp(x+"a[kmbt]?"),""),$>=A&&!S||S==="t"?(x+=l.abbreviations.trillion,o=o/A):$<A&&$>=g&&!S||S==="b"?(x+=l.abbreviations.billion,o=o/g):$<g&&$>=y&&!S||S==="m"?(x+=l.abbreviations.million,o=o/y):($<y&&$>=_&&!S||S==="k")&&(x+=l.abbreviations.thousand,o=o/_)),t._.includes(f,"[.]")&&(v=!0,f=f.replace("[.]",".")),L=o.toString().split(".")[0],b=f.split(".")[1],N=f.indexOf(","),m=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,b?(t._.includes(b,"[")?(b=b.replace("]",""),b=b.split("["),w=t._.toFixed(o,b[0].length+b[1].length,h,b[1].length)):w=t._.toFixed(o,b.length,h),L=w.split(".")[0],t._.includes(w,".")?w=l.delimiters.decimal+w.split(".")[1]:w="",v&&Number(w.slice(1))===0&&(w="")):L=t._.toFixed(o,0,h),x&&!S&&Number(L)>=1e3&&x!==l.abbreviations.trillion)switch(L=String(Number(L)/1e3),x){case l.abbreviations.thousand:x=l.abbreviations.million;break;case l.abbreviations.million:x=l.abbreviations.billion;break;case l.abbreviations.billion:x=l.abbreviations.trillion;break}if(t._.includes(L,"-")&&(L=L.slice(1),p=!0),L.length<m)for(var P=m-L.length;P>0;P--)L="0"+L;return N>-1&&(L=L.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+l.delimiters.thousands)),f.indexOf(".")===0&&(L=""),R=L+w+(x||""),d?R=(d&&p?"(":"")+R+(d&&p?")":""):T>=0?R=T===0?(p?"-":"+")+R:R+(p?"-":"+"):p&&(R="-"+R),R},stringToNumber:function(o){var f=s[a.currentLocale],h=o,l={thousand:3,million:6,billion:9,trillion:12},d,v,m;if(a.zeroFormat&&o===a.zeroFormat)v=0;else if(a.nullFormat&&o===a.nullFormat||!o.replace(/[^0-9]+/g,"").length)v=null;else{v=1,f.delimiters.decimal!=="."&&(o=o.replace(/\./g,"").replace(f.delimiters.decimal,"."));for(d in l)if(m=new RegExp("[^a-zA-Z]"+f.abbreviations[d]+"(?:\\)|(\\"+f.currency.symbol+")?(?:\\))?)?$"),h.match(m)){v*=Math.pow(10,l[d]);break}v*=(o.split("-").length+Math.min(o.split("(").length-1,o.split(")").length-1))%2?1:-1,o=o.replace(/[^0-9\.]+/g,""),v*=Number(o)}return v},isNaN:function(o){return typeof o=="number"&&isNaN(o)},includes:function(o,f){return o.indexOf(f)!==-1},insert:function(o,f,h){return o.slice(0,h)+f+o.slice(h)},reduce:function(o,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var h=Object(o),l=h.length>>>0,d=0,v;if(arguments.length===3)v=arguments[2];else{for(;d<l&&!(d in h);)d++;if(d>=l)throw new TypeError("Reduce of empty array with no initial value");v=h[d++]}for(;d<l;d++)d in h&&(v=f(v,h[d],d,h));return v},multiplier:function(o){var f=o.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){var o=Array.prototype.slice.call(arguments);return o.reduce(function(f,h){var l=r.multiplier(h);return f>l?f:l},1)},toFixed:function(o,f,h,l){var d=o.toString().split("."),v=f-(l||0),m,x,A,g;return d.length===2?m=Math.min(Math.max(d[1].length,v),f):m=v,A=Math.pow(10,m),g=(h(o+"e+"+m)/A).toFixed(m),l>f-m&&(x=new RegExp("\\.?0{1,"+(l-(f-m))+"}$"),g=g.replace(x,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(o){return o&&(a.currentLocale=o.toLowerCase()),a.currentLocale},t.localeData=function(o){if(!o)return s[a.currentLocale];if(o=o.toLowerCase(),!s[o])throw new Error("Unknown locale : "+o);return s[o]},t.reset=function(){for(var o in u)a[o]=u[o]},t.zeroFormat=function(o){a.zeroFormat=typeof o=="string"?o:null},t.nullFormat=function(o){a.nullFormat=typeof o=="string"?o:null},t.defaultFormat=function(o){a.defaultFormat=typeof o=="string"?o:"0.0"},t.register=function(o,f,h){if(f=f.toLowerCase(),this[o+"s"][f])throw new TypeError(f+" "+o+" already registered.");return this[o+"s"][f]=h,h},t.validate=function(o,f){var h,l,d,v,m,x,A,g;if(typeof o!="string"&&(o+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",o)),o=o.trim(),o.match(/^\d+$/))return!0;if(o==="")return!1;try{A=t.localeData(f)}catch{A=t.localeData(t.locale())}return d=A.currency.symbol,m=A.abbreviations,h=A.delimiters.decimal,A.delimiters.thousands==="."?l="\\.":l=A.delimiters.thousands,g=o.match(/^[^\d]+/),g!==null&&(o=o.substr(1),g[0]!==d)||(g=o.match(/[^\d]+$/),g!==null&&(o=o.slice(0,-1),g[0]!==m.thousand&&g[0]!==m.million&&g[0]!==m.billion&&g[0]!==m.trillion))?!1:(x=new RegExp(l+"{2}"),o.match(/[^\d.,]/g)?!1:(v=o.split(h),v.length>2?!1:v.length<2?!!v[0].match(/^\d+.*\d$/)&&!v[0].match(x):v[0].length===1?!!v[0].match(/^\d+$/)&&!v[0].match(x)&&!!v[1].match(/^\d+$/):!!v[0].match(/^\d+.*\d$/)&&!v[0].match(x)&&!!v[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(o,f){var h=this._value,l=o||a.defaultFormat,d,v,m;if(f=f||Math.round,h===0&&a.zeroFormat!==null)v=a.zeroFormat;else if(h===null&&a.nullFormat!==null)v=a.nullFormat;else{for(d in i)if(l.match(i[d].regexps.format)){m=i[d].format;break}m=m||t._.numberToFormat,v=m(h,l,f)}return v},value:function(){return this._value},input:function(){return this._input},set:function(o){return this._value=Number(o),this},add:function(o){var f=r.correctionFactor.call(null,this._value,o);function h(l,d,v,m){return l+Math.round(f*d)}return this._value=r.reduce([this._value,o],h,0)/f,this},subtract:function(o){var f=r.correctionFactor.call(null,this._value,o);function h(l,d,v,m){return l-Math.round(f*d)}return this._value=r.reduce([o],h,Math.round(this._value*f))/f,this},multiply:function(o){function f(h,l,d,v){var m=r.correctionFactor(h,l);return Math.round(h*m)*Math.round(l*m)/Math.round(m*m)}return this._value=r.reduce([this._value,o],f,1),this},divide:function(o){function f(h,l,d,v){var m=r.correctionFactor(h,l);return Math.round(h*m)/Math.round(l*m)}return this._value=r.reduce([this._value,o],f),this},difference:function(o){return Math.abs(t(this._value).subtract(o).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(o){var f=o%10;return~~(o%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(o,f,h){var l=t._.includes(f," BPS")?" ":"",d;return o=o*1e4,f=f.replace(/\s?BPS/,""),d=t._.numberToFormat(o,f,h),t._.includes(d,")")?(d=d.split(""),d.splice(-1,0,l+"BPS"),d=d.join("")):d=d+l+"BPS",d},unformat:function(o){return+(t._.stringToNumber(o)*1e-4).toFixed(15)}})}(),function(){var o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},f={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=o.suffixes.concat(f.suffixes.filter(function(d){return o.suffixes.indexOf(d)<0})),l=h.join("|");l="("+l.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(l)},format:function(d,v,m){var x,A=t._.includes(v,"ib")?f:o,g=t._.includes(v," b")||t._.includes(v," ib")?" ":"",y,_,w;for(v=v.replace(/\s?i?b/,""),y=0;y<=A.suffixes.length;y++)if(_=Math.pow(A.base,y),w=Math.pow(A.base,y+1),d===null||d===0||d>=_&&d<w){g+=A.suffixes[y],_>0&&(d=d/_);break}return x=t._.numberToFormat(d,v,m),x+g},unformat:function(d){var v=t._.stringToNumber(d),m,x;if(v){for(m=o.suffixes.length-1;m>=0;m--){if(t._.includes(d,o.suffixes[m])){x=Math.pow(o.base,m);break}if(t._.includes(d,f.suffixes[m])){x=Math.pow(f.base,m);break}}v*=x||1}return v}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(o,f,h){var l=t.locales[t.options.currentLocale],d={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]},v,m,x;for(f=f.replace(/\s?\$\s?/,""),v=t._.numberToFormat(o,f,h),o>=0?(d.before=d.before.replace(/[\-\(]/,""),d.after=d.after.replace(/[\-\)]/,"")):o<0&&!t._.includes(d.before,"-")&&!t._.includes(d.before,"(")&&(d.before="-"+d.before),x=0;x<d.before.length;x++)switch(m=d.before[x],m){case"$":v=t._.insert(v,l.currency.symbol,x);break;case" ":v=t._.insert(v," ",x+l.currency.symbol.length-1);break}for(x=d.after.length-1;x>=0;x--)switch(m=d.after[x],m){case"$":v=x===d.after.length-1?v+l.currency.symbol:t._.insert(v,l.currency.symbol,-(d.after.length-(1+x)));break;case" ":v=x===d.after.length-1?v+" ":t._.insert(v," ",-(d.after.length-(1+x)+l.currency.symbol.length-1));break}return v}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(o,f,h){var l,d=typeof o=="number"&&!t._.isNaN(o)?o.toExponential():"0e+0",v=d.split("e");return f=f.replace(/e[\+|\-]{1}0/,""),l=t._.numberToFormat(Number(v[0]),f,h),l+"e"+v[1]},unformat:function(o){var f=t._.includes(o,"e+")?o.split("e+"):o.split("e-"),h=Number(f[0]),l=Number(f[1]);l=t._.includes(o,"e-")?l*=-1:l;function d(v,m,x,A){var g=t._.correctionFactor(v,m),y=v*g*(m*g)/(g*g);return y}return t._.reduce([h,Math.pow(10,l)],d,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(o,f,h){var l=t.locales[t.options.currentLocale],d,v=t._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),v+=l.ordinal(o),d=t._.numberToFormat(o,f,h),d+v}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(o,f,h){var l=t._.includes(f," %")?" ":"",d;return t.options.scalePercentBy100&&(o=o*100),f=f.replace(/\s?\%/,""),d=t._.numberToFormat(o,f,h),t._.includes(d,")")?(d=d.split(""),d.splice(-1,0,l+"%"),d=d.join("")):d=d+l+"%",d},unformat:function(o){var f=t._.stringToNumber(o);return t.options.scalePercentBy100?f*.01:f}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(o,f,h){var l=Math.floor(o/60/60),d=Math.floor((o-l*60*60)/60),v=Math.round(o-l*60*60-d*60);return l+":"+(d<10?"0"+d:d)+":"+(v<10?"0"+v:v)},unformat:function(o){var f=o.split(":"),h=0;return f.length===3?(h=h+Number(f[0])*60*60,h=h+Number(f[1])*60,h=h+Number(f[2])):f.length===2&&(h=h+Number(f[0])*60,h=h+Number(f[1])),Number(h)}})}(),t})})(Di);var u0=Di.exports;const Oi=Bt(u0);function f0(e,t="0.00"){return Oi(e).format(t)}function c0(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var $i={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(G,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",u="second",a="minute",c="hour",o="day",f="week",h="month",l="quarter",d="year",v="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var O=["th","st","nd","rd"],C=P%100;return"["+P+(O[(C-20)%10]||O[C]||O[0])+"]"}},y=function(P,O,C){var j=String(P);return!j||j.length>=O?P:""+Array(O+1-j.length).join(C)+P},_={s:y,z:function(P){var O=-P.utcOffset(),C=Math.abs(O),j=Math.floor(C/60),F=C%60;return(O<=0?"+":"-")+y(j,2,"0")+":"+y(F,2,"0")},m:function P(O,C){if(O.date()<C.date())return-P(C,O);var j=12*(C.year()-O.year())+(C.month()-O.month()),F=O.clone().add(j,h),H=C-F<0,U=O.clone().add(j+(H?-1:1),h);return+(-(j+(C-F)/(H?F-U:U-F))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:h,y:d,w:f,d:o,D:v,h:c,m:a,s:u,ms:s,Q:l}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},w="en",p={};p[w]=g;var S="$isDayjsObject",$=function(P){return P instanceof N||!(!P||!P[S])},L=function P(O,C,j){var F;if(!O)return w;if(typeof O=="string"){var H=O.toLowerCase();p[H]&&(F=H),C&&(p[H]=C,F=H);var U=O.split("-");if(!F&&U.length>1)return P(U[0])}else{var E=O.name;p[E]=O,F=E}return!j&&F&&(w=F),F||!j&&w},b=function(P,O){if($(P))return P.clone();var C=typeof O=="object"?O:{};return C.date=P,C.args=arguments,new N(C)},T=_;T.l=L,T.i=$,T.w=function(P,O){return b(P,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var N=function(){function P(C){this.$L=L(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var O=P.prototype;return O.parse=function(C){this.$d=function(j){var F=j.date,H=j.utc;if(F===null)return new Date(NaN);if(T.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var U=F.match(x);if(U){var E=U[2]-1||0,B=(U[7]||"0").substring(0,3);return H?new Date(Date.UTC(U[1],E,U[3]||1,U[4]||0,U[5]||0,U[6]||0,B)):new Date(U[1],E,U[3]||1,U[4]||0,U[5]||0,U[6]||0,B)}}return new Date(F)}(C),this.init()},O.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},O.$utils=function(){return T},O.isValid=function(){return this.$d.toString()!==m},O.isSame=function(C,j){var F=b(C);return this.startOf(j)<=F&&F<=this.endOf(j)},O.isAfter=function(C,j){return b(C)<this.startOf(j)},O.isBefore=function(C,j){return this.endOf(j)<b(C)},O.$g=function(C,j,F){return T.u(C)?this[j]:this.set(F,C)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(C,j){var F=this,H=!!T.u(j)||j,U=T.p(C),E=function(yt,Q){var ht=T.w(F.$u?Date.UTC(F.$y,Q,yt):new Date(F.$y,Q,yt),F);return H?ht:ht.endOf(o)},B=function(yt,Q){return T.w(F.toDate()[yt].apply(F.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Q)),F)},M=this.$W,I=this.$M,tt=this.$D,St="set"+(this.$u?"UTC":"");switch(U){case d:return H?E(1,0):E(31,11);case h:return H?E(1,I):E(0,I+1);case f:var gt=this.$locale().weekStart||0,Nt=(M<gt?M+7:M)-gt;return E(H?tt-Nt:tt+(6-Nt),I);case o:case v:return B(St+"Hours",0);case c:return B(St+"Minutes",1);case a:return B(St+"Seconds",2);case u:return B(St+"Milliseconds",3);default:return this.clone()}},O.endOf=function(C){return this.startOf(C,!1)},O.$set=function(C,j){var F,H=T.p(C),U="set"+(this.$u?"UTC":""),E=(F={},F[o]=U+"Date",F[v]=U+"Date",F[h]=U+"Month",F[d]=U+"FullYear",F[c]=U+"Hours",F[a]=U+"Minutes",F[u]=U+"Seconds",F[s]=U+"Milliseconds",F)[H],B=H===o?this.$D+(j-this.$W):j;if(H===h||H===d){var M=this.clone().set(v,1);M.$d[E](B),M.init(),this.$d=M.set(v,Math.min(this.$D,M.daysInMonth())).$d}else E&&this.$d[E](B);return this.init(),this},O.set=function(C,j){return this.clone().$set(C,j)},O.get=function(C){return this[T.p(C)]()},O.add=function(C,j){var F,H=this;C=Number(C);var U=T.p(j),E=function(I){var tt=b(H);return T.w(tt.date(tt.date()+Math.round(I*C)),H)};if(U===h)return this.set(h,this.$M+C);if(U===d)return this.set(d,this.$y+C);if(U===o)return E(1);if(U===f)return E(7);var B=(F={},F[a]=n,F[c]=i,F[u]=r,F)[U]||1,M=this.$d.getTime()+C*B;return T.w(M,this)},O.subtract=function(C,j){return this.add(-1*C,j)},O.format=function(C){var j=this,F=this.$locale();if(!this.isValid())return F.invalidDate||m;var H=C||"YYYY-MM-DDTHH:mm:ssZ",U=T.z(this),E=this.$H,B=this.$m,M=this.$M,I=F.weekdays,tt=F.months,St=F.meridiem,gt=function(Q,ht,Ft,Kt){return Q&&(Q[ht]||Q(j,H))||Ft[ht].slice(0,Kt)},Nt=function(Q){return T.s(E%12||12,Q,"0")},yt=St||function(Q,ht,Ft){var Kt=Q<12?"AM":"PM";return Ft?Kt.toLowerCase():Kt};return H.replace(A,function(Q,ht){return ht||function(Ft){switch(Ft){case"YY":return String(j.$y).slice(-2);case"YYYY":return T.s(j.$y,4,"0");case"M":return M+1;case"MM":return T.s(M+1,2,"0");case"MMM":return gt(F.monthsShort,M,tt,3);case"MMMM":return gt(tt,M);case"D":return j.$D;case"DD":return T.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return gt(F.weekdaysMin,j.$W,I,2);case"ddd":return gt(F.weekdaysShort,j.$W,I,3);case"dddd":return I[j.$W];case"H":return String(E);case"HH":return T.s(E,2,"0");case"h":return Nt(1);case"hh":return Nt(2);case"a":return yt(E,B,!0);case"A":return yt(E,B,!1);case"m":return String(B);case"mm":return T.s(B,2,"0");case"s":return String(j.$s);case"ss":return T.s(j.$s,2,"0");case"SSS":return T.s(j.$ms,3,"0");case"Z":return U}return null}(Q)||U.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(C,j,F){var H,U=this,E=T.p(j),B=b(C),M=(B.utcOffset()-this.utcOffset())*n,I=this-B,tt=function(){return T.m(U,B)};switch(E){case d:H=tt()/12;break;case h:H=tt();break;case l:H=tt()/3;break;case f:H=(I-M)/6048e5;break;case o:H=(I-M)/864e5;break;case c:H=I/i;break;case a:H=I/n;break;case u:H=I/r;break;default:H=I}return F?H:T.a(H)},O.daysInMonth=function(){return this.endOf(h).$D},O.$locale=function(){return p[this.$L]},O.locale=function(C,j){if(!C)return this.$L;var F=this.clone(),H=L(C,j,!0);return H&&(F.$L=H),F},O.clone=function(){return T.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},P}(),R=N.prototype;return b.prototype=R,[["$ms",s],["$s",u],["$m",a],["$H",c],["$W",o],["$M",h],["$y",d],["$D",v]].forEach(function(P){R[P[1]]=function(O){return this.$g(O,P[0],P[1])}}),b.extend=function(P,O){return P.$i||(P(O,N,b),P.$i=!0),b},b.locale=L,b.isDayjs=$,b.unix=function(P){return b(1e3*P)},b.en=p[w],b.Ls=p,b.p={},b})})($i);var Bi=$i.exports;const Ge=Bt(Bi);var h0={exports:{}};(function(e,t){(function(r,n){e.exports=n(Bi)})(G,function(r){function n(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var i=n(r),s={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(u,a){return a==="W"?u+"\u5468":u+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(u,a){var c=100*u+a;return c<600?"\u51CC\u6668":c<900?"\u65E9\u4E0A":c<1100?"\u4E0A\u5348":c<1300?"\u4E2D\u5348":c<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};return i.default.locale(s,null,!0),s})})(h0),Ge.locale("zh-cn");function l0(e,t="YYYY-MM-DD HH:mm:ss"){return Ge(e).format(t)}const Ri=e=>Object.prototype.toString.call(e),d0=e=>Ri(e).slice(8,-1),p0=e=>typeof e<"u",v0=()=>Date.now(),g0=()=>+Date.now(),y0=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function m0(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function b0(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}async function x0(e=0){return new Promise(t=>{setTimeout(t,e)})}function Mi(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function _0(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function w0(e,t){if(t){const r=Mi(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function T0(e){return e?[].concat(e):[]}function S0(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function E0(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function A0(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}function Je(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>Je(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=Je(n)}),e)}var Qe={exports:{}};Qe.exports,function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function u(c,o){if(!s[c]){s[c]={};for(var f=0;f<c.length;f++)s[c][c.charAt(f)]=f}return s[c][o]}var a={compressToBase64:function(c){if(c==null)return"";var o=a._compress(c,6,function(f){return n.charAt(f)});switch(o.length%4){default:case 0:return o;case 1:return o+"===";case 2:return o+"==";case 3:return o+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(o){return u(n,c.charAt(o))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(o){return r(o+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(o){return c.charCodeAt(o)-32})},compressToUint8Array:function(c){for(var o=a.compress(c),f=new Uint8Array(o.length*2),h=0,l=o.length;h<l;h++){var d=o.charCodeAt(h);f[h*2]=d>>>8,f[h*2+1]=d%256}return f},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var o=new Array(c.length/2),f=0,h=o.length;f<h;f++)o[f]=c[f*2]*256+c[f*2+1];var l=[];return o.forEach(function(d){l.push(r(d))}),a.decompress(l.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(o){return i.charAt(o)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(o){return u(i,c.charAt(o))}))},compress:function(c){return a._compress(c,16,function(o){return r(o)})},_compress:function(c,o,f){if(c==null)return"";var h,l,d={},v={},m="",x="",A="",g=2,y=3,_=2,w=[],p=0,S=0,$;for($=0;$<c.length;$+=1)if(m=c.charAt($),Object.prototype.hasOwnProperty.call(d,m)||(d[m]=y++,v[m]=!0),x=A+m,Object.prototype.hasOwnProperty.call(d,x))A=x;else{if(Object.prototype.hasOwnProperty.call(v,A)){if(A.charCodeAt(0)<256){for(h=0;h<_;h++)p=p<<1,S==o-1?(S=0,w.push(f(p)),p=0):S++;for(l=A.charCodeAt(0),h=0;h<8;h++)p=p<<1|l&1,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=l>>1}else{for(l=1,h=0;h<_;h++)p=p<<1|l,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=0;for(l=A.charCodeAt(0),h=0;h<16;h++)p=p<<1|l&1,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=l>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete v[A]}else for(l=d[A],h=0;h<_;h++)p=p<<1|l&1,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=l>>1;g--,g==0&&(g=Math.pow(2,_),_++),d[x]=y++,A=String(m)}if(A!==""){if(Object.prototype.hasOwnProperty.call(v,A)){if(A.charCodeAt(0)<256){for(h=0;h<_;h++)p=p<<1,S==o-1?(S=0,w.push(f(p)),p=0):S++;for(l=A.charCodeAt(0),h=0;h<8;h++)p=p<<1|l&1,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=l>>1}else{for(l=1,h=0;h<_;h++)p=p<<1|l,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=0;for(l=A.charCodeAt(0),h=0;h<16;h++)p=p<<1|l&1,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=l>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete v[A]}else for(l=d[A],h=0;h<_;h++)p=p<<1|l&1,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=l>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(l=2,h=0;h<_;h++)p=p<<1|l&1,S==o-1?(S=0,w.push(f(p)),p=0):S++,l=l>>1;for(;;)if(p=p<<1,S==o-1){w.push(f(p));break}else S++;return w.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(o){return c.charCodeAt(o)})},_decompress:function(c,o,f){var h=[],l=4,d=4,v=3,m="",x=[],A,g,y,_,w,p,S,$={val:f(0),position:o,index:1};for(A=0;A<3;A+=1)h[A]=A;for(y=0,w=Math.pow(2,2),p=1;p!=w;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=o,$.val=f($.index++)),y|=(_>0?1:0)*p,p<<=1;switch(y){case 0:for(y=0,w=Math.pow(2,8),p=1;p!=w;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=o,$.val=f($.index++)),y|=(_>0?1:0)*p,p<<=1;S=r(y);break;case 1:for(y=0,w=Math.pow(2,16),p=1;p!=w;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=o,$.val=f($.index++)),y|=(_>0?1:0)*p,p<<=1;S=r(y);break;case 2:return""}for(h[3]=S,g=S,x.push(S);;){if($.index>c)return"";for(y=0,w=Math.pow(2,v),p=1;p!=w;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=o,$.val=f($.index++)),y|=(_>0?1:0)*p,p<<=1;switch(S=y){case 0:for(y=0,w=Math.pow(2,8),p=1;p!=w;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=o,$.val=f($.index++)),y|=(_>0?1:0)*p,p<<=1;h[d++]=r(y),S=d-1,l--;break;case 1:for(y=0,w=Math.pow(2,16),p=1;p!=w;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=o,$.val=f($.index++)),y|=(_>0?1:0)*p,p<<=1;h[d++]=r(y),S=d-1,l--;break;case 2:return x.join("")}if(l==0&&(l=Math.pow(2,v),v++),h[S])m=h[S];else if(S===d)m=g+g.charAt(0);else return null;x.push(m),h[d++]=g+m.charAt(0),l--,g=m,l==0&&(l=Math.pow(2,v),v++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Qe);var Ci=Qe.exports;const D0=Ci.compress,O0=Ci.decompress;export{e0 as AES,Gl as MD5,Xl as RSA,Mi as arrayToMap,Jl as base64,an as camelCase,Cc as cloneDeep,D0 as compress,l0 as dateFormat,Ge as dayjs,Fn as debounce,O0 as decompress,w0 as dedupArray,x0 as delay,wa as get,et as isArray,Rh as isArrayBuffer,Ch as isBoolean,Dt as isBuffer,a0 as isCarNo,Fh as isDate,p0 as isDef,i0 as isEmail,jh as isEqual,Yt as isFunction,s0 as isIdCardNo,o0 as isMobilePhone,Hh as isNaN,Uh as isNull,Vn as isNumber,Z as isObject,Se as isPlainObject,Ah as isString,Lt as isSymbol,Vh as isUndefined,n0 as isUrl,qh as kebabCase,Kh as lowerFirst,_0 as mapToObject,Wh as merge,Ts as noop,v0 as now,f0 as numberFormat,Oi as numeral,E0 as omit,A0 as pick,Ai as rCar,Ti as rEmail,Si as rID,Ei as rMobile,wi as rURL,y0 as random,Gh as set,pl as template,gl as throttle,g0 as timestamp,T0 as toArray,c0 as toFixed,d0 as toRawType,Ri as toTypeString,Je as trim,m0 as uid,r0 as unAES,Ql as unBase64,t0 as unRSA,De as upperFirst,yl as upperFirstCamelCase,b0 as uuid,S0 as zipObject};
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@vtj/base",
3
+ "private": false,
4
+ "version": "0.7.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "build": "unbuild && npm run dts",
8
+ "test": "vitest run",
9
+ "vitest": "vitest",
10
+ "coverage": "vitest run --coverage",
11
+ "dts": "tsc src/index.ts --target es2015 --moduleResolution Node --outDir temp --declarationDir types --declaration --esModuleInterop"
12
+ },
13
+ "dependencies": {
14
+ "@types/lodash-es": "~4.17.12",
15
+ "@types/numeral": "~2.0.5",
16
+ "reflect-metadata": "~0.2.1"
17
+ },
18
+ "devDependencies": {
19
+ "@types/crypto-js": "~4.2.1",
20
+ "crypto-js": "~4.2.0",
21
+ "dayjs": "~1.11.10",
22
+ "jsencrypt": "~3.3.2",
23
+ "lodash-es": "~4.17.21",
24
+ "lz-string": "~1.5.0",
25
+ "numeral": "~2.0.6",
26
+ "unbuild": "~2.0.0",
27
+ "vitest": "~1.2.0"
28
+ },
29
+ "exports": {
30
+ ".": {
31
+ "types": "./types/index.d.ts",
32
+ "import": "./dist/index.mjs",
33
+ "require": "./dist/index.cjs"
34
+ }
35
+ },
36
+ "main": "./dist/index.cjs",
37
+ "module": "./dist/index.mjs",
38
+ "types": "./types/index.d.ts",
39
+ "files": [
40
+ "dist",
41
+ "types"
42
+ ],
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "gitHead": "b65d1b19322cbd0721173d094db1b5ece018d980"
47
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * MD5加密
3
+ * @param content
4
+ * @returns
5
+ */
6
+ export declare function MD5(content: string): string;
7
+ /**
8
+ * Base64编码
9
+ * @param content
10
+ * @returns
11
+ */
12
+ export declare function base64(content: string): string;
13
+ /**
14
+ * Base64解码
15
+ * @param content
16
+ * @returns
17
+ */
18
+ export declare function unBase64(content: string): string;
19
+ /**
20
+ * 非对称加密
21
+ * @param content 内容
22
+ * @param key 公钥
23
+ * @returns
24
+ * @description RSA密钥对生成工具
25
+ */
26
+ export declare function RSA(content: string, key?: string): string | false;
27
+ /**
28
+ * 非对称解密
29
+ * @param content 内容
30
+ * @param key 私匙
31
+ * @returns
32
+ */
33
+ export declare function unRSA(content: string, key?: string): string | false;
34
+ /**
35
+ * 对称加密
36
+ * @param content
37
+ * @param key
38
+ * @returns
39
+ */
40
+ export declare function AES(content: string, key: string): string;
41
+ /**
42
+ * 对称解密
43
+ * @param content
44
+ * @param key
45
+ * @returns
46
+ */
47
+ export declare function unAES(content: string, key: string): string;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * 数组转Map
3
+ * @param data
4
+ * @param prop
5
+ * @returns
6
+ */
7
+ export declare function arrayToMap<T>(data: T[], prop: keyof T): Map<any, T>;
8
+ /**
9
+ * Map转键值对
10
+ * @param map
11
+ * @returns
12
+ */
13
+ export declare function mapToObject<V = any>(map: Map<any, V>): Record<any, V>;
14
+ /**
15
+ * 数组去重
16
+ * @param array
17
+ * @param prop
18
+ * @returns
19
+ */
20
+ export declare function dedupArray<T = any>(array: T[], prop?: keyof T): T[];
21
+ /**
22
+ * 转换数组
23
+ * @param maybeArray
24
+ * @returns
25
+ */
26
+ export declare function toArray<T = any>(maybeArray?: T | T[]): T[];
27
+ /**
28
+ * 压缩对称,清除值为undefined或null的属性
29
+ * @param obj
30
+ * @returns
31
+ */
32
+ export declare function zipObject(obj: Record<string, any>): Record<string, any>;
33
+ /**
34
+ * 对象排除属性
35
+ * @param target 需要处理的对象
36
+ * @param keys 需要排除的属性名称
37
+ * @returns
38
+ */
39
+ export declare function omit<T extends Record<string, any>, K extends Record<string, any>>(target: T, keys: string[] | ((k: string, v: any) => boolean)): K;
40
+ /**
41
+ * 对象提取属性
42
+ * @param target
43
+ * @param keys
44
+ * @returns
45
+ */
46
+ export declare function pick<T extends Record<string, any>, K extends Record<string, any>>(target: T, keys: string[] | ((k: string, v: any) => boolean)): K;
47
+ /**
48
+ * 递归对象或数组清除文本类型值的两边空格
49
+ * @param {Object|Array} obj
50
+ * @return {Object|Array}
51
+ */
52
+ export declare function trim(obj: any): any;
package/types/day.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import dayjs from 'dayjs';
2
+ import 'dayjs/locale/zh-cn';
3
+ export declare function dateFormat(date: string | number | Date, format?: string): string;
4
+ export { dayjs };
@@ -0,0 +1,8 @@
1
+ export * from './lodash';
2
+ export * from './crypto';
3
+ export * from './regex';
4
+ export * from './numeral';
5
+ export * from './day';
6
+ export * from './util';
7
+ export * from './data';
8
+ export * from './lz-string';
@@ -0,0 +1,2 @@
1
+ export { isString, isFunction, isArray, isObject, isBoolean, isBuffer, isArrayBuffer, isDate, isUndefined, isNaN, isNull, isNumber, isSymbol, isPlainObject, isEqual, noop, upperFirst, camelCase, get, set, cloneDeep, merge, debounce, throttle, template, lowerFirst, kebabCase } from 'lodash-es';
2
+ export declare function upperFirstCamelCase(name: string): string;
@@ -0,0 +1,2 @@
1
+ import { compress, decompress } from 'lz-string';
2
+ export { compress, decompress };
@@ -0,0 +1,17 @@
1
+ import numeral from 'numeral';
2
+ /**
3
+ * 数字格式化,默认2位小数
4
+ * @param value
5
+ * @param format
6
+ * @returns
7
+ */
8
+ export declare function numberFormat(value: number, format?: string): string;
9
+ /**
10
+ * 保留小数点,默认2位
11
+ * @param value 数值
12
+ * @param number 小数位数
13
+ * @param round 是否四舍五入
14
+ * @returns
15
+ */
16
+ export declare function toFixed(value: number, number: number, round: boolean): number;
17
+ export { numeral };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * url表达式
3
+ */
4
+ export declare const rURL: RegExp;
5
+ /**
6
+ * 邮箱地址表达式
7
+ */
8
+ export declare const rEmail: RegExp;
9
+ /**
10
+ * 身份证号码表达式
11
+ */
12
+ export declare const rID: RegExp;
13
+ /**
14
+ * 手机号码表达式
15
+ */
16
+ export declare const rMobile: RegExp;
17
+ /**
18
+ * 车牌号码表达式
19
+ */
20
+ export declare const rCar: RegExp;
21
+ /**
22
+ * 检查url
23
+ * @param content
24
+ * @returns
25
+ */
26
+ export declare function isUrl(content: string): boolean;
27
+ /**
28
+ * 检查邮箱地址
29
+ * @param content
30
+ * @returns
31
+ */
32
+ export declare function isEmail(content: string): boolean;
33
+ /**
34
+ * 检查身份证号码
35
+ * @param content
36
+ * @returns
37
+ */
38
+ export declare function isIdCardNo(content: string): boolean;
39
+ /**
40
+ * 检查手机号码
41
+ * @param content
42
+ * @returns
43
+ */
44
+ export declare function isMobilePhone(content: string): boolean;
45
+ /**
46
+ * 检查车牌号码
47
+ * @param content
48
+ * @returns
49
+ */
50
+ export declare function isCarNo(content: string): boolean;
@@ -0,0 +1,47 @@
1
+ export declare const toTypeString: (value: unknown) => any;
2
+ /**
3
+ * 获取原生数据类型
4
+ * @param value
5
+ * @returns
6
+ */
7
+ export declare const toRawType: (value: unknown) => any;
8
+ /**
9
+ * 已定义
10
+ * @param val
11
+ * @returns
12
+ */
13
+ export declare const isDef: (val: unknown) => boolean;
14
+ /**
15
+ * 当前时间
16
+ * @returns
17
+ */
18
+ export declare const now: () => number;
19
+ /**
20
+ * 时间戳
21
+ * @returns
22
+ */
23
+ export declare const timestamp: () => number;
24
+ /**
25
+ * 生成一个随机数
26
+ * @param min
27
+ * @param max
28
+ * @returns
29
+ */
30
+ export declare const random: (min: number, max: number) => number;
31
+ /**
32
+ * 唯一id
33
+ * @returns
34
+ */
35
+ export declare function uid(): string;
36
+ /**
37
+ * 生成一个 UUID 或 GUID, 默认GUID
38
+ * @param split true为GUID,fasle为UUID
39
+ * @returns
40
+ */
41
+ export declare function uuid(split?: boolean): string;
42
+ /**
43
+ * 延时函数
44
+ * @param val
45
+ * @returns
46
+ */
47
+ export declare function delay(val?: number): Promise<unknown>;