@lntvow/utils 4.2.13 → 4.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var xe=Object.create;var v=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty;var $e=(e,t)=>{for(var r in t)v(e,r,{get:t[r],enumerable:!0})},ae=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of we(t))!Ae.call(e,o)&&o!==r&&v(e,o,{get:()=>t[o],enumerable:!(n=he(t,o))||n.enumerable});return e};var q=(e,t,r)=>(r=e!=null?xe(Oe(e)):{},ae(t||!e||!e.__esModule?v(r,"default",{value:e,enumerable:!0}):r,e)),Re=e=>ae(v({},"__esModule",{value:!0}),e);var Ct={};$e(Ct,{UtilsError:()=>L,base64Decode:()=>Ne,base64Encode:()=>je,castArray:()=>P,compose:()=>Me,composeRight:()=>Pe,debounce:()=>De,debugWarn:()=>ne,debugWarnInvalidTypeMessage:()=>Ke,decimalToBinary:()=>Te,deepClone:()=>C,deepMerge:()=>ke,deprecated:()=>Fe,generateRandomArray:()=>Qe,generateRandomColor:()=>Xe,generateRandomDate:()=>z,generateRandomEmail:()=>de,generateRandomFloat:()=>st,generateRandomIdCard:()=>at,generateRandomMobilePhone:()=>mt,generateRandomStringFromSource:()=>G,getRandomInt:()=>p,getRandomItem:()=>w,getRandomString:()=>A,getRandomUrl:()=>ft,hasChanged:()=>Se,hasCircularReference:()=>oe,isArray:()=>d,isBoolean:()=>x,isChineseString:()=>xt,isDate:()=>ee,isDateString:()=>ye,isDef:()=>Ee,isEmail:()=>Dt,isEmptyString:()=>kt,isEnglishAphabet:()=>ut,isFloat:()=>ht,isFunction:()=>U,isIdCard:()=>It,isInteger:()=>Rt,isLowerCase:()=>dt,isLowerCaseAndNumber:()=>bt,isLowerCaseAndNumberAndChinese:()=>yt,isMap:()=>X,isMobilePhone:()=>Mt,isNegativeFloat:()=>At,isNegativeInteger:()=>Tt,isNil:()=>I,isNonNegativeFloat:()=>Ot,isNonNegativeInteger:()=>St,isNonPositiveFloat:()=>$t,isNonPositiveInteger:()=>jt,isNull:()=>B,isNumber:()=>y,isNumberOrNumberString:()=>ct,isObject:()=>S,isObjectLike:()=>_,isPlainObject:()=>h,isPositiveFloat:()=>wt,isPositiveInteger:()=>Et,isPromise:()=>re,isRegExp:()=>te,isSet:()=>J,isString:()=>T,isStringNumber:()=>Nt,isSymbol:()=>Q,isURL:()=>Pt,isUndef:()=>c,isUpperCase:()=>pt,isUpperCaseAndNumber:()=>lt,isUpperCaseAndNumberAndChinese:()=>gt,objectToString:()=>me,omit:()=>qe,pick:()=>ie,qs:()=>pe,qsStringify:()=>_e,throttle:()=>Le,throwError:()=>i,throwErrorInvalidTypeMessage:()=>Ye,toTypeString:()=>M,toTypeValue:()=>H,validatorChineseOrEnglish:()=>He,validatorChineseOrEnglishOrNumber:()=>ve,validatorUppercaseOrNumbersOrSpecial:()=>Be,validatorUppercaseOrNumbersOrUnderline:()=>Ve,withRetry:()=>We});module.exports=Re(Ct);function S(e){let t=typeof e;return e!==null&&(t==="object"||t==="function")}function _(e){return e!==null&&typeof e=="object"}var me=Object.prototype.toString,M=e=>me.call(e),H=e=>M(e).slice(8,-1),T=e=>typeof e=="string",y=e=>typeof e=="number"&&Number.isFinite(e),x=e=>typeof e=="boolean",B=e=>e===null,c=e=>e===void 0,Q=e=>typeof e=="symbol",d=Array.isArray,U=e=>typeof e=="function",X=e=>M(e)==="[object Map]",J=e=>M(e)==="[object Set]",ee=e=>M(e)==="[object Date]",te=e=>M(e)==="[object RegExp]",re=e=>_(e)&&U(e?.then)&&U(e?.catch),I=e=>e==null,Ee=e=>e!=null,Se=(e,t)=>e!==t;function h(e){return M(e)==="[object Object]"}function P(e){return d(e)?e:[e]}function Te(e){let t=[],r,n="";for(;e>0;)r=Math.floor(e%2),t.push(r),e=Math.floor(e/2);for(;t.length>0;)n+=t.pop().toString();return n}var fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function je(e){let t="",r="";for(let o=0;o<e.length;o++)r+=e[o].charCodeAt(0).toString(2).padStart(8,"0");for(let o=0;o<r.length;o+=6)t+=fe[Number.parseInt(r.slice(o,o+6).padEnd(6,"0"),2)];let n=t.length%4;return n!==0&&(t+="=".repeat(4-n)),t}function Ne(e){let t="",r="";for(let n=0;n<e.length&&e[n]!=="=";n++)r+=fe.indexOf(e[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let o=Number.parseInt(r.slice(n,n+8),2);o&&(t+=String.fromCharCode(o))}return t}function Me(...e){return e.reduce((t,r)=>function(...n){return r(t(...n))})}function Pe(...e){return e.reduce((t,r)=>function(...n){return t(r(...n))})}function De(e,t=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}function C(e){let t=new WeakMap;function r(n){if(!_(n))return n;if(ee(n))return new Date(n);if(te(n))return new RegExp(n);if(re(n))return n;if(t.has(n))return t.get(n);if(X(n)){let a=new Map;return t.set(n,a),n.forEach((u,g)=>a.set(r(g),r(u))),a}if(J(n)){let a=new Set;return t.set(n,a),n.forEach(u=>a.add(r(u))),a}let o=d(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));t.set(n,o);let f=Object.getOwnPropertyDescriptors(n);for(let a of Reflect.ownKeys(f)){let u=f[a];u.get||u.set?Object.defineProperty(o,a,u):Object.defineProperty(o,a,{...u,value:r(u.value)})}return o}return r(e)}function ke(e,t,r={}){return ue(ce(e,r),ce(t,r),r)}function ue(e,t,r){return d(e)?Ce(e,t,r):Ie(e,t,r)}function Ie(e,t,r){if(!h(t))return t;let n=Object.getOwnPropertyDescriptors(t);return Reflect.ownKeys(t).forEach(o=>{(h(e[o])||d(e[o]))&&(h(t[o])||d(t[o]))?e[o]=ue(e[o],t[o],r):Object.defineProperty(e,o,n[o])}),e}function Ce(e,t,r){let{mergeStrategy:n="replace"}=r;if(d(t))switch(n){case"merge":return e.concat(t);case"replace":return t;default:return t}return t}function ce(e,t){let{deepClone:r=!0}=t;return r?C(e):e}var L=class extends Error{constructor(t,r="Utils"){super(t),this.name=r}};function i(e,t){throw new L(`[${e}] ${t}`)}function ne(e,t){let r=T(e)?new L(`[${e}] ${t}`,"UtilsWarn"):e;console.warn(r)}var Fe=({from:e,replacement:t,version:r,type:n="API"})=>{ne(`${n}`,`${e} is about to be deprecated in version ${r}, please use ${t} instead.`)};function Ye(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${H(n)} with value ${n}.`;i(e,o)}function Ke(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${H(n)} with value ${n}.`;ne(e,o)}var V=(e,t,...r)=>{if(!t)return;let n=r.length===0?"":r.length===1?r[0]:r;console[e](`[Log] ${t}:`,n)},W=(e,...t)=>{V("info",e,...t)};W.info=(e,...t)=>{V("info",e,...t)};W.error=(e,...t)=>{V("error",e,...t)};W.warn=(e,...t)=>{V("warn",e,...t)};typeof globalThis<"u"&&(globalThis.log=W);function _e(e,t={}){Ue(t);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:o="indices",encodeDotInKeys:f=!1,skipNulls:a=!1,strictNullHandling:u=!1,commaRoundTrip:g=!1,allowEmptyArrays:D=!1,addQueryPrefix:$=!1,delimiter:k="&"}=t,O=t.allowDots??!1;f&&c(t.allowDots)&&(O=!0);let b=[],E=m=>r&&!n?encodeURIComponent(m):m,Y=m=>r?encodeURIComponent(m):m;function K(m,l){if(!c(l)){if(B(l)){if(a)return;b.push(`${E(m)}${u?"":"="}`);return}if(d(l)){if(l.length===0){D&&b.push(`${E(m)}[]`);return}if(o==="comma"){let j=n?l.map(Y).join(","):Y(l.join(","));if(l.length===1&&B(l[0])){if(a)return;b.push(`${E(m)}${g?"[]":""}${u?"":"="}`)}else l.length===1?b.push(`${E(m)}${g?"[]":""}=${j}`):b.push(`${E(m)}=${j}`);return}l.forEach((j,F)=>{let N=m;o==="indices"?N=`${m}[${F}]`:o==="brackets"&&(N=`${m}[]`),K(N,j)});return}if(S(l)){Object.keys(l).forEach(j=>{let F=m;f&&(F=F.replace(/\./g,"%2E"));let N=j;O?(f&&(N=N.replace(/\./g,"%2E")),K(`${F}.${N}`,l[j])):K(`${F}[${N}]`,l[j])});return}b.push(`${E(m)}=${Y(l)}`)}}if(!S(e))return"";oe(e)&&i("stringify","Input object contains circular references, cannot stringify"),d(e)?e.forEach((m,l)=>K(`${l}`,m)):Object.keys(e).forEach(m=>K(m,e[m]));let Z=b.join(k);return $&&Z?`?${Z}`:Z}function Ue(e={}){h(e)||i("stringify",'"options" must be a plain object'),!c(e.encode)&&!x(e.encode)&&i("stringify",'"encode" must be a boolean'),!c(e.encodeValuesOnly)&&!x(e.encodeValuesOnly)&&i("stringify",'"encodeValuesOnly" must be a boolean'),!c(e.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(e.arrayFormat)&&i("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!c(e.allowDots)&&!x(e.allowDots)&&i("stringify",'"allowDots" must be a boolean'),!c(e.skipNulls)&&!x(e.skipNulls)&&i("stringify",'"skipNulls" must be a boolean'),!c(e.strictNullHandling)&&!x(e.strictNullHandling)&&i("stringify",'"strictNullHandling" must be a boolean'),!c(e.addQueryPrefix)&&!x(e.addQueryPrefix)&&i("stringify",'"addQueryPrefix" must be a boolean'),!c(e.delimiter)&&!T(e.delimiter)&&i("stringify",'"delimiter" must be a string'),!c(e.encodeDotInKeys)&&!x(e.encodeDotInKeys)&&i("stringify",'"encodeDotInKeys" must be a boolean'),!c(e.commaRoundTrip)&&!x(e.commaRoundTrip)&&i("stringify",'"commaRoundTrip" must be a boolean'),!c(e.allowEmptyArrays)&&!x(e.allowEmptyArrays)&&i("stringify",'"allowEmptyArrays" must be a boolean')}var pe={stringify:e=>(S(e)||i("stringify","Input must be an object"),new URLSearchParams(e).toString()),parse:e=>(T(e)||i("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(e).entries())),appendQueryString:(e,t)=>{let r=pe.stringify(t);return e.includes("?")?e.endsWith("?")||e.endsWith("&")?`${e}${r}`:`${e}&${r}`:`${e}?${r}`}};function Le(e,t=500){let r=null;return function(...n){if(I(r))return r=Date.now(),e.apply(this,n);let o=Date.now();if(o-r>=t)return r=o,e.apply(this,n)}}function ve(e){return!I(e)&&/^[\dA-Z\u4E00-\u9FA5]+$/i.test(e)}function He(e){return!I(e)&&/^[A-Z\u4E00-\u9FA5]+$/i.test(e)}function Be(e){return!I(e)&&/^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(e)}function Ve(e){return/^[\dA-Z_]+$/.test(e)}function We(e){ze(e);let{fn:t,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:o=!1,signal:f}=e,a,u=f?new Promise((D,$)=>{let k=()=>$(le());f.addEventListener("abort",k),a=()=>f.removeEventListener("abort",k)}):null;return new Promise((D,$)=>{(async()=>{for(let O=1;O<=r;O++){if(f?.aborted)return $(le());try{let b=await Promise.race(u?[t(),u]:[t()]);return D(b)}catch(b){let E=o?n*2**(O-1):n;if(log("withRetry",`Attempt ${O}/${r} failed. Retrying in ${E}ms...`),b instanceof Error&&b.name==="AbortError"||O===r)return $(b);await new Promise(Y=>setTimeout(Y,E))}}})()}).finally(()=>a?.())}function ze(e){h(e)||i("withRetry",'"Options" must be an object'),typeof e.fn!="function"&&i("withRetry",'"fn" must be a function that returns a Promise'),!c(e.maxAttempts)&&(!Number.isInteger(e.maxAttempts)||e.maxAttempts<1)&&i("withRetry",'"maxAttempts" must be a positive integer'),!c(e.retryDelay)&&(!y(e.retryDelay)||e.retryDelay<0)&&i("withRetry",'"retryDelay" must be a non-negative number'),!c(e.enableExponentialBackoff)&&!x(e.enableExponentialBackoff)&&i("withRetry",'"enableExponentialBackoff" must be a boolean'),!c(e.signal)&&typeof e.signal!="object"&&i("withRetry",'"signal" must be an AbortSignal')}var Ge="The operation was aborted";function le(e=Ge){let t=new Error(e);return t.name="AbortError",t}function oe(e){S(e)||i("hasCircularReference",'"obj" must be a object');let t=new Set;function r(n){if(S(n)){if(t.has(n))return!0;t.add(n);for(let o of Object.keys(n))if(r(n[o]))return!0;t.delete(n)}return!1}return r(e)}function ie(e,t,r={}){let{includeProto:n=!1,includeSymbols:o=!0,includeNonEnum:f=!1}=r,a={};return h(e)&&P(t).forEach(g=>{Q(g)&&!o||!(n?g in e:Object.hasOwn(e,g))||!f&&(n?Ze(e,g):Object.getOwnPropertyDescriptor(e,g))?.enumerable===!1||(a[g]=C(e[g]))}),a}function Ze(e,t){let r=e;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function qe(e,t){if(!h(e))return{};let r=C(e),n=P(t),o=Object.keys(r).filter(f=>!n.includes(f));return ie(r,o)}function Qe(e,t){return(!y(e)||e<=0)&&i("generateRandomArray","num must be greater than 0"),U(t)||i("generateRandomArray","cb must be a function"),Array.from({length:e}).fill(0).map((r,n)=>t(r,n))}function Xe(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}var R=q(require("dayjs"),1),ge=q(require("dayjs/plugin/customParseFormat.js"),1);function w(e){return e[Math.floor(Math.random()*e.length)]}function p(e={}){y(e)&&(e={max:e});let{min:t=1,max:r=w(et())}=e;Je(t,r);let n=Math.ceil(t),o=Math.floor(r);return Math.floor(Math.random()*(o-n+1)+n)}function Je(e,t){let r=Math.ceil(e),n=Math.floor(t);Number.isSafeInteger(r)||i("getRandomInt",`The minimum value Math.ceil(${e}) should be a safe integer`),Number.isSafeInteger(n)||i("getRandomInt",`The maximum value Math.floor(${t}) should be a safe integer`),n<r&&(t>=e&&i("getRandomInt",`No integer value found between ${e} and ${t}`),i("getRandomInt",`The maximum value ${t} should be greater than the minimum value ${e}`))}function et(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((e,t)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,t+1);return Number(r)})}R.default.extend(ge.default);function z(e={}){let{start:t="1800-01-01 00:00:00",end:r=(0,R.default)().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=e;(!(0,R.default)(t).isValid()||!(0,R.default)(r).isValid())&&i("generateRandomDate","start and end parameters must be valid date format");let o=(0,R.default)(t).year(),f=(0,R.default)(r).year(),a=p({min:o,max:f}),u=p({min:1,max:12}),g=p({min:1,max:31}),D=p(23),$=p(59),k=p(59),O=(0,R.default)(`${a}-${u}-${g} ${D}:${$}:${k}`);return O.isBefore((0,R.default)(t))||O.isAfter((0,R.default)(r))?z(e):O.format(n)}function A(e={}){let t=rt(e),r=nt(t);ot(r);let{length:n}=t;it(n.min,n.max);let o=p(n),f=t.prefix||"";for(let a=0;a<o;a++)f+=r.charAt(Math.floor(Math.random()*r.length));return f+(t.suffix||"")}var tt=16,se=1;function rt(e){let t=y(e);return{lowerCase:!0,upperCase:!0,number:!0,...t?{}:e,length:t?{max:e,min:e}:y(e.length)?{max:e.length,min:e.length}:{max:tt,min:se,...e.length},extra:t?[]:[...new Set(P(e.extra||[]))]}}function nt(e){let t="";return e.lowerCase&&(t+="abcdefghijklmnopqrstuvwxyz"),e.upperCase&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),e.number&&(t+="0123456789"),t+=P(e.extra).join(""),t}function ot(e){e.length===0&&i("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function it(e,t){Number.isInteger(e)||i("getRandomString","min must be an integer"),Number.isInteger(t)||i("getRandomString","max must be an integer"),e<se&&i("getRandomString",`Minimum length cannot be less than ${se}`),t<e&&i("getRandomString","Maximum length cannot be less than minimum length")}function de(){let e=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],t=`${A(1)}${A({length:p({max:30,min:1})})}${A(1)}@${w(e)}`;return/\.{2,}/.test(t)?de():t}function st(e={}){y(e)&&(e={max:e});let{min:t=0,max:r=1,fractionDigits:n=2}=e;if(t===r)return t;if(t>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${t}`);return Math.random()*(r-t)+t}function G(e,t){(!y(e)||e<=0)&&i("generateRandomStringFromSource","num must be greater than 0"),(!d(t)||t.length===0)&&i("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<e;n++)r+=w(t);return r}function at(){let e=p({min:1e5,max:999999}),t=[0,1,2,3,4,5,6,7,8,9];return[e,z({format:"YYYYMMDD"}),G(3,t),G(1,[...t,"X","x"])].join("")}function mt(){return w(["13","14","15","16","17","18","19"])+p(999999999).toString().padEnd(9,"0")}function ft(){let e=["http://","https://"],t=[".com",".net",".org",".cn",".top"],r=[`?name=${A({length:{min:4,max:8}})}`,`?id=${p()}`,`?page=${A({length:{min:2,max:4}})}`,`?query=${A({length:{min:5,max:6}})}`,`?search=${A({length:{min:1,max:4}})}`,`?token=${A({length:{min:16,max:16}})}`];return`${w(e)}${A({length:{min:5,max:25}})}${w(t)}${w(r)}`}function ct(e){return/^\d+$/.test(e)}function ut(e){return/^[A-Z]+$/i.test(e)}function pt(e){return/^[A-Z]+$/.test(e)}function lt(e){return/^[\dA-Z]+$/.test(e)}function gt(e){return/^[\dA-Z\u4E00-\u9FA5]+$/.test(e)}function dt(e){return/^[a-z]+$/.test(e)}function bt(e){return/^[\da-z]+$/.test(e)}function yt(e){return/^[\da-z\u4E00-\u9FA5]+$/.test(e)}function xt(e){return/^[\u4E00-\u9FA5]+$/.test(e)}function ht(e){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(e)}function wt(e){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function Ot(e){return/^(?:0|[1-9]\d*)\.\d+$/.test(e)}function At(e){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function $t(e){return/^-(?:0|[1-9]\d*)\.\d+$/.test(e)}function Rt(e){return/^-?(?:0|[1-9]\d*)$/.test(e)}function Et(e){return/^[1-9]\d*$/.test(e)}function St(e){return/^(?:0|[1-9]\d*)$/.test(e)&&!Object.is(e,-0)}function Tt(e){return/^-[1-9]\d*$/.test(e)}function jt(e){return/^-(?:0|[1-9]\d*)$/.test(e)||Object.is(e,-0)}var Nt=e=>{if(!T(e)||!/^-?\d+(?:\.\d+)?$/.test(e))return!1;let r=Number(e);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};var be=q(require("dayjs"),1);function Mt(e){return/^1[3-9]\d{9}$/.test(e)}function Pt(e){return/^https?:\/\/\S+$/i.test(e)}function Dt(e){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e)}function kt(e){return e===""}function ye(e,t="YYYY-MM-DD HH:mm:ss"){return(0,be.default)(e,t,!0).isValid()}function It(e){return/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(e)&&ye(e.slice(6,14),"YYYYMMDD")}0&&(module.exports={UtilsError,base64Decode,base64Encode,castArray,compose,composeRight,debounce,debugWarn,debugWarnInvalidTypeMessage,decimalToBinary,deepClone,deepMerge,deprecated,generateRandomArray,generateRandomColor,generateRandomDate,generateRandomEmail,generateRandomFloat,generateRandomIdCard,generateRandomMobilePhone,generateRandomStringFromSource,getRandomInt,getRandomItem,getRandomString,getRandomUrl,hasChanged,hasCircularReference,isArray,isBoolean,isChineseString,isDate,isDateString,isDef,isEmail,isEmptyString,isEnglishAphabet,isFloat,isFunction,isIdCard,isInteger,isLowerCase,isLowerCaseAndNumber,isLowerCaseAndNumberAndChinese,isMap,isMobilePhone,isNegativeFloat,isNegativeInteger,isNil,isNonNegativeFloat,isNonNegativeInteger,isNonPositiveFloat,isNonPositiveInteger,isNull,isNumber,isNumberOrNumberString,isObject,isObjectLike,isPlainObject,isPositiveFloat,isPositiveInteger,isPromise,isRegExp,isSet,isString,isStringNumber,isSymbol,isURL,isUndef,isUpperCase,isUpperCaseAndNumber,isUpperCaseAndNumberAndChinese,objectToString,omit,pick,qs,qsStringify,throttle,throwError,throwErrorInvalidTypeMessage,toTypeString,toTypeValue,validatorChineseOrEnglish,validatorChineseOrEnglishOrNumber,validatorUppercaseOrNumbersOrSpecial,validatorUppercaseOrNumbersOrUnderline,withRetry});
1
+ "use strict";var he=Object.create;var U=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var $e=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty;var Re=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},fe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oe(t))!Ae.call(e,o)&&o!==r&&U(e,o,{get:()=>t[o],enumerable:!(n=we(t,o))||n.enumerable});return e};var B=(e,t,r)=>(r=e!=null?he($e(e)):{},fe(t||!e||!e.__esModule?U(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>fe(U({},"__esModule",{value:!0}),e);var At={};Re(At,{UtilsError:()=>L,base64Decode:()=>Me,base64Encode:()=>De,castArray:()=>P,compose:()=>Pe,composeRight:()=>Ne,debounce:()=>ke,debugWarn:()=>ne,debugWarnInvalidTypeMessage:()=>_e,decimalToBinary:()=>Ee,deepClone:()=>I,deepMerge:()=>Ie,deprecated:()=>Ye,generateRandomArray:()=>ze,generateRandomColor:()=>qe,generateRandomDate:()=>G,generateRandomEmail:()=>ye,generateRandomFloat:()=>nt,generateRandomIdCard:()=>ot,generateRandomMobilePhone:()=>it,generateRandomStringFromSource:()=>z,getRandomInt:()=>p,getRandomItem:()=>w,getRandomString:()=>$,getRandomUrl:()=>at,hasChanged:()=>je,hasCircularReference:()=>oe,isArray:()=>d,isBoolean:()=>x,isDate:()=>Z,isDateString:()=>se,isDef:()=>Se,isEmail:()=>yt,isEmptyString:()=>xt,isFloat:()=>st,isFunction:()=>_,isIdCard:()=>ht,isInteger:()=>pt,isMap:()=>X,isMobilePhone:()=>wt,isNegativeFloat:()=>ct,isNegativeInteger:()=>dt,isNil:()=>re,isNonNegativeFloat:()=>ft,isNonNegativeInteger:()=>gt,isNonPositiveFloat:()=>ut,isNonPositiveInteger:()=>bt,isNull:()=>v,isNumber:()=>y,isObject:()=>S,isObjectLike:()=>K,isPlainObject:()=>h,isPositiveFloat:()=>mt,isPositiveInteger:()=>lt,isPromise:()=>te,isRegExp:()=>ee,isSet:()=>J,isString:()=>j,isStringNumber:()=>Ot,isSymbol:()=>Q,isURL:()=>$t,isUndef:()=>c,objectToString:()=>ce,omit:()=>Ge,pick:()=>ie,qs:()=>ge,qsStringify:()=>Le,throttle:()=>Be,throwError:()=>a,throwErrorInvalidTypeMessage:()=>Ke,toTypeString:()=>M,toTypeValue:()=>H,withRetry:()=>He});module.exports=Te(At);function S(e){let t=typeof e;return e!==null&&(t==="object"||t==="function")}function K(e){return e!==null&&typeof e=="object"}var ce=Object.prototype.toString,M=e=>ce.call(e),H=e=>M(e).slice(8,-1),j=e=>typeof e=="string",y=e=>typeof e=="number"&&Number.isFinite(e),x=e=>typeof e=="boolean",v=e=>e===null,c=e=>e===void 0,Q=e=>typeof e=="symbol",d=Array.isArray,_=e=>typeof e=="function",X=e=>M(e)==="[object Map]",J=e=>M(e)==="[object Set]",Z=e=>M(e)==="[object Date]",ee=e=>M(e)==="[object RegExp]",te=e=>K(e)&&_(e?.then)&&_(e?.catch),re=e=>e==null,Se=e=>e!=null,je=(e,t)=>e!==t;function h(e){return M(e)==="[object Object]"}function P(e){return d(e)?e:[e]}function Ee(e){let t=[],r,n="";for(;e>0;)r=Math.floor(e%2),t.push(r),e=Math.floor(e/2);for(;t.length>0;)n+=t.pop().toString();return n}var ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function De(e){let t="",r="";for(let o=0;o<e.length;o++)r+=e[o].charCodeAt(0).toString(2).padStart(8,"0");for(let o=0;o<r.length;o+=6)t+=ue[Number.parseInt(r.slice(o,o+6).padEnd(6,"0"),2)];let n=t.length%4;return n!==0&&(t+="=".repeat(4-n)),t}function Me(e){let t="",r="";for(let n=0;n<e.length&&e[n]!=="=";n++)r+=ue.indexOf(e[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let o=Number.parseInt(r.slice(n,n+8),2);o&&(t+=String.fromCharCode(o))}return t}function Pe(...e){return e.reduce((t,r)=>function(...n){return r(t(...n))})}function Ne(...e){return e.reduce((t,r)=>function(...n){return t(r(...n))})}function ke(e,t=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}function I(e){let t=new WeakMap;function r(n){if(!K(n))return n;if(Z(n))return new Date(n);if(ee(n))return new RegExp(n);if(te(n))return n;if(t.has(n))return t.get(n);if(X(n)){let s=new Map;return t.set(n,s),n.forEach((u,g)=>s.set(r(g),r(u))),s}if(J(n)){let s=new Set;return t.set(n,s),n.forEach(u=>s.add(r(u))),s}let o=d(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));t.set(n,o);let f=Object.getOwnPropertyDescriptors(n);for(let s of Reflect.ownKeys(f)){let u=f[s];u.get||u.set?Object.defineProperty(o,s,u):Object.defineProperty(o,s,{...u,value:r(u.value)})}return o}return r(e)}function Ie(e,t,r={}){return le(pe(e,r),pe(t,r),r)}function le(e,t,r){return d(e)?Fe(e,t,r):Ce(e,t,r)}function Ce(e,t,r){if(!h(t))return t;let n=Object.getOwnPropertyDescriptors(t);return Reflect.ownKeys(t).forEach(o=>{(h(e[o])||d(e[o]))&&(h(t[o])||d(t[o]))?e[o]=le(e[o],t[o],r):Object.defineProperty(e,o,n[o])}),e}function Fe(e,t,r){let{mergeStrategy:n="replace"}=r;if(d(t))switch(n){case"merge":return e.concat(t);case"replace":return t;default:return t}return t}function pe(e,t){let{deepClone:r=!0}=t;return r?I(e):e}var L=class extends Error{constructor(t,r="Utils"){super(t),this.name=r}};function a(e,t){throw new L(`[${e}] ${t}`)}function ne(e,t){let r=j(e)?new L(`[${e}] ${t}`,"UtilsWarn"):e;console.warn(r)}var Ye=({from:e,replacement:t,version:r,type:n="API"})=>{ne(`${n}`,`${e} is about to be deprecated in version ${r}, please use ${t} instead.`)};function Ke(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${H(n)} with value ${n}.`;a(e,o)}function _e(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${H(n)} with value ${n}.`;ne(e,o)}var V=(e,t,...r)=>{if(!t)return;let n=r.length===0?"":r.length===1?r[0]:r;console[e](`[Log] ${t}:`,n)},W=(e,...t)=>{V("info",e,...t)};W.info=(e,...t)=>{V("info",e,...t)};W.error=(e,...t)=>{V("error",e,...t)};W.warn=(e,...t)=>{V("warn",e,...t)};typeof globalThis<"u"&&(globalThis.log=W);function Le(e,t={}){Ue(t);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:o="indices",encodeDotInKeys:f=!1,skipNulls:s=!1,strictNullHandling:u=!1,commaRoundTrip:g=!1,allowEmptyArrays:N=!1,addQueryPrefix:A=!1,delimiter:k="&"}=t,O=t.allowDots??!1;f&&c(t.allowDots)&&(O=!0);let b=[],T=m=>r&&!n?encodeURIComponent(m):m,F=m=>r?encodeURIComponent(m):m;function Y(m,l){if(!c(l)){if(v(l)){if(s)return;b.push(`${T(m)}${u?"":"="}`);return}if(d(l)){if(l.length===0){N&&b.push(`${T(m)}[]`);return}if(o==="comma"){let E=n?l.map(F).join(","):F(l.join(","));if(l.length===1&&v(l[0])){if(s)return;b.push(`${T(m)}${g?"[]":""}${u?"":"="}`)}else l.length===1?b.push(`${T(m)}${g?"[]":""}=${E}`):b.push(`${T(m)}=${E}`);return}l.forEach((E,C)=>{let D=m;o==="indices"?D=`${m}[${C}]`:o==="brackets"&&(D=`${m}[]`),Y(D,E)});return}if(S(l)){Object.keys(l).forEach(E=>{let C=m;f&&(C=C.replace(/\./g,"%2E"));let D=E;O?(f&&(D=D.replace(/\./g,"%2E")),Y(`${C}.${D}`,l[E])):Y(`${C}[${D}]`,l[E])});return}b.push(`${T(m)}=${F(l)}`)}}if(!S(e))return"";oe(e)&&a("stringify","Input object contains circular references, cannot stringify"),d(e)?e.forEach((m,l)=>Y(`${l}`,m)):Object.keys(e).forEach(m=>Y(m,e[m]));let q=b.join(k);return A&&q?`?${q}`:q}function Ue(e={}){h(e)||a("stringify",'"options" must be a plain object'),!c(e.encode)&&!x(e.encode)&&a("stringify",'"encode" must be a boolean'),!c(e.encodeValuesOnly)&&!x(e.encodeValuesOnly)&&a("stringify",'"encodeValuesOnly" must be a boolean'),!c(e.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(e.arrayFormat)&&a("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!c(e.allowDots)&&!x(e.allowDots)&&a("stringify",'"allowDots" must be a boolean'),!c(e.skipNulls)&&!x(e.skipNulls)&&a("stringify",'"skipNulls" must be a boolean'),!c(e.strictNullHandling)&&!x(e.strictNullHandling)&&a("stringify",'"strictNullHandling" must be a boolean'),!c(e.addQueryPrefix)&&!x(e.addQueryPrefix)&&a("stringify",'"addQueryPrefix" must be a boolean'),!c(e.delimiter)&&!j(e.delimiter)&&a("stringify",'"delimiter" must be a string'),!c(e.encodeDotInKeys)&&!x(e.encodeDotInKeys)&&a("stringify",'"encodeDotInKeys" must be a boolean'),!c(e.commaRoundTrip)&&!x(e.commaRoundTrip)&&a("stringify",'"commaRoundTrip" must be a boolean'),!c(e.allowEmptyArrays)&&!x(e.allowEmptyArrays)&&a("stringify",'"allowEmptyArrays" must be a boolean')}var ge={stringify:e=>(S(e)||a("stringify","Input must be an object"),new URLSearchParams(e).toString()),parse:e=>(j(e)||a("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(e).entries())),appendQueryString:(e,t)=>{let r=ge.stringify(t);return e.includes("?")?e.endsWith("?")||e.endsWith("&")?`${e}${r}`:`${e}&${r}`:`${e}?${r}`}};function Be(e,t=500){let r=null;return function(...n){if(re(r))return r=Date.now(),e.apply(this,n);let o=Date.now();if(o-r>=t)return r=o,e.apply(this,n)}}function He(e){ve(e);let{fn:t,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:o=!1,signal:f}=e,s,u=f?new Promise((N,A)=>{let k=()=>A(de());f.addEventListener("abort",k),s=()=>f.removeEventListener("abort",k)}):null;return new Promise((N,A)=>{(async()=>{for(let O=1;O<=r;O++){if(f?.aborted)return A(de());try{let b=await Promise.race(u?[t(),u]:[t()]);return N(b)}catch(b){let T=o?n*2**(O-1):n;if(log("withRetry",`Attempt ${O}/${r} failed. Retrying in ${T}ms...`),b instanceof Error&&b.name==="AbortError"||O===r)return A(b);await new Promise(F=>setTimeout(F,T))}}})()}).finally(()=>s?.())}function ve(e){h(e)||a("withRetry",'"Options" must be an object'),typeof e.fn!="function"&&a("withRetry",'"fn" must be a function that returns a Promise'),!c(e.maxAttempts)&&(!Number.isInteger(e.maxAttempts)||e.maxAttempts<1)&&a("withRetry",'"maxAttempts" must be a positive integer'),!c(e.retryDelay)&&(!y(e.retryDelay)||e.retryDelay<0)&&a("withRetry",'"retryDelay" must be a non-negative number'),!c(e.enableExponentialBackoff)&&!x(e.enableExponentialBackoff)&&a("withRetry",'"enableExponentialBackoff" must be a boolean'),!c(e.signal)&&typeof e.signal!="object"&&a("withRetry",'"signal" must be an AbortSignal')}var Ve="The operation was aborted";function de(e=Ve){let t=new Error(e);return t.name="AbortError",t}function oe(e){S(e)||a("hasCircularReference",'"obj" must be a object');let t=new Set;function r(n){if(S(n)){if(t.has(n))return!0;t.add(n);for(let o of Object.keys(n))if(r(n[o]))return!0;t.delete(n)}return!1}return r(e)}function ie(e,t,r={}){let{includeProto:n=!1,includeSymbols:o=!0,includeNonEnum:f=!1}=r,s={};return h(e)&&P(t).forEach(g=>{Q(g)&&!o||!(n?g in e:Object.hasOwn(e,g))||!f&&(n?We(e,g):Object.getOwnPropertyDescriptor(e,g))?.enumerable===!1||(s[g]=I(e[g]))}),s}function We(e,t){let r=e;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ge(e,t){if(!h(e))return{};let r=I(e),n=P(t),o=Object.keys(r).filter(f=>!n.includes(f));return ie(r,o)}function ze(e,t){return(!y(e)||e<=0)&&a("generateRandomArray","num must be greater than 0"),_(t)||a("generateRandomArray","cb must be a function"),Array.from({length:e}).fill(0).map((r,n)=>t(r,n))}function qe(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}var R=B(require("dayjs"),1),be=B(require("dayjs/plugin/customParseFormat.js"),1);function w(e){return e[Math.floor(Math.random()*e.length)]}function p(e={}){y(e)&&(e={max:e});let{min:t=1,max:r=w(Xe())}=e;Qe(t,r);let n=Math.ceil(t),o=Math.floor(r);return Math.floor(Math.random()*(o-n+1)+n)}function Qe(e,t){let r=Math.ceil(e),n=Math.floor(t);Number.isSafeInteger(r)||a("getRandomInt",`The minimum value Math.ceil(${e}) should be a safe integer`),Number.isSafeInteger(n)||a("getRandomInt",`The maximum value Math.floor(${t}) should be a safe integer`),n<r&&(t>=e&&a("getRandomInt",`No integer value found between ${e} and ${t}`),a("getRandomInt",`The maximum value ${t} should be greater than the minimum value ${e}`))}function Xe(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((e,t)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,t+1);return Number(r)})}R.default.extend(be.default);function G(e={}){let{start:t="1800-01-01 00:00:00",end:r=(0,R.default)().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=e;(!(0,R.default)(t).isValid()||!(0,R.default)(r).isValid())&&a("generateRandomDate","start and end parameters must be valid date format");let o=(0,R.default)(t).year(),f=(0,R.default)(r).year(),s=p({min:o,max:f}),u=p({min:1,max:12}),g=p({min:1,max:31}),N=p(23),A=p(59),k=p(59),O=(0,R.default)(`${s}-${u}-${g} ${N}:${A}:${k}`);return O.isBefore((0,R.default)(t))||O.isAfter((0,R.default)(r))?G(e):O.format(n)}function $(e={}){let t=Ze(e),r=et(t);tt(r);let{length:n}=t;rt(n.min,n.max);let o=p(n),f=t.prefix||"";for(let s=0;s<o;s++)f+=r.charAt(Math.floor(Math.random()*r.length));return f+(t.suffix||"")}var Je=16,ae=1;function Ze(e){let t=y(e);return{lowerCase:!0,upperCase:!0,number:!0,...t?{}:e,length:t?{max:e,min:e}:y(e.length)?{max:e.length,min:e.length}:{max:Je,min:ae,...e.length},extra:t?[]:[...new Set(P(e.extra||[]))]}}function et(e){let t="";return e.lowerCase&&(t+="abcdefghijklmnopqrstuvwxyz"),e.upperCase&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),e.number&&(t+="0123456789"),t+=P(e.extra).join(""),t}function tt(e){e.length===0&&a("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function rt(e,t){Number.isInteger(e)||a("getRandomString","min must be an integer"),Number.isInteger(t)||a("getRandomString","max must be an integer"),e<ae&&a("getRandomString",`Minimum length cannot be less than ${ae}`),t<e&&a("getRandomString","Maximum length cannot be less than minimum length")}function ye(){let e=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],t=`${$(1)}${$({length:p({max:30,min:1})})}${$(1)}@${w(e)}`;return/\.{2,}/.test(t)?ye():t}function nt(e={}){y(e)&&(e={max:e});let{min:t=0,max:r=1,fractionDigits:n=2}=e;if(t===r)return t;if(t>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${t}`);return Math.random()*(r-t)+t}function z(e,t){(!y(e)||e<=0)&&a("generateRandomStringFromSource","num must be greater than 0"),(!d(t)||t.length===0)&&a("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<e;n++)r+=w(t);return r}function ot(){let e=p({min:1e5,max:999999}),t=[0,1,2,3,4,5,6,7,8,9];return[e,G({format:"YYYYMMDD"}),z(3,t),z(1,[...t,"X","x"])].join("")}function it(){return w(["13","14","15","16","17","18","19"])+p(999999999).toString().padEnd(9,"0")}function at(){let e=["http://","https://"],t=[".com",".net",".org",".cn",".top"],r=[`?name=${$({length:{min:4,max:8}})}`,`?id=${p()}`,`?page=${$({length:{min:2,max:4}})}`,`?query=${$({length:{min:5,max:6}})}`,`?search=${$({length:{min:1,max:4}})}`,`?token=${$({length:{min:16,max:16}})}`];return`${w(e)}${$({length:{min:5,max:25}})}${w(t)}${w(r)}`}function st(e){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(e)}function mt(e){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function ft(e){return/^(?:0|[1-9]\d*)\.\d+$/.test(e)}function ct(e){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function ut(e){return/^-(?:0|[1-9]\d*)\.\d+$/.test(e)}function pt(e){return/^-?(?:0|[1-9]\d*)$/.test(e)}function lt(e){return/^[1-9]\d*$/.test(e)}function gt(e){return/^(?:0|[1-9]\d*)$/.test(e)&&!Object.is(e,-0)}function dt(e){return/^-[1-9]\d*$/.test(e)}function bt(e){return/^-(?:0|[1-9]\d*)$/.test(e)||Object.is(e,-0)}var xe=B(require("dayjs"),1);function se(e,t="YYYY-MM-DD HH:mm:ss"){return(0,xe.default)(e,t,!0).isValid()}function yt(e){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e)}function xt(e){return e===""}var me=B(require("dayjs"),1);function ht(e){if(!/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(e))return!1;let r=e.slice(6,14);return se(r,"YYYYMMDD")&&(0,me.default)(r,"YYYYMMDD").isBefore((0,me.default)())}function wt(e){return/^1[3-9]\d{9}$/.test(e)}var Ot=e=>{if(!j(e)||!/^-?\d+(?:\.\d+)?$/.test(e))return!1;let r=Number(e);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};function $t(e){return/^https?:\/\/\S+$/i.test(e)}0&&(module.exports={UtilsError,base64Decode,base64Encode,castArray,compose,composeRight,debounce,debugWarn,debugWarnInvalidTypeMessage,decimalToBinary,deepClone,deepMerge,deprecated,generateRandomArray,generateRandomColor,generateRandomDate,generateRandomEmail,generateRandomFloat,generateRandomIdCard,generateRandomMobilePhone,generateRandomStringFromSource,getRandomInt,getRandomItem,getRandomString,getRandomUrl,hasChanged,hasCircularReference,isArray,isBoolean,isDate,isDateString,isDef,isEmail,isEmptyString,isFloat,isFunction,isIdCard,isInteger,isMap,isMobilePhone,isNegativeFloat,isNegativeInteger,isNil,isNonNegativeFloat,isNonNegativeInteger,isNonPositiveFloat,isNonPositiveInteger,isNull,isNumber,isObject,isObjectLike,isPlainObject,isPositiveFloat,isPositiveInteger,isPromise,isRegExp,isSet,isString,isStringNumber,isSymbol,isURL,isUndef,objectToString,omit,pick,qs,qsStringify,throttle,throwError,throwErrorInvalidTypeMessage,toTypeString,toTypeValue,withRetry});
@@ -1 +1 @@
1
- var Jt=Object.create;var Yt=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var oe=(t,e)=>()=>(t&&(e=t(t=0)),e);var It=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ie=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ee(e))!ne.call(t,s)&&s!==r&&Yt(t,s,{get:()=>e[s],enumerable:!(n=te(e,s))||n.enumerable});return t};var Dt=(t,e,r)=>(r=t!=null?Jt(re(t)):{},ie(e||!t||!t.__esModule?Yt(r,"default",{value:t,enumerable:!0}):r,t));import Ae from"path";import{fileURLToPath as Re}from"url";var o=oe(()=>{"use strict"});var Et=It((Tt,Rt)=>{"use strict";o();(function(t,e){typeof Tt=="object"&&typeof Rt<"u"?Rt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Tt,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",O="minute",y="hour",S="day",x="week",v="month",L="quarter",Y="year",P="date",I="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,A={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(c){var a=["th","st","nd","rd"],i=c%100;return"["+c+(a[(i-20)%10]||a[i]||a[0])+"]"}},T=function(c,a,i){var f=String(c);return!f||f.length>=a?c:""+Array(a+1-f.length).join(i)+c},M={s:T,z:function(c){var a=-c.utcOffset(),i=Math.abs(a),f=Math.floor(i/60),u=i%60;return(a<=0?"+":"-")+T(f,2,"0")+":"+T(u,2,"0")},m:function c(a,i){if(a.date()<i.date())return-c(i,a);var f=12*(i.year()-a.year())+(i.month()-a.month()),u=a.clone().add(f,v),l=i-u<0,g=a.clone().add(f+(l?-1:1),v);return+(-(f+(i-u)/(l?u-g:g-u))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:v,y:Y,w:x,d:S,D:P,h:y,m:O,s,ms:n,Q:L}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},D="en",k={};k[D]=A;var F="$isDayjsObject",N=function(c){return c instanceof K||!(!c||!c[F])},W=function c(a,i,f){var u;if(!a)return D;if(typeof a=="string"){var l=a.toLowerCase();k[l]&&(u=l),i&&(k[l]=i,u=l);var g=a.split("-");if(!u&&g.length>1)return c(g[0])}else{var b=a.name;k[b]=a,u=b}return!f&&u&&(D=u),u||!f&&D},R=function(c,a){if(N(c))return c.clone();var i=typeof a=="object"?a:{};return i.date=c,i.args=arguments,new K(i)},$=M;$.l=W,$.i=N,$.w=function(c,a){return R(c,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var K=function(){function c(i){this.$L=W(i.locale,null,!0),this.parse(i),this.$x=this.$x||i.x||{},this[F]=!0}var a=c.prototype;return a.parse=function(i){this.$d=function(f){var u=f.date,l=f.utc;if(u===null)return new Date(NaN);if($.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var g=u.match(m);if(g){var b=g[2]-1||0,E=(g[7]||"0").substring(0,3);return l?new Date(Date.UTC(g[1],b,g[3]||1,g[4]||0,g[5]||0,g[6]||0,E)):new Date(g[1],b,g[3]||1,g[4]||0,g[5]||0,g[6]||0,E)}}return new Date(u)}(i),this.init()},a.init=function(){var i=this.$d;this.$y=i.getFullYear(),this.$M=i.getMonth(),this.$D=i.getDate(),this.$W=i.getDay(),this.$H=i.getHours(),this.$m=i.getMinutes(),this.$s=i.getSeconds(),this.$ms=i.getMilliseconds()},a.$utils=function(){return $},a.isValid=function(){return this.$d.toString()!==I},a.isSame=function(i,f){var u=R(i);return this.startOf(f)<=u&&u<=this.endOf(f)},a.isAfter=function(i,f){return R(i)<this.startOf(f)},a.isBefore=function(i,f){return this.endOf(f)<R(i)},a.$g=function(i,f,u){return $.u(i)?this[f]:this.set(u,i)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(i,f){var u=this,l=!!$.u(f)||f,g=$.p(i),b=function(tt,H){var G=$.w(u.$u?Date.UTC(u.$y,H,tt):new Date(u.$y,H,tt),u);return l?G:G.endOf(S)},E=function(tt,H){return $.w(u.toDate()[tt].apply(u.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(H)),u)},j=this.$W,_=this.$M,z=this.$D,ot="set"+(this.$u?"UTC":"");switch(g){case Y:return l?b(1,0):b(31,11);case v:return l?b(1,_):b(0,_+1);case x:var rt=this.$locale().weekStart||0,ut=(j<rt?j+7:j)-rt;return b(l?z-ut:z+(6-ut),_);case S:case P:return E(ot+"Hours",0);case y:return E(ot+"Minutes",1);case O:return E(ot+"Seconds",2);case s:return E(ot+"Milliseconds",3);default:return this.clone()}},a.endOf=function(i){return this.startOf(i,!1)},a.$set=function(i,f){var u,l=$.p(i),g="set"+(this.$u?"UTC":""),b=(u={},u[S]=g+"Date",u[P]=g+"Date",u[v]=g+"Month",u[Y]=g+"FullYear",u[y]=g+"Hours",u[O]=g+"Minutes",u[s]=g+"Seconds",u[n]=g+"Milliseconds",u)[l],E=l===S?this.$D+(f-this.$W):f;if(l===v||l===Y){var j=this.clone().set(P,1);j.$d[b](E),j.init(),this.$d=j.set(P,Math.min(this.$D,j.daysInMonth())).$d}else b&&this.$d[b](E);return this.init(),this},a.set=function(i,f){return this.clone().$set(i,f)},a.get=function(i){return this[$.p(i)]()},a.add=function(i,f){var u,l=this;i=Number(i);var g=$.p(f),b=function(_){var z=R(l);return $.w(z.date(z.date()+Math.round(_*i)),l)};if(g===v)return this.set(v,this.$M+i);if(g===Y)return this.set(Y,this.$y+i);if(g===S)return b(1);if(g===x)return b(7);var E=(u={},u[O]=e,u[y]=r,u[s]=t,u)[g]||1,j=this.$d.getTime()+i*E;return $.w(j,this)},a.subtract=function(i,f){return this.add(-1*i,f)},a.format=function(i){var f=this,u=this.$locale();if(!this.isValid())return u.invalidDate||I;var l=i||"YYYY-MM-DDTHH:mm:ssZ",g=$.z(this),b=this.$H,E=this.$m,j=this.$M,_=u.weekdays,z=u.months,ot=u.meridiem,rt=function(H,G,nt,it){return H&&(H[G]||H(f,l))||nt[G].slice(0,it)},ut=function(H){return $.s(b%12||12,H,"0")},tt=ot||function(H,G,nt){var it=H<12?"AM":"PM";return nt?it.toLowerCase():it};return l.replace(w,function(H,G){return G||function(nt){switch(nt){case"YY":return String(f.$y).slice(-2);case"YYYY":return $.s(f.$y,4,"0");case"M":return j+1;case"MM":return $.s(j+1,2,"0");case"MMM":return rt(u.monthsShort,j,z,3);case"MMMM":return rt(z,j);case"D":return f.$D;case"DD":return $.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return rt(u.weekdaysMin,f.$W,_,2);case"ddd":return rt(u.weekdaysShort,f.$W,_,3);case"dddd":return _[f.$W];case"H":return String(b);case"HH":return $.s(b,2,"0");case"h":return ut(1);case"hh":return ut(2);case"a":return tt(b,E,!0);case"A":return tt(b,E,!1);case"m":return String(E);case"mm":return $.s(E,2,"0");case"s":return String(f.$s);case"ss":return $.s(f.$s,2,"0");case"SSS":return $.s(f.$ms,3,"0");case"Z":return g}return null}(H)||g.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(i,f,u){var l,g=this,b=$.p(f),E=R(i),j=(E.utcOffset()-this.utcOffset())*e,_=this-E,z=function(){return $.m(g,E)};switch(b){case Y:l=z()/12;break;case v:l=z();break;case L:l=z()/3;break;case x:l=(_-j)/6048e5;break;case S:l=(_-j)/864e5;break;case y:l=_/r;break;case O:l=_/e;break;case s:l=_/t;break;default:l=_}return u?l:$.a(l)},a.daysInMonth=function(){return this.endOf(v).$D},a.$locale=function(){return k[this.$L]},a.locale=function(i,f){if(!i)return this.$L;var u=this.clone(),l=W(i,f,!0);return l&&(u.$L=l),u},a.clone=function(){return $.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},c}(),Z=K.prototype;return R.prototype=Z,[["$ms",n],["$s",s],["$m",O],["$H",y],["$W",S],["$M",v],["$y",Y],["$D",P]].forEach(function(c){Z[c[1]]=function(a){return this.$g(a,c[0],c[1])}}),R.extend=function(c,a){return c.$i||(c(a,K,R),c.$i=!0),R},R.locale=W,R.isDayjs=N,R.unix=function(c){return R(1e3*c)},R.en=k[D],R.Ls=k,R.p={},R})});var Qt=It((jt,vt)=>{"use strict";o();(function(t,e){typeof jt=="object"&&typeof vt<"u"?vt.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(jt,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,s=/\d\d?/,O=/\d*[^-_:/,()\s\d]+/,y={},S=function(m){return(m=+m)+(m>68?1900:2e3)},x=function(m){return function(w){this[m]=+w}},v=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var A=w.match(/([+-]|\d\d)/g),T=60*A[1]+(+A[2]||0);return T===0?0:A[0]==="+"?-T:T}(m)}],L=function(m){var w=y[m];return w&&(w.indexOf?w:w.s.concat(w.f))},Y=function(m,w){var A,T=y.meridiem;if(T){for(var M=1;M<=24;M+=1)if(m.indexOf(T(M,0,w))>-1){A=M>12;break}}else A=m===(w?"pm":"PM");return A},P={A:[O,function(m){this.afternoon=Y(m,!1)}],a:[O,function(m){this.afternoon=Y(m,!0)}],Q:[r,function(m){this.month=3*(m-1)+1}],S:[r,function(m){this.milliseconds=100*+m}],SS:[n,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,x("seconds")],ss:[s,x("seconds")],m:[s,x("minutes")],mm:[s,x("minutes")],H:[s,x("hours")],h:[s,x("hours")],HH:[s,x("hours")],hh:[s,x("hours")],D:[s,x("day")],DD:[n,x("day")],Do:[O,function(m){var w=y.ordinal,A=m.match(/\d+/);if(this.day=A[0],w)for(var T=1;T<=31;T+=1)w(T).replace(/\[|\]/g,"")===m&&(this.day=T)}],w:[s,x("week")],ww:[n,x("week")],M:[s,x("month")],MM:[n,x("month")],MMM:[O,function(m){var w=L("months"),A=(L("monthsShort")||w.map(function(T){return T.slice(0,3)})).indexOf(m)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[O,function(m){var w=L("months").indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,x("year")],YY:[n,function(m){this.year=S(m)}],YYYY:[/\d{4}/,x("year")],Z:v,ZZ:v};function I(m){var w,A;w=m,A=y&&y.formats;for(var T=(m=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,$,K){var Z=K&&K.toUpperCase();return $||A[K]||t[K]||A[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,a,i){return a||i.slice(1)})})).match(e),M=T.length,D=0;D<M;D+=1){var k=T[D],F=P[k],N=F&&F[0],W=F&&F[1];T[D]=W?{regex:N,parser:W}:k.replace(/^\[|\]$/g,"")}return function(R){for(var $={},K=0,Z=0;K<M;K+=1){var c=T[K];if(typeof c=="string")Z+=c.length;else{var a=c.regex,i=c.parser,f=R.slice(Z),u=a.exec(f)[0];i.call($,u),R=R.replace(u,"")}}return function(l){var g=l.afternoon;if(g!==void 0){var b=l.hours;g?b<12&&(l.hours+=12):b===12&&(l.hours=0),delete l.afternoon}}($),$}}return function(m,w,A){A.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(S=m.parseTwoDigitYear);var T=w.prototype,M=T.parse;T.parse=function(D){var k=D.date,F=D.utc,N=D.args;this.$u=F;var W=N[1];if(typeof W=="string"){var R=N[2]===!0,$=N[3]===!0,K=R||$,Z=N[2];$&&(Z=N[2]),y=this.$locale(),!R&&Z&&(y=A.Ls[Z]),this.$d=function(f,u,l,g){try{if(["x","X"].indexOf(u)>-1)return new Date((u==="X"?1e3:1)*f);var b=I(u)(f),E=b.year,j=b.month,_=b.day,z=b.hours,ot=b.minutes,rt=b.seconds,ut=b.milliseconds,tt=b.zone,H=b.week,G=new Date,nt=_||(E||j?1:G.getDate()),it=E||G.getFullYear(),pt=0;E&&!j||(pt=j>0?j-1:G.getMonth());var dt,$t=z||0,wt=ot||0,Ot=rt||0,Mt=ut||0;return tt?new Date(Date.UTC(it,pt,nt,$t,wt,Ot,Mt+60*tt.offset*1e3)):l?new Date(Date.UTC(it,pt,nt,$t,wt,Ot,Mt)):(dt=new Date(it,pt,nt,$t,wt,Ot,Mt),H&&(dt=g(dt).week(H).toDate()),dt)}catch{return new Date("")}}(k,W,F,A),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),K&&k!=this.format(W)&&(this.$d=new Date("")),y={}}else if(W instanceof Array)for(var c=W.length,a=1;a<=c;a+=1){N[1]=W[a-1];var i=A.apply(this,N);if(i.isValid()){this.$d=i.$d,this.$L=i.$L,this.init();break}a===c&&(this.$d=new Date(""))}else M.call(this,D)}}})});o();o();o();o();o();function st(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}o();function gt(t){return t!==null&&typeof t=="object"}o();o();var se=Object.prototype.toString,ft=t=>se.call(t),St=t=>ft(t).slice(8,-1),at=t=>typeof t=="string",B=t=>typeof t=="number"&&Number.isFinite(t),Q=t=>typeof t=="boolean",At=t=>t===null,C=t=>t===void 0,Ct=t=>typeof t=="symbol",V=Array.isArray,ht=t=>typeof t=="function",_t=t=>ft(t)==="[object Map]",Lt=t=>ft(t)==="[object Set]",Ft=t=>ft(t)==="[object Date]",Ht=t=>ft(t)==="[object RegExp]",Ut=t=>gt(t)&&ht(t?.then)&&ht(t?.catch),mt=t=>t==null,Ye=t=>t!=null,Ie=(t,e)=>t!==e;function X(t){return ft(t)==="[object Object]"}function ct(t){return V(t)?t:[t]}o();o();o();o();function tr(t){let e=[],r,n="";for(;t>0;)r=Math.floor(t%2),e.push(r),t=Math.floor(t/2);for(;e.length>0;)n+=e.pop().toString();return n}var Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function er(t){let e="",r="";for(let s=0;s<t.length;s++)r+=t[s].charCodeAt(0).toString(2).padStart(8,"0");for(let s=0;s<r.length;s+=6)e+=Kt[Number.parseInt(r.slice(s,s+6).padEnd(6,"0"),2)];let n=e.length%4;return n!==0&&(e+="=".repeat(4-n)),e}function rr(t){let e="",r="";for(let n=0;n<t.length&&t[n]!=="=";n++)r+=Kt.indexOf(t[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let s=Number.parseInt(r.slice(n,n+8),2);s&&(e+=String.fromCharCode(s))}return e}o();function ir(...t){return t.reduce((e,r)=>function(...n){return r(e(...n))})}function sr(...t){return t.reduce((e,r)=>function(...n){return e(r(...n))})}o();function fr(t,e=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{t.apply(this,n)},e)}}o();function lt(t){let e=new WeakMap;function r(n){if(!gt(n))return n;if(Ft(n))return new Date(n);if(Ht(n))return new RegExp(n);if(Ut(n))return n;if(e.has(n))return e.get(n);if(_t(n)){let y=new Map;return e.set(n,y),n.forEach((S,x)=>y.set(r(x),r(S))),y}if(Lt(n)){let y=new Set;return e.set(n,y),n.forEach(S=>y.add(r(S))),y}let s=V(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));e.set(n,s);let O=Object.getOwnPropertyDescriptors(n);for(let y of Reflect.ownKeys(O)){let S=O[y];S.get||S.set?Object.defineProperty(s,y,S):Object.defineProperty(s,y,{...S,value:r(S.value)})}return s}return r(t)}o();function yr(t,e,r={}){return Zt(Wt(t,r),Wt(e,r),r)}function Zt(t,e,r){return V(t)?ue(t,e,r):ae(t,e,r)}function ae(t,e,r){if(!X(e))return e;let n=Object.getOwnPropertyDescriptors(e);return Reflect.ownKeys(e).forEach(s=>{(X(t[s])||V(t[s]))&&(X(e[s])||V(e[s]))?t[s]=Zt(t[s],e[s],r):Object.defineProperty(t,s,n[s])}),t}function ue(t,e,r){let{mergeStrategy:n="replace"}=r;if(V(e))switch(n){case"merge":return t.concat(e);case"replace":return e;default:return e}return e}function Wt(t,e){let{deepClone:r=!0}=e;return r?lt(t):t}o();var yt=class extends Error{constructor(e,r="Utils"){super(e),this.name=r}};function h(t,e){throw new yt(`[${t}] ${e}`)}function zt(t,e){let r=at(t)?new yt(`[${t}] ${e}`,"UtilsWarn"):t;console.warn(r)}var wr=({from:t,replacement:e,version:r,type:n="API"})=>{zt(`${n}`,`${t} is about to be deprecated in version ${r}, please use ${e} instead.`)};function Or(t,e,r,n){let s=`Invalid params: type check failed for params "${e}". Expected ${r}, got ${St(n)} with value ${n}.`;h(t,s)}function Mr(t,e,r,n){let s=`Invalid params: type check failed for params "${e}". Expected ${r}, got ${St(n)} with value ${n}.`;zt(t,s)}o();var bt=(t,e,...r)=>{if(!e)return;let n=r.length===0?"":r.length===1?r[0]:r;console[t](`[Log] ${e}:`,n)},xt=(t,...e)=>{bt("info",t,...e)};xt.info=(t,...e)=>{bt("info",t,...e)};xt.error=(t,...e)=>{bt("error",t,...e)};xt.warn=(t,...e)=>{bt("warn",t,...e)};typeof globalThis<"u"&&(globalThis.log=xt);o();function jr(t,e={}){fe(e);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:s="indices",encodeDotInKeys:O=!1,skipNulls:y=!1,strictNullHandling:S=!1,commaRoundTrip:x=!1,allowEmptyArrays:v=!1,addQueryPrefix:L=!1,delimiter:Y="&"}=e,P=e.allowDots??!1;O&&C(e.allowDots)&&(P=!0);let I=[],m=M=>r&&!n?encodeURIComponent(M):M,w=M=>r?encodeURIComponent(M):M;function A(M,D){if(!C(D)){if(At(D)){if(y)return;I.push(`${m(M)}${S?"":"="}`);return}if(V(D)){if(D.length===0){v&&I.push(`${m(M)}[]`);return}if(s==="comma"){let k=n?D.map(w).join(","):w(D.join(","));if(D.length===1&&At(D[0])){if(y)return;I.push(`${m(M)}${x?"[]":""}${S?"":"="}`)}else D.length===1?I.push(`${m(M)}${x?"[]":""}=${k}`):I.push(`${m(M)}=${k}`);return}D.forEach((k,F)=>{let N=M;s==="indices"?N=`${M}[${F}]`:s==="brackets"&&(N=`${M}[]`),A(N,k)});return}if(st(D)){Object.keys(D).forEach(k=>{let F=M;O&&(F=F.replace(/\./g,"%2E"));let N=k;P?(O&&(N=N.replace(/\./g,"%2E")),A(`${F}.${N}`,D[k])):A(`${F}[${N}]`,D[k])});return}I.push(`${m(M)}=${w(D)}`)}}if(!st(t))return"";Vt(t)&&h("stringify","Input object contains circular references, cannot stringify"),V(t)?t.forEach((M,D)=>A(`${D}`,M)):Object.keys(t).forEach(M=>A(M,t[M]));let T=I.join(Y);return L&&T?`?${T}`:T}function fe(t={}){X(t)||h("stringify",'"options" must be a plain object'),!C(t.encode)&&!Q(t.encode)&&h("stringify",'"encode" must be a boolean'),!C(t.encodeValuesOnly)&&!Q(t.encodeValuesOnly)&&h("stringify",'"encodeValuesOnly" must be a boolean'),!C(t.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(t.arrayFormat)&&h("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!C(t.allowDots)&&!Q(t.allowDots)&&h("stringify",'"allowDots" must be a boolean'),!C(t.skipNulls)&&!Q(t.skipNulls)&&h("stringify",'"skipNulls" must be a boolean'),!C(t.strictNullHandling)&&!Q(t.strictNullHandling)&&h("stringify",'"strictNullHandling" must be a boolean'),!C(t.addQueryPrefix)&&!Q(t.addQueryPrefix)&&h("stringify",'"addQueryPrefix" must be a boolean'),!C(t.delimiter)&&!at(t.delimiter)&&h("stringify",'"delimiter" must be a string'),!C(t.encodeDotInKeys)&&!Q(t.encodeDotInKeys)&&h("stringify",'"encodeDotInKeys" must be a boolean'),!C(t.commaRoundTrip)&&!Q(t.commaRoundTrip)&&h("stringify",'"commaRoundTrip" must be a boolean'),!C(t.allowEmptyArrays)&&!Q(t.allowEmptyArrays)&&h("stringify",'"allowEmptyArrays" must be a boolean')}o();var ce={stringify:t=>(st(t)||h("stringify","Input must be an object"),new URLSearchParams(t).toString()),parse:t=>(at(t)||h("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(t).entries())),appendQueryString:(t,e)=>{let r=ce.stringify(e);return t.includes("?")?t.endsWith("?")||t.endsWith("&")?`${t}${r}`:`${t}&${r}`:`${t}?${r}`}};o();function _r(t,e=500){let r=null;return function(...n){if(mt(r))return r=Date.now(),t.apply(this,n);let s=Date.now();if(s-r>=e)return r=s,t.apply(this,n)}}o();function Ur(t){return!mt(t)&&/^[\dA-Z\u4E00-\u9FA5]+$/i.test(t)}function Kr(t){return!mt(t)&&/^[A-Z\u4E00-\u9FA5]+$/i.test(t)}function Wr(t){return!mt(t)&&/^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(t)}function Zr(t){return/^[\dA-Z_]+$/.test(t)}o();function Qr(t){me(t);let{fn:e,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:s=!1,signal:O}=t,y,S=O?new Promise((v,L)=>{let Y=()=>L(Bt());O.addEventListener("abort",Y),y=()=>O.removeEventListener("abort",Y)}):null;return new Promise((v,L)=>{(async()=>{for(let P=1;P<=r;P++){if(O?.aborted)return L(Bt());try{let I=await Promise.race(S?[e(),S]:[e()]);return v(I)}catch(I){let m=s?n*2**(P-1):n;if(log("withRetry",`Attempt ${P}/${r} failed. Retrying in ${m}ms...`),I instanceof Error&&I.name==="AbortError"||P===r)return L(I);await new Promise(w=>setTimeout(w,m))}}})()}).finally(()=>y?.())}function me(t){X(t)||h("withRetry",'"Options" must be an object'),typeof t.fn!="function"&&h("withRetry",'"fn" must be a function that returns a Promise'),!C(t.maxAttempts)&&(!Number.isInteger(t.maxAttempts)||t.maxAttempts<1)&&h("withRetry",'"maxAttempts" must be a positive integer'),!C(t.retryDelay)&&(!B(t.retryDelay)||t.retryDelay<0)&&h("withRetry",'"retryDelay" must be a non-negative number'),!C(t.enableExponentialBackoff)&&!Q(t.enableExponentialBackoff)&&h("withRetry",'"enableExponentialBackoff" must be a boolean'),!C(t.signal)&&typeof t.signal!="object"&&h("withRetry",'"signal" must be an AbortSignal')}var le="The operation was aborted";function Bt(t=le){let e=new Error(t);return e.name="AbortError",e}function Vt(t){st(t)||h("hasCircularReference",'"obj" must be a object');let e=new Set;function r(n){if(st(n)){if(e.has(n))return!0;e.add(n);for(let s of Object.keys(n))if(r(n[s]))return!0;e.delete(n)}return!1}return r(t)}o();o();function Gt(t,e,r={}){let{includeProto:n=!1,includeSymbols:s=!0,includeNonEnum:O=!1}=r,y={};return X(t)&&ct(e).forEach(x=>{Ct(x)&&!s||!(n?x in t:Object.hasOwn(t,x))||!O&&(n?pe(t,x):Object.getOwnPropertyDescriptor(t,x))?.enumerable===!1||(y[x]=lt(t[x]))}),y}function pe(t,e){let r=t;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Tn(t,e){if(!X(t))return{};let r=lt(t),n=ct(e),s=Object.keys(r).filter(O=>!n.includes(O));return Gt(r,s)}o();o();function Cn(t,e){return(!B(t)||t<=0)&&h("generateRandomArray","num must be greater than 0"),ht(e)||h("generateRandomArray","cb must be a function"),Array.from({length:t}).fill(0).map((r,n)=>e(r,n))}o();function Fn(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}o();var et=Dt(Et(),1),Xt=Dt(Qt(),1);o();o();function q(t){return t[Math.floor(Math.random()*t.length)]}function U(t={}){B(t)&&(t={max:t});let{min:e=1,max:r=q(ge())}=t;de(e,r);let n=Math.ceil(e),s=Math.floor(r);return Math.floor(Math.random()*(s-n+1)+n)}function de(t,e){let r=Math.ceil(t),n=Math.floor(e);Number.isSafeInteger(r)||h("getRandomInt",`The minimum value Math.ceil(${t}) should be a safe integer`),Number.isSafeInteger(n)||h("getRandomInt",`The maximum value Math.floor(${e}) should be a safe integer`),n<r&&(e>=t&&h("getRandomInt",`No integer value found between ${t} and ${e}`),h("getRandomInt",`The maximum value ${e} should be greater than the minimum value ${t}`))}function ge(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((t,e)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,e+1);return Number(r)})}et.default.extend(Xt.default);function kt(t={}){let{start:e="1800-01-01 00:00:00",end:r=(0,et.default)().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=t;(!(0,et.default)(e).isValid()||!(0,et.default)(r).isValid())&&h("generateRandomDate","start and end parameters must be valid date format");let s=(0,et.default)(e).year(),O=(0,et.default)(r).year(),y=U({min:s,max:O}),S=U({min:1,max:12}),x=U({min:1,max:31}),v=U(23),L=U(59),Y=U(59),P=(0,et.default)(`${y}-${S}-${x} ${v}:${L}:${Y}`);return P.isBefore((0,et.default)(e))||P.isAfter((0,et.default)(r))?kt(t):P.format(n)}o();o();function J(t={}){let e=ye(t),r=be(e);xe(r);let{length:n}=e;$e(n.min,n.max);let s=U(n),O=e.prefix||"";for(let y=0;y<s;y++)O+=r.charAt(Math.floor(Math.random()*r.length));return O+(e.suffix||"")}var he=16,Nt=1;function ye(t){let e=B(t);return{lowerCase:!0,upperCase:!0,number:!0,...e?{}:t,length:e?{max:t,min:t}:B(t.length)?{max:t.length,min:t.length}:{max:he,min:Nt,...t.length},extra:e?[]:[...new Set(ct(t.extra||[]))]}}function be(t){let e="";return t.lowerCase&&(e+="abcdefghijklmnopqrstuvwxyz"),t.upperCase&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),t.number&&(e+="0123456789"),e+=ct(t.extra).join(""),e}function xe(t){t.length===0&&h("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function $e(t,e){Number.isInteger(t)||h("getRandomString","min must be an integer"),Number.isInteger(e)||h("getRandomString","max must be an integer"),t<Nt&&h("getRandomString",`Minimum length cannot be less than ${Nt}`),e<t&&h("getRandomString","Maximum length cannot be less than minimum length")}function we(){let t=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],e=`${J(1)}${J({length:U({max:30,min:1})})}${J(1)}@${q(t)}`;return/\.{2,}/.test(e)?we():e}o();function go(t={}){B(t)&&(t={max:t});let{min:e=0,max:r=1,fractionDigits:n=2}=t;if(e===r)return e;if(e>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${e}`);return Math.random()*(r-e)+e}o();o();function Pt(t,e){(!B(t)||t<=0)&&h("generateRandomStringFromSource","num must be greater than 0"),(!V(e)||e.length===0)&&h("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<t;n++)r+=q(e);return r}function Ao(){let t=U({min:1e5,max:999999}),e=[0,1,2,3,4,5,6,7,8,9];return[t,kt({format:"YYYYMMDD"}),Pt(3,e),Pt(1,[...e,"X","x"])].join("")}o();function vo(){return q(["13","14","15","16","17","18","19"])+U(999999999).toString().padEnd(9,"0")}o();function Co(){let t=["http://","https://"],e=[".com",".net",".org",".cn",".top"],r=[`?name=${J({length:{min:4,max:8}})}`,`?id=${U()}`,`?page=${J({length:{min:2,max:4}})}`,`?query=${J({length:{min:5,max:6}})}`,`?search=${J({length:{min:1,max:4}})}`,`?token=${J({length:{min:16,max:16}})}`];return`${q(t)}${J({length:{min:5,max:25}})}${q(e)}${q(r)}`}o();o();o();o();function ni(t){return/^\d+$/.test(t)}function oi(t){return/^[A-Z]+$/i.test(t)}function ii(t){return/^[A-Z]+$/.test(t)}function si(t){return/^[\dA-Z]+$/.test(t)}function ai(t){return/^[\dA-Z\u4E00-\u9FA5]+$/.test(t)}function ui(t){return/^[a-z]+$/.test(t)}function fi(t){return/^[\da-z]+$/.test(t)}function ci(t){return/^[\da-z\u4E00-\u9FA5]+$/.test(t)}function mi(t){return/^[\u4E00-\u9FA5]+$/.test(t)}o();function di(t){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(t)}function gi(t){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(t)}function hi(t){return/^(?:0|[1-9]\d*)\.\d+$/.test(t)}function yi(t){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(t)}function bi(t){return/^-(?:0|[1-9]\d*)\.\d+$/.test(t)}o();function wi(t){return/^-?(?:0|[1-9]\d*)$/.test(t)}function Oi(t){return/^[1-9]\d*$/.test(t)}function Mi(t){return/^(?:0|[1-9]\d*)$/.test(t)&&!Object.is(t,-0)}function Di(t){return/^-[1-9]\d*$/.test(t)}function Si(t){return/^-(?:0|[1-9]\d*)$/.test(t)||Object.is(t,-0)}o();var Ei=t=>{if(!at(t)||!/^-?\d+(?:\.\d+)?$/.test(t))return!1;let r=Number(t);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};o();var qt=Dt(Et(),1);function ki(t){return/^1[3-9]\d{9}$/.test(t)}function Ni(t){return/^https?:\/\/\S+$/i.test(t)}function Pi(t){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(t)}function Yi(t){return t===""}function Oe(t,e="YYYY-MM-DD HH:mm:ss"){return(0,qt.default)(t,e,!0).isValid()}function Ii(t){return/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(t)&&Oe(t.slice(6,14),"YYYYMMDD")}export{yt as UtilsError,rr as base64Decode,er as base64Encode,ct as castArray,ir as compose,sr as composeRight,fr as debounce,zt as debugWarn,Mr as debugWarnInvalidTypeMessage,tr as decimalToBinary,lt as deepClone,yr as deepMerge,wr as deprecated,Cn as generateRandomArray,Fn as generateRandomColor,kt as generateRandomDate,we as generateRandomEmail,go as generateRandomFloat,Ao as generateRandomIdCard,vo as generateRandomMobilePhone,Pt as generateRandomStringFromSource,U as getRandomInt,q as getRandomItem,J as getRandomString,Co as getRandomUrl,Ie as hasChanged,Vt as hasCircularReference,V as isArray,Q as isBoolean,mi as isChineseString,Ft as isDate,Oe as isDateString,Ye as isDef,Pi as isEmail,Yi as isEmptyString,oi as isEnglishAphabet,di as isFloat,ht as isFunction,Ii as isIdCard,wi as isInteger,ui as isLowerCase,fi as isLowerCaseAndNumber,ci as isLowerCaseAndNumberAndChinese,_t as isMap,ki as isMobilePhone,yi as isNegativeFloat,Di as isNegativeInteger,mt as isNil,hi as isNonNegativeFloat,Mi as isNonNegativeInteger,bi as isNonPositiveFloat,Si as isNonPositiveInteger,At as isNull,B as isNumber,ni as isNumberOrNumberString,st as isObject,gt as isObjectLike,X as isPlainObject,gi as isPositiveFloat,Oi as isPositiveInteger,Ut as isPromise,Ht as isRegExp,Lt as isSet,at as isString,Ei as isStringNumber,Ct as isSymbol,Ni as isURL,C as isUndef,ii as isUpperCase,si as isUpperCaseAndNumber,ai as isUpperCaseAndNumberAndChinese,se as objectToString,Tn as omit,Gt as pick,ce as qs,jr as qsStringify,_r as throttle,h as throwError,Or as throwErrorInvalidTypeMessage,ft as toTypeString,St as toTypeValue,Kr as validatorChineseOrEnglish,Ur as validatorChineseOrEnglishOrNumber,Wr as validatorUppercaseOrNumbersOrSpecial,Zr as validatorUppercaseOrNumbersOrUnderline,Qr as withRetry};
1
+ var tt=Object.create;var Ne=Object.defineProperty;var rt=Object.getOwnPropertyDescriptor;var nt=Object.getOwnPropertyNames;var ot=Object.getPrototypeOf,it=Object.prototype.hasOwnProperty;var st=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var at=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of nt(t))!it.call(e,s)&&s!==r&&Ne(e,s,{get:()=>t[s],enumerable:!(n=rt(t,s))||n.enumerable});return e};var de=(e,t,r)=>(r=e!=null?tt(ot(e)):{},at(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e));import At from"path";import{fileURLToPath as jt}from"url";var o=st(()=>{"use strict"});var $e=Ie((Ae,Re)=>{"use strict";o();(function(e,t){typeof Ae=="object"&&typeof Re<"u"?Re.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Ae,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",s="second",M="minute",y="hour",S="day",x="week",v="month",L="quarter",N="year",P="date",I="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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(c){var a=["th","st","nd","rd"],i=c%100;return"["+c+(a[(i-20)%10]||a[i]||a[0])+"]"}},A=function(c,a,i){var u=String(c);return!u||u.length>=a?c:""+Array(a+1-u.length).join(i)+c},O={s:A,z:function(c){var a=-c.utcOffset(),i=Math.abs(a),u=Math.floor(i/60),f=i%60;return(a<=0?"+":"-")+A(u,2,"0")+":"+A(f,2,"0")},m:function c(a,i){if(a.date()<i.date())return-c(i,a);var u=12*(i.year()-a.year())+(i.month()-a.month()),f=a.clone().add(u,v),d=i-f<0,g=a.clone().add(u+(d?-1:1),v);return+(-(u+(i-f)/(d?f-g:g-f))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:v,y:N,w:x,d:S,D:P,h:y,m:M,s,ms:n,Q:L}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},D="en",k={};k[D]=T;var F="$isDayjsObject",Y=function(c){return c instanceof K||!(!c||!c[F])},W=function c(a,i,u){var f;if(!a)return D;if(typeof a=="string"){var d=a.toLowerCase();k[d]&&(f=d),i&&(k[d]=i,f=d);var g=a.split("-");if(!f&&g.length>1)return c(g[0])}else{var b=a.name;k[b]=a,f=b}return!u&&f&&(D=f),f||!u&&D},R=function(c,a){if(Y(c))return c.clone();var i=typeof a=="object"?a:{};return i.date=c,i.args=arguments,new K(i)},$=O;$.l=W,$.i=Y,$.w=function(c,a){return R(c,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var K=function(){function c(i){this.$L=W(i.locale,null,!0),this.parse(i),this.$x=this.$x||i.x||{},this[F]=!0}var a=c.prototype;return a.parse=function(i){this.$d=function(u){var f=u.date,d=u.utc;if(f===null)return new Date(NaN);if($.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var g=f.match(m);if(g){var b=g[2]-1||0,j=(g[7]||"0").substring(0,3);return d?new Date(Date.UTC(g[1],b,g[3]||1,g[4]||0,g[5]||0,g[6]||0,j)):new Date(g[1],b,g[3]||1,g[4]||0,g[5]||0,g[6]||0,j)}}return new Date(f)}(i),this.init()},a.init=function(){var i=this.$d;this.$y=i.getFullYear(),this.$M=i.getMonth(),this.$D=i.getDate(),this.$W=i.getDay(),this.$H=i.getHours(),this.$m=i.getMinutes(),this.$s=i.getSeconds(),this.$ms=i.getMilliseconds()},a.$utils=function(){return $},a.isValid=function(){return this.$d.toString()!==I},a.isSame=function(i,u){var f=R(i);return this.startOf(u)<=f&&f<=this.endOf(u)},a.isAfter=function(i,u){return R(i)<this.startOf(u)},a.isBefore=function(i,u){return this.endOf(u)<R(i)},a.$g=function(i,u,f){return $.u(i)?this[u]:this.set(f,i)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(i,u){var f=this,d=!!$.u(u)||u,g=$.p(i),b=function(ee,H){var G=$.w(f.$u?Date.UTC(f.$y,H,ee):new Date(f.$y,H,ee),f);return d?G:G.endOf(S)},j=function(ee,H){return $.w(f.toDate()[ee].apply(f.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(H)),f)},E=this.$W,C=this.$M,z=this.$D,oe="set"+(this.$u?"UTC":"");switch(g){case N:return d?b(1,0):b(31,11);case v:return d?b(1,C):b(0,C+1);case x:var re=this.$locale().weekStart||0,fe=(E<re?E+7:E)-re;return b(d?z-fe:z+(6-fe),C);case S:case P:return j(oe+"Hours",0);case y:return j(oe+"Minutes",1);case M:return j(oe+"Seconds",2);case s:return j(oe+"Milliseconds",3);default:return this.clone()}},a.endOf=function(i){return this.startOf(i,!1)},a.$set=function(i,u){var f,d=$.p(i),g="set"+(this.$u?"UTC":""),b=(f={},f[S]=g+"Date",f[P]=g+"Date",f[v]=g+"Month",f[N]=g+"FullYear",f[y]=g+"Hours",f[M]=g+"Minutes",f[s]=g+"Seconds",f[n]=g+"Milliseconds",f)[d],j=d===S?this.$D+(u-this.$W):u;if(d===v||d===N){var E=this.clone().set(P,1);E.$d[b](j),E.init(),this.$d=E.set(P,Math.min(this.$D,E.daysInMonth())).$d}else b&&this.$d[b](j);return this.init(),this},a.set=function(i,u){return this.clone().$set(i,u)},a.get=function(i){return this[$.p(i)]()},a.add=function(i,u){var f,d=this;i=Number(i);var g=$.p(u),b=function(C){var z=R(d);return $.w(z.date(z.date()+Math.round(C*i)),d)};if(g===v)return this.set(v,this.$M+i);if(g===N)return this.set(N,this.$y+i);if(g===S)return b(1);if(g===x)return b(7);var j=(f={},f[M]=t,f[y]=r,f[s]=e,f)[g]||1,E=this.$d.getTime()+i*j;return $.w(E,this)},a.subtract=function(i,u){return this.add(-1*i,u)},a.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return f.invalidDate||I;var d=i||"YYYY-MM-DDTHH:mm:ssZ",g=$.z(this),b=this.$H,j=this.$m,E=this.$M,C=f.weekdays,z=f.months,oe=f.meridiem,re=function(H,G,ne,ie){return H&&(H[G]||H(u,d))||ne[G].slice(0,ie)},fe=function(H){return $.s(b%12||12,H,"0")},ee=oe||function(H,G,ne){var ie=H<12?"AM":"PM";return ne?ie.toLowerCase():ie};return d.replace(w,function(H,G){return G||function(ne){switch(ne){case"YY":return String(u.$y).slice(-2);case"YYYY":return $.s(u.$y,4,"0");case"M":return E+1;case"MM":return $.s(E+1,2,"0");case"MMM":return re(f.monthsShort,E,z,3);case"MMMM":return re(z,E);case"D":return u.$D;case"DD":return $.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return re(f.weekdaysMin,u.$W,C,2);case"ddd":return re(f.weekdaysShort,u.$W,C,3);case"dddd":return C[u.$W];case"H":return String(b);case"HH":return $.s(b,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return ee(b,j,!0);case"A":return ee(b,j,!1);case"m":return String(j);case"mm":return $.s(j,2,"0");case"s":return String(u.$s);case"ss":return $.s(u.$s,2,"0");case"SSS":return $.s(u.$ms,3,"0");case"Z":return g}return null}(H)||g.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(i,u,f){var d,g=this,b=$.p(u),j=R(i),E=(j.utcOffset()-this.utcOffset())*t,C=this-j,z=function(){return $.m(g,j)};switch(b){case N:d=z()/12;break;case v:d=z();break;case L:d=z()/3;break;case x:d=(C-E)/6048e5;break;case S:d=(C-E)/864e5;break;case y:d=C/r;break;case M:d=C/t;break;case s:d=C/e;break;default:d=C}return f?d:$.a(d)},a.daysInMonth=function(){return this.endOf(v).$D},a.$locale=function(){return k[this.$L]},a.locale=function(i,u){if(!i)return this.$L;var f=this.clone(),d=W(i,u,!0);return d&&(f.$L=d),f},a.clone=function(){return $.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},c}(),V=K.prototype;return R.prototype=V,[["$ms",n],["$s",s],["$m",M],["$H",y],["$W",S],["$M",v],["$y",N],["$D",P]].forEach(function(c){V[c[1]]=function(a){return this.$g(a,c[0],c[1])}}),R.extend=function(c,a){return c.$i||(c(a,K,R),c.$i=!0),R},R.locale=W,R.isDayjs=Y,R.unix=function(c){return R(1e3*c)},R.en=k[D],R.Ls=k,R.p={},R})});var Xe=Ie((je,Ee)=>{"use strict";o();(function(e,t){typeof je=="object"&&typeof Ee<"u"?Ee.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(je,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,s=/\d\d?/,M=/\d*[^-_:/,()\s\d]+/,y={},S=function(m){return(m=+m)+(m>68?1900:2e3)},x=function(m){return function(w){this[m]=+w}},v=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var T=w.match(/([+-]|\d\d)/g),A=60*T[1]+(+T[2]||0);return A===0?0:T[0]==="+"?-A:A}(m)}],L=function(m){var w=y[m];return w&&(w.indexOf?w:w.s.concat(w.f))},N=function(m,w){var T,A=y.meridiem;if(A){for(var O=1;O<=24;O+=1)if(m.indexOf(A(O,0,w))>-1){T=O>12;break}}else T=m===(w?"pm":"PM");return T},P={A:[M,function(m){this.afternoon=N(m,!1)}],a:[M,function(m){this.afternoon=N(m,!0)}],Q:[r,function(m){this.month=3*(m-1)+1}],S:[r,function(m){this.milliseconds=100*+m}],SS:[n,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,x("seconds")],ss:[s,x("seconds")],m:[s,x("minutes")],mm:[s,x("minutes")],H:[s,x("hours")],h:[s,x("hours")],HH:[s,x("hours")],hh:[s,x("hours")],D:[s,x("day")],DD:[n,x("day")],Do:[M,function(m){var w=y.ordinal,T=m.match(/\d+/);if(this.day=T[0],w)for(var A=1;A<=31;A+=1)w(A).replace(/\[|\]/g,"")===m&&(this.day=A)}],w:[s,x("week")],ww:[n,x("week")],M:[s,x("month")],MM:[n,x("month")],MMM:[M,function(m){var w=L("months"),T=(L("monthsShort")||w.map(function(A){return A.slice(0,3)})).indexOf(m)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[M,function(m){var w=L("months").indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,x("year")],YY:[n,function(m){this.year=S(m)}],YYYY:[/\d{4}/,x("year")],Z:v,ZZ:v};function I(m){var w,T;w=m,T=y&&y.formats;for(var A=(m=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,$,K){var V=K&&K.toUpperCase();return $||T[K]||e[K]||T[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,a,i){return a||i.slice(1)})})).match(t),O=A.length,D=0;D<O;D+=1){var k=A[D],F=P[k],Y=F&&F[0],W=F&&F[1];A[D]=W?{regex:Y,parser:W}:k.replace(/^\[|\]$/g,"")}return function(R){for(var $={},K=0,V=0;K<O;K+=1){var c=A[K];if(typeof c=="string")V+=c.length;else{var a=c.regex,i=c.parser,u=R.slice(V),f=a.exec(u)[0];i.call($,f),R=R.replace(f,"")}}return function(d){var g=d.afternoon;if(g!==void 0){var b=d.hours;g?b<12&&(d.hours+=12):b===12&&(d.hours=0),delete d.afternoon}}($),$}}return function(m,w,T){T.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(S=m.parseTwoDigitYear);var A=w.prototype,O=A.parse;A.parse=function(D){var k=D.date,F=D.utc,Y=D.args;this.$u=F;var W=Y[1];if(typeof W=="string"){var R=Y[2]===!0,$=Y[3]===!0,K=R||$,V=Y[2];$&&(V=Y[2]),y=this.$locale(),!R&&V&&(y=T.Ls[V]),this.$d=function(u,f,d,g){try{if(["x","X"].indexOf(f)>-1)return new Date((f==="X"?1e3:1)*u);var b=I(f)(u),j=b.year,E=b.month,C=b.day,z=b.hours,oe=b.minutes,re=b.seconds,fe=b.milliseconds,ee=b.zone,H=b.week,G=new Date,ne=C||(j||E?1:G.getDate()),ie=j||G.getFullYear(),le=0;j&&!E||(le=E>0?E-1:G.getMonth());var pe,we=z||0,Me=oe||0,Oe=re||0,De=fe||0;return ee?new Date(Date.UTC(ie,le,ne,we,Me,Oe,De+60*ee.offset*1e3)):d?new Date(Date.UTC(ie,le,ne,we,Me,Oe,De)):(pe=new Date(ie,le,ne,we,Me,Oe,De),H&&(pe=g(pe).week(H).toDate()),pe)}catch{return new Date("")}}(k,W,F,T),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),K&&k!=this.format(W)&&(this.$d=new Date("")),y={}}else if(W instanceof Array)for(var c=W.length,a=1;a<=c;a+=1){Y[1]=W[a-1];var i=T.apply(this,Y);if(i.isValid()){this.$d=i.$d,this.$L=i.$L,this.init();break}a===c&&(this.$d=new Date(""))}else O.call(this,D)}}})});o();o();o();o();o();function se(e){let t=typeof e;return e!==null&&(t==="object"||t==="function")}o();function ge(e){return e!==null&&typeof e=="object"}o();o();var ft=Object.prototype.toString,ue=e=>ft.call(e),Se=e=>ue(e).slice(8,-1),ae=e=>typeof e=="string",Z=e=>typeof e=="number"&&Number.isFinite(e),Q=e=>typeof e=="boolean",Te=e=>e===null,_=e=>e===void 0,_e=e=>typeof e=="symbol",B=Array.isArray,he=e=>typeof e=="function",Ce=e=>ue(e)==="[object Map]",Le=e=>ue(e)==="[object Set]",Fe=e=>ue(e)==="[object Date]",He=e=>ue(e)==="[object RegExp]",Ue=e=>ge(e)&&he(e?.then)&&he(e?.catch),Ke=e=>e==null,It=e=>e!=null,_t=(e,t)=>e!==t;function X(e){return ue(e)==="[object Object]"}function ce(e){return B(e)?e:[e]}o();o();o();o();function tr(e){let t=[],r,n="";for(;e>0;)r=Math.floor(e%2),t.push(r),e=Math.floor(e/2);for(;t.length>0;)n+=t.pop().toString();return n}var We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function rr(e){let t="",r="";for(let s=0;s<e.length;s++)r+=e[s].charCodeAt(0).toString(2).padStart(8,"0");for(let s=0;s<r.length;s+=6)t+=We[Number.parseInt(r.slice(s,s+6).padEnd(6,"0"),2)];let n=t.length%4;return n!==0&&(t+="=".repeat(4-n)),t}function nr(e){let t="",r="";for(let n=0;n<e.length&&e[n]!=="=";n++)r+=We.indexOf(e[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let s=Number.parseInt(r.slice(n,n+8),2);s&&(t+=String.fromCharCode(s))}return t}o();function sr(...e){return e.reduce((t,r)=>function(...n){return r(t(...n))})}function ar(...e){return e.reduce((t,r)=>function(...n){return t(r(...n))})}o();function cr(e,t=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}o();function me(e){let t=new WeakMap;function r(n){if(!ge(n))return n;if(Fe(n))return new Date(n);if(He(n))return new RegExp(n);if(Ue(n))return n;if(t.has(n))return t.get(n);if(Ce(n)){let y=new Map;return t.set(n,y),n.forEach((S,x)=>y.set(r(x),r(S))),y}if(Le(n)){let y=new Set;return t.set(n,y),n.forEach(S=>y.add(r(S))),y}let s=B(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));t.set(n,s);let M=Object.getOwnPropertyDescriptors(n);for(let y of Reflect.ownKeys(M)){let S=M[y];S.get||S.set?Object.defineProperty(s,y,S):Object.defineProperty(s,y,{...S,value:r(S.value)})}return s}return r(e)}o();function br(e,t,r={}){return ze(Ve(e,r),Ve(t,r),r)}function ze(e,t,r){return B(e)?ct(e,t,r):ut(e,t,r)}function ut(e,t,r){if(!X(t))return t;let n=Object.getOwnPropertyDescriptors(t);return Reflect.ownKeys(t).forEach(s=>{(X(e[s])||B(e[s]))&&(X(t[s])||B(t[s]))?e[s]=ze(e[s],t[s],r):Object.defineProperty(e,s,n[s])}),e}function ct(e,t,r){let{mergeStrategy:n="replace"}=r;if(B(t))switch(n){case"merge":return e.concat(t);case"replace":return t;default:return t}return t}function Ve(e,t){let{deepClone:r=!0}=t;return r?me(e):e}o();var ye=class extends Error{constructor(t,r="Utils"){super(t),this.name=r}};function h(e,t){throw new ye(`[${e}] ${t}`)}function Be(e,t){let r=ae(e)?new ye(`[${e}] ${t}`,"UtilsWarn"):e;console.warn(r)}var Mr=({from:e,replacement:t,version:r,type:n="API"})=>{Be(`${n}`,`${e} is about to be deprecated in version ${r}, please use ${t} instead.`)};function Or(e,t,r,n){let s=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${Se(n)} with value ${n}.`;h(e,s)}function Dr(e,t,r,n){let s=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${Se(n)} with value ${n}.`;Be(e,s)}o();var be=(e,t,...r)=>{if(!t)return;let n=r.length===0?"":r.length===1?r[0]:r;console[e](`[Log] ${t}:`,n)},xe=(e,...t)=>{be("info",e,...t)};xe.info=(e,...t)=>{be("info",e,...t)};xe.error=(e,...t)=>{be("error",e,...t)};xe.warn=(e,...t)=>{be("warn",e,...t)};typeof globalThis<"u"&&(globalThis.log=xe);o();function vr(e,t={}){mt(t);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:s="indices",encodeDotInKeys:M=!1,skipNulls:y=!1,strictNullHandling:S=!1,commaRoundTrip:x=!1,allowEmptyArrays:v=!1,addQueryPrefix:L=!1,delimiter:N="&"}=t,P=t.allowDots??!1;M&&_(t.allowDots)&&(P=!0);let I=[],m=O=>r&&!n?encodeURIComponent(O):O,w=O=>r?encodeURIComponent(O):O;function T(O,D){if(!_(D)){if(Te(D)){if(y)return;I.push(`${m(O)}${S?"":"="}`);return}if(B(D)){if(D.length===0){v&&I.push(`${m(O)}[]`);return}if(s==="comma"){let k=n?D.map(w).join(","):w(D.join(","));if(D.length===1&&Te(D[0])){if(y)return;I.push(`${m(O)}${x?"[]":""}${S?"":"="}`)}else D.length===1?I.push(`${m(O)}${x?"[]":""}=${k}`):I.push(`${m(O)}=${k}`);return}D.forEach((k,F)=>{let Y=O;s==="indices"?Y=`${O}[${F}]`:s==="brackets"&&(Y=`${O}[]`),T(Y,k)});return}if(se(D)){Object.keys(D).forEach(k=>{let F=O;M&&(F=F.replace(/\./g,"%2E"));let Y=k;P?(M&&(Y=Y.replace(/\./g,"%2E")),T(`${F}.${Y}`,D[k])):T(`${F}[${Y}]`,D[k])});return}I.push(`${m(O)}=${w(D)}`)}}if(!se(e))return"";Ze(e)&&h("stringify","Input object contains circular references, cannot stringify"),B(e)?e.forEach((O,D)=>T(`${D}`,O)):Object.keys(e).forEach(O=>T(O,e[O]));let A=I.join(N);return L&&A?`?${A}`:A}function mt(e={}){X(e)||h("stringify",'"options" must be a plain object'),!_(e.encode)&&!Q(e.encode)&&h("stringify",'"encode" must be a boolean'),!_(e.encodeValuesOnly)&&!Q(e.encodeValuesOnly)&&h("stringify",'"encodeValuesOnly" must be a boolean'),!_(e.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(e.arrayFormat)&&h("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!_(e.allowDots)&&!Q(e.allowDots)&&h("stringify",'"allowDots" must be a boolean'),!_(e.skipNulls)&&!Q(e.skipNulls)&&h("stringify",'"skipNulls" must be a boolean'),!_(e.strictNullHandling)&&!Q(e.strictNullHandling)&&h("stringify",'"strictNullHandling" must be a boolean'),!_(e.addQueryPrefix)&&!Q(e.addQueryPrefix)&&h("stringify",'"addQueryPrefix" must be a boolean'),!_(e.delimiter)&&!ae(e.delimiter)&&h("stringify",'"delimiter" must be a string'),!_(e.encodeDotInKeys)&&!Q(e.encodeDotInKeys)&&h("stringify",'"encodeDotInKeys" must be a boolean'),!_(e.commaRoundTrip)&&!Q(e.commaRoundTrip)&&h("stringify",'"commaRoundTrip" must be a boolean'),!_(e.allowEmptyArrays)&&!Q(e.allowEmptyArrays)&&h("stringify",'"allowEmptyArrays" must be a boolean')}o();var lt={stringify:e=>(se(e)||h("stringify","Input must be an object"),new URLSearchParams(e).toString()),parse:e=>(ae(e)||h("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(e).entries())),appendQueryString:(e,t)=>{let r=lt.stringify(t);return e.includes("?")?e.endsWith("?")||e.endsWith("&")?`${e}${r}`:`${e}&${r}`:`${e}?${r}`}};o();function Lr(e,t=500){let r=null;return function(...n){if(Ke(r))return r=Date.now(),e.apply(this,n);let s=Date.now();if(s-r>=t)return r=s,e.apply(this,n)}}o();o();function Br(e){pt(e);let{fn:t,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:s=!1,signal:M}=e,y,S=M?new Promise((v,L)=>{let N=()=>L(Ge());M.addEventListener("abort",N),y=()=>M.removeEventListener("abort",N)}):null;return new Promise((v,L)=>{(async()=>{for(let P=1;P<=r;P++){if(M?.aborted)return L(Ge());try{let I=await Promise.race(S?[t(),S]:[t()]);return v(I)}catch(I){let m=s?n*2**(P-1):n;if(log("withRetry",`Attempt ${P}/${r} failed. Retrying in ${m}ms...`),I instanceof Error&&I.name==="AbortError"||P===r)return L(I);await new Promise(w=>setTimeout(w,m))}}})()}).finally(()=>y?.())}function pt(e){X(e)||h("withRetry",'"Options" must be an object'),typeof e.fn!="function"&&h("withRetry",'"fn" must be a function that returns a Promise'),!_(e.maxAttempts)&&(!Number.isInteger(e.maxAttempts)||e.maxAttempts<1)&&h("withRetry",'"maxAttempts" must be a positive integer'),!_(e.retryDelay)&&(!Z(e.retryDelay)||e.retryDelay<0)&&h("withRetry",'"retryDelay" must be a non-negative number'),!_(e.enableExponentialBackoff)&&!Q(e.enableExponentialBackoff)&&h("withRetry",'"enableExponentialBackoff" must be a boolean'),!_(e.signal)&&typeof e.signal!="object"&&h("withRetry",'"signal" must be an AbortSignal')}var dt="The operation was aborted";function Ge(e=dt){let t=new Error(e);return t.name="AbortError",t}function Ze(e){se(e)||h("hasCircularReference",'"obj" must be a object');let t=new Set;function r(n){if(se(n)){if(t.has(n))return!0;t.add(n);for(let s of Object.keys(n))if(r(n[s]))return!0;t.delete(n)}return!1}return r(e)}o();o();function Qe(e,t,r={}){let{includeProto:n=!1,includeSymbols:s=!0,includeNonEnum:M=!1}=r,y={};return X(e)&&ce(t).forEach(x=>{_e(x)&&!s||!(n?x in e:Object.hasOwn(e,x))||!M&&(n?gt(e,x):Object.getOwnPropertyDescriptor(e,x))?.enumerable===!1||(y[x]=me(e[x]))}),y}function gt(e,t){let r=e;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Dn(e,t){if(!X(e))return{};let r=me(e),n=ce(t),s=Object.keys(r).filter(M=>!n.includes(M));return Qe(r,s)}o();o();function Pn(e,t){return(!Z(e)||e<=0)&&h("generateRandomArray","num must be greater than 0"),he(t)||h("generateRandomArray","cb must be a function"),Array.from({length:e}).fill(0).map((r,n)=>t(r,n))}o();function _n(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}o();var te=de($e(),1),qe=de(Xe(),1);o();o();function q(e){return e[Math.floor(Math.random()*e.length)]}function U(e={}){Z(e)&&(e={max:e});let{min:t=1,max:r=q(yt())}=e;ht(t,r);let n=Math.ceil(t),s=Math.floor(r);return Math.floor(Math.random()*(s-n+1)+n)}function ht(e,t){let r=Math.ceil(e),n=Math.floor(t);Number.isSafeInteger(r)||h("getRandomInt",`The minimum value Math.ceil(${e}) should be a safe integer`),Number.isSafeInteger(n)||h("getRandomInt",`The maximum value Math.floor(${t}) should be a safe integer`),n<r&&(t>=e&&h("getRandomInt",`No integer value found between ${e} and ${t}`),h("getRandomInt",`The maximum value ${t} should be greater than the minimum value ${e}`))}function yt(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((e,t)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,t+1);return Number(r)})}te.default.extend(qe.default);function ve(e={}){let{start:t="1800-01-01 00:00:00",end:r=(0,te.default)().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=e;(!(0,te.default)(t).isValid()||!(0,te.default)(r).isValid())&&h("generateRandomDate","start and end parameters must be valid date format");let s=(0,te.default)(t).year(),M=(0,te.default)(r).year(),y=U({min:s,max:M}),S=U({min:1,max:12}),x=U({min:1,max:31}),v=U(23),L=U(59),N=U(59),P=(0,te.default)(`${y}-${S}-${x} ${v}:${L}:${N}`);return P.isBefore((0,te.default)(t))||P.isAfter((0,te.default)(r))?ve(e):P.format(n)}o();o();function J(e={}){let t=xt(e),r=$t(t);wt(r);let{length:n}=t;Mt(n.min,n.max);let s=U(n),M=t.prefix||"";for(let y=0;y<s;y++)M+=r.charAt(Math.floor(Math.random()*r.length));return M+(t.suffix||"")}var bt=16,ke=1;function xt(e){let t=Z(e);return{lowerCase:!0,upperCase:!0,number:!0,...t?{}:e,length:t?{max:e,min:e}:Z(e.length)?{max:e.length,min:e.length}:{max:bt,min:ke,...e.length},extra:t?[]:[...new Set(ce(e.extra||[]))]}}function $t(e){let t="";return e.lowerCase&&(t+="abcdefghijklmnopqrstuvwxyz"),e.upperCase&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),e.number&&(t+="0123456789"),t+=ce(e.extra).join(""),t}function wt(e){e.length===0&&h("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function Mt(e,t){Number.isInteger(e)||h("getRandomString","min must be an integer"),Number.isInteger(t)||h("getRandomString","max must be an integer"),e<ke&&h("getRandomString",`Minimum length cannot be less than ${ke}`),t<e&&h("getRandomString","Maximum length cannot be less than minimum length")}function Ot(){let e=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],t=`${J(1)}${J({length:U({max:30,min:1})})}${J(1)}@${q(e)}`;return/\.{2,}/.test(t)?Ot():t}o();function mo(e={}){Z(e)&&(e={max:e});let{min:t=0,max:r=1,fractionDigits:n=2}=e;if(t===r)return t;if(t>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${t}`);return Math.random()*(r-t)+t}o();o();function Ye(e,t){(!Z(e)||e<=0)&&h("generateRandomStringFromSource","num must be greater than 0"),(!B(t)||t.length===0)&&h("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<e;n++)r+=q(t);return r}function Oo(){let e=U({min:1e5,max:999999}),t=[0,1,2,3,4,5,6,7,8,9];return[e,ve({format:"YYYYMMDD"}),Ye(3,t),Ye(1,[...t,"X","x"])].join("")}o();function Ro(){return q(["13","14","15","16","17","18","19"])+U(999999999).toString().padEnd(9,"0")}o();function Po(){let e=["http://","https://"],t=[".com",".net",".org",".cn",".top"],r=[`?name=${J({length:{min:4,max:8}})}`,`?id=${U()}`,`?page=${J({length:{min:2,max:4}})}`,`?query=${J({length:{min:5,max:6}})}`,`?search=${J({length:{min:1,max:4}})}`,`?token=${J({length:{min:16,max:16}})}`];return`${q(e)}${J({length:{min:5,max:25}})}${q(t)}${q(r)}`}o();o();o();o();o();function ti(e){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(e)}function ri(e){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function ni(e){return/^(?:0|[1-9]\d*)\.\d+$/.test(e)}function oi(e){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function ii(e){return/^-(?:0|[1-9]\d*)\.\d+$/.test(e)}o();function fi(e){return/^-?(?:0|[1-9]\d*)$/.test(e)}function ui(e){return/^[1-9]\d*$/.test(e)}function ci(e){return/^(?:0|[1-9]\d*)$/.test(e)&&!Object.is(e,-0)}function mi(e){return/^-[1-9]\d*$/.test(e)}function li(e){return/^-(?:0|[1-9]\d*)$/.test(e)||Object.is(e,-0)}o();var Je=de($e(),1);function et(e,t="YYYY-MM-DD HH:mm:ss"){return(0,Je.default)(e,t,!0).isValid()}o();function yi(e){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e)}o();function $i(e){return e===""}o();var Pe=de($e(),1);function Di(e){if(!/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(e))return!1;let r=e.slice(6,14);return et(r,"YYYYMMDD")&&(0,Pe.default)(r,"YYYYMMDD").isBefore((0,Pe.default)())}o();function Ai(e){return/^1[3-9]\d{9}$/.test(e)}o();var vi=e=>{if(!ae(e)||!/^-?\d+(?:\.\d+)?$/.test(e))return!1;let r=Number(e);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};o();function Pi(e){return/^https?:\/\/\S+$/i.test(e)}export{ye as UtilsError,nr as base64Decode,rr as base64Encode,ce as castArray,sr as compose,ar as composeRight,cr as debounce,Be as debugWarn,Dr as debugWarnInvalidTypeMessage,tr as decimalToBinary,me as deepClone,br as deepMerge,Mr as deprecated,Pn as generateRandomArray,_n as generateRandomColor,ve as generateRandomDate,Ot as generateRandomEmail,mo as generateRandomFloat,Oo as generateRandomIdCard,Ro as generateRandomMobilePhone,Ye as generateRandomStringFromSource,U as getRandomInt,q as getRandomItem,J as getRandomString,Po as getRandomUrl,_t as hasChanged,Ze as hasCircularReference,B as isArray,Q as isBoolean,Fe as isDate,et as isDateString,It as isDef,yi as isEmail,$i as isEmptyString,ti as isFloat,he as isFunction,Di as isIdCard,fi as isInteger,Ce as isMap,Ai as isMobilePhone,oi as isNegativeFloat,mi as isNegativeInteger,Ke as isNil,ni as isNonNegativeFloat,ci as isNonNegativeInteger,ii as isNonPositiveFloat,li as isNonPositiveInteger,Te as isNull,Z as isNumber,se as isObject,ge as isObjectLike,X as isPlainObject,ri as isPositiveFloat,ui as isPositiveInteger,Ue as isPromise,He as isRegExp,Le as isSet,ae as isString,vi as isStringNumber,_e as isSymbol,Pi as isURL,_ as isUndef,ft as objectToString,Dn as omit,Qe as pick,lt as qs,vr as qsStringify,Lr as throttle,h as throwError,Or as throwErrorInvalidTypeMessage,ue as toTypeString,Se as toTypeValue,Br as withRetry};
@@ -221,10 +221,6 @@ declare const hasChanged: (oldValue: unknown, newValue: unknown) => boolean;
221
221
  * @returns True if the object contains circular references, false otherwise
222
222
  *
223
223
  * @throws {Error} When `obj` is not an object
224
- *
225
- * @remarks
226
- * - Supports both plain objects, function objects, and arrays
227
- * - Handles nested objects and mixed object/array structures
228
224
  */
229
225
  declare function hasCircularReference(obj: AnyObject): boolean;
230
226
 
@@ -493,7 +489,7 @@ declare function debounce(target: Function, wait?: number): (...args: any[]) =>
493
489
  *
494
490
  * This utility performs a complete deep copy of the input value, handling complex nested structures,
495
491
  * circular references, and various JavaScript types. It preserves prototype chains, property descriptors,
496
- * and handles special objects like Date, RegExp, Map, Set, and more.
492
+ * Symbol properties, and handles special objects like Date, RegExp, Map, Set, and more.
497
493
  *
498
494
  * @example
499
495
  * deepClone({ name: 'test' }) => { name: 'test' }
@@ -502,19 +498,6 @@ declare function debounce(target: Function, wait?: number): (...args: any[]) =>
502
498
  * deepClone({ user: { name: 'John', data: [1, 2] } }) => { user: { name: 'John', data: [1, 2] } }
503
499
  *
504
500
  * @returns A deep clone of the input value with all nested references copied
505
- *
506
- * @remarks
507
- * - Handles circular references to prevent infinite loops
508
- * - Preserves prototype chains for objects and arrays
509
- * - Maintains property descriptors including getters and setters
510
- * - Supports Symbol properties and Symbol keys
511
- * - Clones Date objects to new Date instances with same time
512
- * - Clones RegExp objects maintaining their behavior
513
- * - Returns Promise objects as-is (promises are not cloned)
514
- * - Recursively clones Map and Set collections including their keys/values
515
- * - Handles non-object-like values (primitives) by returning them directly
516
- * - Preserves array subclass prototypes and custom array-like objects
517
- * - Maintains all property metadata and descriptors
518
501
  */
519
502
  declare function deepClone<T>(target: T): T;
520
503
 
@@ -533,16 +516,6 @@ declare function deepClone<T>(target: T): T;
533
516
  * deepMerge({ data: { x: 1 } }, { data: { y: 2 } }) => { data: { x: 1, y: 2 } }
534
517
  *
535
518
  * @returns A new merged object combining properties from both template and source
536
- *
537
- * @remarks
538
- * - Template object provides default values and structure
539
- * - Source object values override template values for matching keys
540
- * - Nested objects are recursively merged rather than replaced
541
- * - Arrays can be merged or replaced based on mergeStrategy option
542
- * - Property descriptors (getters, setters, etc.) are preserved
543
- * - Deep cloning is enabled by default to prevent original object mutation
544
- * - Non-plain objects in source will replace corresponding template values
545
- * - Supports Symbol properties and maintains prototype relationships
546
519
  */
547
520
  declare function deepMerge(template: AnyObject, source: AnyObject, options?: DeepMergeOptions): any;
548
521
  interface DeepMergeOptions {
@@ -643,16 +616,6 @@ declare global {
643
616
  * @throws {Error} When `encodeDotInKeys` is not a boolean
644
617
  * @throws {Error} When `commaRoundTrip` is not a boolean
645
618
  * @throws {Error} When `allowEmptyArrays` is not a boolean
646
- *
647
- * @remarks
648
- * - Supports nested objects and arrays with configurable formatting
649
- * - Handles null, undefined, and empty values according to specified options
650
- * - Provides multiple array serialization formats (indices, brackets, comma)
651
- * - Supports both bracket notation and dot notation for nested objects
652
- * - Uses standard URL encoding with configurable key/value encoding options
653
- * - Returns empty string for non-object inputs
654
- * - Preserves key order from the original object
655
- * - Supports custom delimiters and query prefixes
656
619
  */
657
620
  declare function qsStringify(obj: AnyObject, options?: StringifyOptions): string;
658
621
  interface StringifyOptions {
@@ -784,10 +747,6 @@ declare const qs: {
784
747
  * @returns A URL-encoded query string
785
748
  *
786
749
  * @throws {Error} When `obj` is not an object
787
- *
788
- * @remarks
789
- * - Uses native URLSearchParams for encoding
790
- * - Only supports flat objects (no nested structures)
791
750
  */
792
751
  stringify: (obj: AnyObject) => string;
793
752
  /**
@@ -811,12 +770,6 @@ declare const qs: {
811
770
  * @returns A plain object containing the parsed key-value pairs as strings
812
771
  *
813
772
  * @throws {Error} When `str` is not a string
814
- *
815
- * @remarks
816
- * - Uses native URLSearchParams for parsing and decoding
817
- * - All values are returned as strings (no automatic type conversion)
818
- * - Handles standard URL encoding/decoding automatically
819
- * - Does not support nested objects or arrays
820
773
  */
821
774
  parse: (str: string) => {
822
775
  [k: string]: string;
@@ -845,12 +798,6 @@ declare const qs: {
845
798
  *
846
799
  * @throws {Error} When `url` is not a string
847
800
  * @throws {Error} When `obj` is not an object
848
- *
849
- * @remarks
850
- * - Automatically detects existing query strings and uses appropriate separators
851
- * - Handles edge cases like trailing '?' or '&' characters
852
- * - Preserves existing query parameters in the URL
853
- * - Uses the same encoding rules as the stringify method
854
801
  */
855
802
  appendQueryString: (url: string, obj: AnyObject) => string;
856
803
  };
@@ -863,23 +810,6 @@ declare const qs: {
863
810
  */
864
811
  declare function throttle(target: Function, wait?: number): (...args: any[]) => any;
865
812
 
866
- /**
867
- * Validates Chinese characters, letters, and digits
868
- */
869
- declare function validatorChineseOrEnglishOrNumber(value: string): boolean;
870
- /**
871
- * Validates Chinese characters and English letters
872
- */
873
- declare function validatorChineseOrEnglish(value: string): boolean;
874
- /**
875
- * Validates uppercase letters, digits, and special characters including !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
876
- */
877
- declare function validatorUppercaseOrNumbersOrSpecial(value: string): boolean;
878
- /**
879
- * Validates uppercase letters, digits, and underscore
880
- */
881
- declare function validatorUppercaseOrNumbersOrUnderline(value: string): boolean;
882
-
883
813
  /**
884
814
  * Executes an asynchronous function with retry logic.
885
815
  *
@@ -921,15 +851,6 @@ declare function validatorUppercaseOrNumbersOrUnderline(value: string): boolean;
921
851
  * @throws {Error} When `signal` is not an AbortSignal object
922
852
  * @throws {Promise rejection Error} "Operation Cancelled" when the operation is aborted via AbortSignal
923
853
  * @throws {Promise rejection any} The original error from `fn` when all retry attempts are exhausted
924
- *
925
- * @remarks
926
- * - Uses exponential backoff when enabled: delay × 2^(attempt-1)
927
- * - Supports cancellation via AbortSignal at any point during execution
928
- * - Logs retry attempts for debugging purposes
929
- * - Validates all input parameters and throws descriptive errors
930
- * - Cleans up event listeners to prevent memory leaks
931
- * - Returns immediately on first successful execution
932
- * - Preserves the original error when all retries fail
933
854
  */
934
855
  declare function withRetry<T>(options: WithRetryOptions<T>): Promise<T>;
935
856
  interface WithRetryOptions<T> {
@@ -977,49 +898,6 @@ interface WithRetryOptions<T> {
977
898
  signal?: AbortSignal;
978
899
  }
979
900
 
980
- /**
981
- * Validates if the value contains only digits
982
- */
983
- declare function isNumberOrNumberString(val: string): boolean;
984
- /**
985
- * Validates if the value contains only English letters
986
- */
987
- declare function isEnglishAphabet(val: string): boolean;
988
- /**
989
- * Validates if the value contains only uppercase letters
990
- */
991
- declare function isUpperCase(val: string): boolean;
992
- /**
993
- * Validates if the value contains only uppercase letters and digits
994
- */
995
- declare function isUpperCaseAndNumber(val: string): boolean;
996
- /**
997
- * Validates if the value contains only uppercase letters, digits and Chinese characters
998
- */
999
- declare function isUpperCaseAndNumberAndChinese(val: string): boolean;
1000
- /**
1001
- * Validates if the value contains only lowercase letters
1002
- */
1003
- declare function isLowerCase(val: string): boolean;
1004
- /**
1005
- * Validates if the value contains only lowercase letters and digits
1006
- */
1007
- declare function isLowerCaseAndNumber(val: string): boolean;
1008
- /**
1009
- * Validates if the value contains only lowercase letters, digits and Chinese characters
1010
- */
1011
- declare function isLowerCaseAndNumberAndChinese(val: string): boolean;
1012
- /**
1013
- * Validates whether the value is a Chinese string.
1014
- *
1015
- * @example
1016
- *
1017
- * isChineseString('你好') => true
1018
- *
1019
- * isChineseString('hello') => false
1020
- */
1021
- declare function isChineseString(val: string): boolean;
1022
-
1023
901
  /**
1024
902
  * Validates whether a string represents a valid float number.
1025
903
  *
@@ -1038,14 +916,6 @@ declare function isChineseString(val: string): boolean;
1038
916
  * isFloat('abc') => false (non-numeric)
1039
917
  *
1040
918
  * @returns Returns `true` if the string is a valid float, `false` otherwise
1041
- *
1042
- * @remarks
1043
- * - Accepts positive floats (e.g., "1.23", "999.5")
1044
- * - Accepts negative floats (e.g., "-1.23", "-999.5")
1045
- * - Accepts zero with decimal point (e.g., "0.0", "-0.0")
1046
- * - Rejects integers without decimal point (e.g., "7", "-7")
1047
- * - Rejects numbers with no digits after decimal (e.g., "1.", "-2.")
1048
- * - Rejects non-numeric strings (e.g., "abc", "1.2a")
1049
919
  */
1050
920
  declare function isFloat(val: string): boolean;
1051
921
  /**
@@ -1065,13 +935,6 @@ declare function isFloat(val: string): boolean;
1065
935
  * isPositiveFloat('7') => false (integer)
1066
936
  *
1067
937
  * @returns Returns `true` if the string is a positive float, `false` otherwise
1068
- *
1069
- * @remarks
1070
- * - Accepts only positive floats greater than zero (e.g., "1.23", "0.5")
1071
- * - Rejects zero with decimal point (e.g., "0.0", "0.00")
1072
- * - Rejects negative floats (e.g., "-1.23", "-0.5")
1073
- * - Rejects integers (e.g., "7", "-7")
1074
- * - Rejects non-numeric strings (e.g., "abc", "1.2a")
1075
938
  */
1076
939
  declare function isPositiveFloat(val: string): boolean;
1077
940
  /**
@@ -1091,13 +954,6 @@ declare function isPositiveFloat(val: string): boolean;
1091
954
  * isNonNegativeFloat('abc') => false (non-numeric)
1092
955
  *
1093
956
  * @returns Returns `true` if the string is a non-negative float, `false` otherwise
1094
- *
1095
- * @remarks
1096
- * - Accepts zero with decimal point (e.g., "0.0", "0.00")
1097
- * - Accepts positive floats (e.g., "1.23", "999.5")
1098
- * - Rejects negative floats (e.g., "-1.23", "-0.5")
1099
- * - Rejects integers without decimal point (e.g., "7", "0")
1100
- * - Rejects non-numeric strings (e.g., "abc", "1.2a")
1101
957
  */
1102
958
  declare function isNonNegativeFloat(val: string): boolean;
1103
959
  /**
@@ -1117,13 +973,6 @@ declare function isNonNegativeFloat(val: string): boolean;
1117
973
  * isNegativeFloat('-7') => false (integer)
1118
974
  *
1119
975
  * @returns Returns `true` if the string is a negative float, `false` otherwise
1120
- *
1121
- * @remarks
1122
- * - Accepts only negative floats less than zero (e.g., "-1.23", "-0.5")
1123
- * - Rejects zero with decimal point (e.g., "0.0", "-0.0")
1124
- * - Rejects positive floats (e.g., "1.23", "0.5")
1125
- * - Rejects integers (e.g., "-7", "7")
1126
- * - Rejects non-numeric strings (e.g., "abc", "-1.2a")
1127
976
  */
1128
977
  declare function isNegativeFloat(val: string): boolean;
1129
978
  /**
@@ -1143,13 +992,6 @@ declare function isNegativeFloat(val: string): boolean;
1143
992
  * isNonPositiveFloat('abc') => false (non-numeric)
1144
993
  *
1145
994
  * @returns Returns `true` if the string is a non-positive float, `false` otherwise
1146
- *
1147
- * @remarks
1148
- * - Accepts zero with decimal point (e.g., "0.0", "-0.0")
1149
- * - Accepts negative floats (e.g., "-1.23", "-999.5")
1150
- * - Rejects positive floats (e.g., "1.23", "0.5")
1151
- * - Rejects integers without decimal point (e.g., "-7", "0")
1152
- * - Rejects non-numeric strings (e.g., "abc", "-1.2a")
1153
995
  */
1154
996
  declare function isNonPositiveFloat(val: string): boolean;
1155
997
 
@@ -1171,14 +1013,6 @@ declare function isNonPositiveFloat(val: string): boolean;
1171
1013
  * isInteger('abc') => false (non-numeric)
1172
1014
  *
1173
1015
  * @returns Returns `true` if the string is a valid integer, `false` otherwise
1174
- *
1175
- * @remarks
1176
- * - Accepts positive integers (e.g., "1", "123", "999")
1177
- * - Accepts negative integers (e.g., "-1", "-123", "-999")
1178
- * - Accepts zero as "0"
1179
- * - Rejects decimal numbers (e.g., "1.5", "-2.3")
1180
- * - Rejects numbers with leading zeros (e.g., "01", "-02")
1181
- * - Rejects non-numeric strings (e.g., "abc", "12a")
1182
1016
  */
1183
1017
  declare function isInteger(val: string): boolean;
1184
1018
  /**
@@ -1198,14 +1032,6 @@ declare function isInteger(val: string): boolean;
1198
1032
  * isPositiveInteger('1.5') => false (decimal)
1199
1033
  *
1200
1034
  * @returns Returns `true` if the string is a positive integer, `false` otherwise
1201
- *
1202
- * @remarks
1203
- * - Accepts only positive integers greater than zero (e.g., "1", "123", "999")
1204
- * - Rejects zero ("0")
1205
- * - Rejects negative integers (e.g., "-1", "-123")
1206
- * - Rejects decimal numbers (e.g., "1.5", "2.0")
1207
- * - Rejects numbers with leading zeros (e.g., "01", "02")
1208
- * - Rejects non-numeric strings (e.g., "abc", "12a")
1209
1035
  */
1210
1036
  declare function isPositiveInteger(val: string): boolean;
1211
1037
  /**
@@ -1225,15 +1051,6 @@ declare function isPositiveInteger(val: string): boolean;
1225
1051
  * isNonNegativeInteger('01') => false (leading zero)
1226
1052
  *
1227
1053
  * @returns Returns `true` if the string is a non-negative integer, `false` otherwise
1228
- *
1229
- * @remarks
1230
- * - Accepts zero ("0")
1231
- * - Accepts positive integers (e.g., "1", "123", "999")
1232
- * - Rejects negative integers (e.g., "-1", "-123")
1233
- * - Rejects decimal numbers (e.g., "1.5", "-2.3")
1234
- * - Rejects numbers with leading zeros (e.g., "01", "02")
1235
- * - Handles negative zero (-0) correctly by rejecting it
1236
- * - Rejects non-numeric strings (e.g., "abc", "12a")
1237
1054
  */
1238
1055
  declare function isNonNegativeInteger(val: string): boolean;
1239
1056
  /**
@@ -1253,14 +1070,6 @@ declare function isNonNegativeInteger(val: string): boolean;
1253
1070
  * isNegativeInteger('-1.5') => false (decimal)
1254
1071
  *
1255
1072
  * @returns Returns `true` if the string is a negative integer, `false` otherwise
1256
- *
1257
- * @remarks
1258
- * - Accepts only negative integers less than zero (e.g., "-1", "-123", "-999")
1259
- * - Rejects zero ("0")
1260
- * - Rejects positive integers (e.g., "1", "123")
1261
- * - Rejects decimal numbers (e.g., "-1.5", "2.3")
1262
- * - Rejects numbers with leading zeros (e.g., "-01", "-02")
1263
- * - Rejects non-numeric strings (e.g., "abc", "-12a")
1264
1073
  */
1265
1074
  declare function isNegativeInteger(val: string): boolean;
1266
1075
  /**
@@ -1280,96 +1089,162 @@ declare function isNegativeInteger(val: string): boolean;
1280
1089
  * isNonPositiveInteger('-01') => false (leading zero)
1281
1090
  *
1282
1091
  * @returns Returns `true` if the string is a non-positive integer, `false` otherwise
1283
- *
1284
- * @remarks
1285
- * - Accepts zero ("0")
1286
- * - Accepts negative integers (e.g., "-1", "-123", "-999")
1287
- * - Rejects positive integers (e.g., "1", "123")
1288
- * - Rejects decimal numbers (e.g., "-1.5", "2.3")
1289
- * - Rejects numbers with leading zeros (e.g., "-01", "-02")
1290
- * - Handles negative zero (-0) correctly by accepting it
1291
- * - Rejects non-numeric strings (e.g., "abc", "-12a")
1292
1092
  */
1293
1093
  declare function isNonPositiveInteger(val: string): boolean;
1294
1094
 
1295
1095
  /**
1296
- * Checks if a string represents a valid standard decimal number.
1096
+ * Validates whether a string represents a valid date in the specified format.
1297
1097
  *
1298
- * This utility validates whether the input string matches standard decimal number format.
1299
- * It uses strict regex pattern matching to ensure only valid decimal numbers are accepted.
1300
- * The function also ensures the number is within JavaScript's safe integer range.
1098
+ * This utility uses Day.js library with strict parsing mode to validate date strings
1099
+ * against a given format. It ensures the date string exactly matches the format
1100
+ * and represents a valid calendar date.
1301
1101
  *
1302
1102
  * @example
1303
- * isStringNumber('123') // true
1304
- * isStringNumber('-45.67') // true
1305
- * isStringNumber('0') // true
1103
+ * isDateString('2023-01-01 12:30:45') // => true
1104
+ * isDateString('2024-02-29 00:00:00') // => true (leap year)
1105
+ * isDateString('2023-06-15', 'YYYY-MM-DD') // => true
1306
1106
  *
1307
1107
  * @example
1308
- * isStringNumber('.5') // false (must start with digit)
1309
- * isStringNumber('123.') // false (must not end with dot)
1310
- * isStringNumber(' 42 ') // false (contains spaces)
1311
- * isStringNumber('1e5') // false (scientific notation)
1312
- * isStringNumber('0xFF') // false (hexadecimal)
1313
- * isStringNumber('abc') // false (non-numeric)
1314
- * isStringNumber('') // false (empty)
1108
+ * isDateString('2023-13-01 00:00:00') // => false (invalid month)
1109
+ * isDateString('2023-02-30 00:00:00') // => false (invalid date)
1110
+ * isDateString('2023/01/01 12:30:45') // => false (wrong format)
1315
1111
  *
1316
- * @returns Returns `true` if the string is a valid standard decimal number, `false` otherwise
1112
+ * @returns Returns `true` if the string is a valid date in the specified format, `false` otherwise
1317
1113
  *
1318
- * @remarks
1319
- * - Only accepts standard decimal format: digits with optional decimal point
1320
- * - Must start with a digit (optionally preceded by minus sign)
1321
- * - If decimal point is present, must be followed by at least one digit
1322
- * - Does not accept strings with leading or trailing whitespace
1323
- * - Returns `false` for empty strings
1324
- * - Ensures the number is within JavaScript's safe integer range
1325
- * - Returns `false` for non-string inputs
1114
+ * @see https://day.js.org/docs/en/parse/string-format
1326
1115
  */
1327
- declare const isStringNumber: (val: string) => boolean;
1116
+ declare function isDateString(val: string, format?: string): boolean;
1328
1117
 
1329
1118
  /**
1330
- * Validates whether the value is a mobile phone number.
1119
+ * Validates whether a string represents a valid email address.
1120
+ *
1121
+ * This utility checks if the input string matches a valid email address format
1122
+ * using a comprehensive regex pattern. It validates both the local part (before @)
1123
+ * and the domain part (after @) according to standard email formatting rules.
1331
1124
  *
1332
1125
  * @example
1126
+ * isEmail('test@example.com') // => true
1127
+ * isEmail('user+tag@domain.org') // => true
1128
+ * isEmail('name.surname@company.co.uk') // => true
1333
1129
  *
1334
- * isMobilePhone('13912345678') => true
1130
+ * @example
1131
+ * isEmail('invalid@') // => false (missing domain)
1132
+ * isEmail('@example.com') // => false (missing local part)
1133
+ * isEmail('test@.com') // => false (invalid domain format)
1335
1134
  *
1336
- * isMobilePhone('1381234567') => false
1135
+ * @returns Returns `true` if the string is a valid email address, `false` otherwise
1337
1136
  */
1338
- declare function isMobilePhone(val: string): boolean;
1137
+ declare function isEmail(val: string): boolean;
1138
+
1339
1139
  /**
1340
- * Validates whether the value is a URL.
1140
+ * Validates whether a value is an empty string.
1141
+ *
1142
+ * This utility performs a strict equality check to determine if the input value
1143
+ * is exactly an empty string (''), excluding other falsy values like null, undefined,
1144
+ * or whitespace-only strings.
1341
1145
  *
1342
1146
  * @example
1147
+ * isEmptyString('') // => true
1343
1148
  *
1344
- * isURL('https://example.com') => true
1149
+ * @example
1150
+ * isEmptyString(' ') // => false (whitespace)
1151
+ * isEmptyString(null) // => false (null value)
1152
+ * isEmptyString(undefined) // => false (undefined value)
1153
+ * isEmptyString(0) // => false (number zero)
1345
1154
  *
1346
- * isURL('htt://321') => false
1155
+ * @param val - The value to check for empty string
1156
+ * @returns Returns `true` if the value is exactly an empty string, `false` otherwise
1347
1157
  */
1348
- declare function isURL(val: string): boolean;
1158
+ declare function isEmptyString(val: unknown): val is "";
1159
+
1349
1160
  /**
1350
- * Validates whether the value is an email address.
1161
+ * Validates whether a string represents a valid Chinese ID card number.
1162
+ *
1163
+ * This utility validates Chinese national identification numbers (18 digits) by checking
1164
+ * both the format pattern and the embedded date validity. It verifies the administrative
1165
+ * division code, birth date format, and ensures the birth date is in the past.
1351
1166
  *
1352
1167
  * @example
1168
+ * isIdCard('11010519491231002X') // => true
1169
+ * isIdCard('110105194912310021') // => true
1170
+ * isIdCard('320102198001010011') // => true
1353
1171
  *
1354
- * isEmail('test@example.com') => true
1172
+ * @example
1173
+ * isIdCard('01010519491231002X') // => false (invalid admin code)
1174
+ * isIdCard('11010519491231002') // => false (incorrect length)
1175
+ * isIdCard('110105199202300021') // => false (invalid date - Feb 30th)
1355
1176
  *
1356
- * isEmail('invalid@') => false
1177
+ * @param val - The string to validate as a Chinese ID card number
1178
+ * @returns Returns `true` if the string is a valid Chinese ID card number, `false` otherwise
1357
1179
  */
1358
- declare function isEmail(val: string): boolean;
1180
+ declare function isIdCard(val: string): boolean;
1181
+
1359
1182
  /**
1360
- * Validates whether the value is a empty string.
1183
+ * Validates whether a string represents a valid Chinese mobile phone number.
1184
+ *
1185
+ * This utility checks if the input string matches the Chinese mobile phone number format,
1186
+ * which must start with 1 followed by a digit from 3-9, and contain exactly 11 digits total.
1187
+ * It supports all major Chinese carriers including China Mobile, China Unicom, and China Telecom.
1188
+ *
1189
+ * @example
1190
+ * isMobilePhone('13912345678') // => true
1191
+ * isMobilePhone('16600001111') // => true
1192
+ * isMobilePhone('19955556666') // => true
1193
+ *
1194
+ * @example
1195
+ * isMobilePhone('1381234567') // => false (too short)
1196
+ * isMobilePhone('22345678901') // => false (invalid prefix)
1197
+ * isMobilePhone('138-1234-5678') // => false (contains separators)
1198
+ *
1199
+ * @returns Returns `true` if the string is a valid Chinese mobile phone number, `false` otherwise
1200
+ *
1361
1201
  */
1362
- declare function isEmptyString(val: unknown): val is "";
1202
+ declare function isMobilePhone(val: string): boolean;
1203
+
1363
1204
  /**
1364
- * Validates if the value is a valid date string
1365
- * @param format Date format
1366
- * @default 'YYYY-MM-DD HH:mm:ss'
1367
- * @see https://day.js.org/docs/zh-CN/parse/string-format
1205
+ * Checks if a string represents a valid standard decimal number.
1206
+ *
1207
+ * This utility validates whether the input string matches standard decimal number format.
1208
+ * It uses strict regex pattern matching to ensure only valid decimal numbers are accepted.
1209
+ * The function also ensures the number is within JavaScript's safe integer range.
1210
+ *
1211
+ * @example
1212
+ * isStringNumber('123') // true
1213
+ * isStringNumber('-13.67') // true
1214
+ * isStringNumber('0') // true
1215
+ *
1216
+ * @example
1217
+ * isStringNumber('.5') // false (must start with digit)
1218
+ * isStringNumber('123.') // false (must not end with dot)
1219
+ * isStringNumber(' 42 ') // false (contains spaces)
1220
+ * isStringNumber('1e5') // false (scientific notation)
1221
+ * isStringNumber('0xFF') // false (hexadecimal)
1222
+ * isStringNumber('abc') // false (non-numeric)
1223
+ * isStringNumber('') // false (empty)
1224
+ *
1225
+ * @returns Returns `true` if the string is a valid standard decimal number, `false` otherwise
1368
1226
  */
1369
- declare function isDateString(val: string, format?: string): boolean;
1227
+ declare const isStringNumber: (val: string) => boolean;
1228
+
1370
1229
  /**
1371
- * Validates if the value is a valid Chinese ID card number
1230
+ * Validates whether a string represents a valid URL.
1231
+ *
1232
+ * This utility checks if the input string matches a valid HTTP or HTTPS URL format.
1233
+ * It uses a strict validation pattern that requires a proper protocol and domain structure.
1234
+ * The validation is case-insensitive and supports various URL components like paths, queries, and ports.
1235
+ *
1236
+ * @example
1237
+ * isURL('https://example.com') // => true
1238
+ * isURL('https://t-example.com:10086') // => true
1239
+ * isURL('https://www.example.com/path?query=param') // => true
1240
+ *
1241
+ * @example
1242
+ * isURL('ftp://example.com') // => false (unsupported protocol)
1243
+ * isURL('example.com') // => false (missing protocol)
1244
+ * isURL('https://') // => false (missing domain)
1245
+ *
1246
+ * @returns Returns `true` if the string is a valid HTTP/HTTPS URL, `false` otherwise
1372
1247
  */
1373
- declare function isIdCard(val: string): boolean;
1248
+ declare function isURL(val: string): boolean;
1374
1249
 
1375
- export { type AnyObject, type ArrayItem, type Arrayable, type DeepMergeOptions, type PlainObject, type StringNumber, type StringifyOptions, UtilsError, type WithRetryOptions, base64Decode, base64Encode, castArray, compose, composeRight, debounce, debugWarn, debugWarnInvalidTypeMessage, decimalToBinary, deepClone, deepMerge, deprecated, generateRandomArray, generateRandomColor, generateRandomDate, generateRandomEmail, generateRandomFloat, generateRandomIdCard, generateRandomMobilePhone, generateRandomStringFromSource, getRandomInt, getRandomItem, getRandomString, getRandomUrl, hasChanged, hasCircularReference, isArray, isBoolean, isChineseString, isDate, isDateString, isDef, isEmail, isEmptyString, isEnglishAphabet, isFloat, isFunction, isIdCard, isInteger, isLowerCase, isLowerCaseAndNumber, isLowerCaseAndNumberAndChinese, isMap, isMobilePhone, isNegativeFloat, isNegativeInteger, isNil, isNonNegativeFloat, isNonNegativeInteger, isNonPositiveFloat, isNonPositiveInteger, isNull, isNumber, isNumberOrNumberString, isObject, isObjectLike, isPlainObject, isPositiveFloat, isPositiveInteger, isPromise, isRegExp, isSet, isString, isStringNumber, isSymbol, isURL, isUndef, isUpperCase, isUpperCaseAndNumber, isUpperCaseAndNumberAndChinese, objectToString, omit, pick, qs, qsStringify, throttle, throwError, throwErrorInvalidTypeMessage, toTypeString, toTypeValue, validatorChineseOrEnglish, validatorChineseOrEnglishOrNumber, validatorUppercaseOrNumbersOrSpecial, validatorUppercaseOrNumbersOrUnderline, withRetry };
1250
+ export { type AnyObject, type ArrayItem, type Arrayable, type DeepMergeOptions, type PlainObject, type StringNumber, type StringifyOptions, UtilsError, type WithRetryOptions, base64Decode, base64Encode, castArray, compose, composeRight, debounce, debugWarn, debugWarnInvalidTypeMessage, decimalToBinary, deepClone, deepMerge, deprecated, generateRandomArray, generateRandomColor, generateRandomDate, generateRandomEmail, generateRandomFloat, generateRandomIdCard, generateRandomMobilePhone, generateRandomStringFromSource, getRandomInt, getRandomItem, getRandomString, getRandomUrl, hasChanged, hasCircularReference, isArray, isBoolean, isDate, isDateString, isDef, isEmail, isEmptyString, isFloat, isFunction, isIdCard, isInteger, isMap, isMobilePhone, isNegativeFloat, isNegativeInteger, isNil, isNonNegativeFloat, isNonNegativeInteger, isNonPositiveFloat, isNonPositiveInteger, isNull, isNumber, isObject, isObjectLike, isPlainObject, isPositiveFloat, isPositiveInteger, isPromise, isRegExp, isSet, isString, isStringNumber, isSymbol, isURL, isUndef, objectToString, omit, pick, qs, qsStringify, throttle, throwError, throwErrorInvalidTypeMessage, toTypeString, toTypeValue, withRetry };
@@ -1,2 +1,2 @@
1
1
  /* @ts-self-types="./esm-bundler.d.ts" */
2
- function N(e){let t=typeof e;return e!==null&&(t==="object"||t==="function")}function U(e){return e!==null&&typeof e=="object"}var ce=Object.prototype.toString,k=e=>ce.call(e),W=e=>k(e).slice(8,-1),M=e=>typeof e=="string",x=e=>typeof e=="number"&&Number.isFinite(e),w=e=>typeof e=="boolean",z=e=>e===null,u=e=>e===void 0,Q=e=>typeof e=="symbol",y=Array.isArray,L=e=>typeof e=="function",X=e=>k(e)==="[object Map]",J=e=>k(e)==="[object Set]",ee=e=>k(e)==="[object Date]",te=e=>k(e)==="[object RegExp]",re=e=>U(e)&&L(e?.then)&&L(e?.catch),F=e=>e==null,Ie=e=>e!=null,Ce=(e,t)=>e!==t;function O(e){return k(e)==="[object Object]"}function I(e){return y(e)?e:[e]}function Je(e){let t=[],r,n="";for(;e>0;)r=Math.floor(e%2),t.push(r),e=Math.floor(e/2);for(;t.length>0;)n+=t.pop().toString();return n}var ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function et(e){let t="",r="";for(let o=0;o<e.length;o++)r+=e[o].charCodeAt(0).toString(2).padStart(8,"0");for(let o=0;o<r.length;o+=6)t+=ne[Number.parseInt(r.slice(o,o+6).padEnd(6,"0"),2)];let n=t.length%4;return n!==0&&(t+="=".repeat(4-n)),t}function tt(e){let t="",r="";for(let n=0;n<e.length&&e[n]!=="=";n++)r+=ne.indexOf(e[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let o=Number.parseInt(r.slice(n,n+8),2);o&&(t+=String.fromCharCode(o))}return t}function ot(...e){return e.reduce((t,r)=>function(...n){return r(t(...n))})}function it(...e){return e.reduce((t,r)=>function(...n){return t(r(...n))})}function mt(e,t=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}function Y(e){let t=new WeakMap;function r(n){if(!U(n))return n;if(ee(n))return new Date(n);if(te(n))return new RegExp(n);if(re(n))return n;if(t.has(n))return t.get(n);if(X(n)){let m=new Map;return t.set(n,m),n.forEach((p,d)=>m.set(r(d),r(p))),m}if(J(n)){let m=new Set;return t.set(n,m),n.forEach(p=>m.add(r(p))),m}let o=y(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));t.set(n,o);let c=Object.getOwnPropertyDescriptors(n);for(let m of Reflect.ownKeys(c)){let p=c[m];p.get||p.set?Object.defineProperty(o,m,p):Object.defineProperty(o,m,{...p,value:r(p.value)})}return o}return r(e)}function bt(e,t,r={}){return ie(oe(e,r),oe(t,r),r)}function ie(e,t,r){return y(e)?pe(e,t,r):ue(e,t,r)}function ue(e,t,r){if(!O(t))return t;let n=Object.getOwnPropertyDescriptors(t);return Reflect.ownKeys(t).forEach(o=>{(O(e[o])||y(e[o]))&&(O(t[o])||y(t[o]))?e[o]=ie(e[o],t[o],r):Object.defineProperty(e,o,n[o])}),e}function pe(e,t,r){let{mergeStrategy:n="replace"}=r;if(y(t))switch(n){case"merge":return e.concat(t);case"replace":return t;default:return t}return t}function oe(e,t){let{deepClone:r=!0}=t;return r?Y(e):e}var v=class extends Error{constructor(t,r="Utils"){super(t),this.name=r}};function i(e,t){throw new v(`[${e}] ${t}`)}function se(e,t){let r=M(e)?new v(`[${e}] ${t}`,"UtilsWarn"):e;console.warn(r)}var wt=({from:e,replacement:t,version:r,type:n="API"})=>{se(`${n}`,`${e} is about to be deprecated in version ${r}, please use ${t} instead.`)};function Ot(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${W(n)} with value ${n}.`;i(e,o)}function At(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${W(n)} with value ${n}.`;se(e,o)}var H=(e,t,...r)=>{if(!t)return;let n=r.length===0?"":r.length===1?r[0]:r;console[e](`[Log] ${t}:`,n)},B=(e,...t)=>{H("info",e,...t)};B.info=(e,...t)=>{H("info",e,...t)};B.error=(e,...t)=>{H("error",e,...t)};B.warn=(e,...t)=>{H("warn",e,...t)};typeof globalThis<"u"&&(globalThis.log=B);function Nt(e,t={}){le(t);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:o="indices",encodeDotInKeys:c=!1,skipNulls:m=!1,strictNullHandling:p=!1,commaRoundTrip:d=!1,allowEmptyArrays:P=!1,addQueryPrefix:R=!1,delimiter:D="&"}=t,h=t.allowDots??!1;c&&u(t.allowDots)&&(h=!0);let b=[],E=f=>r&&!n?encodeURIComponent(f):f,K=f=>r?encodeURIComponent(f):f;function _(f,l){if(!u(l)){if(z(l)){if(m)return;b.push(`${E(f)}${p?"":"="}`);return}if(y(l)){if(l.length===0){P&&b.push(`${E(f)}[]`);return}if(o==="comma"){let T=n?l.map(K).join(","):K(l.join(","));if(l.length===1&&z(l[0])){if(m)return;b.push(`${E(f)}${d?"[]":""}${p?"":"="}`)}else l.length===1?b.push(`${E(f)}${d?"[]":""}=${T}`):b.push(`${E(f)}=${T}`);return}l.forEach((T,C)=>{let j=f;o==="indices"?j=`${f}[${C}]`:o==="brackets"&&(j=`${f}[]`),_(j,T)});return}if(N(l)){Object.keys(l).forEach(T=>{let C=f;c&&(C=C.replace(/\./g,"%2E"));let j=T;h?(c&&(j=j.replace(/\./g,"%2E")),_(`${C}.${j}`,l[T])):_(`${C}[${j}]`,l[T])});return}b.push(`${E(f)}=${K(l)}`)}}if(!N(e))return"";ae(e)&&i("stringify","Input object contains circular references, cannot stringify"),y(e)?e.forEach((f,l)=>_(`${l}`,f)):Object.keys(e).forEach(f=>_(f,e[f]));let V=b.join(D);return R&&V?`?${V}`:V}function le(e={}){O(e)||i("stringify",'"options" must be a plain object'),!u(e.encode)&&!w(e.encode)&&i("stringify",'"encode" must be a boolean'),!u(e.encodeValuesOnly)&&!w(e.encodeValuesOnly)&&i("stringify",'"encodeValuesOnly" must be a boolean'),!u(e.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(e.arrayFormat)&&i("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!u(e.allowDots)&&!w(e.allowDots)&&i("stringify",'"allowDots" must be a boolean'),!u(e.skipNulls)&&!w(e.skipNulls)&&i("stringify",'"skipNulls" must be a boolean'),!u(e.strictNullHandling)&&!w(e.strictNullHandling)&&i("stringify",'"strictNullHandling" must be a boolean'),!u(e.addQueryPrefix)&&!w(e.addQueryPrefix)&&i("stringify",'"addQueryPrefix" must be a boolean'),!u(e.delimiter)&&!M(e.delimiter)&&i("stringify",'"delimiter" must be a string'),!u(e.encodeDotInKeys)&&!w(e.encodeDotInKeys)&&i("stringify",'"encodeDotInKeys" must be a boolean'),!u(e.commaRoundTrip)&&!w(e.commaRoundTrip)&&i("stringify",'"commaRoundTrip" must be a boolean'),!u(e.allowEmptyArrays)&&!w(e.allowEmptyArrays)&&i("stringify",'"allowEmptyArrays" must be a boolean')}var ge={stringify:e=>(N(e)||i("stringify","Input must be an object"),new URLSearchParams(e).toString()),parse:e=>(M(e)||i("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(e).entries())),appendQueryString:(e,t)=>{let r=ge.stringify(t);return e.includes("?")?e.endsWith("?")||e.endsWith("&")?`${e}${r}`:`${e}&${r}`:`${e}?${r}`}};function Yt(e,t=500){let r=null;return function(...n){if(F(r))return r=Date.now(),e.apply(this,n);let o=Date.now();if(o-r>=t)return r=o,e.apply(this,n)}}function Lt(e){return!F(e)&&/^[\dA-Z\u4E00-\u9FA5]+$/i.test(e)}function vt(e){return!F(e)&&/^[A-Z\u4E00-\u9FA5]+$/i.test(e)}function Ht(e){return!F(e)&&/^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(e)}function Bt(e){return/^[\dA-Z_]+$/.test(e)}function Zt(e){de(e);let{fn:t,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:o=!1,signal:c}=e,m,p=c?new Promise((P,R)=>{let D=()=>R(me());c.addEventListener("abort",D),m=()=>c.removeEventListener("abort",D)}):null;return new Promise((P,R)=>{(async()=>{for(let h=1;h<=r;h++){if(c?.aborted)return R(me());try{let b=await Promise.race(p?[t(),p]:[t()]);return P(b)}catch(b){let E=o?n*2**(h-1):n;if(log("withRetry",`Attempt ${h}/${r} failed. Retrying in ${E}ms...`),b instanceof Error&&b.name==="AbortError"||h===r)return R(b);await new Promise(K=>setTimeout(K,E))}}})()}).finally(()=>m?.())}function de(e){O(e)||i("withRetry",'"Options" must be an object'),typeof e.fn!="function"&&i("withRetry",'"fn" must be a function that returns a Promise'),!u(e.maxAttempts)&&(!Number.isInteger(e.maxAttempts)||e.maxAttempts<1)&&i("withRetry",'"maxAttempts" must be a positive integer'),!u(e.retryDelay)&&(!x(e.retryDelay)||e.retryDelay<0)&&i("withRetry",'"retryDelay" must be a non-negative number'),!u(e.enableExponentialBackoff)&&!w(e.enableExponentialBackoff)&&i("withRetry",'"enableExponentialBackoff" must be a boolean'),!u(e.signal)&&typeof e.signal!="object"&&i("withRetry",'"signal" must be an AbortSignal')}var be="The operation was aborted";function me(e=be){let t=new Error(e);return t.name="AbortError",t}function ae(e){N(e)||i("hasCircularReference",'"obj" must be a object');let t=new Set;function r(n){if(N(n)){if(t.has(n))return!0;t.add(n);for(let o of Object.keys(n))if(r(n[o]))return!0;t.delete(n)}return!1}return r(e)}function fe(e,t,r={}){let{includeProto:n=!1,includeSymbols:o=!0,includeNonEnum:c=!1}=r,m={};return O(e)&&I(t).forEach(d=>{Q(d)&&!o||!(n?d in e:Object.hasOwn(e,d))||!c&&(n?ye(e,d):Object.getOwnPropertyDescriptor(e,d))?.enumerable===!1||(m[d]=Y(e[d]))}),m}function ye(e,t){let r=e;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Er(e,t){if(!O(e))return{};let r=Y(e),n=I(t),o=Object.keys(r).filter(c=>!n.includes(c));return fe(r,o)}function Cr(e,t){return(!x(e)||e<=0)&&i("generateRandomArray","num must be greater than 0"),L(t)||i("generateRandomArray","cb must be a function"),Array.from({length:e}).fill(0).map((r,n)=>t(r,n))}function Kr(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}import S from"dayjs";import we from"dayjs/plugin/customParseFormat.js";function A(e){return e[Math.floor(Math.random()*e.length)]}function g(e={}){x(e)&&(e={max:e});let{min:t=1,max:r=A(he())}=e;xe(t,r);let n=Math.ceil(t),o=Math.floor(r);return Math.floor(Math.random()*(o-n+1)+n)}function xe(e,t){let r=Math.ceil(e),n=Math.floor(t);Number.isSafeInteger(r)||i("getRandomInt",`The minimum value Math.ceil(${e}) should be a safe integer`),Number.isSafeInteger(n)||i("getRandomInt",`The maximum value Math.floor(${t}) should be a safe integer`),n<r&&(t>=e&&i("getRandomInt",`No integer value found between ${e} and ${t}`),i("getRandomInt",`The maximum value ${t} should be greater than the minimum value ${e}`))}function he(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((e,t)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,t+1);return Number(r)})}S.extend(we);function G(e={}){let{start:t="1800-01-01 00:00:00",end:r=S().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=e;(!S(t).isValid()||!S(r).isValid())&&i("generateRandomDate","start and end parameters must be valid date format");let o=S(t).year(),c=S(r).year(),m=g({min:o,max:c}),p=g({min:1,max:12}),d=g({min:1,max:31}),P=g(23),R=g(59),D=g(59),h=S(`${m}-${p}-${d} ${P}:${R}:${D}`);return h.isBefore(S(t))||h.isAfter(S(r))?G(e):h.format(n)}function $(e={}){let t=Ae(e),r=$e(t);Re(r);let{length:n}=t;Ee(n.min,n.max);let o=g(n),c=t.prefix||"";for(let m=0;m<o;m++)c+=r.charAt(Math.floor(Math.random()*r.length));return c+(t.suffix||"")}var Oe=16,Z=1;function Ae(e){let t=x(e);return{lowerCase:!0,upperCase:!0,number:!0,...t?{}:e,length:t?{max:e,min:e}:x(e.length)?{max:e.length,min:e.length}:{max:Oe,min:Z,...e.length},extra:t?[]:[...new Set(I(e.extra||[]))]}}function $e(e){let t="";return e.lowerCase&&(t+="abcdefghijklmnopqrstuvwxyz"),e.upperCase&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),e.number&&(t+="0123456789"),t+=I(e.extra).join(""),t}function Re(e){e.length===0&&i("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function Ee(e,t){Number.isInteger(e)||i("getRandomString","min must be an integer"),Number.isInteger(t)||i("getRandomString","max must be an integer"),e<Z&&i("getRandomString",`Minimum length cannot be less than ${Z}`),t<e&&i("getRandomString","Maximum length cannot be less than minimum length")}function Se(){let e=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],t=`${$(1)}${$({length:g({max:30,min:1})})}${$(1)}@${A(e)}`;return/\.{2,}/.test(t)?Se():t}function ln(e={}){x(e)&&(e={max:e});let{min:t=0,max:r=1,fractionDigits:n=2}=e;if(t===r)return t;if(t>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${t}`);return Math.random()*(r-t)+t}function q(e,t){(!x(e)||e<=0)&&i("generateRandomStringFromSource","num must be greater than 0"),(!y(t)||t.length===0)&&i("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<e;n++)r+=A(t);return r}function Rn(){let e=g({min:1e5,max:999999}),t=[0,1,2,3,4,5,6,7,8,9];return[e,G({format:"YYYYMMDD"}),q(3,t),q(1,[...t,"X","x"])].join("")}function Nn(){return A(["13","14","15","16","17","18","19"])+g(999999999).toString().padEnd(9,"0")}function Cn(){let e=["http://","https://"],t=[".com",".net",".org",".cn",".top"],r=[`?name=${$({length:{min:4,max:8}})}`,`?id=${g()}`,`?page=${$({length:{min:2,max:4}})}`,`?query=${$({length:{min:5,max:6}})}`,`?search=${$({length:{min:1,max:4}})}`,`?token=${$({length:{min:16,max:16}})}`];return`${A(e)}${$({length:{min:5,max:25}})}${A(t)}${A(r)}`}function to(e){return/^\d+$/.test(e)}function ro(e){return/^[A-Z]+$/i.test(e)}function no(e){return/^[A-Z]+$/.test(e)}function oo(e){return/^[\dA-Z]+$/.test(e)}function io(e){return/^[\dA-Z\u4E00-\u9FA5]+$/.test(e)}function so(e){return/^[a-z]+$/.test(e)}function ao(e){return/^[\da-z]+$/.test(e)}function mo(e){return/^[\da-z\u4E00-\u9FA5]+$/.test(e)}function fo(e){return/^[\u4E00-\u9FA5]+$/.test(e)}function po(e){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(e)}function lo(e){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function go(e){return/^(?:0|[1-9]\d*)\.\d+$/.test(e)}function bo(e){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function yo(e){return/^-(?:0|[1-9]\d*)\.\d+$/.test(e)}function wo(e){return/^-?(?:0|[1-9]\d*)$/.test(e)}function Oo(e){return/^[1-9]\d*$/.test(e)}function Ao(e){return/^(?:0|[1-9]\d*)$/.test(e)&&!Object.is(e,-0)}function $o(e){return/^-[1-9]\d*$/.test(e)}function Ro(e){return/^-(?:0|[1-9]\d*)$/.test(e)||Object.is(e,-0)}var jo=e=>{if(!M(e)||!/^-?\d+(?:\.\d+)?$/.test(e))return!1;let r=Number(e);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};import Te from"dayjs";function Do(e){return/^1[3-9]\d{9}$/.test(e)}function ko(e){return/^https?:\/\/\S+$/i.test(e)}function Io(e){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e)}function Co(e){return e===""}function je(e,t="YYYY-MM-DD HH:mm:ss"){return Te(e,t,!0).isValid()}function Fo(e){return/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(e)&&je(e.slice(6,14),"YYYYMMDD")}export{v as UtilsError,tt as base64Decode,et as base64Encode,I as castArray,ot as compose,it as composeRight,mt as debounce,se as debugWarn,At as debugWarnInvalidTypeMessage,Je as decimalToBinary,Y as deepClone,bt as deepMerge,wt as deprecated,Cr as generateRandomArray,Kr as generateRandomColor,G as generateRandomDate,Se as generateRandomEmail,ln as generateRandomFloat,Rn as generateRandomIdCard,Nn as generateRandomMobilePhone,q as generateRandomStringFromSource,g as getRandomInt,A as getRandomItem,$ as getRandomString,Cn as getRandomUrl,Ce as hasChanged,ae as hasCircularReference,y as isArray,w as isBoolean,fo as isChineseString,ee as isDate,je as isDateString,Ie as isDef,Io as isEmail,Co as isEmptyString,ro as isEnglishAphabet,po as isFloat,L as isFunction,Fo as isIdCard,wo as isInteger,so as isLowerCase,ao as isLowerCaseAndNumber,mo as isLowerCaseAndNumberAndChinese,X as isMap,Do as isMobilePhone,bo as isNegativeFloat,$o as isNegativeInteger,F as isNil,go as isNonNegativeFloat,Ao as isNonNegativeInteger,yo as isNonPositiveFloat,Ro as isNonPositiveInteger,z as isNull,x as isNumber,to as isNumberOrNumberString,N as isObject,U as isObjectLike,O as isPlainObject,lo as isPositiveFloat,Oo as isPositiveInteger,re as isPromise,te as isRegExp,J as isSet,M as isString,jo as isStringNumber,Q as isSymbol,ko as isURL,u as isUndef,no as isUpperCase,oo as isUpperCaseAndNumber,io as isUpperCaseAndNumberAndChinese,ce as objectToString,Er as omit,fe as pick,ge as qs,Nt as qsStringify,Yt as throttle,i as throwError,Ot as throwErrorInvalidTypeMessage,k as toTypeString,W as toTypeValue,vt as validatorChineseOrEnglish,Lt as validatorChineseOrEnglishOrNumber,Ht as validatorUppercaseOrNumbersOrSpecial,Bt as validatorUppercaseOrNumbersOrUnderline,Zt as withRetry};
2
+ function D(e){let t=typeof e;return e!==null&&(t==="object"||t==="function")}function _(e){return e!==null&&typeof e=="object"}var pe=Object.prototype.toString,k=e=>pe.call(e),V=e=>k(e).slice(8,-1),M=e=>typeof e=="string",x=e=>typeof e=="number"&&Number.isFinite(e),w=e=>typeof e=="boolean",W=e=>e===null,u=e=>e===void 0,Q=e=>typeof e=="symbol",y=Array.isArray,L=e=>typeof e=="function",X=e=>k(e)==="[object Map]",J=e=>k(e)==="[object Set]",Z=e=>k(e)==="[object Date]",ee=e=>k(e)==="[object RegExp]",te=e=>_(e)&&L(e?.then)&&L(e?.catch),re=e=>e==null,Ce=e=>e!=null,Fe=(e,t)=>e!==t;function O(e){return k(e)==="[object Object]"}function I(e){return y(e)?e:[e]}function et(e){let t=[],r,n="";for(;e>0;)r=Math.floor(e%2),t.push(r),e=Math.floor(e/2);for(;t.length>0;)n+=t.pop().toString();return n}var ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function tt(e){let t="",r="";for(let o=0;o<e.length;o++)r+=e[o].charCodeAt(0).toString(2).padStart(8,"0");for(let o=0;o<r.length;o+=6)t+=ne[Number.parseInt(r.slice(o,o+6).padEnd(6,"0"),2)];let n=t.length%4;return n!==0&&(t+="=".repeat(4-n)),t}function rt(e){let t="",r="";for(let n=0;n<e.length&&e[n]!=="=";n++)r+=ne.indexOf(e[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let o=Number.parseInt(r.slice(n,n+8),2);o&&(t+=String.fromCharCode(o))}return t}function it(...e){return e.reduce((t,r)=>function(...n){return r(t(...n))})}function at(...e){return e.reduce((t,r)=>function(...n){return t(r(...n))})}function ft(e,t=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}function F(e){let t=new WeakMap;function r(n){if(!_(n))return n;if(Z(n))return new Date(n);if(ee(n))return new RegExp(n);if(te(n))return n;if(t.has(n))return t.get(n);if(X(n)){let m=new Map;return t.set(n,m),n.forEach((p,d)=>m.set(r(d),r(p))),m}if(J(n)){let m=new Set;return t.set(n,m),n.forEach(p=>m.add(r(p))),m}let o=y(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));t.set(n,o);let c=Object.getOwnPropertyDescriptors(n);for(let m of Reflect.ownKeys(c)){let p=c[m];p.get||p.set?Object.defineProperty(o,m,p):Object.defineProperty(o,m,{...p,value:r(p.value)})}return o}return r(e)}function yt(e,t,r={}){return ie(oe(e,r),oe(t,r),r)}function ie(e,t,r){return y(e)?ge(e,t,r):le(e,t,r)}function le(e,t,r){if(!O(t))return t;let n=Object.getOwnPropertyDescriptors(t);return Reflect.ownKeys(t).forEach(o=>{(O(e[o])||y(e[o]))&&(O(t[o])||y(t[o]))?e[o]=ie(e[o],t[o],r):Object.defineProperty(e,o,n[o])}),e}function ge(e,t,r){let{mergeStrategy:n="replace"}=r;if(y(t))switch(n){case"merge":return e.concat(t);case"replace":return t;default:return t}return t}function oe(e,t){let{deepClone:r=!0}=t;return r?F(e):e}var U=class extends Error{constructor(t,r="Utils"){super(t),this.name=r}};function s(e,t){throw new U(`[${e}] ${t}`)}function ae(e,t){let r=M(e)?new U(`[${e}] ${t}`,"UtilsWarn"):e;console.warn(r)}var Ot=({from:e,replacement:t,version:r,type:n="API"})=>{ae(`${n}`,`${e} is about to be deprecated in version ${r}, please use ${t} instead.`)};function $t(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${V(n)} with value ${n}.`;s(e,o)}function At(e,t,r,n){let o=`Invalid params: type check failed for params "${t}". Expected ${r}, got ${V(n)} with value ${n}.`;ae(e,o)}var B=(e,t,...r)=>{if(!t)return;let n=r.length===0?"":r.length===1?r[0]:r;console[e](`[Log] ${t}:`,n)},H=(e,...t)=>{B("info",e,...t)};H.info=(e,...t)=>{B("info",e,...t)};H.error=(e,...t)=>{B("error",e,...t)};H.warn=(e,...t)=>{B("warn",e,...t)};typeof globalThis<"u"&&(globalThis.log=H);function Mt(e,t={}){de(t);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:o="indices",encodeDotInKeys:c=!1,skipNulls:m=!1,strictNullHandling:p=!1,commaRoundTrip:d=!1,allowEmptyArrays:P=!1,addQueryPrefix:R=!1,delimiter:N="&"}=t,h=t.allowDots??!1;c&&u(t.allowDots)&&(h=!0);let b=[],T=f=>r&&!n?encodeURIComponent(f):f,Y=f=>r?encodeURIComponent(f):f;function K(f,l){if(!u(l)){if(W(l)){if(m)return;b.push(`${T(f)}${p?"":"="}`);return}if(y(l)){if(l.length===0){P&&b.push(`${T(f)}[]`);return}if(o==="comma"){let j=n?l.map(Y).join(","):Y(l.join(","));if(l.length===1&&W(l[0])){if(m)return;b.push(`${T(f)}${d?"[]":""}${p?"":"="}`)}else l.length===1?b.push(`${T(f)}${d?"[]":""}=${j}`):b.push(`${T(f)}=${j}`);return}l.forEach((j,C)=>{let E=f;o==="indices"?E=`${f}[${C}]`:o==="brackets"&&(E=`${f}[]`),K(E,j)});return}if(D(l)){Object.keys(l).forEach(j=>{let C=f;c&&(C=C.replace(/\./g,"%2E"));let E=j;h?(c&&(E=E.replace(/\./g,"%2E")),K(`${C}.${E}`,l[j])):K(`${C}[${E}]`,l[j])});return}b.push(`${T(f)}=${Y(l)}`)}}if(!D(e))return"";se(e)&&s("stringify","Input object contains circular references, cannot stringify"),y(e)?e.forEach((f,l)=>K(`${l}`,f)):Object.keys(e).forEach(f=>K(f,e[f]));let v=b.join(N);return R&&v?`?${v}`:v}function de(e={}){O(e)||s("stringify",'"options" must be a plain object'),!u(e.encode)&&!w(e.encode)&&s("stringify",'"encode" must be a boolean'),!u(e.encodeValuesOnly)&&!w(e.encodeValuesOnly)&&s("stringify",'"encodeValuesOnly" must be a boolean'),!u(e.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(e.arrayFormat)&&s("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!u(e.allowDots)&&!w(e.allowDots)&&s("stringify",'"allowDots" must be a boolean'),!u(e.skipNulls)&&!w(e.skipNulls)&&s("stringify",'"skipNulls" must be a boolean'),!u(e.strictNullHandling)&&!w(e.strictNullHandling)&&s("stringify",'"strictNullHandling" must be a boolean'),!u(e.addQueryPrefix)&&!w(e.addQueryPrefix)&&s("stringify",'"addQueryPrefix" must be a boolean'),!u(e.delimiter)&&!M(e.delimiter)&&s("stringify",'"delimiter" must be a string'),!u(e.encodeDotInKeys)&&!w(e.encodeDotInKeys)&&s("stringify",'"encodeDotInKeys" must be a boolean'),!u(e.commaRoundTrip)&&!w(e.commaRoundTrip)&&s("stringify",'"commaRoundTrip" must be a boolean'),!u(e.allowEmptyArrays)&&!w(e.allowEmptyArrays)&&s("stringify",'"allowEmptyArrays" must be a boolean')}var be={stringify:e=>(D(e)||s("stringify","Input must be an object"),new URLSearchParams(e).toString()),parse:e=>(M(e)||s("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(e).entries())),appendQueryString:(e,t)=>{let r=be.stringify(t);return e.includes("?")?e.endsWith("?")||e.endsWith("&")?`${e}${r}`:`${e}&${r}`:`${e}?${r}`}};function Kt(e,t=500){let r=null;return function(...n){if(re(r))return r=Date.now(),e.apply(this,n);let o=Date.now();if(o-r>=t)return r=o,e.apply(this,n)}}function Wt(e){ye(e);let{fn:t,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:o=!1,signal:c}=e,m,p=c?new Promise((P,R)=>{let N=()=>R(me());c.addEventListener("abort",N),m=()=>c.removeEventListener("abort",N)}):null;return new Promise((P,R)=>{(async()=>{for(let h=1;h<=r;h++){if(c?.aborted)return R(me());try{let b=await Promise.race(p?[t(),p]:[t()]);return P(b)}catch(b){let T=o?n*2**(h-1):n;if(log("withRetry",`Attempt ${h}/${r} failed. Retrying in ${T}ms...`),b instanceof Error&&b.name==="AbortError"||h===r)return R(b);await new Promise(Y=>setTimeout(Y,T))}}})()}).finally(()=>m?.())}function ye(e){O(e)||s("withRetry",'"Options" must be an object'),typeof e.fn!="function"&&s("withRetry",'"fn" must be a function that returns a Promise'),!u(e.maxAttempts)&&(!Number.isInteger(e.maxAttempts)||e.maxAttempts<1)&&s("withRetry",'"maxAttempts" must be a positive integer'),!u(e.retryDelay)&&(!x(e.retryDelay)||e.retryDelay<0)&&s("withRetry",'"retryDelay" must be a non-negative number'),!u(e.enableExponentialBackoff)&&!w(e.enableExponentialBackoff)&&s("withRetry",'"enableExponentialBackoff" must be a boolean'),!u(e.signal)&&typeof e.signal!="object"&&s("withRetry",'"signal" must be an AbortSignal')}var xe="The operation was aborted";function me(e=xe){let t=new Error(e);return t.name="AbortError",t}function se(e){D(e)||s("hasCircularReference",'"obj" must be a object');let t=new Set;function r(n){if(D(n)){if(t.has(n))return!0;t.add(n);for(let o of Object.keys(n))if(r(n[o]))return!0;t.delete(n)}return!1}return r(e)}function fe(e,t,r={}){let{includeProto:n=!1,includeSymbols:o=!0,includeNonEnum:c=!1}=r,m={};return O(e)&&I(t).forEach(d=>{Q(d)&&!o||!(n?d in e:Object.hasOwn(e,d))||!c&&(n?he(e,d):Object.getOwnPropertyDescriptor(e,d))?.enumerable===!1||(m[d]=F(e[d]))}),m}function he(e,t){let r=e;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function $r(e,t){if(!O(e))return{};let r=F(e),n=I(t),o=Object.keys(r).filter(c=>!n.includes(c));return fe(r,o)}function Nr(e,t){return(!x(e)||e<=0)&&s("generateRandomArray","num must be greater than 0"),L(t)||s("generateRandomArray","cb must be a function"),Array.from({length:e}).fill(0).map((r,n)=>t(r,n))}function Cr(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}import S from"dayjs";import $e from"dayjs/plugin/customParseFormat.js";function $(e){return e[Math.floor(Math.random()*e.length)]}function g(e={}){x(e)&&(e={max:e});let{min:t=1,max:r=$(Oe())}=e;we(t,r);let n=Math.ceil(t),o=Math.floor(r);return Math.floor(Math.random()*(o-n+1)+n)}function we(e,t){let r=Math.ceil(e),n=Math.floor(t);Number.isSafeInteger(r)||s("getRandomInt",`The minimum value Math.ceil(${e}) should be a safe integer`),Number.isSafeInteger(n)||s("getRandomInt",`The maximum value Math.floor(${t}) should be a safe integer`),n<r&&(t>=e&&s("getRandomInt",`No integer value found between ${e} and ${t}`),s("getRandomInt",`The maximum value ${t} should be greater than the minimum value ${e}`))}function Oe(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((e,t)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,t+1);return Number(r)})}S.extend($e);function G(e={}){let{start:t="1800-01-01 00:00:00",end:r=S().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=e;(!S(t).isValid()||!S(r).isValid())&&s("generateRandomDate","start and end parameters must be valid date format");let o=S(t).year(),c=S(r).year(),m=g({min:o,max:c}),p=g({min:1,max:12}),d=g({min:1,max:31}),P=g(23),R=g(59),N=g(59),h=S(`${m}-${p}-${d} ${P}:${R}:${N}`);return h.isBefore(S(t))||h.isAfter(S(r))?G(e):h.format(n)}function A(e={}){let t=Re(e),r=Te(t);Se(r);let{length:n}=t;je(n.min,n.max);let o=g(n),c=t.prefix||"";for(let m=0;m<o;m++)c+=r.charAt(Math.floor(Math.random()*r.length));return c+(t.suffix||"")}var Ae=16,z=1;function Re(e){let t=x(e);return{lowerCase:!0,upperCase:!0,number:!0,...t?{}:e,length:t?{max:e,min:e}:x(e.length)?{max:e.length,min:e.length}:{max:Ae,min:z,...e.length},extra:t?[]:[...new Set(I(e.extra||[]))]}}function Te(e){let t="";return e.lowerCase&&(t+="abcdefghijklmnopqrstuvwxyz"),e.upperCase&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),e.number&&(t+="0123456789"),t+=I(e.extra).join(""),t}function Se(e){e.length===0&&s("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function je(e,t){Number.isInteger(e)||s("getRandomString","min must be an integer"),Number.isInteger(t)||s("getRandomString","max must be an integer"),e<z&&s("getRandomString",`Minimum length cannot be less than ${z}`),t<e&&s("getRandomString","Maximum length cannot be less than minimum length")}function Ee(){let e=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],t=`${A(1)}${A({length:g({max:30,min:1})})}${A(1)}@${$(e)}`;return/\.{2,}/.test(t)?Ee():t}function cn(e={}){x(e)&&(e={max:e});let{min:t=0,max:r=1,fractionDigits:n=2}=e;if(t===r)return t;if(t>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${t}`);return Math.random()*(r-t)+t}function q(e,t){(!x(e)||e<=0)&&s("generateRandomStringFromSource","num must be greater than 0"),(!y(t)||t.length===0)&&s("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<e;n++)r+=$(t);return r}function On(){let e=g({min:1e5,max:999999}),t=[0,1,2,3,4,5,6,7,8,9];return[e,G({format:"YYYYMMDD"}),q(3,t),q(1,[...t,"X","x"])].join("")}function Sn(){return $(["13","14","15","16","17","18","19"])+g(999999999).toString().padEnd(9,"0")}function Nn(){let e=["http://","https://"],t=[".com",".net",".org",".cn",".top"],r=[`?name=${A({length:{min:4,max:8}})}`,`?id=${g()}`,`?page=${A({length:{min:2,max:4}})}`,`?query=${A({length:{min:5,max:6}})}`,`?search=${A({length:{min:1,max:4}})}`,`?token=${A({length:{min:16,max:16}})}`];return`${$(e)}${A({length:{min:5,max:25}})}${$(t)}${$(r)}`}function Zn(e){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(e)}function eo(e){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function to(e){return/^(?:0|[1-9]\d*)\.\d+$/.test(e)}function ro(e){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(e)}function no(e){return/^-(?:0|[1-9]\d*)\.\d+$/.test(e)}function ao(e){return/^-?(?:0|[1-9]\d*)$/.test(e)}function so(e){return/^[1-9]\d*$/.test(e)}function mo(e){return/^(?:0|[1-9]\d*)$/.test(e)&&!Object.is(e,-0)}function fo(e){return/^-[1-9]\d*$/.test(e)}function co(e){return/^-(?:0|[1-9]\d*)$/.test(e)||Object.is(e,-0)}import De from"dayjs";function ce(e,t="YYYY-MM-DD HH:mm:ss"){return De(e,t,!0).isValid()}function yo(e){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e)}function wo(e){return e===""}import ue from"dayjs";function To(e){if(!/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(e))return!1;let r=e.slice(6,14);return ce(r,"YYYYMMDD")&&ue(r,"YYYYMMDD").isBefore(ue())}function Eo(e){return/^1[3-9]\d{9}$/.test(e)}var No=e=>{if(!M(e)||!/^-?\d+(?:\.\d+)?$/.test(e))return!1;let r=Number(e);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};function Co(e){return/^https?:\/\/\S+$/i.test(e)}export{U as UtilsError,rt as base64Decode,tt as base64Encode,I as castArray,it as compose,at as composeRight,ft as debounce,ae as debugWarn,At as debugWarnInvalidTypeMessage,et as decimalToBinary,F as deepClone,yt as deepMerge,Ot as deprecated,Nr as generateRandomArray,Cr as generateRandomColor,G as generateRandomDate,Ee as generateRandomEmail,cn as generateRandomFloat,On as generateRandomIdCard,Sn as generateRandomMobilePhone,q as generateRandomStringFromSource,g as getRandomInt,$ as getRandomItem,A as getRandomString,Nn as getRandomUrl,Fe as hasChanged,se as hasCircularReference,y as isArray,w as isBoolean,Z as isDate,ce as isDateString,Ce as isDef,yo as isEmail,wo as isEmptyString,Zn as isFloat,L as isFunction,To as isIdCard,ao as isInteger,X as isMap,Eo as isMobilePhone,ro as isNegativeFloat,fo as isNegativeInteger,re as isNil,to as isNonNegativeFloat,mo as isNonNegativeInteger,no as isNonPositiveFloat,co as isNonPositiveInteger,W as isNull,x as isNumber,D as isObject,_ as isObjectLike,O as isPlainObject,eo as isPositiveFloat,so as isPositiveInteger,te as isPromise,ee as isRegExp,J as isSet,M as isString,No as isStringNumber,Q as isSymbol,Co as isURL,u as isUndef,pe as objectToString,$r as omit,fe as pick,be as qs,Mt as qsStringify,Kt as throttle,s as throwError,$t as throwErrorInvalidTypeMessage,k as toTypeString,V as toTypeValue,Wt as withRetry};
@@ -1 +1 @@
1
- "use strict";var lntvowUtils=(()=>{var ee=Object.create;var gt=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var oe=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var Ut=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),se=(t,e)=>{for(var r in e)gt(t,r,{get:e[r],enumerable:!0})},Kt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ne(e))!ie.call(t,i)&&i!==r&&gt(t,i,{get:()=>e[i],enumerable:!(n=re(e,i))||n.enumerable});return t};var At=(t,e,r)=>(r=t!=null?ee(oe(t)):{},Kt(e||!t||!t.__esModule?gt(r,"default",{value:t,enumerable:!0}):r,t)),ae=t=>Kt(gt({},"__esModule",{value:!0}),t);var Lt=Ut((It,Ct)=>{"use strict";(function(t,e){typeof It=="object"&&typeof Ct<"u"?Ct.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(It,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",x="minute",p="hour",M="day",h="week",E="month",C="quarter",N="year",v="date",Y="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,O={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(f){var s=["th","st","nd","rd"],o=f%100;return"["+f+(s[(o-20)%10]||s[o]||s[0])+"]"}},D=function(f,s,o){var u=String(f);return!u||u.length>=s?f:""+Array(s+1-u.length).join(o)+f},$={s:D,z:function(f){var s=-f.utcOffset(),o=Math.abs(s),u=Math.floor(o/60),a=o%60;return(s<=0?"+":"-")+D(u,2,"0")+":"+D(a,2,"0")},m:function f(s,o){if(s.date()<o.date())return-f(o,s);var u=12*(o.year()-s.year())+(o.month()-s.month()),a=s.clone().add(u,E),m=o-a<0,d=s.clone().add(u+(m?-1:1),E);return+(-(u+(o-a)/(m?a-d:d-a))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:E,y:N,w:h,d:M,D:v,h:p,m:x,s:i,ms:n,Q:C}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},w="en",R={};R[w]=O;var L="$isDayjsObject",j=function(f){return f instanceof F||!(!f||!f[L])},U=function f(s,o,u){var a;if(!s)return w;if(typeof s=="string"){var m=s.toLowerCase();R[m]&&(a=m),o&&(R[m]=o,a=m);var d=s.split("-");if(!a&&d.length>1)return f(d[0])}else{var g=s.name;R[g]=s,a=g}return!u&&a&&(w=a),a||!u&&w},S=function(f,s){if(j(f))return f.clone();var o=typeof s=="object"?s:{};return o.date=f,o.args=arguments,new F(o)},b=$;b.l=U,b.i=j,b.w=function(f,s){return S(f,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var F=function(){function f(o){this.$L=U(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[L]=!0}var s=f.prototype;return s.parse=function(o){this.$d=function(u){var a=u.date,m=u.utc;if(a===null)return new Date(NaN);if(b.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var d=a.match(c);if(d){var g=d[2]-1||0,A=(d[7]||"0").substring(0,3);return m?new Date(Date.UTC(d[1],g,d[3]||1,d[4]||0,d[5]||0,d[6]||0,A)):new Date(d[1],g,d[3]||1,d[4]||0,d[5]||0,d[6]||0,A)}}return new Date(a)}(o),this.init()},s.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},s.$utils=function(){return b},s.isValid=function(){return this.$d.toString()!==Y},s.isSame=function(o,u){var a=S(o);return this.startOf(u)<=a&&a<=this.endOf(u)},s.isAfter=function(o,u){return S(o)<this.startOf(u)},s.isBefore=function(o,u){return this.endOf(u)<S(o)},s.$g=function(o,u,a){return b.u(o)?this[u]:this.set(a,o)},s.unix=function(){return Math.floor(this.valueOf()/1e3)},s.valueOf=function(){return this.$d.getTime()},s.startOf=function(o,u){var a=this,m=!!b.u(u)||u,d=b.p(o),g=function(X,_){var G=b.w(a.$u?Date.UTC(a.$y,_,X):new Date(a.$y,_,X),a);return m?G:G.endOf(M)},A=function(X,_){return b.w(a.toDate()[X].apply(a.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(_)),a)},T=this.$W,P=this.$M,W=this.$D,nt="set"+(this.$u?"UTC":"");switch(d){case N:return m?g(1,0):g(31,11);case E:return m?g(1,P):g(0,P+1);case h:var J=this.$locale().weekStart||0,at=(T<J?T+7:T)-J;return g(m?W-at:W+(6-at),P);case M:case v:return A(nt+"Hours",0);case p:return A(nt+"Minutes",1);case x:return A(nt+"Seconds",2);case i:return A(nt+"Milliseconds",3);default:return this.clone()}},s.endOf=function(o){return this.startOf(o,!1)},s.$set=function(o,u){var a,m=b.p(o),d="set"+(this.$u?"UTC":""),g=(a={},a[M]=d+"Date",a[v]=d+"Date",a[E]=d+"Month",a[N]=d+"FullYear",a[p]=d+"Hours",a[x]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[m],A=m===M?this.$D+(u-this.$W):u;if(m===E||m===N){var T=this.clone().set(v,1);T.$d[g](A),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else g&&this.$d[g](A);return this.init(),this},s.set=function(o,u){return this.clone().$set(o,u)},s.get=function(o){return this[b.p(o)]()},s.add=function(o,u){var a,m=this;o=Number(o);var d=b.p(u),g=function(P){var W=S(m);return b.w(W.date(W.date()+Math.round(P*o)),m)};if(d===E)return this.set(E,this.$M+o);if(d===N)return this.set(N,this.$y+o);if(d===M)return g(1);if(d===h)return g(7);var A=(a={},a[x]=e,a[p]=r,a[i]=t,a)[d]||1,T=this.$d.getTime()+o*A;return b.w(T,this)},s.subtract=function(o,u){return this.add(-1*o,u)},s.format=function(o){var u=this,a=this.$locale();if(!this.isValid())return a.invalidDate||Y;var m=o||"YYYY-MM-DDTHH:mm:ssZ",d=b.z(this),g=this.$H,A=this.$m,T=this.$M,P=a.weekdays,W=a.months,nt=a.meridiem,J=function(_,G,tt,ot){return _&&(_[G]||_(u,m))||tt[G].slice(0,ot)},at=function(_){return b.s(g%12||12,_,"0")},X=nt||function(_,G,tt){var ot=_<12?"AM":"PM";return tt?ot.toLowerCase():ot};return m.replace(y,function(_,G){return G||function(tt){switch(tt){case"YY":return String(u.$y).slice(-2);case"YYYY":return b.s(u.$y,4,"0");case"M":return T+1;case"MM":return b.s(T+1,2,"0");case"MMM":return J(a.monthsShort,T,W,3);case"MMMM":return J(W,T);case"D":return u.$D;case"DD":return b.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return J(a.weekdaysMin,u.$W,P,2);case"ddd":return J(a.weekdaysShort,u.$W,P,3);case"dddd":return P[u.$W];case"H":return String(g);case"HH":return b.s(g,2,"0");case"h":return at(1);case"hh":return at(2);case"a":return X(g,A,!0);case"A":return X(g,A,!1);case"m":return String(A);case"mm":return b.s(A,2,"0");case"s":return String(u.$s);case"ss":return b.s(u.$s,2,"0");case"SSS":return b.s(u.$ms,3,"0");case"Z":return d}return null}(_)||d.replace(":","")})},s.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},s.diff=function(o,u,a){var m,d=this,g=b.p(u),A=S(o),T=(A.utcOffset()-this.utcOffset())*e,P=this-A,W=function(){return b.m(d,A)};switch(g){case N:m=W()/12;break;case E:m=W();break;case C:m=W()/3;break;case h:m=(P-T)/6048e5;break;case M:m=(P-T)/864e5;break;case p:m=P/r;break;case x:m=P/e;break;case i:m=P/t;break;default:m=P}return a?m:b.a(m)},s.daysInMonth=function(){return this.endOf(E).$D},s.$locale=function(){return R[this.$L]},s.locale=function(o,u){if(!o)return this.$L;var a=this.clone(),m=U(o,u,!0);return m&&(a.$L=m),a},s.clone=function(){return b.w(this.$d,this)},s.toDate=function(){return new Date(this.valueOf())},s.toJSON=function(){return this.isValid()?this.toISOString():null},s.toISOString=function(){return this.$d.toISOString()},s.toString=function(){return this.$d.toUTCString()},f}(),K=F.prototype;return S.prototype=K,[["$ms",n],["$s",i],["$m",x],["$H",p],["$W",M],["$M",E],["$y",N],["$D",v]].forEach(function(f){K[f[1]]=function(s){return this.$g(s,f[0],f[1])}}),S.extend=function(f,s){return f.$i||(f(s,F,S),f.$i=!0),S},S.locale=U,S.isDayjs=j,S.unix=function(f){return S(1e3*f)},S.en=R[w],S.Ls=R,S.p={},S})});var Qt=Ut((_t,Ft)=>{"use strict";(function(t,e){typeof _t=="object"&&typeof Ft<"u"?Ft.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(_t,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,x=/\d*[^-_:/,()\s\d]+/,p={},M=function(c){return(c=+c)+(c>68?1900:2e3)},h=function(c){return function(y){this[c]=+y}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var O=y.match(/([+-]|\d\d)/g),D=60*O[1]+(+O[2]||0);return D===0?0:O[0]==="+"?-D:D}(c)}],C=function(c){var y=p[c];return y&&(y.indexOf?y:y.s.concat(y.f))},N=function(c,y){var O,D=p.meridiem;if(D){for(var $=1;$<=24;$+=1)if(c.indexOf(D($,0,y))>-1){O=$>12;break}}else O=c===(y?"pm":"PM");return O},v={A:[x,function(c){this.afternoon=N(c,!1)}],a:[x,function(c){this.afternoon=N(c,!0)}],Q:[r,function(c){this.month=3*(c-1)+1}],S:[r,function(c){this.milliseconds=100*+c}],SS:[n,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[i,h("seconds")],ss:[i,h("seconds")],m:[i,h("minutes")],mm:[i,h("minutes")],H:[i,h("hours")],h:[i,h("hours")],HH:[i,h("hours")],hh:[i,h("hours")],D:[i,h("day")],DD:[n,h("day")],Do:[x,function(c){var y=p.ordinal,O=c.match(/\d+/);if(this.day=O[0],y)for(var D=1;D<=31;D+=1)y(D).replace(/\[|\]/g,"")===c&&(this.day=D)}],w:[i,h("week")],ww:[n,h("week")],M:[i,h("month")],MM:[n,h("month")],MMM:[x,function(c){var y=C("months"),O=(C("monthsShort")||y.map(function(D){return D.slice(0,3)})).indexOf(c)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[x,function(c){var y=C("months").indexOf(c)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,h("year")],YY:[n,function(c){this.year=M(c)}],YYYY:[/\d{4}/,h("year")],Z:E,ZZ:E};function Y(c){var y,O;y=c,O=p&&p.formats;for(var D=(c=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,b,F){var K=F&&F.toUpperCase();return b||O[F]||t[F]||O[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(f,s,o){return s||o.slice(1)})})).match(e),$=D.length,w=0;w<$;w+=1){var R=D[w],L=v[R],j=L&&L[0],U=L&&L[1];D[w]=U?{regex:j,parser:U}:R.replace(/^\[|\]$/g,"")}return function(S){for(var b={},F=0,K=0;F<$;F+=1){var f=D[F];if(typeof f=="string")K+=f.length;else{var s=f.regex,o=f.parser,u=S.slice(K),a=s.exec(u)[0];o.call(b,a),S=S.replace(a,"")}}return function(m){var d=m.afternoon;if(d!==void 0){var g=m.hours;d?g<12&&(m.hours+=12):g===12&&(m.hours=0),delete m.afternoon}}(b),b}}return function(c,y,O){O.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(M=c.parseTwoDigitYear);var D=y.prototype,$=D.parse;D.parse=function(w){var R=w.date,L=w.utc,j=w.args;this.$u=L;var U=j[1];if(typeof U=="string"){var S=j[2]===!0,b=j[3]===!0,F=S||b,K=j[2];b&&(K=j[2]),p=this.$locale(),!S&&K&&(p=O.Ls[K]),this.$d=function(u,a,m,d){try{if(["x","X"].indexOf(a)>-1)return new Date((a==="X"?1e3:1)*u);var g=Y(a)(u),A=g.year,T=g.month,P=g.day,W=g.hours,nt=g.minutes,J=g.seconds,at=g.milliseconds,X=g.zone,_=g.week,G=new Date,tt=P||(A||T?1:G.getDate()),ot=A||G.getFullYear(),dt=0;A&&!T||(dt=T>0?T-1:G.getMonth());var pt,Mt=W||0,Ot=nt||0,Dt=J||0,St=at||0;return X?new Date(Date.UTC(ot,dt,tt,Mt,Ot,Dt,St+60*X.offset*1e3)):m?new Date(Date.UTC(ot,dt,tt,Mt,Ot,Dt,St)):(pt=new Date(ot,dt,tt,Mt,Ot,Dt,St),_&&(pt=d(pt).week(_).toDate()),pt)}catch{return new Date("")}}(R,U,L,O),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),F&&R!=this.format(U)&&(this.$d=new Date("")),p={}}else if(U instanceof Array)for(var f=U.length,s=1;s<=f;s+=1){j[1]=U[s-1];var o=O.apply(this,j);if(o.isValid()){this.$d=o.$d,this.$L=o.$L,this.init();break}s===f&&(this.$d=new Date(""))}else $.call(this,w)}}})});var yr={};se(yr,{UtilsError:()=>lt,base64Decode:()=>le,base64Encode:()=>me,castArray:()=>st,compose:()=>de,composeRight:()=>pe,debounce:()=>ge,debugWarn:()=>Nt,debugWarnInvalidTypeMessage:()=>we,decimalToBinary:()=>ce,deepClone:()=>ft,deepMerge:()=>he,deprecated:()=>xe,generateRandomArray:()=>Ye,generateRandomColor:()=>Pe,generateRandomDate:()=>$t,generateRandomEmail:()=>qt,generateRandomFloat:()=>Ke,generateRandomIdCard:()=>We,generateRandomMobilePhone:()=>Ze,generateRandomStringFromSource:()=>wt,getRandomInt:()=>I,getRandomItem:()=>B,getRandomString:()=>Q,getRandomUrl:()=>ze,hasChanged:()=>fe,hasCircularReference:()=>Yt,isArray:()=>H,isBoolean:()=>z,isChineseString:()=>er,isDate:()=>jt,isDateString:()=>te,isDef:()=>ue,isEmail:()=>gr,isEmptyString:()=>hr,isEnglishAphabet:()=>Be,isFloat:()=>rr,isFunction:()=>mt,isIdCard:()=>br,isInteger:()=>ar,isLowerCase:()=>qe,isLowerCaseAndNumber:()=>Je,isLowerCaseAndNumberAndChinese:()=>tr,isMap:()=>Et,isMobilePhone:()=>dr,isNegativeFloat:()=>ir,isNegativeInteger:()=>cr,isNil:()=>ut,isNonNegativeFloat:()=>or,isNonNegativeInteger:()=>fr,isNonPositiveFloat:()=>sr,isNonPositiveInteger:()=>mr,isNull:()=>bt,isNumber:()=>Z,isNumberOrNumberString:()=>Ve,isObject:()=>et,isObjectLike:()=>ct,isPlainObject:()=>V,isPositiveFloat:()=>nr,isPositiveInteger:()=>ur,isPromise:()=>kt,isRegExp:()=>vt,isSet:()=>Rt,isString:()=>rt,isStringNumber:()=>lr,isSymbol:()=>Tt,isURL:()=>pr,isUndef:()=>k,isUpperCase:()=>Ge,isUpperCaseAndNumber:()=>Qe,isUpperCaseAndNumberAndChinese:()=>Xe,objectToString:()=>Wt,omit:()=>Ne,pick:()=>Pt,qs:()=>Bt,qsStringify:()=>Me,throttle:()=>De,throwError:()=>l,throwErrorInvalidTypeMessage:()=>$e,toTypeString:()=>it,toTypeValue:()=>ht,validatorChineseOrEnglish:()=>Ae,validatorChineseOrEnglishOrNumber:()=>Se,validatorUppercaseOrNumbersOrSpecial:()=>Te,validatorUppercaseOrNumbersOrUnderline:()=>Ee,withRetry:()=>Re});function et(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function ct(t){return t!==null&&typeof t=="object"}var Wt=Object.prototype.toString,it=t=>Wt.call(t),ht=t=>it(t).slice(8,-1),rt=t=>typeof t=="string",Z=t=>typeof t=="number"&&Number.isFinite(t),z=t=>typeof t=="boolean",bt=t=>t===null,k=t=>t===void 0,Tt=t=>typeof t=="symbol",H=Array.isArray,mt=t=>typeof t=="function",Et=t=>it(t)==="[object Map]",Rt=t=>it(t)==="[object Set]",jt=t=>it(t)==="[object Date]",vt=t=>it(t)==="[object RegExp]",kt=t=>ct(t)&&mt(t?.then)&&mt(t?.catch),ut=t=>t==null,ue=t=>t!=null,fe=(t,e)=>t!==e;function V(t){return it(t)==="[object Object]"}function st(t){return H(t)?t:[t]}function ce(t){let e=[],r,n="";for(;t>0;)r=Math.floor(t%2),e.push(r),t=Math.floor(t/2);for(;e.length>0;)n+=e.pop().toString();return n}var Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function me(t){let e="",r="";for(let i=0;i<t.length;i++)r+=t[i].charCodeAt(0).toString(2).padStart(8,"0");for(let i=0;i<r.length;i+=6)e+=Zt[Number.parseInt(r.slice(i,i+6).padEnd(6,"0"),2)];let n=e.length%4;return n!==0&&(e+="=".repeat(4-n)),e}function le(t){let e="",r="";for(let n=0;n<t.length&&t[n]!=="=";n++)r+=Zt.indexOf(t[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let i=Number.parseInt(r.slice(n,n+8),2);i&&(e+=String.fromCharCode(i))}return e}function de(...t){return t.reduce((e,r)=>function(...n){return r(e(...n))})}function pe(...t){return t.reduce((e,r)=>function(...n){return e(r(...n))})}function ge(t,e=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{t.apply(this,n)},e)}}function ft(t){let e=new WeakMap;function r(n){if(!ct(n))return n;if(jt(n))return new Date(n);if(vt(n))return new RegExp(n);if(kt(n))return n;if(e.has(n))return e.get(n);if(Et(n)){let p=new Map;return e.set(n,p),n.forEach((M,h)=>p.set(r(h),r(M))),p}if(Rt(n)){let p=new Set;return e.set(n,p),n.forEach(M=>p.add(r(M))),p}let i=H(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));e.set(n,i);let x=Object.getOwnPropertyDescriptors(n);for(let p of Reflect.ownKeys(x)){let M=x[p];M.get||M.set?Object.defineProperty(i,p,M):Object.defineProperty(i,p,{...M,value:r(M.value)})}return i}return r(t)}function he(t,e,r={}){return Vt(zt(t,r),zt(e,r),r)}function Vt(t,e,r){return H(t)?ye(t,e,r):be(t,e,r)}function be(t,e,r){if(!V(e))return e;let n=Object.getOwnPropertyDescriptors(e);return Reflect.ownKeys(e).forEach(i=>{(V(t[i])||H(t[i]))&&(V(e[i])||H(e[i]))?t[i]=Vt(t[i],e[i],r):Object.defineProperty(t,i,n[i])}),t}function ye(t,e,r){let{mergeStrategy:n="replace"}=r;if(H(e))switch(n){case"merge":return t.concat(e);case"replace":return e;default:return e}return e}function zt(t,e){let{deepClone:r=!0}=e;return r?ft(t):t}var lt=class extends Error{constructor(e,r="Utils"){super(e),this.name=r}};function l(t,e){throw new lt(`[${t}] ${e}`)}function Nt(t,e){let r=rt(t)?new lt(`[${t}] ${e}`,"UtilsWarn"):t;console.warn(r)}var xe=({from:t,replacement:e,version:r,type:n="API"})=>{Nt(`${n}`,`${t} is about to be deprecated in version ${r}, please use ${e} instead.`)};function $e(t,e,r,n){let i=`Invalid params: type check failed for params "${e}". Expected ${r}, got ${ht(n)} with value ${n}.`;l(t,i)}function we(t,e,r,n){let i=`Invalid params: type check failed for params "${e}". Expected ${r}, got ${ht(n)} with value ${n}.`;Nt(t,i)}var yt=(t,e,...r)=>{if(!e)return;let n=r.length===0?"":r.length===1?r[0]:r;console[t](`[Log] ${e}:`,n)},xt=(t,...e)=>{yt("info",t,...e)};xt.info=(t,...e)=>{yt("info",t,...e)};xt.error=(t,...e)=>{yt("error",t,...e)};xt.warn=(t,...e)=>{yt("warn",t,...e)};typeof globalThis<"u"&&(globalThis.log=xt);function Me(t,e={}){Oe(e);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:i="indices",encodeDotInKeys:x=!1,skipNulls:p=!1,strictNullHandling:M=!1,commaRoundTrip:h=!1,allowEmptyArrays:E=!1,addQueryPrefix:C=!1,delimiter:N="&"}=e,v=e.allowDots??!1;x&&k(e.allowDots)&&(v=!0);let Y=[],c=$=>r&&!n?encodeURIComponent($):$,y=$=>r?encodeURIComponent($):$;function O($,w){if(!k(w)){if(bt(w)){if(p)return;Y.push(`${c($)}${M?"":"="}`);return}if(H(w)){if(w.length===0){E&&Y.push(`${c($)}[]`);return}if(i==="comma"){let R=n?w.map(y).join(","):y(w.join(","));if(w.length===1&&bt(w[0])){if(p)return;Y.push(`${c($)}${h?"[]":""}${M?"":"="}`)}else w.length===1?Y.push(`${c($)}${h?"[]":""}=${R}`):Y.push(`${c($)}=${R}`);return}w.forEach((R,L)=>{let j=$;i==="indices"?j=`${$}[${L}]`:i==="brackets"&&(j=`${$}[]`),O(j,R)});return}if(et(w)){Object.keys(w).forEach(R=>{let L=$;x&&(L=L.replace(/\./g,"%2E"));let j=R;v?(x&&(j=j.replace(/\./g,"%2E")),O(`${L}.${j}`,w[R])):O(`${L}[${j}]`,w[R])});return}Y.push(`${c($)}=${y(w)}`)}}if(!et(t))return"";Yt(t)&&l("stringify","Input object contains circular references, cannot stringify"),H(t)?t.forEach(($,w)=>O(`${w}`,$)):Object.keys(t).forEach($=>O($,t[$]));let D=Y.join(N);return C&&D?`?${D}`:D}function Oe(t={}){V(t)||l("stringify",'"options" must be a plain object'),!k(t.encode)&&!z(t.encode)&&l("stringify",'"encode" must be a boolean'),!k(t.encodeValuesOnly)&&!z(t.encodeValuesOnly)&&l("stringify",'"encodeValuesOnly" must be a boolean'),!k(t.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(t.arrayFormat)&&l("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!k(t.allowDots)&&!z(t.allowDots)&&l("stringify",'"allowDots" must be a boolean'),!k(t.skipNulls)&&!z(t.skipNulls)&&l("stringify",'"skipNulls" must be a boolean'),!k(t.strictNullHandling)&&!z(t.strictNullHandling)&&l("stringify",'"strictNullHandling" must be a boolean'),!k(t.addQueryPrefix)&&!z(t.addQueryPrefix)&&l("stringify",'"addQueryPrefix" must be a boolean'),!k(t.delimiter)&&!rt(t.delimiter)&&l("stringify",'"delimiter" must be a string'),!k(t.encodeDotInKeys)&&!z(t.encodeDotInKeys)&&l("stringify",'"encodeDotInKeys" must be a boolean'),!k(t.commaRoundTrip)&&!z(t.commaRoundTrip)&&l("stringify",'"commaRoundTrip" must be a boolean'),!k(t.allowEmptyArrays)&&!z(t.allowEmptyArrays)&&l("stringify",'"allowEmptyArrays" must be a boolean')}var Bt={stringify:t=>(et(t)||l("stringify","Input must be an object"),new URLSearchParams(t).toString()),parse:t=>(rt(t)||l("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(t).entries())),appendQueryString:(t,e)=>{let r=Bt.stringify(e);return t.includes("?")?t.endsWith("?")||t.endsWith("&")?`${t}${r}`:`${t}&${r}`:`${t}?${r}`}};function De(t,e=500){let r=null;return function(...n){if(ut(r))return r=Date.now(),t.apply(this,n);let i=Date.now();if(i-r>=e)return r=i,t.apply(this,n)}}function Se(t){return!ut(t)&&/^[\dA-Z\u4E00-\u9FA5]+$/i.test(t)}function Ae(t){return!ut(t)&&/^[A-Z\u4E00-\u9FA5]+$/i.test(t)}function Te(t){return!ut(t)&&/^[\d!"#$%&'()*+,./:;<=>?@A-Z[\\\]^_`{|}~]+$/.test(t)}function Ee(t){return/^[\dA-Z_]+$/.test(t)}function Re(t){je(t);let{fn:e,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:i=!1,signal:x}=t,p,M=x?new Promise((E,C)=>{let N=()=>C(Gt());x.addEventListener("abort",N),p=()=>x.removeEventListener("abort",N)}):null;return new Promise((E,C)=>{(async()=>{for(let v=1;v<=r;v++){if(x?.aborted)return C(Gt());try{let Y=await Promise.race(M?[e(),M]:[e()]);return E(Y)}catch(Y){let c=i?n*2**(v-1):n;if(log("withRetry",`Attempt ${v}/${r} failed. Retrying in ${c}ms...`),Y instanceof Error&&Y.name==="AbortError"||v===r)return C(Y);await new Promise(y=>setTimeout(y,c))}}})()}).finally(()=>p?.())}function je(t){V(t)||l("withRetry",'"Options" must be an object'),typeof t.fn!="function"&&l("withRetry",'"fn" must be a function that returns a Promise'),!k(t.maxAttempts)&&(!Number.isInteger(t.maxAttempts)||t.maxAttempts<1)&&l("withRetry",'"maxAttempts" must be a positive integer'),!k(t.retryDelay)&&(!Z(t.retryDelay)||t.retryDelay<0)&&l("withRetry",'"retryDelay" must be a non-negative number'),!k(t.enableExponentialBackoff)&&!z(t.enableExponentialBackoff)&&l("withRetry",'"enableExponentialBackoff" must be a boolean'),!k(t.signal)&&typeof t.signal!="object"&&l("withRetry",'"signal" must be an AbortSignal')}var ve="The operation was aborted";function Gt(t=ve){let e=new Error(t);return e.name="AbortError",e}function Yt(t){et(t)||l("hasCircularReference",'"obj" must be a object');let e=new Set;function r(n){if(et(n)){if(e.has(n))return!0;e.add(n);for(let i of Object.keys(n))if(r(n[i]))return!0;e.delete(n)}return!1}return r(t)}function Pt(t,e,r={}){let{includeProto:n=!1,includeSymbols:i=!0,includeNonEnum:x=!1}=r,p={};return V(t)&&st(e).forEach(h=>{Tt(h)&&!i||!(n?h in t:Object.hasOwn(t,h))||!x&&(n?ke(t,h):Object.getOwnPropertyDescriptor(t,h))?.enumerable===!1||(p[h]=ft(t[h]))}),p}function ke(t,e){let r=t;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ne(t,e){if(!V(t))return{};let r=ft(t),n=st(e),i=Object.keys(r).filter(x=>!n.includes(x));return Pt(r,i)}function Ye(t,e){return(!Z(t)||t<=0)&&l("generateRandomArray","num must be greater than 0"),mt(e)||l("generateRandomArray","cb must be a function"),Array.from({length:t}).fill(0).map((r,n)=>e(r,n))}function Pe(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}var q=At(Lt(),1),Xt=At(Qt(),1);function B(t){return t[Math.floor(Math.random()*t.length)]}function I(t={}){Z(t)&&(t={max:t});let{min:e=1,max:r=B(Ce())}=t;Ie(e,r);let n=Math.ceil(e),i=Math.floor(r);return Math.floor(Math.random()*(i-n+1)+n)}function Ie(t,e){let r=Math.ceil(t),n=Math.floor(e);Number.isSafeInteger(r)||l("getRandomInt",`The minimum value Math.ceil(${t}) should be a safe integer`),Number.isSafeInteger(n)||l("getRandomInt",`The maximum value Math.floor(${e}) should be a safe integer`),n<r&&(e>=t&&l("getRandomInt",`No integer value found between ${t} and ${e}`),l("getRandomInt",`The maximum value ${e} should be greater than the minimum value ${t}`))}function Ce(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((t,e)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,e+1);return Number(r)})}q.default.extend(Xt.default);function $t(t={}){let{start:e="1800-01-01 00:00:00",end:r=(0,q.default)().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=t;(!(0,q.default)(e).isValid()||!(0,q.default)(r).isValid())&&l("generateRandomDate","start and end parameters must be valid date format");let i=(0,q.default)(e).year(),x=(0,q.default)(r).year(),p=I({min:i,max:x}),M=I({min:1,max:12}),h=I({min:1,max:31}),E=I(23),C=I(59),N=I(59),v=(0,q.default)(`${p}-${M}-${h} ${E}:${C}:${N}`);return v.isBefore((0,q.default)(e))||v.isAfter((0,q.default)(r))?$t(t):v.format(n)}function Q(t={}){let e=_e(t),r=Fe(e);He(r);let{length:n}=e;Ue(n.min,n.max);let i=I(n),x=e.prefix||"";for(let p=0;p<i;p++)x+=r.charAt(Math.floor(Math.random()*r.length));return x+(e.suffix||"")}var Le=16,Ht=1;function _e(t){let e=Z(t);return{lowerCase:!0,upperCase:!0,number:!0,...e?{}:t,length:e?{max:t,min:t}:Z(t.length)?{max:t.length,min:t.length}:{max:Le,min:Ht,...t.length},extra:e?[]:[...new Set(st(t.extra||[]))]}}function Fe(t){let e="";return t.lowerCase&&(e+="abcdefghijklmnopqrstuvwxyz"),t.upperCase&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),t.number&&(e+="0123456789"),e+=st(t.extra).join(""),e}function He(t){t.length===0&&l("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function Ue(t,e){Number.isInteger(t)||l("getRandomString","min must be an integer"),Number.isInteger(e)||l("getRandomString","max must be an integer"),t<Ht&&l("getRandomString",`Minimum length cannot be less than ${Ht}`),e<t&&l("getRandomString","Maximum length cannot be less than minimum length")}function qt(){let t=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],e=`${Q(1)}${Q({length:I({max:30,min:1})})}${Q(1)}@${B(t)}`;return/\.{2,}/.test(e)?qt():e}function Ke(t={}){Z(t)&&(t={max:t});let{min:e=0,max:r=1,fractionDigits:n=2}=t;if(e===r)return e;if(e>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${e}`);return Math.random()*(r-e)+e}function wt(t,e){(!Z(t)||t<=0)&&l("generateRandomStringFromSource","num must be greater than 0"),(!H(e)||e.length===0)&&l("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<t;n++)r+=B(e);return r}function We(){let t=I({min:1e5,max:999999}),e=[0,1,2,3,4,5,6,7,8,9];return[t,$t({format:"YYYYMMDD"}),wt(3,e),wt(1,[...e,"X","x"])].join("")}function Ze(){return B(["13","14","15","16","17","18","19"])+I(999999999).toString().padEnd(9,"0")}function ze(){let t=["http://","https://"],e=[".com",".net",".org",".cn",".top"],r=[`?name=${Q({length:{min:4,max:8}})}`,`?id=${I()}`,`?page=${Q({length:{min:2,max:4}})}`,`?query=${Q({length:{min:5,max:6}})}`,`?search=${Q({length:{min:1,max:4}})}`,`?token=${Q({length:{min:16,max:16}})}`];return`${B(t)}${Q({length:{min:5,max:25}})}${B(e)}${B(r)}`}function Ve(t){return/^\d+$/.test(t)}function Be(t){return/^[A-Z]+$/i.test(t)}function Ge(t){return/^[A-Z]+$/.test(t)}function Qe(t){return/^[\dA-Z]+$/.test(t)}function Xe(t){return/^[\dA-Z\u4E00-\u9FA5]+$/.test(t)}function qe(t){return/^[a-z]+$/.test(t)}function Je(t){return/^[\da-z]+$/.test(t)}function tr(t){return/^[\da-z\u4E00-\u9FA5]+$/.test(t)}function er(t){return/^[\u4E00-\u9FA5]+$/.test(t)}function rr(t){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(t)}function nr(t){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(t)}function or(t){return/^(?:0|[1-9]\d*)\.\d+$/.test(t)}function ir(t){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(t)}function sr(t){return/^-(?:0|[1-9]\d*)\.\d+$/.test(t)}function ar(t){return/^-?(?:0|[1-9]\d*)$/.test(t)}function ur(t){return/^[1-9]\d*$/.test(t)}function fr(t){return/^(?:0|[1-9]\d*)$/.test(t)&&!Object.is(t,-0)}function cr(t){return/^-[1-9]\d*$/.test(t)}function mr(t){return/^-(?:0|[1-9]\d*)$/.test(t)||Object.is(t,-0)}var lr=t=>{if(!rt(t)||!/^-?\d+(?:\.\d+)?$/.test(t))return!1;let r=Number(t);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};var Jt=At(Lt(),1);function dr(t){return/^1[3-9]\d{9}$/.test(t)}function pr(t){return/^https?:\/\/\S+$/i.test(t)}function gr(t){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(t)}function hr(t){return t===""}function te(t,e="YYYY-MM-DD HH:mm:ss"){return(0,Jt.default)(t,e,!0).isValid()}function br(t){return/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(t)&&te(t.slice(6,14),"YYYYMMDD")}return ae(yr);})();
1
+ "use strict";var lntvowUtils=(()=>{var re=Object.create;var pt=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var ie=Object.getPrototypeOf,se=Object.prototype.hasOwnProperty;var Wt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ae=(t,e)=>{for(var r in e)pt(t,r,{get:e[r],enumerable:!0})},Vt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of oe(e))!se.call(t,i)&&i!==r&&pt(t,i,{get:()=>e[i],enumerable:!(n=ne(e,i))||n.enumerable});return t};var gt=(t,e,r)=>(r=t!=null?re(ie(t)):{},Vt(e||!t||!t.__esModule?pt(r,"default",{value:t,enumerable:!0}):r,t)),fe=t=>Vt(pt({},"__esModule",{value:!0}),t);var $t=Wt((Ct,_t)=>{"use strict";(function(t,e){typeof Ct=="object"&&typeof _t<"u"?_t.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Ct,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",x="minute",p="hour",M="day",h="week",R="month",C="quarter",Y="year",v="date",P="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,O={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(u){var s=["th","st","nd","rd"],o=u%100;return"["+u+(s[(o-20)%10]||s[o]||s[0])+"]"}},D=function(u,s,o){var f=String(u);return!f||f.length>=s?u:""+Array(s+1-f.length).join(o)+u},$={s:D,z:function(u){var s=-u.utcOffset(),o=Math.abs(s),f=Math.floor(o/60),a=o%60;return(s<=0?"+":"-")+D(f,2,"0")+":"+D(a,2,"0")},m:function u(s,o){if(s.date()<o.date())return-u(o,s);var f=12*(o.year()-s.year())+(o.month()-s.month()),a=s.clone().add(f,R),m=o-a<0,d=s.clone().add(f+(m?-1:1),R);return+(-(f+(o-a)/(m?a-d:d-a))||0)},a:function(u){return u<0?Math.ceil(u)||0:Math.floor(u)},p:function(u){return{M:R,y:Y,w:h,d:M,D:v,h:p,m:x,s:i,ms:n,Q:C}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(u){return u===void 0}},w="en",j={};j[w]=O;var _="$isDayjsObject",E=function(u){return u instanceof F||!(!u||!u[_])},K=function u(s,o,f){var a;if(!s)return w;if(typeof s=="string"){var m=s.toLowerCase();j[m]&&(a=m),o&&(j[m]=o,a=m);var d=s.split("-");if(!a&&d.length>1)return u(d[0])}else{var g=s.name;j[g]=s,a=g}return!f&&a&&(w=a),a||!f&&w},S=function(u,s){if(E(u))return u.clone();var o=typeof s=="object"?s:{};return o.date=u,o.args=arguments,new F(o)},y=$;y.l=K,y.i=E,y.w=function(u,s){return S(u,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var F=function(){function u(o){this.$L=K(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[_]=!0}var s=u.prototype;return s.parse=function(o){this.$d=function(f){var a=f.date,m=f.utc;if(a===null)return new Date(NaN);if(y.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var d=a.match(c);if(d){var g=d[2]-1||0,A=(d[7]||"0").substring(0,3);return m?new Date(Date.UTC(d[1],g,d[3]||1,d[4]||0,d[5]||0,d[6]||0,A)):new Date(d[1],g,d[3]||1,d[4]||0,d[5]||0,d[6]||0,A)}}return new Date(a)}(o),this.init()},s.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},s.$utils=function(){return y},s.isValid=function(){return this.$d.toString()!==P},s.isSame=function(o,f){var a=S(o);return this.startOf(f)<=a&&a<=this.endOf(f)},s.isAfter=function(o,f){return S(o)<this.startOf(f)},s.isBefore=function(o,f){return this.endOf(f)<S(o)},s.$g=function(o,f,a){return y.u(o)?this[f]:this.set(a,o)},s.unix=function(){return Math.floor(this.valueOf()/1e3)},s.valueOf=function(){return this.$d.getTime()},s.startOf=function(o,f){var a=this,m=!!y.u(f)||f,d=y.p(o),g=function(X,L){var G=y.w(a.$u?Date.UTC(a.$y,L,X):new Date(a.$y,L,X),a);return m?G:G.endOf(M)},A=function(X,L){return y.w(a.toDate()[X].apply(a.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(L)),a)},T=this.$W,N=this.$M,W=this.$D,nt="set"+(this.$u?"UTC":"");switch(d){case Y:return m?g(1,0):g(31,11);case R:return m?g(1,N):g(0,N+1);case h:var J=this.$locale().weekStart||0,at=(T<J?T+7:T)-J;return g(m?W-at:W+(6-at),N);case M:case v:return A(nt+"Hours",0);case p:return A(nt+"Minutes",1);case x:return A(nt+"Seconds",2);case i:return A(nt+"Milliseconds",3);default:return this.clone()}},s.endOf=function(o){return this.startOf(o,!1)},s.$set=function(o,f){var a,m=y.p(o),d="set"+(this.$u?"UTC":""),g=(a={},a[M]=d+"Date",a[v]=d+"Date",a[R]=d+"Month",a[Y]=d+"FullYear",a[p]=d+"Hours",a[x]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[m],A=m===M?this.$D+(f-this.$W):f;if(m===R||m===Y){var T=this.clone().set(v,1);T.$d[g](A),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else g&&this.$d[g](A);return this.init(),this},s.set=function(o,f){return this.clone().$set(o,f)},s.get=function(o){return this[y.p(o)]()},s.add=function(o,f){var a,m=this;o=Number(o);var d=y.p(f),g=function(N){var W=S(m);return y.w(W.date(W.date()+Math.round(N*o)),m)};if(d===R)return this.set(R,this.$M+o);if(d===Y)return this.set(Y,this.$y+o);if(d===M)return g(1);if(d===h)return g(7);var A=(a={},a[x]=e,a[p]=r,a[i]=t,a)[d]||1,T=this.$d.getTime()+o*A;return y.w(T,this)},s.subtract=function(o,f){return this.add(-1*o,f)},s.format=function(o){var f=this,a=this.$locale();if(!this.isValid())return a.invalidDate||P;var m=o||"YYYY-MM-DDTHH:mm:ssZ",d=y.z(this),g=this.$H,A=this.$m,T=this.$M,N=a.weekdays,W=a.months,nt=a.meridiem,J=function(L,G,tt,ot){return L&&(L[G]||L(f,m))||tt[G].slice(0,ot)},at=function(L){return y.s(g%12||12,L,"0")},X=nt||function(L,G,tt){var ot=L<12?"AM":"PM";return tt?ot.toLowerCase():ot};return m.replace(b,function(L,G){return G||function(tt){switch(tt){case"YY":return String(f.$y).slice(-2);case"YYYY":return y.s(f.$y,4,"0");case"M":return T+1;case"MM":return y.s(T+1,2,"0");case"MMM":return J(a.monthsShort,T,W,3);case"MMMM":return J(W,T);case"D":return f.$D;case"DD":return y.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return J(a.weekdaysMin,f.$W,N,2);case"ddd":return J(a.weekdaysShort,f.$W,N,3);case"dddd":return N[f.$W];case"H":return String(g);case"HH":return y.s(g,2,"0");case"h":return at(1);case"hh":return at(2);case"a":return X(g,A,!0);case"A":return X(g,A,!1);case"m":return String(A);case"mm":return y.s(A,2,"0");case"s":return String(f.$s);case"ss":return y.s(f.$s,2,"0");case"SSS":return y.s(f.$ms,3,"0");case"Z":return d}return null}(L)||d.replace(":","")})},s.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},s.diff=function(o,f,a){var m,d=this,g=y.p(f),A=S(o),T=(A.utcOffset()-this.utcOffset())*e,N=this-A,W=function(){return y.m(d,A)};switch(g){case Y:m=W()/12;break;case R:m=W();break;case C:m=W()/3;break;case h:m=(N-T)/6048e5;break;case M:m=(N-T)/864e5;break;case p:m=N/r;break;case x:m=N/e;break;case i:m=N/t;break;default:m=N}return a?m:y.a(m)},s.daysInMonth=function(){return this.endOf(R).$D},s.$locale=function(){return j[this.$L]},s.locale=function(o,f){if(!o)return this.$L;var a=this.clone(),m=K(o,f,!0);return m&&(a.$L=m),a},s.clone=function(){return y.w(this.$d,this)},s.toDate=function(){return new Date(this.valueOf())},s.toJSON=function(){return this.isValid()?this.toISOString():null},s.toISOString=function(){return this.$d.toISOString()},s.toString=function(){return this.$d.toUTCString()},u}(),U=F.prototype;return S.prototype=U,[["$ms",n],["$s",i],["$m",x],["$H",p],["$W",M],["$M",R],["$y",Y],["$D",v]].forEach(function(u){U[u[1]]=function(s){return this.$g(s,u[0],u[1])}}),S.extend=function(u,s){return u.$i||(u(s,F,S),u.$i=!0),S},S.locale=K,S.isDayjs=E,S.unix=function(u){return S(1e3*u)},S.en=j[w],S.Ls=j,S.p={},S})});var qt=Wt((Lt,Ft)=>{"use strict";(function(t,e){typeof Lt=="object"&&typeof Ft<"u"?Ft.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(Lt,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,x=/\d*[^-_:/,()\s\d]+/,p={},M=function(c){return(c=+c)+(c>68?1900:2e3)},h=function(c){return function(b){this[c]=+b}},R=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var O=b.match(/([+-]|\d\d)/g),D=60*O[1]+(+O[2]||0);return D===0?0:O[0]==="+"?-D:D}(c)}],C=function(c){var b=p[c];return b&&(b.indexOf?b:b.s.concat(b.f))},Y=function(c,b){var O,D=p.meridiem;if(D){for(var $=1;$<=24;$+=1)if(c.indexOf(D($,0,b))>-1){O=$>12;break}}else O=c===(b?"pm":"PM");return O},v={A:[x,function(c){this.afternoon=Y(c,!1)}],a:[x,function(c){this.afternoon=Y(c,!0)}],Q:[r,function(c){this.month=3*(c-1)+1}],S:[r,function(c){this.milliseconds=100*+c}],SS:[n,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[i,h("seconds")],ss:[i,h("seconds")],m:[i,h("minutes")],mm:[i,h("minutes")],H:[i,h("hours")],h:[i,h("hours")],HH:[i,h("hours")],hh:[i,h("hours")],D:[i,h("day")],DD:[n,h("day")],Do:[x,function(c){var b=p.ordinal,O=c.match(/\d+/);if(this.day=O[0],b)for(var D=1;D<=31;D+=1)b(D).replace(/\[|\]/g,"")===c&&(this.day=D)}],w:[i,h("week")],ww:[n,h("week")],M:[i,h("month")],MM:[n,h("month")],MMM:[x,function(c){var b=C("months"),O=(C("monthsShort")||b.map(function(D){return D.slice(0,3)})).indexOf(c)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[x,function(c){var b=C("months").indexOf(c)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,h("year")],YY:[n,function(c){this.year=M(c)}],YYYY:[/\d{4}/,h("year")],Z:R,ZZ:R};function P(c){var b,O;b=c,O=p&&p.formats;for(var D=(c=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(S,y,F){var U=F&&F.toUpperCase();return y||O[F]||t[F]||O[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,s,o){return s||o.slice(1)})})).match(e),$=D.length,w=0;w<$;w+=1){var j=D[w],_=v[j],E=_&&_[0],K=_&&_[1];D[w]=K?{regex:E,parser:K}:j.replace(/^\[|\]$/g,"")}return function(S){for(var y={},F=0,U=0;F<$;F+=1){var u=D[F];if(typeof u=="string")U+=u.length;else{var s=u.regex,o=u.parser,f=S.slice(U),a=s.exec(f)[0];o.call(y,a),S=S.replace(a,"")}}return function(m){var d=m.afternoon;if(d!==void 0){var g=m.hours;d?g<12&&(m.hours+=12):g===12&&(m.hours=0),delete m.afternoon}}(y),y}}return function(c,b,O){O.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(M=c.parseTwoDigitYear);var D=b.prototype,$=D.parse;D.parse=function(w){var j=w.date,_=w.utc,E=w.args;this.$u=_;var K=E[1];if(typeof K=="string"){var S=E[2]===!0,y=E[3]===!0,F=S||y,U=E[2];y&&(U=E[2]),p=this.$locale(),!S&&U&&(p=O.Ls[U]),this.$d=function(f,a,m,d){try{if(["x","X"].indexOf(a)>-1)return new Date((a==="X"?1e3:1)*f);var g=P(a)(f),A=g.year,T=g.month,N=g.day,W=g.hours,nt=g.minutes,J=g.seconds,at=g.milliseconds,X=g.zone,L=g.week,G=new Date,tt=N||(A||T?1:G.getDate()),ot=A||G.getFullYear(),lt=0;A&&!T||(lt=T>0?T-1:G.getMonth());var dt,Ot=W||0,Dt=nt||0,St=J||0,At=at||0;return X?new Date(Date.UTC(ot,lt,tt,Ot,Dt,St,At+60*X.offset*1e3)):m?new Date(Date.UTC(ot,lt,tt,Ot,Dt,St,At)):(dt=new Date(ot,lt,tt,Ot,Dt,St,At),L&&(dt=d(dt).week(L).toDate()),dt)}catch{return new Date("")}}(j,K,_,O),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&j!=this.format(K)&&(this.$d=new Date("")),p={}}else if(K instanceof Array)for(var u=K.length,s=1;s<=u;s+=1){E[1]=K[s-1];var o=O.apply(this,E);if(o.isValid()){this.$d=o.$d,this.$L=o.$L,this.init();break}s===u&&(this.$d=new Date(""))}else $.call(this,w)}}})});var sr={};ae(sr,{UtilsError:()=>mt,base64Decode:()=>de,base64Encode:()=>le,castArray:()=>st,compose:()=>pe,composeRight:()=>ge,debounce:()=>he,debugWarn:()=>Pt,debugWarnInvalidTypeMessage:()=>Me,decimalToBinary:()=>me,deepClone:()=>ft,deepMerge:()=>ye,deprecated:()=>$e,generateRandomArray:()=>ve,generateRandomColor:()=>ke,generateRandomDate:()=>wt,generateRandomEmail:()=>te,generateRandomFloat:()=>Fe,generateRandomIdCard:()=>He,generateRandomMobilePhone:()=>Ke,generateRandomStringFromSource:()=>Mt,getRandomInt:()=>I,getRandomItem:()=>Z,getRandomString:()=>Q,getRandomUrl:()=>Ue,hasChanged:()=>ce,hasCircularReference:()=>Nt,isArray:()=>H,isBoolean:()=>z,isDate:()=>Et,isDateString:()=>Kt,isDef:()=>ue,isEmail:()=>tr,isEmptyString:()=>er,isFloat:()=>We,isFunction:()=>ct,isIdCard:()=>rr,isInteger:()=>Ge,isMap:()=>Rt,isMobilePhone:()=>nr,isNegativeFloat:()=>Be,isNegativeInteger:()=>qe,isNil:()=>Yt,isNonNegativeFloat:()=>ze,isNonNegativeInteger:()=>Xe,isNonPositiveFloat:()=>Ze,isNonPositiveInteger:()=>Je,isNull:()=>yt,isNumber:()=>V,isObject:()=>et,isObjectLike:()=>ut,isPlainObject:()=>B,isPositiveFloat:()=>Ve,isPositiveInteger:()=>Qe,isPromise:()=>kt,isRegExp:()=>vt,isSet:()=>jt,isString:()=>rt,isStringNumber:()=>or,isSymbol:()=>Tt,isURL:()=>ir,isUndef:()=>k,objectToString:()=>zt,omit:()=>Ee,pick:()=>It,qs:()=>Qt,qsStringify:()=>Oe,throttle:()=>Se,throwError:()=>l,throwErrorInvalidTypeMessage:()=>we,toTypeString:()=>it,toTypeValue:()=>ht,withRetry:()=>Ae});function et(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function ut(t){return t!==null&&typeof t=="object"}var zt=Object.prototype.toString,it=t=>zt.call(t),ht=t=>it(t).slice(8,-1),rt=t=>typeof t=="string",V=t=>typeof t=="number"&&Number.isFinite(t),z=t=>typeof t=="boolean",yt=t=>t===null,k=t=>t===void 0,Tt=t=>typeof t=="symbol",H=Array.isArray,ct=t=>typeof t=="function",Rt=t=>it(t)==="[object Map]",jt=t=>it(t)==="[object Set]",Et=t=>it(t)==="[object Date]",vt=t=>it(t)==="[object RegExp]",kt=t=>ut(t)&&ct(t?.then)&&ct(t?.catch),Yt=t=>t==null,ue=t=>t!=null,ce=(t,e)=>t!==e;function B(t){return it(t)==="[object Object]"}function st(t){return H(t)?t:[t]}function me(t){let e=[],r,n="";for(;t>0;)r=Math.floor(t%2),e.push(r),t=Math.floor(t/2);for(;e.length>0;)n+=e.pop().toString();return n}var Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function le(t){let e="",r="";for(let i=0;i<t.length;i++)r+=t[i].charCodeAt(0).toString(2).padStart(8,"0");for(let i=0;i<r.length;i+=6)e+=Bt[Number.parseInt(r.slice(i,i+6).padEnd(6,"0"),2)];let n=e.length%4;return n!==0&&(e+="=".repeat(4-n)),e}function de(t){let e="",r="";for(let n=0;n<t.length&&t[n]!=="=";n++)r+=Bt.indexOf(t[n]).toString(2).padStart(6,"0");for(let n=0;n<r.length;n+=8){let i=Number.parseInt(r.slice(n,n+8),2);i&&(e+=String.fromCharCode(i))}return e}function pe(...t){return t.reduce((e,r)=>function(...n){return r(e(...n))})}function ge(...t){return t.reduce((e,r)=>function(...n){return e(r(...n))})}function he(t,e=500){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{t.apply(this,n)},e)}}function ft(t){let e=new WeakMap;function r(n){if(!ut(n))return n;if(Et(n))return new Date(n);if(vt(n))return new RegExp(n);if(kt(n))return n;if(e.has(n))return e.get(n);if(Rt(n)){let p=new Map;return e.set(n,p),n.forEach((M,h)=>p.set(r(h),r(M))),p}if(jt(n)){let p=new Set;return e.set(n,p),n.forEach(M=>p.add(r(M))),p}let i=H(n)?Object.setPrototypeOf([],Object.getPrototypeOf(n)):Object.create(Object.getPrototypeOf(n));e.set(n,i);let x=Object.getOwnPropertyDescriptors(n);for(let p of Reflect.ownKeys(x)){let M=x[p];M.get||M.set?Object.defineProperty(i,p,M):Object.defineProperty(i,p,{...M,value:r(M.value)})}return i}return r(t)}function ye(t,e,r={}){return Gt(Zt(t,r),Zt(e,r),r)}function Gt(t,e,r){return H(t)?xe(t,e,r):be(t,e,r)}function be(t,e,r){if(!B(e))return e;let n=Object.getOwnPropertyDescriptors(e);return Reflect.ownKeys(e).forEach(i=>{(B(t[i])||H(t[i]))&&(B(e[i])||H(e[i]))?t[i]=Gt(t[i],e[i],r):Object.defineProperty(t,i,n[i])}),t}function xe(t,e,r){let{mergeStrategy:n="replace"}=r;if(H(e))switch(n){case"merge":return t.concat(e);case"replace":return e;default:return e}return e}function Zt(t,e){let{deepClone:r=!0}=e;return r?ft(t):t}var mt=class extends Error{constructor(e,r="Utils"){super(e),this.name=r}};function l(t,e){throw new mt(`[${t}] ${e}`)}function Pt(t,e){let r=rt(t)?new mt(`[${t}] ${e}`,"UtilsWarn"):t;console.warn(r)}var $e=({from:t,replacement:e,version:r,type:n="API"})=>{Pt(`${n}`,`${t} is about to be deprecated in version ${r}, please use ${e} instead.`)};function we(t,e,r,n){let i=`Invalid params: type check failed for params "${e}". Expected ${r}, got ${ht(n)} with value ${n}.`;l(t,i)}function Me(t,e,r,n){let i=`Invalid params: type check failed for params "${e}". Expected ${r}, got ${ht(n)} with value ${n}.`;Pt(t,i)}var bt=(t,e,...r)=>{if(!e)return;let n=r.length===0?"":r.length===1?r[0]:r;console[t](`[Log] ${e}:`,n)},xt=(t,...e)=>{bt("info",t,...e)};xt.info=(t,...e)=>{bt("info",t,...e)};xt.error=(t,...e)=>{bt("error",t,...e)};xt.warn=(t,...e)=>{bt("warn",t,...e)};typeof globalThis<"u"&&(globalThis.log=xt);function Oe(t,e={}){De(e);let{encode:r=!0,encodeValuesOnly:n=!1,arrayFormat:i="indices",encodeDotInKeys:x=!1,skipNulls:p=!1,strictNullHandling:M=!1,commaRoundTrip:h=!1,allowEmptyArrays:R=!1,addQueryPrefix:C=!1,delimiter:Y="&"}=e,v=e.allowDots??!1;x&&k(e.allowDots)&&(v=!0);let P=[],c=$=>r&&!n?encodeURIComponent($):$,b=$=>r?encodeURIComponent($):$;function O($,w){if(!k(w)){if(yt(w)){if(p)return;P.push(`${c($)}${M?"":"="}`);return}if(H(w)){if(w.length===0){R&&P.push(`${c($)}[]`);return}if(i==="comma"){let j=n?w.map(b).join(","):b(w.join(","));if(w.length===1&&yt(w[0])){if(p)return;P.push(`${c($)}${h?"[]":""}${M?"":"="}`)}else w.length===1?P.push(`${c($)}${h?"[]":""}=${j}`):P.push(`${c($)}=${j}`);return}w.forEach((j,_)=>{let E=$;i==="indices"?E=`${$}[${_}]`:i==="brackets"&&(E=`${$}[]`),O(E,j)});return}if(et(w)){Object.keys(w).forEach(j=>{let _=$;x&&(_=_.replace(/\./g,"%2E"));let E=j;v?(x&&(E=E.replace(/\./g,"%2E")),O(`${_}.${E}`,w[j])):O(`${_}[${E}]`,w[j])});return}P.push(`${c($)}=${b(w)}`)}}if(!et(t))return"";Nt(t)&&l("stringify","Input object contains circular references, cannot stringify"),H(t)?t.forEach(($,w)=>O(`${w}`,$)):Object.keys(t).forEach($=>O($,t[$]));let D=P.join(Y);return C&&D?`?${D}`:D}function De(t={}){B(t)||l("stringify",'"options" must be a plain object'),!k(t.encode)&&!z(t.encode)&&l("stringify",'"encode" must be a boolean'),!k(t.encodeValuesOnly)&&!z(t.encodeValuesOnly)&&l("stringify",'"encodeValuesOnly" must be a boolean'),!k(t.arrayFormat)&&!["indices","brackets","repeat","comma"].includes(t.arrayFormat)&&l("stringify",'"arrayFormat" must be one of: "indices", "brackets", "repeat", "comma"'),!k(t.allowDots)&&!z(t.allowDots)&&l("stringify",'"allowDots" must be a boolean'),!k(t.skipNulls)&&!z(t.skipNulls)&&l("stringify",'"skipNulls" must be a boolean'),!k(t.strictNullHandling)&&!z(t.strictNullHandling)&&l("stringify",'"strictNullHandling" must be a boolean'),!k(t.addQueryPrefix)&&!z(t.addQueryPrefix)&&l("stringify",'"addQueryPrefix" must be a boolean'),!k(t.delimiter)&&!rt(t.delimiter)&&l("stringify",'"delimiter" must be a string'),!k(t.encodeDotInKeys)&&!z(t.encodeDotInKeys)&&l("stringify",'"encodeDotInKeys" must be a boolean'),!k(t.commaRoundTrip)&&!z(t.commaRoundTrip)&&l("stringify",'"commaRoundTrip" must be a boolean'),!k(t.allowEmptyArrays)&&!z(t.allowEmptyArrays)&&l("stringify",'"allowEmptyArrays" must be a boolean')}var Qt={stringify:t=>(et(t)||l("stringify","Input must be an object"),new URLSearchParams(t).toString()),parse:t=>(rt(t)||l("parse","Input must be a string"),Object.fromEntries(new URLSearchParams(t).entries())),appendQueryString:(t,e)=>{let r=Qt.stringify(e);return t.includes("?")?t.endsWith("?")||t.endsWith("&")?`${t}${r}`:`${t}&${r}`:`${t}?${r}`}};function Se(t,e=500){let r=null;return function(...n){if(Yt(r))return r=Date.now(),t.apply(this,n);let i=Date.now();if(i-r>=e)return r=i,t.apply(this,n)}}function Ae(t){Te(t);let{fn:e,maxAttempts:r=3,retryDelay:n=1e3,enableExponentialBackoff:i=!1,signal:x}=t,p,M=x?new Promise((R,C)=>{let Y=()=>C(Xt());x.addEventListener("abort",Y),p=()=>x.removeEventListener("abort",Y)}):null;return new Promise((R,C)=>{(async()=>{for(let v=1;v<=r;v++){if(x?.aborted)return C(Xt());try{let P=await Promise.race(M?[e(),M]:[e()]);return R(P)}catch(P){let c=i?n*2**(v-1):n;if(log("withRetry",`Attempt ${v}/${r} failed. Retrying in ${c}ms...`),P instanceof Error&&P.name==="AbortError"||v===r)return C(P);await new Promise(b=>setTimeout(b,c))}}})()}).finally(()=>p?.())}function Te(t){B(t)||l("withRetry",'"Options" must be an object'),typeof t.fn!="function"&&l("withRetry",'"fn" must be a function that returns a Promise'),!k(t.maxAttempts)&&(!Number.isInteger(t.maxAttempts)||t.maxAttempts<1)&&l("withRetry",'"maxAttempts" must be a positive integer'),!k(t.retryDelay)&&(!V(t.retryDelay)||t.retryDelay<0)&&l("withRetry",'"retryDelay" must be a non-negative number'),!k(t.enableExponentialBackoff)&&!z(t.enableExponentialBackoff)&&l("withRetry",'"enableExponentialBackoff" must be a boolean'),!k(t.signal)&&typeof t.signal!="object"&&l("withRetry",'"signal" must be an AbortSignal')}var Re="The operation was aborted";function Xt(t=Re){let e=new Error(t);return e.name="AbortError",e}function Nt(t){et(t)||l("hasCircularReference",'"obj" must be a object');let e=new Set;function r(n){if(et(n)){if(e.has(n))return!0;e.add(n);for(let i of Object.keys(n))if(r(n[i]))return!0;e.delete(n)}return!1}return r(t)}function It(t,e,r={}){let{includeProto:n=!1,includeSymbols:i=!0,includeNonEnum:x=!1}=r,p={};return B(t)&&st(e).forEach(h=>{Tt(h)&&!i||!(n?h in t:Object.hasOwn(t,h))||!x&&(n?je(t,h):Object.getOwnPropertyDescriptor(t,h))?.enumerable===!1||(p[h]=ft(t[h]))}),p}function je(t,e){let r=t;for(;r!==null;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ee(t,e){if(!B(t))return{};let r=ft(t),n=st(e),i=Object.keys(r).filter(x=>!n.includes(x));return It(r,i)}function ve(t,e){return(!V(t)||t<=0)&&l("generateRandomArray","num must be greater than 0"),ct(e)||l("generateRandomArray","cb must be a function"),Array.from({length:t}).fill(0).map((r,n)=>e(r,n))}function ke(){return`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`}var q=gt($t(),1),Jt=gt(qt(),1);function Z(t){return t[Math.floor(Math.random()*t.length)]}function I(t={}){V(t)&&(t={max:t});let{min:e=1,max:r=Z(Pe())}=t;Ye(e,r);let n=Math.ceil(e),i=Math.floor(r);return Math.floor(Math.random()*(i-n+1)+n)}function Ye(t,e){let r=Math.ceil(t),n=Math.floor(e);Number.isSafeInteger(r)||l("getRandomInt",`The minimum value Math.ceil(${t}) should be a safe integer`),Number.isSafeInteger(n)||l("getRandomInt",`The maximum value Math.floor(${e}) should be a safe integer`),n<r&&(e>=t&&l("getRandomInt",`No integer value found between ${t} and ${e}`),l("getRandomInt",`The maximum value ${e} should be greater than the minimum value ${t}`))}function Pe(){return Array.from({length:Number.MAX_SAFE_INTEGER.toString().length}).map((t,e)=>{let r=Number.MAX_SAFE_INTEGER.toString().slice(0,e+1);return Number(r)})}q.default.extend(Jt.default);function wt(t={}){let{start:e="1800-01-01 00:00:00",end:r=(0,q.default)().format("YYYY-MM-DD HH:mm:ss"),format:n="YYYY-MM-DD HH:mm:ss"}=t;(!(0,q.default)(e).isValid()||!(0,q.default)(r).isValid())&&l("generateRandomDate","start and end parameters must be valid date format");let i=(0,q.default)(e).year(),x=(0,q.default)(r).year(),p=I({min:i,max:x}),M=I({min:1,max:12}),h=I({min:1,max:31}),R=I(23),C=I(59),Y=I(59),v=(0,q.default)(`${p}-${M}-${h} ${R}:${C}:${Y}`);return v.isBefore((0,q.default)(e))||v.isAfter((0,q.default)(r))?wt(t):v.format(n)}function Q(t={}){let e=Ie(t),r=Ce(e);_e(r);let{length:n}=e;Le(n.min,n.max);let i=I(n),x=e.prefix||"";for(let p=0;p<i;p++)x+=r.charAt(Math.floor(Math.random()*r.length));return x+(e.suffix||"")}var Ne=16,Ht=1;function Ie(t){let e=V(t);return{lowerCase:!0,upperCase:!0,number:!0,...e?{}:t,length:e?{max:t,min:t}:V(t.length)?{max:t.length,min:t.length}:{max:Ne,min:Ht,...t.length},extra:e?[]:[...new Set(st(t.extra||[]))]}}function Ce(t){let e="";return t.lowerCase&&(e+="abcdefghijklmnopqrstuvwxyz"),t.upperCase&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),t.number&&(e+="0123456789"),e+=st(t.extra).join(""),e}function _e(t){t.length===0&&l("getRandomString","At least one character set (lowercase, uppercase, number) must be enabled or extra characters provided")}function Le(t,e){Number.isInteger(t)||l("getRandomString","min must be an integer"),Number.isInteger(e)||l("getRandomString","max must be an integer"),t<Ht&&l("getRandomString",`Minimum length cannot be less than ${Ht}`),e<t&&l("getRandomString","Maximum length cannot be less than minimum length")}function te(){let t=["gmail.com","outlook.com.cn","example.com","qq.com","163.com","test.com.cn"],e=`${Q(1)}${Q({length:I({max:30,min:1})})}${Q(1)}@${Z(t)}`;return/\.{2,}/.test(e)?te():e}function Fe(t={}){V(t)&&(t={max:t});let{min:e=0,max:r=1,fractionDigits:n=2}=t;if(e===r)return e;if(e>r)throw new Error(`Maximum value ${r} should be greater than minimum value ${e}`);return Math.random()*(r-e)+e}function Mt(t,e){(!V(t)||t<=0)&&l("generateRandomStringFromSource","num must be greater than 0"),(!H(e)||e.length===0)&&l("generateRandomStringFromSource","source cannot be empty array");let r="";for(let n=0;n<t;n++)r+=Z(e);return r}function He(){let t=I({min:1e5,max:999999}),e=[0,1,2,3,4,5,6,7,8,9];return[t,wt({format:"YYYYMMDD"}),Mt(3,e),Mt(1,[...e,"X","x"])].join("")}function Ke(){return Z(["13","14","15","16","17","18","19"])+I(999999999).toString().padEnd(9,"0")}function Ue(){let t=["http://","https://"],e=[".com",".net",".org",".cn",".top"],r=[`?name=${Q({length:{min:4,max:8}})}`,`?id=${I()}`,`?page=${Q({length:{min:2,max:4}})}`,`?query=${Q({length:{min:5,max:6}})}`,`?search=${Q({length:{min:1,max:4}})}`,`?token=${Q({length:{min:16,max:16}})}`];return`${Z(t)}${Q({length:{min:5,max:25}})}${Z(e)}${Z(r)}`}function We(t){return/^-?(?:0|[1-9]\d*)\.\d+$/.test(t)}function Ve(t){return/^(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(t)}function ze(t){return/^(?:0|[1-9]\d*)\.\d+$/.test(t)}function Be(t){return/^-(?:0\.0*[1-9]\d*|[1-9]\d*\.\d+)$/.test(t)}function Ze(t){return/^-(?:0|[1-9]\d*)\.\d+$/.test(t)}function Ge(t){return/^-?(?:0|[1-9]\d*)$/.test(t)}function Qe(t){return/^[1-9]\d*$/.test(t)}function Xe(t){return/^(?:0|[1-9]\d*)$/.test(t)&&!Object.is(t,-0)}function qe(t){return/^-[1-9]\d*$/.test(t)}function Je(t){return/^-(?:0|[1-9]\d*)$/.test(t)||Object.is(t,-0)}var ee=gt($t(),1);function Kt(t,e="YYYY-MM-DD HH:mm:ss"){return(0,ee.default)(t,e,!0).isValid()}function tr(t){return/^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(t)}function er(t){return t===""}var Ut=gt($t(),1);function rr(t){if(!/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/i.test(t))return!1;let r=t.slice(6,14);return Kt(r,"YYYYMMDD")&&(0,Ut.default)(r,"YYYYMMDD").isBefore((0,Ut.default)())}function nr(t){return/^1[3-9]\d{9}$/.test(t)}var or=t=>{if(!rt(t)||!/^-?\d+(?:\.\d+)?$/.test(t))return!1;let r=Number(t);return!(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)};function ir(t){return/^https?:\/\/\S+$/i.test(t)}return fe(sr);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/utils",
3
- "version": "4.2.13",
3
+ "version": "4.2.14",
4
4
  "type": "module",
5
5
  "description": "TypeScript utilities",
6
6
  "keywords": [