import{a as e}from"../crypto-js/crypto-js.38083f5b.js";import{u as r}from"../ua-parser-js/ua-parser-js.f2fc0435.js";var n={time:function(t=!1){return!0===t?(new Date).getTime():Date.parse(new Date)/1e3},strToTime:function(t){try{let e=new Date(t);return Date.parse(e)/1e3}catch(e){return console.error(e.message),!1}},monthDay:function(t){t=t||this.date("Y-m-d");try{let e=new Date(t),r=e.getFullYear(),n=e.getMonth()+1,a=0;return a=2==n?r%4==0&&r%100==0&&r%400==0||r%4==0&&r%100!=0?28:29:1==n||3==n||5==n||7==n||8==n||10==n||12==n?31:30,a}catch(e){return console.error(e.message),0}},yearDay:function(t){let e=this;t=t||e.date("Y-m-d");try{let r=e.yearFirstDay(t),n=e.yearLastDay(t),a=(new Date(n).getTime()-new Date(r).getTime())/1e3;return Math.ceil(a/86400)}catch(r){return console.error(r.message),0}},yearFirstDay:function(t){t=t||this.date("Y-m-d");try{return new Date(t).getFullYear()+"-01-01 00:00:00"}catch(e){return console.error(e.message),!1}},yearLastDay:function(t){let e=this;t=t||e.date("Y-m-d");try{let r=new Date(t).getFullYear(),n=r+"-12-01 00:00:00";return r+"-12-"+e.monthDay(n)+" 23:59:59"}catch(r){return console.error(r.message),!1}},dateToYearDay:function(t){let e=this;t=t||e.date("Y-m-d");try{let r=e.yearFirstDay(t),n=(new Date(t).getTime()-new Date(r).getTime())/1e3;return Math.ceil(n/86400)}catch(r){return console.error(r.message),!1}},dateToYearWeek:function(t){let e=this;t=t||e.date("Y-m-d");try{let r=e.dateToYearDay(t);return Math.ceil(r/7)}catch(r){return console.error(r.message),!1}},isLeapYear:function(t){t=t||this.date("Y-m-d");try{let e=new Date(t).getFullYear();return e%4==0&&e%100!=0||e%400==0}catch(e){return console.error(e.message),!1}},date:function(e,r){let n,a=r?new Date(1e3*r):new Date,u=function(t,e){return(t+="").length=4&&e>=6-n?(t=new Date(a.getFullYear()-1+"/12/31"),date("W",Math.round(t.getTime()/1e3))):1+(n<=3?(e+n)/7:(e-(7-n))/7)|0},F:function(){return c[i.n()]},m:function(){return u(i.n(),2)},M:function(){return t=i.F(),t.substr(0,3)},n:function(){return a.getMonth()+1},t:function(){let t;return 2==(t=a.getMonth()+1)?28+i.L():1&t&&t<8||!(1&t)&&t>7?31:30},L:function(){let t=i.Y();return 3&t||!(t%100)&&t%400?0:1},Y:function(){return a.getFullYear()},y:function(){return(a.getFullYear()+"").slice(2)},a:function(){return a.getHours()>11?"pm":"am"},A:function(){return i.a().toUpperCase()},B:function(){let t=60*(a.getTimezoneOffset()+60),e=3600*a.getHours()+60*a.getMinutes()+a.getSeconds()+t,r=Math.floor(e/86.4);return r>1e3&&(r-=1e3),r<0&&(r+=1e3),1==String(r).length&&(r="00"+r),2==String(r).length&&(r="0"+r),r},g:function(){return a.getHours()%12||12},G:function(){return a.getHours()},h:function(){return u(i.g(),2)},H:function(){return u(a.getHours(),2)},i:function(){return u(a.getMinutes(),2)},s:function(){return u(a.getSeconds(),2)},O:function(){let t=u(Math.abs(a.getTimezoneOffset()/60*100),4);return t=a.getTimezoneOffset()>0?"-"+t:"+"+t,t},P:function(){let t=i.O();return t.substr(0,3)+":"+t.substr(3,2)},c:function(){return i.Y()+"-"+i.m()+"-"+i.d()+"T"+i.h()+":"+i.i()+":"+i.s()+i.P()},U:function(){return Math.round(a.getTime()/1e3)}};return e.replace(/[\\]?([a-zA-Z])/g,(function(t,e){return n=t!=e?e:i[e]?i[e]():e,n}))}};const a=e.exports;var u={md5:function(t){return a.MD5(t).toString()},aes_encode:function(t,e="szjcomo"){return a.AES.encrypt(t,e).toString()},aes_decode:function(t,e="szjcomo"){return a.AES.decrypt(t,e).toString(a.enc.Utf8)},sha1:function(t){return a.SHA1(t).toString()},sha256:function(t){return a.SHA256(t).toString()},sha512:function(t){return a.SHA512(t).toString()},base64_encode:function(t){return a.enc.Base64.stringify(a.enc.Utf8.parse(t)).toString()},base64_decode:function(t){return a.enc.Base64.parse(t).toString(a.enc.Utf8)},_getSecretList:function(t,e=0){let r=this;if(!/^[0-9a-zA-Z]*$/.test(t))throw new Error("The key can only consist of numbers and letters");let n=[],a=1,u=r.sha1(t);for(let i=0;ie&&(a=(s-e)/s);let o=[],c=[.8,.9];return n.forEach((t=>{let e=a<1?t*(c[r._getArraySumIndex(n)]-a):t;o.push(Math.floor(e))})),Array.from(new Set(o)).sort((function(t,e){return t>e?1:-1}))},_getArraySumIndex:function(t){let e=0;return t.forEach((t=>{e+=t})),e%2},como_encode:function(t,e="szjcomo"){let r=this,n={data:t},a=r.base64_encode(r.json_encode(n)),u=a.length,s=[],o=[],c=r._getSecretList(e.toString(),u);for(let i=0;i-1?s.push(a[i]):o.push(a[i]);return`${o.join("")}${s.join("")}`},como_decode:function(t,e="szjcomo"){let r=this,n=t.length,a=r._getSecretList(e.toString(),n),u=t.substring(n-a.length,n),s=[],o=t.length;for(let l=0;l{s.splice(t,0,u[c]),c++}));let i=s.join("").substring(0,s.length-u.length);return r.json_decode(r.base64_decode(i)).data},json_encode:function(t={}){return JSON.stringify(t)},json_decode:function(t){if("string"!=typeof t)return!1;t=t.replace(/(^\s*)|(\s*$)|(^\r)|(^\n)/g,"");try{return JSON.parse(t)}catch(e){return console.error(e.message),!1}}},s={isIdcardno:function(t){if(!t)return!1;return/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(t)},getGender:function(t=""){let e="";return t=t.replace(/(^\s*)|(\s*$)/g,""),this.isIdentityNumber(t),15==t.length?e=2*parseInt(t.charAt(14)/2)!=t.charAt(14)?"男":"女":18==t.length&&(e=2*parseInt(t.charAt(16)/2)!=t.charAt(16)?"男":"女"),e},getBorn:function(t){let e="";return t=t.replace(/(^\s*)|(\s*$)/g,""),this.isIdentityNumber(t),15==t.length?(e=t.charAt(6)+t.charAt(7),e=parseInt(e)<10?"20"+e:"19"+e,e=e+"-"+t.charAt(8)+t.charAt(9)+"-"+t.charAt(10)+t.charAt(11)):18==t.length&&(e=t.charAt(6)+t.charAt(7)+t.charAt(8)+t.charAt(9)+"-"+t.charAt(10)+t.charAt(11)+"-"+t.charAt(12)+t.charAt(13)),e},getAge:function(t,e,r,n){let a=0;t=t.replace(/(^\s*)|(\s*$)/g,"");let u=this.getBorn(t).split("-"),s=u[0],o=u[1],c=u[2],i=new Date,l=i.getFullYear(),f=i.getMonth()+1,h=i.getDate();if(e=e||h,r=r||f,(n=n||l)==s)a=0;else{let t=n-s;if(t>0)if(r==o){a=e-c<0?t-1:t}else{a=r-o<0?t-1:t}else a=-1}return a},getStarsign:function(t){let e="";t=t.replace(/(^\s*)|(\s*$)/g,"");let r=this.getBorn(t);if(""==r)return starsign;let n=new Date(r),a=n.getMonth()+1,u=n.getDate();return 1==a&&u<=21||2==a&&u<=19?e="水瓶座":2==a&&u>20||3==a&&u<=20?e="双鱼座":3==a&&u>20||4==a&&u<=20?e="白羊座":4==a&&u>20||5==a&&u<=21?e="金牛座":5==a&&u>21||6==a&&u<=21?e="双子座":6==a&&u>21||7==a&&u<=22?e="巨蟹座":7==a&&u>22||8==a&&u<=23?e="狮子座":8==a&&u>23||9==a&&u<=23?e="处女座":9==a&&u>23||10==a&&u<=23?e="天秤座":10==a&&u>23||11==a&&u<=22?e="天蝎座":11==a&&u>22||12==a&&u<=21?e="射手座":(12==a&&u>21||1==a&&u<=20)&&(e="魔羯座"),e},getZodiac:function(t){let e="";t=t.replace(/(^\s*)|(\s*$)/g,"");let r=this.getBorn(t);if(""==r)return e;let n=("1901"-new Date(r).getFullYear())%12;return 1!=n&&-11!=n||(e="鼠"),0==n&&(e="牛"),11!=n&&-1!=n||(e="虎"),10!=n&&-2!=n||(e="兔"),9!=n&&-3!=n||(e="龙"),8!=n&&-4!=n||(e="蛇"),7!=n&&-5!=n||(e="马"),6!=n&&-6!=n||(e="羊"),5!=n&&-7!=n||(e="猴"),4!=n&&-8!=n||(e="鸡"),3!=n&&-9!=n||(e="狗"),2!=n&&-10!=n||(e="猪"),e},repairIdentity:function(t){if(17==(t=t.replace(/(^\s*)|(\s*$)/g,"")).length){let e=t.split(""),r=0,n=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];e.forEach(((t,e)=>{r+=t*n[e]}));let a=[1,0,"X",9,8,7,6,5,4,3,2];return a[r%11]&&(t+=a[r%11]),t}return t},isIdentityNumber:function(t){let e=(t=t.replace(/(^\s*)|(\s*$)/g,"")).split(""),r={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",83:"台湾",91:"国外"};if(15==t.length)return this.isIdcardno(t);let n=/^[1-9][0-9]{5}[1-2][(0|9)][0-9][0-9]((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/;if((parseInt(t.substr(6,4))%4==0||parseInt(t.substr(6,4))%100==0&&parseInt(t.substr(6,4))%4==0)&&(n=/^[1-9][0-9]{5}[1-2][(0|9)][0-9][0-9]((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/),n.test(t)){let n=7*(parseInt(e[0])+parseInt(e[10]))+9*(parseInt(e[1])+parseInt(e[11]))+10*(parseInt(e[2])+parseInt(e[12]))+5*(parseInt(e[3])+parseInt(e[13]))+8*(parseInt(e[4])+parseInt(e[14]))+4*(parseInt(e[5])+parseInt(e[15]))+2*(parseInt(e[6])+parseInt(e[16]))+1*parseInt(e[7])+6*parseInt(e[8])+3*parseInt(e[9]),a="10X98765432".substr(n%11,1);if(null==r[parseInt(t.substr(0,2))])throw new Error("身份证号码所属省份校验错误,请检查");if(a==e[17])return!0;throw new Error("身份证号码最后一位校验错误,请检查")}throw new Error("身份证号码错误,请检查是否合法的身份证号码...")}},o={empty:function(t){return!t||t.toString().length<0},isNumber:function(t){return!!t&&(t&&/^[0-9]+$/.test(t))},isAlpha:function(t){return!!t&&(t&&/^[a-zA-Z]*$/.test(t))},isChinese:function(t){return!!t&&(t&&/^[\u0391-\uFFE5]+$/.test(t))},length:function(t,e,r){return!!t&&(e=e||0,r=r||0,!(t.toString().length>r)&&!(t.toString().lengtht+e))},arrayMin:function(t){return Math.min.apply(null,t)},arrayMax:function(t){return Math.max.apply(null,t)},arrayRemove:function(t,e){let r=t.indexOf(e);return r>-1&&t.splice(r,1),t},arrayUnique:function(t){if(Array.hasOwnProperty("from"))return Array.from(new Set(t));{let e=[],r=!0;for(let n=0;n{switch(e){case 1:return r-n;case 2:return n-r;case 3:return Math.random()-.5;default:return t}}))},arrayMerge:function(t,e=[]){return t.concat(e)},arrayPop:function(t){let e=t.slice(0);return e.pop(),e},arrayRand:function(t){return t[Math.floor(Math.random()*t.length)]},arrayRecursion:function(t,e=0,r="pid",n="id",a="child"){let u=this,s=[],o=t.length;for(let c=0;c{if(t[e]&&t[e].length>0){n.push(t);let a=r.arrayRecursiveBack(t[e],e);n=n.concat(a)}else n.push(t)})),n}};const i=r.exports;const l=n,f=u,h=s,g=o,d=c,p={trim:function(t,e=2){switch(e){case 2:return t.replace(/(^\s*)|(\s*$)/g,"");case 3:return t.replace(/(^\s*)/g,"");case 4:return t.replace(/(\s*$)/g,"");default:return t.replace(/\s+/g,"")}},strlen:function(t){let e=0;for(let r=0;r=1&&n<=126||65376<=n&&n<=65439?e++:e+=2}return e},mt_rand:function(t=.1,e=1){try{let r=e-t,n=Math.random();return t+Math.round(n*r)}catch(r){return console.error(r.message),0}},str_rand:function(t=4,e="default"){let r=this;t=t||4;try{let n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";switch(e){case"number":n="0123456789";break;case"letter":n="abcdefghijklmnopqrstuvwxyz"}let a="";for(let e=0;e