easy-soft-utility 2.4.15 → 2.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"node-cache";import e from"lodash/isBoolean";import n from"lodash/isDate";import r from"lodash/isEqual";import o from"lodash/isFunction";import a from"lodash/isNull";import i from"lodash/isNumber";import u from"lodash/isObject";import c from"lodash/isString";import l from"lodash/isUndefined";import s from"lodash/replace";import f from"lodash/assign";import d from"lodash/assignWith";import g from"lodash/difference";import h from"lodash/dropRight";import m from"lodash/endsWith";import v from"lodash/filter";import p from"lodash/find";import y from"lodash/findIndex";import w from"lodash/first";import b from"lodash/floor";import x from"lodash/forEach";import A from"lodash/get";import S from"lodash/gte";import D from"lodash/map";import M from"lodash/memoize";import C from"lodash/remove";import E from"lodash/reverse";import O from"lodash/round";import j from"lodash/set";import I from"lodash/size";import k from"lodash/sortBy";import T from"lodash/sortedUniq";import N from"lodash/split";import F from"lodash/startsWith";import P from"lodash/trim";import Y from"lodash/uniqBy";import B from"lodash/toNumber";import H from"lodash/toString";import U from"object-hash";import R from"dayjs";import{stringify as L,parse as W}from"qs";var G,J="function"==typeof atob,K="function"==typeof btoa,Q="function"==typeof Buffer,V="function"==typeof TextDecoder?new TextDecoder:void 0,z="function"==typeof TextEncoder?new TextEncoder:void 0,q=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Z=(G={},q.forEach((function(t,e){return G[t]=e})),G),$=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,X=String.fromCharCode.bind(String),_="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return new Uint8Array(Array.prototype.slice.call(t,0).map(e))},tt=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},et=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},nt=K?function(t){return btoa(t)}:Q?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var e,n,r,o,a="",i=t.length%3,u=0;u<t.length;){if((n=t.charCodeAt(u++))>255||(r=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");a+=q[(e=n<<16|r<<8|o)>>18&63]+q[e>>12&63]+q[e>>6&63]+q[63&e]}return i?a.slice(0,i-3)+"===".substring(i):a},rt=Q?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(X.apply(null,t.subarray(n,n+4096)));return nt(e.join(""))},ot=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?X(192|e>>>6)+X(128|63&e):X(224|e>>>12&15)+X(128|e>>>6&63)+X(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return X(240|e>>>18&7)+X(128|e>>>12&63)+X(128|e>>>6&63)+X(128|63&e)},at=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,it=Q?function(t){return Buffer.from(t,"utf8").toString("base64")}:z?function(t){return rt(z.encode(t))}:function(t){return nt(t.replace(at,ot))},ut=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ct=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return X(55296+(e>>>10))+X(56320+(1023&e));case 3:return X((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return X((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},lt=J?function(t){return atob(et(t))}:Q?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!$.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,n,r,o="",a=0;a<t.length;)e=Z[t.charAt(a++)]<<18|Z[t.charAt(a++)]<<12|(n=Z[t.charAt(a++)])<<6|(r=Z[t.charAt(a++)]),o+=64===n?X(e>>16&255):64===r?X(e>>16&255,e>>8&255):X(e>>16&255,e>>8&255,255&e);return o},st=Q?function(t){return _(Buffer.from(t,"base64"))}:function(t){return _(lt(t),(function(t){return t.charCodeAt(0)}))},ft=Q?function(t){return Buffer.from(t,"base64").toString("utf8")}:V?function(t){return V.decode(st(t))}:function(t){return lt(t).replace(ut,ct)},dt=function(t){return ft(et(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function gt(t){return dt(t)}function ht(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?tt(it(t)):it(t)}(t)}function mt(t){return 1*t<10?"0".concat(t):t}function vt(t){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(t)}function pt(t){var e=function(t,e){if("object"!==vt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===vt(e)?e:String(e)}function yt(t,e,n){return(e=pt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return A(t,e,n)}function At(t,e){return O(t,e)}function St(t,e,n){return m(t,e,n)}function Dt(t){return T(t)}function Mt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return N(t,e,n)}function Ct(t,e){return f(t,e)}function Et(t,e,n){return d(t,e,n)}function Ot(t){return E(t)}function jt(t,e){return x(t,e)}function It(t,e){return S(t,e)}function kt(t){return M(t)}function Tt(t,e){return b(t,e)}function Nt(t){return w(t)}function Ft(t,e){return F(t,e)}function Pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return h(t,e)}function Yt(t,e){return Y(t,e)}function Bt(t){return P(t)}function Ht(t,e,n){return s(t,e,n)}function Ut(t,e){return C(t,e)}function Rt(t,e){return D(t,e)}function Lt(t,e,n){return j(t,e,n)}function Wt(t){return I(t)}function Gt(t,e){return g(t,e)}function Jt(t,e){return v(t,e)}function Kt(t,e){return k(t,e)}function Qt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,e,n)}function Vt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t,e,n)}function zt(t){return ne(t)}function qt(t){var e="".concat(ne(t)?null:t).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==e)return!1;var n=new Date(e[1],e[3]-1,e[4]);return n.getFullYear()===parseInt(e[1],10)&&n.getMonth()+1===parseInt(e[3],10)&&n.getDate()===parseInt(e[4],10)}function Zt(t){return i(t)}function $t(t){var e="".concat(ne(t)?null:t);if(""===e)return!1;return new RegExp(/^([1-9][\d]{0,15}|0)(\.[\d]{1,2})?$/).test(e)}function Xt(t,e){return r(t,e)}function _t(t,e){return JSON.stringify(t||{})===JSON.stringify(e||{})}function te(t){return o(t)}function ee(t){return e(t)}function ne(t){return l(t)}function re(t){return a(t)}function oe(t){return n(t)}function ae(t){return c(t)}function ie(t){return Array.isArray(t)}function ue(t){return u(t)}function ce(t){return null!==t&&"object"===vt(t)&&!ie(t)}function le(t){return ce(t)&&te(t.then)&&te(t.catch)}function se(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function fe(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function de(t){return""===Bt(s(t||""," ",""))}function ge(t,e){var n=!1;return ie(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}var he="easy-soft-utility",me={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},ve={loadApiPath:"",firstLoadSuccess:!1,loadSuccess:!1,registering:!1,dataLoading:!1,reloading:!1,searching:!1,refreshing:!1,paging:!1,processing:!1,dispatchComplete:!0,metaData:null,metaExtra:null,metaListData:[],metaOriginalData:null,urlParams:null,externalData:null},pe={dataLoading:!0},ye={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},we="0",be=0,xe="1970-01-01 00:00",Ae={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},Se={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},De={yearMonthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",yearMonthDayHourMinute:"YYYY-MM-DD HH:mm",yearMonthDay:"YYYY-MM-DD",yearMonth:"YYYY-MM",year:"YYYY",monthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",monthDayHourMinute:"MM-DD HH:mm",monthDay:"MM-DD",hourMinute:"HH:mm",hourMinuteSecond:"HH:mm:ss",month:"MM",day:"DD",hour:"HH",minute:"mm",second:"ss"},Me={moveUp:"moveUp",moveDown:"moveDown"},Ce={no:"0",yes:"1"},Ee={no:0,yes:1},Oe={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},je={auto:"auto",text:"text",object:"object"},Ie={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ke={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",Ne=Te,Fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Pe=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(o);++r<o;)a[r]=t[r+e];return a};var Ye=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Pe(t,e,n)},Be=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var He=function(t){return Be.test(t)};var Ue=function(t){return t.split("")},Re="\\ud800-\\udfff",Le="["+Re+"]",We="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ge="\\ud83c[\\udffb-\\udfff]",Je="[^"+Re+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="(?:"+We+"|"+Ge+")"+"?",ze="[\\ufe0e\\ufe0f]?",qe=ze+Ve+("(?:\\u200d(?:"+[Je,Ke,Qe].join("|")+")"+ze+Ve+")*"),Ze="(?:"+[Je+We+"?",We,Ke,Qe,Le].join("|")+")",$e=RegExp(Ge+"(?="+Ge+")|"+Ze+qe,"g");var Xe=Ue,_e=He,tn=function(t){return t.match($e)||[]};var en=function(t){return _e(t)?tn(t):Xe(t)},nn="object"==vt(Fe)&&Fe&&Fe.Object===Object&&Fe,rn="object"==("undefined"==typeof self?"undefined":vt(self))&&self&&self.Object===Object&&self,on=(nn||rn||Function("return this")()).Symbol;var an=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},un=Array.isArray,cn=on,ln=Object.prototype,sn=ln.hasOwnProperty,fn=ln.toString,dn=cn?cn.toStringTag:void 0;var gn=function(t){var e=sn.call(t,dn),n=t[dn];try{t[dn]=void 0;var r=!0}catch(t){}var o=fn.call(t);return r&&(e?t[dn]=n:delete t[dn]),o},hn=Object.prototype.toString;var mn=gn,vn=function(t){return hn.call(t)},pn=on?on.toStringTag:void 0;var yn=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":pn&&pn in Object(t)?mn(t):vn(t)},wn=function(t){return null!=t&&"object"==vt(t)};var bn=an,xn=un,An=function(t){return"symbol"==vt(t)||wn(t)&&"[object Symbol]"==yn(t)},Sn=on?on.prototype:void 0,Dn=Sn?Sn.toString:void 0;var Mn=function t(e){if("string"==typeof e)return e;if(xn(e))return bn(e,t)+"";if(An(e))return Dn?Dn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Cn=Mn;var En=Ye,On=He,jn=en,In=function(t){return null==t?"":Cn(t)};var kn=function(t){return function(e){e=In(e);var n=On(e)?jn(e):void 0,r=n?n[0]:e.charAt(0),o=n?En(n,1).join(""):e.slice(1);return r[t]()+o}},Tn=kn("toLowerCase"),Nn=kn("toUpperCase");function Fn(t){return U(t,{algorithm:"sha1"})}function Pn(t){return U(t,{algorithm:"md5"})}function Yn(t,e){var n=Math.pow(10,e+1),r=Math.floor(Bn(t)*n);return 10*Math.round(r/10)/n}function Bn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=B(t),r=Number.isNaN(n)?0:n;return null==(e||null)?r:Yn(r,e)}function Hn(t,e,n){if(!Zt(t))throw new Error("value must be number value");var r=Bn(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function Un(t){return $t(t)?parseFloat(t,10):0}function Rn(t){return"".concat(Un(1e3*Bn(t)/10),"%")}function Ln(t){return H(t)}function Wn(t){return!!t}function Gn(t){return Ln(t).toUpperCase()}function Jn(t){return Nn(t)}function Kn(t){return Ln(t).toLowerCase()}function Qn(t){return Tn(t)}function Vn(t){if(null==(t||null))return null;if(oe(t))return t;if(ae(t)&&t.indexOf("T")<0){var e=t.replace(/\-/g,"/");return new Date(e)}return new Date(t)}function zn(t){return le(t)?t:Promise.resolve(t)}function qn(t,e){return At(t,e)}function Zn(t){var e=t.target,n=t.convert;if(te(n))return n(e);if(ae(n))switch(n){case Ae.number:return Bn(e);case Ae.datetime:return Vn(e);case Ae.string:return Ln(e);case Ae.money:return Un(e);case Ae.array:return null==(e||null)?[]:ie(e)?e:[e];default:return e}return e}function $n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xn(t,e){if(t){if("string"==typeof t)return $n(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(t,e):void 0}}function _n(t){return function(t){if(Array.isArray(t))return $n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t){return new Function("return ".concat(t))()}function er(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function nr(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1===t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1===t.indexOf("Safari")}}function rr(){var t;return{versions:nr(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function or(t){var e=t.seed,n=t.min||0;return n+(9301*e+49297)%233280/233280*((t.max||1)-n)}function ar(t){return null==t?null:JSON.parse(JSON.stringify(t))}function ir(t,e,n){var r=[];return null!=t&&(r=_n(t)),null!=n&&(r=[].concat(_n(r),_n(n))),null!=e&&(r=[e].concat(_n(r))),r}function ur(t,e,n,r,o){var a=r,i=void 0===n?null:n;return null!=e&&("function"==typeof convertValue?a.initialValue=o(t)||i:a.initialValue=t||i),a}function cr(t,e,n){var r=null;return null==e||(n||[]).forEach((function(n){n[t]===e&&(r=n)})),r}function lr(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],a=0;if(n=n||r.length,e)for(a=0;a<e;a++)o[a]=r[0|Math.random()*n];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(t=0|16*Math.random(),o[a]=r[19===a?3&t|8:t]);return o.join("")}function sr(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function fr(){return"development"===process.env.NODE_ENV}function dr(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}function gr(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[t].concat(r).filter((function(t){return ae(t)&&!de(t)}));return"".concat(a.join("::"),"::").concat(de(e)?"":e)}var hr="loggerAssist",mr={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},vr={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function pr(t){var e=t.text,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation,u=void 0===i?"":i,c=function(t,e){return"".concat(Ln(t)).concat(de(e)?"":" -> ".concat(e))}(ae(e)?e:JSON.stringify(e),u);de(pr)||console.log("%c%s","color:".concat(r,";"),"".concat(de(a)?"":"[".concat(Gn(a),"] ")).concat(c))}function yr(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation;pr({text:"check the following object data",color:r,dataDescription:a,ancillaryInformation:void 0===i?"":i}),console.log(e)}function wr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=kr();if(!mr.loggerDisplaySwitchSetComplete&&!mr.loggerDisplaySwitchPromptSetInformationComplete){var a=gr(he,"logData -> logger display switch default is false, if want to display log, please set it before first log, use setLoggerDisplaySwitch to set it, this message only show once",hr);pr({text:a,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}mr.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||n===Oe.exception){var i=null==(e||null)||de(e)?je.auto:e;if(!ge([je.auto,je.text,je.object],i))throw new Error("Invalid log display mode -> ".concat(i));if(i===je.auto&&(i=ae(t)?je.text:je.object),n!==Oe.exception){if(o){if(n===Oe.trace&&(i===je.text&&pr({text:t,color:vr.trace,dataDescription:"trace",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.trace,dataDescription:"trace",ancillaryInformation:r})),n===Oe.debug&&(i===je.text&&pr({text:t,color:vr.debug,dataDescription:"debug",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.debug,dataDescription:"debug",ancillaryInformation:r})),n===Oe.warn&&(i===je.text&&pr({text:t,color:vr.warn,dataDescription:"warn",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.warn,dataDescription:"warn",ancillaryInformation:r})),n===Oe.info&&(i===je.text&&pr({text:t,color:vr.info,dataDescription:"info",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.info,dataDescription:"info",ancillaryInformation:r})),n===Oe.execute&&(i===je.text&&pr({text:t,color:vr.execute,dataDescription:"execute",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.execute,dataDescription:"execute",ancillaryInformation:r})),n===Oe.config&&(i===je.text&&pr({text:t,color:vr.config,dataDescription:"config",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.config,dataDescription:"config",ancillaryInformation:r})),n===Oe.stack){i===je.text&&pr({text:t,color:vr.stack,dataDescription:"stack",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(Ht(u,"Error:","Stack:"))}}n===Oe.error&&(i===je.text&&pr({text:t,color:vr.error,dataDescription:"error",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.error,dataDescription:"error",ancillaryInformation:r}))}}else{i===je.text&&pr({text:t,color:vr.exception,dataDescription:"exception",ancillaryInformation:r}),i===je.object&&yr({data:t,color:vr.exception,dataDescription:"exception",ancillaryInformation:r});try{throw new Error("an error occur, check the above error message, the stack information is as follows")}catch(t){console.error(t)}}}}function br(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.warn,e):Ir(t,Oe.warn,e)}function xr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.info,e):Ir(t,Oe.info,e)}function Ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.config,e):Ir(t,Oe.config,e)}function Sr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.stack,e):Ir(t,Oe.stack,e)}function Dr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.trace,e):Ir(t,Oe.trace,e)}function Mr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.debug,e):Ir(t,Oe.debug,e)}function Cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.execute,e):Ir(t,Oe.execute,e)}function Er(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.error,e):Ir(t,Oe.error,e)}function Or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?jr(t,Oe.exception,e):Ir(t,Oe.exception,e)}function jr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";wr(t,je.text,e,n)}function Ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";wr(t,je.object,e,n)}function kr(){return Wn(mr.display)}function Tr(t){fr()&&pr({text:"setLoggerDisplaySwitch",color:vr.execute,dataDescription:"execute",ancillaryInformation:""}),mr.display=Wn(t),mr.loggerDisplaySwitchSetComplete=!0}var Nr={mountComplete:!1,target:null};function Fr(e){if(Cr("setCacheMount"),!ue(e))throw Mr(e),new Error(gr(he,"setCacheMount -> cache mount target must be a object, current type is ".concat(vt(e)),"cacheAssist"));null==(e.localRuntimeCache||null)&&(e.localRuntimeCache=new t),Nr.target=e,Nr.mountComplete=!0,xr("setCacheMount -> cache mount success.")}function Pr(t){return de(t)?(Or("checkKey -> cache key is null or empty"),!1):!(!ae(t)&&!Zt(t))||(Or("cache key must be string or number, current type id ".concat(vt(t))),!1)}function Yr(){if(!Nr.mountComplete||!Nr.target||!Nr.target.localRuntimeCache)throw new Error("getCachePool -> please use setCacheMount function to set cache mount target before get it.");return Nr.target.localRuntimeCache}function Br(t){var e=t.key,n=Yr();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function Hr(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(Pr(e)){var a=Yr();if(null==a)throw new Error("cache pool not exist");return a.set(e,n,o)}}function Ur(t){if(!ie(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var e=[];if(t.forEach((function(t){var n=bt(bt({},{key:"",value:"",expiration:0}),t),r=n.key,o=n.value,a=n.expiration;if(!de(r)){if(!Pr(r))return;e.push({key:r,value:o,ttl:a})}})),e.length<=0)return!1;var n=Yr();if(null==n)throw new Error("cache pool not exist");return n.mset(e)}function Rr(t){var e=t.key,n=Yr();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function Lr(t){var e=t.key,n=t.expiration,r=Yr();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function Wr(t){var e=t.key,n=Yr();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function Gr(){var t=Yr();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Jr(t){if(!ie(t))throw new Error("getMultiCache: list must be array");var e=Yr();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function Kr(t){var e=t.key,n=Yr();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function Qr(t){var e=t.key;if(Pr(e)){var n=Yr();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function Vr(t){if(!ie(t))throw new Error("deleteMultiCache: list must be array");var e=Yr();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function zr(){var t=Yr();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function qr(){var t=Yr();if(null==t)throw new Error("cache pool not exist");return t.getStats()}function Zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||Xn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t){var e=t.seed;return"#".concat("00000".concat((16777216*or({seed:e})<<0).toString(16)).substring(-6))}function Xr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RGB",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,o=(null!=t?t:"").toLowerCase();if(r.test(o)){if(4===o.length){for(var a="#",i=1;i<4;i+=1)a+=o.slice(i,i+1).concat(o.slice(i,i+1));o=a}for(var u=[],c=1;c<7;c+=2)u.push(parseInt("0x"+o.slice(c,c+2)));return e?"".concat(e,"(").concat(u.join(","),")"):n?u:u.join(",")}return Or("Invalid hex color -> ".concat(t)),o}function _r(t){var e=t.progress,n=t.startColor,r=t.endColor,o=Xr(n,null,!0),a=Xr(r,null,!0),i=Zr(o,3),u=i[0],c=i[1],l=i[2],s=Zr(a,3),f=s[0],d=s[1],g=s[2],h=[(u+Math.round((f-u)*e)).toString(16),(c+Math.round((d-c)*e)).toString(16),(l+Math.round((g-l)*e)).toString(16)];return"#".concat(h.join("").toUpperCase())}function to(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=Zt(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(),")")}function eo(t,e){var n=Vn(t);return n.setHours(n.getHours()+e)}function no(t,e){var n=Vn(t);return n.setMinutes(n.getMinutes()+e)}function ro(t,e){var n=Vn(t);return n.setSeconds(n.getSeconds()+e)}function oo(){return new Date}function ao(t,e){var n=t.getTime(),r=(e.getTime()-n)/1e3,o=parseInt(r/86400),a=parseInt((r-24*o*60*60)/3600),i=parseInt((r-24*o*60*60-60*a*60)/60);return{day:o,hour:a,minute:i,second:r-24*o*60*60-60*a*60-60*i}}var io=function(t,e,n){var r=Vn(t),o=e?Vn(e):new Date,a=o.getTime()-r.getTime();return"second"===n&&a/1e3||"minute"===n&&a/1e3/60||"hour"===n&&a/1e3/60/60||"day"===n&&a/1e3/60/60/24||"week"===n&&a/1e3/60/60/24/7||"month"===n&&uo(r,o)||"quarter"===n&&uo(r,o)/3||"year"===n&&uo(r,o)/12||a},uo=function(t,e){var n=Vn(t),r=Vn(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function co(t){var e=t.data;return R(e).day()}function lo(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=R().day();if(!t)return e;var n="";switch(Bn(e)){case 0:n="日";break;case 1:n="一";break;case 2:n="二";break;case 3:n="三";break;case 4:n="四";break;case 5:n="五";break;case 6:n="六";break;default:n=""}return de(n)?"":"星期".concat(n)}function so(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.thousand,a=void 0===o?",":o,i=t.decimal;return fo({data:e,places:r,symbol:"",thousand:a,decimal:void 0===i?".":i})}function fo(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.symbol,a=void 0===o?"¥":o,i=t.thousand,u=void 0===i?",":i,c=t.decimal,l=void 0===c?".":c,s=e||0,f=isNaN(r=Math.abs(r))?2:r,d=void 0!==a?a:"¥",g=u||",",h=l||".",m=s<0?"-":"",v=parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",p=v.length;return d+m+((p=p>3?p%3:0)?v.substr(0,p)+g:"")+v.substr(p).replace(/(\d{3})(?=\d)/g,a+"1"+g)+(f?h+Math.abs(s-Bn(v)).toFixed(f).slice(2):"")}function go(t){var e,n,r,o=t.target,a=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],i=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],l="";if(""===o)return"";if((o=parseFloat(o))>=1e15)return"超出最大处理数字";if(0===o)return l=a[0]+"元";if(-1===(o=o.toString()).indexOf("."))e=o,n="";else{var s=Zr(r=o.split("."),2);e=s[0],n=s[1],n=r[1].substr(0,4)}if(parseInt(e,10)>0){for(var f=0,d=e.length,g=0;g<d;g+=1){var h=e.substr(g,1),m=d-g-1,v=m/4,p=m%4;"0"===h?f+=1:(f>0&&(l+=a[0]),f=0,l+=a[parseInt(h,10)]+i[p]),0===p&&f<4&&(l+=u[v])}l+="元"}if(""!==n)for(var y=n.length,w=0;w<y;w+=1){var b=n.substr(w,1);"0"!==b&&(l+=a[Number(b)]+c[w])}return""===l&&(l+=a[0]+"元"),l}function ho(t){var e=t.data,n=t.fmt,r=void 0===n?De.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":R(e).format(r)}function mo(t){var e=t.target,n=t.format,r=t.option,o=void 0===r?{}:r;if(te(n))return n(e);if(ae(n))switch(n){case Se.money:return fo({data:e});case Se.datetime:return ho({data:e});case Se.chineseMoney:return go({target:e,option:o});case Se.percentage:return"".concat(qn(100*e,1),"%");default:return e}return e}function vo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=bt(bt({},{second:["刚刚","片刻后"],seconds:["%d 秒前","%d 秒后"],minute:["大约 1 分钟前","大约 1 分钟后"],minutes:["%d 分钟前","%d 分钟后"],hour:["大约 1 小时前","大约 1 小时后"],hours:["%d 小时前","%d 小时后"],day:["1 天前","1 天后"],days:["%d 天前","%d 天后"],month:["大约 1 个月前","大约 1 个月后"],months:["%d 月前","%d 月后"],year:["大约 1 年前","大约 1 年后"],years:["%d 年前","%d 年后"]}),n||{}),o=io(t,e),a=o<0?1:0,i=Math.abs(o)/1e3,u=i/60,c=u/60,l=c/24,s=l/365,f=function(t,e){return t.replace(/%d/i,e)};return i<10&&f(r.second[a],parseInt(i))||i<45&&f(r.seconds[a],parseInt(i))||i<90&&f(r.minute[a],1)||u<45&&f(r.minutes[a],parseInt(u))||u<90&&f(r.hour[a],1)||c<24&&f(r.hours[a],parseInt(c))||c<42&&f(r.day[a],1)||l<30&&f(r.days[a],parseInt(l))||l<45&&f(r.month[a],1)||l<365&&f(r.months[a],parseInt(l/30))||s<1.5&&f(r.year[a],1)||f(r.years[a],parseInt(s))}function po(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return vo(t,oo(),e)}function yo(t){return de(t.text||null)&&br(gr(he,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var wo={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,xr({text:e})},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,xr({text:e})},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,xr({text:e})},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,xr({text:e})},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,br(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,br(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,Er(e)},setErrorMessageDisplayMonitorComplete:!1};function bo(t){wo.showOpenMessage=t}function xo(t){wo.showLoadingMessage=t}function Ao(t){wo.showInfoMessage=t}function So(t){wo.showSuccessMessage=t}function Do(t){wo.showWarnMessage=t}function Mo(t){wo.showWarningMessage=t}function Co(t){wo.showErrorMessage=t,wo.setErrorMessageDisplayMonitorComplete=!0}function Eo(t){Oo({text:t})}function Oo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(wo.showOpenMessage)&&(yo({text:e}),wo.showOpenMessage({text:e,duration:r,onClose:a}))}function jo(t){Io({text:t})}function Io(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(wo.showLoadingMessage)&&(yo({text:e}),wo.showLoadingMessage({text:e,duration:r,onClose:a}))}function ko(t){To({text:t})}function To(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(wo.showInfoMessage)&&(yo({text:e}),wo.showInfoMessage({text:e,duration:r,onClose:a}))}function No(t){Fo({text:t})}function Fo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(wo.showSuccessMessage)&&(yo({text:e}),wo.showSuccessMessage({text:e,duration:r,onClose:a}))}function Po(t){Yo({text:t})}function Yo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(wo.showWarnMessage)&&(yo({text:e}),wo.showWarnMessage({text:e,duration:r,onClose:a}))}function Bo(t){Ho({text:t})}function Ho(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(wo.showWarningMessage)&&(yo({text:e}),wo.showWarningMessage({text:e,duration:r,onClose:a}))}function Uo(t){Ro({text:t})}function Ro(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(wo.showErrorMessage)&&(yo({text:e}),wo.showErrorMessage({text:e,duration:r,onClose:a}))}function Lo(t){Wo({text:t})}function Wo(t){var e=t.text;de(e||"")||(wo.setErrorMessageDisplayMonitorComplete&&Ro({text:e}),Or({text:e}))}function Go(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>e?"".concat(Ln(t).substring(0,e)).concat(n):Ln(t)}function Jo(t,e,n,r){var o=Ln(t),a=(t||"").length;a>0&&(n>=0||r>=0)&&(o=n>=a||r>=a||(n||0)+(r||0)>=a?t:t.substr(0,n)+e+t.substr(a-r,r));return o||""}function Ko(t,e){for(var n=(new Date).getTime();!((new Date).getTime()-n>t););te(e)&&e()}function Qo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(ne(t))return n;if(null==t)return n;if(!ae(e)){var r="getPathValue Function param path must be string";return Wo({message:r}),null}var o=xt(t,e,n);return ne(n)||re(n)?o:o||n}function Vo(t,e){if(!ae(t))throw new Error("removeEndMatch only use for string target");if(!ae(e))throw new Error("removeEndMatch only use for string match");if(de(t))return t;if(de(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.substr(n,e.length):t}function zo(t,e){if(!ae(t))throw new Error("removeEndMatch only use for string source");if(!ae(e))throw new Error("removeEndMatch only use for string target");if(de(t))return t;if(de(e))return t;var n=t.lastIndexOf(e);return n>=0?t.substr(n,e.length):t}function qo(t){var e=t.data,n=t.key,r=t.defaultValue,o=void 0===r?null:r,a=t.convert,i=void 0===a?null:a,u=t.convertBuilder,c=void 0===u?null:u,l=t.format,s=void 0===l?null:l,f=t.formatBuilder,d=void 0===f?null:f,g=Qo(e,n,o),h=g;return null==(c||null)&&null==(i||null)||(h=te(c)?Zn({target:g,convert:c}):Zn({target:g,convert:i})),null==(d||null)&&null==(s||null)||(h=te(d)?mo({target:h,format:d}):mo({target:h,format:s})),h}function Zo(t){var e=t.operate,n=t.item,r=t.list,o=t.key,a=t.sortInitialValue,i=void 0===a?0:a;if(null==(n||null))return r;var u=[],c=[],l=[];if((r||[]).length<=1){return Yo({message:"无需排序!"}),r}var s=qo({data:n,key:o,convert:Ae.number});switch((r||[]).forEach((function(t){var e=qo({data:t,key:o,convert:Ae.number});e<s&&u.push(t),e>s&&c.push(t)})),e){case Me.moveUp:if(s===i){return Yo({message:"已经排在首位!"}),r}(u||[]).forEach((function(t,e){if(e<u.length-1)l.push(t);else{var r=n;r[o]-=1,l.push(r);var a=t;a[o]+=1,l.push(a)}})),l=l.concat(c);break;case Me.moveDown:if(s===(r||[]).length+i-1){return Yo({message:"已经排在末位!"}),r}l=l.concat(u),(c||[]).forEach((function(t,e){if(0===e){var r=t;r[o]-=1,l.push(r);var a=n;a[o]+=1,l.push(a)}else l.push(t)}));break;default:Yo({message:"不符合的操作, 允许的操作为['".concat(Me.moveUp,"','").concat(Me.moveDown,"']!")})}return l}function $o(t){var e=t.list,n=void 0===e?[]:e,r=t.convert,o=void 0===r?null:r,a=t.recursiveKey,i=void 0===a?"children":a;return(ie(n)?n:[n]).map((function(t){return Xo({data:t,convert:o,target:i})}))}function Xo(t){var e=t.data,n=t.convert,r=void 0===n?null:n,o=t.recursiveKey,a=void 0===o?"children":o;if(!te(r))return e;var i=r(e),u=e[a],c=[];return ie(u)&&(c=u.map((function(t){return Xo({data:t,convert:r,target:a})}))),i[a]=c,i}function _o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Vt(t,e,n);return!ne(r)}function ta(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(null==(e||null))throw new Error("handleItem: target not allow null");if(null==(e.state||null))throw new Error("handleItem: target.state not allow null");var a=e.state.metaOriginalData;if(null==(a||null))throw new Error("handleItem: target.state.metaOriginalData not allow null");var i=-1;if(te(r))if(te(o)){if(null==(a.list||null))throw new Error("handleItem: target.state.metaOriginalData.list must be array");a.list.forEach((function(t,e){r(t)===n&&(i=e)})),i>=0&&(a.list[i]=o(a.list[i]),e.setState({metaOriginalData:a}))}else{Wo({message:"handler mast be function"})}else{Wo({message:"compareDataIdHandler mast be function"})}}function ea(){function t(t,e){return ne(e)?t:e}for(var e=Ct({},arguments.length<=0?void 0:arguments[0]),n=1;n<arguments.length;n++)e=Et(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e}function na(t){if(t&&"object"===vt(t)){var e="";return Object.keys(t).forEach((function(n){var r,o=(null!==(r=n.replace(/([A-Z])/g,"-$1"))&&void 0!==r?r:"").toLowerCase();e+="".concat(o,":").concat(t[n],";")})),e}return t&&"string"==typeof t?t:""}function ra(t,e){return t&&"object"===vt(t)&&e&&"object"===vt(e)?Object.assign({},t,e):na(t)+na(e)}function oa(t,e){var n=t;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var aa="htmlAssist";function ia(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Zt(t))return t;if(!Zt(e)||e<=0)throw new Error(gr(he,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),aa));var o=parseFloat(t);if(o<r)return t;var a=Bn(o/e,n);return 0===a?"0":a+"rem"}var ua="localStorageAssist",ca={getStorage:function(t){Or(gr(he,"setStorageGetter need config, use setStorageGetter to set it",ua))},setStorage:function(t,e){Or(gr(he,"setStorageSetter need config, use setStorageSetter to set it",ua))},removeStorage:function(t){Or(gr(he,"setStorageRemover need config, use setStorageRemover to set it",ua))},flushStorage:function(){Or(gr(he,"setStorageFlusher need config, use setStorageFlusher to set it",ua))}};function la(t){ca.getStorage=t}function sa(t){ca.setStorage=t}function fa(t){ca.removeStorage=t}function da(t){ca.flushStorage=t}function ga(t){try{return ca.getStorage(t)}catch(e){throw Or({key:t,e:e}),e}}function ha(t){var e=ga(t);return de(e)?null:JSON.parse(e||"{}")}function ma(t,e){ca.setStorage(t,e)}function va(t,e){ca.setStorage(t,JSON.stringify(e||{}))}function pa(t){ca.removeStorage(t)}function ya(){ca.flushStorage()}var wa="navigationAssist",ba={navigateTo:function(t){Or(gr(he,"setNavigator need config, use setNavigator to set it",wa))},redirectTo:function(t,e){Or(gr(he,"setRedirector need config, use setRedirector to set it",wa))}};function xa(t){ba.navigateTo=t}function Aa(t){ba.redirectTo=t}function Sa(t){if(ae(t)||ue(t))ba.redirectTo(t);else{Uo("invalid parameter, params need string or object")}}function Da(t){if(ae(t)||ue(t))ba.navigateTo(t);else{Uo("invalid parameter, params need string or object")}}var Ma=function(t){var e=t.text;t.duration,t.onClose,xr({text:e})};var Ca="nearestLocalhostNotify";function Ea(){var t=ha(Ca);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function Oa(){return va(Ca,{nearestTime:parseInt((new Date).getTime()/1e3,10)})}function ja(){pa(Ca)}function Ia(t){var e=t.text,n=!1,r=0,o=Ea()||null;null==o?n=!0:r=o.nearestTime||0;var a=parseInt((new Date).getTime()/1e3,10);try{if(r+30<a&&(n=!0),n){var i="当前接口域名: ".concat(e,". ");!function(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(Ma)&&Ma({text:e,duration:r,onClose:a})}({text:i}),jr({message:i}),Oa()}}catch(t){wr(t)}}function ka(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=L(t);if(de(e))return n;if(de(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function Ta(t){return W(t)}var Na="sessionStorageAssist",Fa={getStorage:function(t){Or(gr(he,"setStorageGetter need config, use setStorageGetter to set it",Na))},setStorage:function(t,e){Or(gr(he,"setStorageSetter need config, use setStorageSetter to set it",Na))},removeStorage:function(t){Or(gr(he,"setStorageRemover need config, use setStorageRemover to set it",Na))},flushStorage:function(){Or(gr(he,"setStorageFlusher need config, use setStorageFlusher to set it",Na))}};function Pa(t){Fa.getStorage=t}function Ya(t){Fa.setStorage=t}function Ba(t){Fa.removeStorage=t}function Ha(t){Fa.flushStorage=t}function Ua(t){try{return Fa.getStorage(t)}catch(e){throw Or({key:t,e:e}),e}}function Ra(t){var e=Ua(t);return de(e)?null:JSON.parse(e||"{}")}function La(t,e){Fa.setStorage(t,e)}function Wa(t,e){Fa.setStorage(t,JSON.stringify(e||{}))}function Ga(t){Fa.removeStorage(t)}function Ja(){Fa.flushStorage()}function Ka(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(de(n)?"":",".concat(n))}function Qa(t){var e=t.label,n=t.name,r=t.helper,o="",a="",i="";if(ae(e))o=e;else{br({label:e,name:n,helper:r}),Wo({message:"label必须为文本"})}if(ae(n))a=n;else{br({label:e,name:n,helper:r}),Wo({message:"name必须为文本"})}if(ae(r))i=r;else{br({label:e,name:n,helper:r}),Wo({message:"helper必须为文本"})}return{label:o,name:a,helper:i}}function Va(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{eo as addHour,no as addMinute,ro as addSecond,Ct as assign,Et as assignWith,oa as attachPropertiesToComponent,Ka as buildFieldDescription,Va as buildFieldHelper,_r as buildHexColor,to as buildLinearGradient,gr as buildPromptModuleInfo,ka as buildQueryStringify,Xr as buildRGBColorFromHexColor,$r as buildRandomHexColor,na as buildStringStyle,Nr as cacheMountTarget,io as calculateDateInterval,uo as calculateMonthInterval,ao as calculateTimeInterval,_o as checkExist,Qa as checkFromConfig,sr as checkHasMore,ge as checkInCollection,yo as checkMessagePromptData,de as checkStringIsNullOrWhiteSpace,fr as checkWhetherDevelopmentEnvironment,ar as cloneWithoutMethod,Ae as convertCollection,ia as convertPixelToRem,De as datetimeFormat,gt as decodeBase64,Qr as deleteCache,Vr as deleteMultiCache,Gt as difference,yr as displayObjectMessage,pr as displayTextMessage,Pt as dropRight,Go as ellipsis,xe as emptyDatetime,ht as encodeBase64,St as endsWith,me as envCollection,Ne as errorImage,tr as evil,Jt as filter,Vt as find,Qt as findIndex,Nt as first,mt as fixedZero,Tt as floor,zr as flushAllCache,ya as flushLocalStorage,Ja as flushSessionStorage,jt as forEach,Se as formatCollection,vo as formatDateInterval,po as formatDateIntervalWithNow,ho as formatDatetime,so as formatDecimal,fo as formatMoney,go as formatMoneyToChinese,mo as formatTarget,xt as get,rr as getBrowserInfo,nr as getBrowserVersion,Wr as getCache,Yr as getCachePool,co as getDayOfWeek,Rr as getExpiration,lr as getGuid,ha as getJsonFromLocalStorage,Ra as getJsonFromSessionStorage,kr as getLoggerDisplaySwitch,Jr as getMultiCache,Ea as getNearestLocalhostNotifyCache,oo as getNow,Qo as getPathValue,ga as getStringFromLocalStorage,Ua as getStringFromSessionStorage,lo as getTodayOfWeek,dr as getValue,qo as getValueByKey,It as gte,ta as handleItem,Br as hasCache,ie as isArray,ee as isBoolean,er as isBrowser,oe as isDate,qt as isDatetime,Xt as isEqual,_t as isEqualBySerialize,te as isFunction,fe as isImageBase4,zt as isInvalid,$t as isMoney,re as isNull,Zt as isNumber,ue as isObject,ce as isPlainObject,le as isPromise,ae as isString,ne as isUndefined,se as isUrl,Gr as keys,ca as localStorageAssist,vr as logColorCollection,Ar as logConfig,wr as logData,Mr as logDebug,je as logDisplay,Er as logError,Or as logException,Cr as logExecute,xr as logInfo,Oe as logLevel,Ir as logObject,Sr as logStack,jr as logText,Dr as logTrace,br as logWarn,mr as loggerSwitch,Rt as map,kt as memoize,ea as mergeProps,ra as mergeStyle,wo as messagePromptAssist,ke as messageTypeCollection,Da as navigateTo,ba as navigationAssist,Ie as notificationTypeCollection,Ta as parseQueryString,Sa as redirectTo,ir as refitCommonData,ur as refitFieldDecoratorOption,Vo as removeEndMatch,Ut as removeFromArray,zo as removeLastMatch,pa as removeLocalStorage,ja as removeNearestLocalhostNotifyCache,Ga as removeSessionStorage,Ht as replace,Jo as replaceWithKeep,ye as requestMethod,Ot as reverse,At as round,va as saveJsonToLocalStorage,Wa as saveJsonToSessionStorage,ma as saveStringToLocalStorage,La as saveStringToSessionStorage,cr as searchFromList,or as seededRandom,Fa as sessionStorageAssist,Lt as set,Hr as setCache,Fr as setCacheMount,Co as setErrorMessageDisplayMonitor,Lr as setExpiration,Ao as setInfoMessageDisplayMonitor,xo as setLoadingMessageDisplayMonitor,da as setLocalStorageFlusher,la as setLocalStorageGetter,fa as setLocalStorageRemover,sa as setLocalStorageSetter,Tr as setLoggerDisplaySwitch,Ur as setMultiCache,xa as setNavigator,Oa as setNearestLocalhostNotifyCache,bo as setOpenMessageDisplayMonitor,Aa as setRedirector,Ha as setSessionStorageFlusher,Pa as setSessionStorageGetter,Ba as setSessionStorageRemover,Ya as setSessionStorageSetter,So as setSuccessMessageDisplayMonitor,Do as setWarnMessageDisplayMonitor,Mo as setWarningMessageDisplayMonitor,Ro as showErrorMessage,To as showInfoMessage,Io as showLoadingMessage,Oo as showOpenMessage,Wo as showRuntimeError,Uo as showSimpleErrorMessage,ko as showSimpleInfoMessage,jo as showSimpleLoadingMessage,Eo as showSimpleOpenMessage,Lo as showSimpleRuntimeError,No as showSimpleSuccessMessage,Po as showSimpleWarnMessage,Bo as showSimpleWarningMessage,Fo as showSuccessMessage,Yo as showWarnMessage,Ho as showWarningMessage,Wt as size,Ko as sleep,Kt as sortBy,Zo as sortCollectionByKey,Me as sortOperate,Dt as sortedUnique,Mt as split,Ft as startsWith,qr as statisticsCache,Kr as takeCache,Zn as to,Wn as toBoolean,Hn as toBoundary,Vn as toDatetime,Kn as toLower,Qn as toLowerFirst,Pn as toMd5,Un as toMoney,Bn as toNumber,Rn as toPercentage,zn as toPromise,qn as toRound,Fn as toSha1,Ln as toString,Gn as toUpper,Jn as toUpperFirst,Xo as transformData,$o as transformListData,Te as transparentImage,Bt as trim,Ia as trySendNearestLocalhostNotify,pe as underlyingExtensionState,ve as underlyingState,Yt as uniqBy,Ee as whetherNumber,Ce as whetherString,be as zeroInt,we as zeroString};
|
|
1
|
+
import t from"node-cache";import e from"lodash/isBoolean";import n from"lodash/isDate";import r from"lodash/isEqual";import o from"lodash/isFunction";import a from"lodash/isNull";import i from"lodash/isNumber";import u from"lodash/isObject";import c from"lodash/isString";import l from"lodash/isUndefined";import s from"lodash/replace";import f from"lodash/assign";import d from"lodash/assignWith";import g from"lodash/difference";import h from"lodash/dropRight";import m from"lodash/endsWith";import v from"lodash/filter";import p from"lodash/find";import y from"lodash/findIndex";import w from"lodash/first";import b from"lodash/floor";import A from"lodash/forEach";import x from"lodash/get";import S from"lodash/gte";import D from"lodash/map";import M from"lodash/memoize";import C from"lodash/remove";import E from"lodash/reverse";import O from"lodash/round";import j from"lodash/set";import I from"lodash/size";import k from"lodash/sortBy";import T from"lodash/sortedUniq";import N from"lodash/split";import F from"lodash/startsWith";import P from"lodash/trim";import Y from"lodash/uniqBy";import B from"lodash/toNumber";import H from"lodash/toString";import U from"object-hash";import R from"dayjs";import{stringify as L,parse as W}from"qs";var G,J="function"==typeof atob,K="function"==typeof btoa,Q="function"==typeof Buffer,V="function"==typeof TextDecoder?new TextDecoder:void 0,z="function"==typeof TextEncoder?new TextEncoder:void 0,q=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Z=(G={},q.forEach((function(t,e){return G[t]=e})),G),$=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,X=String.fromCharCode.bind(String),_="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return new Uint8Array(Array.prototype.slice.call(t,0).map(e))},tt=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},et=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},nt=K?function(t){return btoa(t)}:Q?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var e,n,r,o,a="",i=t.length%3,u=0;u<t.length;){if((n=t.charCodeAt(u++))>255||(r=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");a+=q[(e=n<<16|r<<8|o)>>18&63]+q[e>>12&63]+q[e>>6&63]+q[63&e]}return i?a.slice(0,i-3)+"===".substring(i):a},rt=Q?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(X.apply(null,t.subarray(n,n+4096)));return nt(e.join(""))},ot=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?X(192|e>>>6)+X(128|63&e):X(224|e>>>12&15)+X(128|e>>>6&63)+X(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return X(240|e>>>18&7)+X(128|e>>>12&63)+X(128|e>>>6&63)+X(128|63&e)},at=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,it=Q?function(t){return Buffer.from(t,"utf8").toString("base64")}:z?function(t){return rt(z.encode(t))}:function(t){return nt(t.replace(at,ot))},ut=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ct=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return X(55296+(e>>>10))+X(56320+(1023&e));case 3:return X((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return X((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},lt=J?function(t){return atob(et(t))}:Q?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!$.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,n,r,o="",a=0;a<t.length;)e=Z[t.charAt(a++)]<<18|Z[t.charAt(a++)]<<12|(n=Z[t.charAt(a++)])<<6|(r=Z[t.charAt(a++)]),o+=64===n?X(e>>16&255):64===r?X(e>>16&255,e>>8&255):X(e>>16&255,e>>8&255,255&e);return o},st=Q?function(t){return _(Buffer.from(t,"base64"))}:function(t){return _(lt(t),(function(t){return t.charCodeAt(0)}))},ft=Q?function(t){return Buffer.from(t,"base64").toString("utf8")}:V?function(t){return V.decode(st(t))}:function(t){return lt(t).replace(ut,ct)},dt=function(t){return ft(et(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function gt(t){return dt(t)}function ht(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?tt(it(t)):it(t)}(t)}function mt(t){return 1*t<10?"0".concat(t):t}function vt(t){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(t)}function pt(t){var e=function(t,e){if("object"!==vt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===vt(e)?e:String(e)}function yt(t,e,n){return(e=pt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach((function(e){yt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function At(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x(t,e,n)}function xt(t,e){return O(t,e)}function St(t,e,n){return m(t,e,n)}function Dt(t){return T(t)}function Mt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return N(t,e,n)}function Ct(t,e){return f(t,e)}function Et(t,e,n){return d(t,e,n)}function Ot(t){return E(t)}function jt(t,e){return A(t,e)}function It(t,e){return S(t,e)}function kt(t){return M(t)}function Tt(t,e){return b(t,e)}function Nt(t){return w(t)}function Ft(t,e){return F(t,e)}function Pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return h(t,e)}function Yt(t,e){return Y(t,e)}function Bt(t){return P(t)}function Ht(t,e,n){return s(t,e,n)}function Ut(t,e){return C(t,e)}function Rt(t,e){return D(t,e)}function Lt(t,e,n){return j(t,e,n)}function Wt(t){return I(t)}function Gt(t,e){return g(t,e)}function Jt(t,e){return v(t,e)}function Kt(t,e){return k(t,e)}function Qt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,e,n)}function Vt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t,e,n)}function zt(t){return ne(t)}function qt(t){var e="".concat(ne(t)?null:t).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==e)return!1;var n=new Date(e[1],e[3]-1,e[4]);return n.getFullYear()===parseInt(e[1],10)&&n.getMonth()+1===parseInt(e[3],10)&&n.getDate()===parseInt(e[4],10)}function Zt(t){return i(t)}function $t(t){var e="".concat(ne(t)?null:t);if(""===e)return!1;return new RegExp(/^([1-9][\d]{0,15}|0)(\.[\d]{1,2})?$/).test(e)}function Xt(t,e){return r(t,e)}function _t(t,e){return JSON.stringify(t||{})===JSON.stringify(e||{})}function te(t){return o(t)}function ee(t){return e(t)}function ne(t){return l(t)}function re(t){return a(t)}function oe(t){return n(t)}function ae(t){return c(t)}function ie(t){return Array.isArray(t)}function ue(t){return u(t)}function ce(t){return null!==t&&"object"===vt(t)&&!ie(t)}function le(t){return ce(t)&&te(t.then)&&te(t.catch)}function se(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function fe(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function de(t){return""===Bt(s(t||""," ",""))}function ge(t,e){var n=!1;return ie(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}var he="easy-soft-utility",me={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},ve={loadApiPath:"",firstLoadSuccess:!1,loadSuccess:!1,registering:!1,dataLoading:!1,reloading:!1,searching:!1,refreshing:!1,paging:!1,processing:!1,dispatchComplete:!0,metaData:null,metaExtra:null,metaListData:[],metaOriginalData:null,urlParams:null,externalData:null},pe={dataLoading:!0},ye={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},we="0",be=0,Ae="1970-01-01 00:00",xe={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},Se={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},De={yearMonthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",yearMonthDayHourMinute:"YYYY-MM-DD HH:mm",yearMonthDay:"YYYY-MM-DD",yearMonth:"YYYY-MM",year:"YYYY",monthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",monthDayHourMinute:"MM-DD HH:mm",monthDay:"MM-DD",hourMinute:"HH:mm",hourMinuteSecond:"HH:mm:ss",month:"MM",day:"DD",hour:"HH",minute:"mm",second:"ss"},Me={moveUp:"moveUp",moveDown:"moveDown"},Ce={no:"0",yes:"1"},Ee={no:0,yes:1},Oe={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},je={auto:"auto",text:"text",object:"object"},Ie={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ke={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",Ne=Te,Fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Pe=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(o);++r<o;)a[r]=t[r+e];return a};var Ye=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Pe(t,e,n)},Be=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var He=function(t){return Be.test(t)};var Ue=function(t){return t.split("")},Re="\\ud800-\\udfff",Le="["+Re+"]",We="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ge="\\ud83c[\\udffb-\\udfff]",Je="[^"+Re+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="(?:"+We+"|"+Ge+")"+"?",ze="[\\ufe0e\\ufe0f]?",qe=ze+Ve+("(?:\\u200d(?:"+[Je,Ke,Qe].join("|")+")"+ze+Ve+")*"),Ze="(?:"+[Je+We+"?",We,Ke,Qe,Le].join("|")+")",$e=RegExp(Ge+"(?="+Ge+")|"+Ze+qe,"g");var Xe=Ue,_e=He,tn=function(t){return t.match($e)||[]};var en=function(t){return _e(t)?tn(t):Xe(t)},nn="object"==vt(Fe)&&Fe&&Fe.Object===Object&&Fe,rn="object"==("undefined"==typeof self?"undefined":vt(self))&&self&&self.Object===Object&&self,on=(nn||rn||Function("return this")()).Symbol;var an=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},un=Array.isArray,cn=on,ln=Object.prototype,sn=ln.hasOwnProperty,fn=ln.toString,dn=cn?cn.toStringTag:void 0;var gn=function(t){var e=sn.call(t,dn),n=t[dn];try{t[dn]=void 0;var r=!0}catch(t){}var o=fn.call(t);return r&&(e?t[dn]=n:delete t[dn]),o},hn=Object.prototype.toString;var mn=gn,vn=function(t){return hn.call(t)},pn=on?on.toStringTag:void 0;var yn=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":pn&&pn in Object(t)?mn(t):vn(t)},wn=function(t){return null!=t&&"object"==vt(t)};var bn=an,An=un,xn=function(t){return"symbol"==vt(t)||wn(t)&&"[object Symbol]"==yn(t)},Sn=on?on.prototype:void 0,Dn=Sn?Sn.toString:void 0;var Mn=function t(e){if("string"==typeof e)return e;if(An(e))return bn(e,t)+"";if(xn(e))return Dn?Dn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Cn=Mn;var En=Ye,On=He,jn=en,In=function(t){return null==t?"":Cn(t)};var kn=function(t){return function(e){e=In(e);var n=On(e)?jn(e):void 0,r=n?n[0]:e.charAt(0),o=n?En(n,1).join(""):e.slice(1);return r[t]()+o}},Tn=kn("toLowerCase"),Nn=kn("toUpperCase");function Fn(t){return U(t,{algorithm:"sha1"})}function Pn(t){return U(t,{algorithm:"md5"})}function Yn(t,e){var n=Math.pow(10,e+1),r=Math.floor(Bn(t)*n);return 10*Math.round(r/10)/n}function Bn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=B(t),r=Number.isNaN(n)?0:n;return null==(e||null)?r:Yn(r,e)}function Hn(t,e,n){if(!Zt(t))throw new Error("value must be number value");var r=Bn(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function Un(t){return $t(t)?parseFloat(t,10):0}function Rn(t){return"".concat(Un(1e3*Bn(t)/10),"%")}function Ln(t){return H(t)}function Wn(t){return!!t}function Gn(t){return Ln(t).toUpperCase()}function Jn(t){return Nn(t)}function Kn(t){return Ln(t).toLowerCase()}function Qn(t){return Tn(t)}function Vn(t){if(null==(t||null))return null;if(oe(t))return t;if(ae(t)&&t.indexOf("T")<0){var e=t.replace(/\-/g,"/");return new Date(e)}return new Date(t)}function zn(t){return le(t)?t:Promise.resolve(t)}function qn(t,e){return xt(t,e)}function Zn(t){var e=t.target,n=t.convert;if(te(n))return n(e);if(ae(n))switch(n){case xe.number:return Bn(e);case xe.datetime:return Vn(e);case xe.string:return Ln(e);case xe.money:return Un(e);case xe.array:return null==(e||null)?[]:ie(e)?e:[e];default:return e}return e}function $n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xn(t,e){if(t){if("string"==typeof t)return $n(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(t,e):void 0}}function _n(t){return function(t){if(Array.isArray(t))return $n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t){return new Function("return ".concat(t))()}function er(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function nr(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1===t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1===t.indexOf("Safari")}}function rr(){var t;return{versions:nr(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function or(t){var e=t.seed,n=t.min||0;return n+(9301*e+49297)%233280/233280*((t.max||1)-n)}function ar(t){return null==t?null:JSON.parse(JSON.stringify(t))}function ir(t,e,n){var r=[];return null!=t&&(r=_n(t)),null!=n&&(r=[].concat(_n(r),_n(n))),null!=e&&(r=[e].concat(_n(r))),r}function ur(t,e,n,r,o){var a=r,i=void 0===n?null:n;return null!=e&&("function"==typeof convertValue?a.initialValue=o(t)||i:a.initialValue=t||i),a}function cr(t,e,n){var r=null;return null==e||(n||[]).forEach((function(n){n[t]===e&&(r=n)})),r}function lr(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],a=0;if(n=n||r.length,e)for(a=0;a<e;a++)o[a]=r[0|Math.random()*n];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",a=0;a<36;a++)o[a]||(t=0|16*Math.random(),o[a]=r[19===a?3&t|8:t]);return o.join("")}function sr(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function fr(){return"development"===process.env.NODE_ENV}function dr(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}function gr(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[t].concat(r).filter((function(t){return ae(t)&&!de(t)}));return"".concat(a.join("::"),"::").concat(de(e)?"":e)}var hr="loggerAssist",mr={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},vr={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function pr(t,e){return"".concat(Ln(t)).concat(de(e)?"":" -> ".concat(e))}function yr(t){var e=t.text,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation,u=void 0===i?"":i,c=pr(ae(e)?e:JSON.stringify(e),u);de(yr)||console.log("%c%s","color:".concat(r,";"),"".concat(de(a)?"":"[".concat(Gn(a),"] ")).concat(c))}function wr(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation;yr({text:"check the following object data",color:r,dataDescription:a,ancillaryInformation:void 0===i?"":i}),console.log(e)}function br(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=Tr();if(!mr.loggerDisplaySwitchSetComplete&&!mr.loggerDisplaySwitchPromptSetInformationComplete){var a=gr(he,"logData -> logger display switch default is false, if want to display log, please set it before first log, use setLoggerDisplaySwitch to set it, this message only show once",hr);yr({text:a,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}mr.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||n===Oe.exception){var i=null==(e||null)||de(e)?je.auto:e;if(!ge([je.auto,je.text,je.object],i))throw new Error("Invalid log display mode -> ".concat(i));if(i===je.auto&&(i=ae(t)?je.text:je.object),n!==Oe.exception){if(o){if(n===Oe.trace&&(i===je.text&&yr({text:t,color:vr.trace,dataDescription:"trace",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.trace,dataDescription:"trace",ancillaryInformation:r})),n===Oe.debug&&(i===je.text&&yr({text:t,color:vr.debug,dataDescription:"debug",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.debug,dataDescription:"debug",ancillaryInformation:r})),n===Oe.warn&&(i===je.text&&yr({text:t,color:vr.warn,dataDescription:"warn",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.warn,dataDescription:"warn",ancillaryInformation:r})),n===Oe.info&&(i===je.text&&yr({text:t,color:vr.info,dataDescription:"info",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.info,dataDescription:"info",ancillaryInformation:r})),n===Oe.execute&&(i===je.text&&yr({text:t,color:vr.execute,dataDescription:"execute",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.execute,dataDescription:"execute",ancillaryInformation:r})),n===Oe.config&&(i===je.text&&yr({text:t,color:vr.config,dataDescription:"config",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.config,dataDescription:"config",ancillaryInformation:r})),n===Oe.stack){i===je.text&&yr({text:t,color:vr.stack,dataDescription:"stack",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(Ht(u,"Error:","Stack:"))}}n===Oe.error&&(i===je.text&&yr({text:t,color:vr.error,dataDescription:"error",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.error,dataDescription:"error",ancillaryInformation:r}))}}else{i===je.text&&yr({text:t,color:vr.exception,dataDescription:"exception",ancillaryInformation:r}),i===je.object&&wr({data:t,color:vr.exception,dataDescription:"exception",ancillaryInformation:r});try{throw new Error("an error occur, check the above error message, the stack information is as follows")}catch(t){console.error(t)}}}}function Ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.warn,e):kr(t,Oe.warn,e)}function xr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.info,e):kr(t,Oe.info,e)}function Sr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.config,e):kr(t,Oe.config,e)}function Dr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.stack,e):kr(t,Oe.stack,e)}function Mr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.trace,e):kr(t,Oe.trace,e)}function Cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.debug,e):kr(t,Oe.debug,e)}function Er(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.execute,e):kr(t,Oe.execute,e)}function Or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.error,e):kr(t,Oe.error,e)}function jr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";ae(t)?Ir(t,Oe.exception,e):kr(t,Oe.exception,e)}function Ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";br(t,je.text,e,n)}function kr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";br(t,je.object,e,n)}function Tr(){return Wn(mr.display)}function Nr(t){fr()&&yr({text:"setLoggerDisplaySwitch",color:vr.execute,dataDescription:"execute",ancillaryInformation:""}),mr.display=Wn(t),mr.loggerDisplaySwitchSetComplete=!0}var Fr={mountComplete:!1,target:null};function Pr(e){if(Er("setCacheMount"),!ue(e))throw Cr(e),new Error(gr(he,"setCacheMount -> cache mount target must be a object, current type is ".concat(vt(e)),"cacheAssist"));null==(e.localRuntimeCache||null)&&(e.localRuntimeCache=new t),Fr.target=e,Fr.mountComplete=!0,xr("setCacheMount -> cache mount success.")}function Yr(t){return de(t)?(jr("checkKey -> cache key is null or empty"),!1):!(!ae(t)&&!Zt(t))||(jr("cache key must be string or number, current type id ".concat(vt(t))),!1)}function Br(){if(!Fr.mountComplete||!Fr.target||!Fr.target.localRuntimeCache)throw new Error("getCachePool -> please use setCacheMount function to set cache mount target before get it.");return Fr.target.localRuntimeCache}function Hr(t){var e=t.key,n=Br();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function Ur(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(Yr(e)){var a=Br();if(null==a)throw new Error("cache pool not exist");return a.set(e,n,o)}}function Rr(t){if(!ie(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var e=[];if(t.forEach((function(t){var n=bt(bt({},{key:"",value:"",expiration:0}),t),r=n.key,o=n.value,a=n.expiration;if(!de(r)){if(!Yr(r))return;e.push({key:r,value:o,ttl:a})}})),e.length<=0)return!1;var n=Br();if(null==n)throw new Error("cache pool not exist");return n.mset(e)}function Lr(t){var e=t.key,n=Br();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function Wr(t){var e=t.key,n=t.expiration,r=Br();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function Gr(t){var e=t.key,n=Br();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function Jr(){var t=Br();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Kr(t){if(!ie(t))throw new Error("getMultiCache: list must be array");var e=Br();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function Qr(t){var e=t.key,n=Br();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function Vr(t){var e=t.key;if(Yr(e)){var n=Br();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function zr(t){if(!ie(t))throw new Error("deleteMultiCache: list must be array");var e=Br();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function qr(){var t=Br();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function Zr(){var t=Br();if(null==t)throw new Error("cache pool not exist");return t.getStats()}function $r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||Xn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xr(t){var e=t.seed;return"#".concat("00000".concat((16777216*or({seed:e})<<0).toString(16)).substring(-6))}function _r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RGB",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,o=(null!=t?t:"").toLowerCase();if(r.test(o)){if(4===o.length){for(var a="#",i=1;i<4;i+=1)a+=o.slice(i,i+1).concat(o.slice(i,i+1));o=a}for(var u=[],c=1;c<7;c+=2)u.push(parseInt("0x"+o.slice(c,c+2)));return e?"".concat(e,"(").concat(u.join(","),")"):n?u:u.join(",")}return jr("Invalid hex color -> ".concat(t)),o}function to(t){var e=t.progress,n=t.startColor,r=t.endColor,o=_r(n,null,!0),a=_r(r,null,!0),i=$r(o,3),u=i[0],c=i[1],l=i[2],s=$r(a,3),f=s[0],d=s[1],g=s[2],h=[(u+Math.round((f-u)*e)).toString(16),(c+Math.round((d-c)*e)).toString(16),(l+Math.round((g-l)*e)).toString(16)];return"#".concat(h.join("").toUpperCase())}function eo(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=Zt(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(),")")}function no(t,e){var n=Vn(t);return n.setHours(n.getHours()+e)}function ro(t,e){var n=Vn(t);return n.setMinutes(n.getMinutes()+e)}function oo(t,e){var n=Vn(t);return n.setSeconds(n.getSeconds()+e)}function ao(){return new Date}function io(t,e){var n=t.getTime(),r=(e.getTime()-n)/1e3,o=parseInt(r/86400),a=parseInt((r-24*o*60*60)/3600),i=parseInt((r-24*o*60*60-60*a*60)/60);return{day:o,hour:a,minute:i,second:r-24*o*60*60-60*a*60-60*i}}var uo=function(t,e,n){var r=Vn(t),o=e?Vn(e):new Date,a=o.getTime()-r.getTime();return"second"===n&&a/1e3||"minute"===n&&a/1e3/60||"hour"===n&&a/1e3/60/60||"day"===n&&a/1e3/60/60/24||"week"===n&&a/1e3/60/60/24/7||"month"===n&&co(r,o)||"quarter"===n&&co(r,o)/3||"year"===n&&co(r,o)/12||a},co=function(t,e){var n=Vn(t),r=Vn(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function lo(t){var e=t.data;return R(e).day()}function so(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=R().day();if(!t)return e;var n="";switch(Bn(e)){case 0:n="日";break;case 1:n="一";break;case 2:n="二";break;case 3:n="三";break;case 4:n="四";break;case 5:n="五";break;case 6:n="六";break;default:n=""}return de(n)?"":"星期".concat(n)}function fo(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.thousand,a=void 0===o?",":o,i=t.decimal;return go({data:e,places:r,symbol:"",thousand:a,decimal:void 0===i?".":i})}function go(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.symbol,a=void 0===o?"¥":o,i=t.thousand,u=void 0===i?",":i,c=t.decimal,l=void 0===c?".":c,s=e||0,f=isNaN(r=Math.abs(r))?2:r,d=void 0!==a?a:"¥",g=u||",",h=l||".",m=s<0?"-":"",v=parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",p=v.length;return d+m+((p=p>3?p%3:0)?v.substr(0,p)+g:"")+v.substr(p).replace(/(\d{3})(?=\d)/g,a+"1"+g)+(f?h+Math.abs(s-Bn(v)).toFixed(f).slice(2):"")}function ho(t){var e,n,r,o=t.target,a=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],i=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],l="";if(""===o)return"";if((o=parseFloat(o))>=1e15)return"超出最大处理数字";if(0===o)return l=a[0]+"元";if(-1===(o=o.toString()).indexOf("."))e=o,n="";else{var s=$r(r=o.split("."),2);e=s[0],n=s[1],n=r[1].substr(0,4)}if(parseInt(e,10)>0){for(var f=0,d=e.length,g=0;g<d;g+=1){var h=e.substr(g,1),m=d-g-1,v=m/4,p=m%4;"0"===h?f+=1:(f>0&&(l+=a[0]),f=0,l+=a[parseInt(h,10)]+i[p]),0===p&&f<4&&(l+=u[v])}l+="元"}if(""!==n)for(var y=n.length,w=0;w<y;w+=1){var b=n.substr(w,1);"0"!==b&&(l+=a[Number(b)]+c[w])}return""===l&&(l+=a[0]+"元"),l}function mo(t){var e=t.data,n=t.fmt,r=void 0===n?De.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":R(e).format(r)}function vo(t){var e=t.target,n=t.format,r=t.option,o=void 0===r?{}:r;if(te(n))return n(e);if(ae(n))switch(n){case Se.money:return go({data:e});case Se.datetime:return mo({data:e});case Se.chineseMoney:return ho({target:e,option:o});case Se.percentage:return"".concat(qn(100*e,1),"%");default:return e}return e}function po(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=bt(bt({},{second:["刚刚","片刻后"],seconds:["%d 秒前","%d 秒后"],minute:["大约 1 分钟前","大约 1 分钟后"],minutes:["%d 分钟前","%d 分钟后"],hour:["大约 1 小时前","大约 1 小时后"],hours:["%d 小时前","%d 小时后"],day:["1 天前","1 天后"],days:["%d 天前","%d 天后"],month:["大约 1 个月前","大约 1 个月后"],months:["%d 月前","%d 月后"],year:["大约 1 年前","大约 1 年后"],years:["%d 年前","%d 年后"]}),n||{}),o=uo(t,e),a=o<0?1:0,i=Math.abs(o)/1e3,u=i/60,c=u/60,l=c/24,s=l/365,f=function(t,e){return t.replace(/%d/i,e)};return i<10&&f(r.second[a],parseInt(i))||i<45&&f(r.seconds[a],parseInt(i))||i<90&&f(r.minute[a],1)||u<45&&f(r.minutes[a],parseInt(u))||u<90&&f(r.hour[a],1)||c<24&&f(r.hours[a],parseInt(c))||c<42&&f(r.day[a],1)||l<30&&f(r.days[a],parseInt(l))||l<45&&f(r.month[a],1)||l<365&&f(r.months[a],parseInt(l/30))||s<1.5&&f(r.year[a],1)||f(r.years[a],parseInt(s))}function yo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return po(t,ao(),e)}function wo(t){return de(t.text||null)&&Ar(gr(he,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var bo={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,xr(e)},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,xr(e)},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,xr(e)},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,xr(e)},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,Ar(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,Ar(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,Or(e)},setErrorMessageDisplayMonitorComplete:!1};function Ao(t){bo.showOpenMessage=t}function xo(t){bo.showLoadingMessage=t}function So(t){bo.showInfoMessage=t}function Do(t){bo.showSuccessMessage=t}function Mo(t){bo.showWarnMessage=t}function Co(t){bo.showWarningMessage=t}function Eo(t){bo.showErrorMessage=t,bo.setErrorMessageDisplayMonitorComplete=!0}function Oo(t){jo({text:t})}function jo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(bo.showOpenMessage)&&(wo({text:e}),bo.showOpenMessage({text:e,duration:r,onClose:a}))}function Io(t){ko({text:t})}function ko(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(bo.showLoadingMessage)&&(wo({text:e}),bo.showLoadingMessage({text:e,duration:r,onClose:a}))}function To(t){No({text:t})}function No(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(bo.showInfoMessage)&&(wo({text:e}),bo.showInfoMessage({text:e,duration:r,onClose:a}))}function Fo(t){Po({text:t})}function Po(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(bo.showSuccessMessage)&&(wo({text:e}),bo.showSuccessMessage({text:e,duration:r,onClose:a}))}function Yo(t){Bo({text:t})}function Bo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(bo.showWarnMessage)&&(wo({text:e}),bo.showWarnMessage({text:e,duration:r,onClose:a}))}function Ho(t){Uo({text:t})}function Uo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(bo.showWarningMessage)&&(wo({text:e}),bo.showWarningMessage({text:e,duration:r,onClose:a}))}function Ro(t){Lo({text:t})}function Lo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;te(bo.showErrorMessage)&&(wo({text:e}),bo.showErrorMessage({text:e,duration:r,onClose:a}))}function Wo(t){Go({text:t})}function Go(t){var e=t.text;de(e||"")||(bo.setErrorMessageDisplayMonitorComplete&&Lo({text:e}),jr({text:e}))}function Jo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>e?"".concat(Ln(t).substring(0,e)).concat(n):Ln(t)}function Ko(t,e,n,r){var o=Ln(t),a=(t||"").length;a>0&&(n>=0||r>=0)&&(o=n>=a||r>=a||(n||0)+(r||0)>=a?t:t.substr(0,n)+e+t.substr(a-r,r));return o||""}function Qo(t,e){for(var n=(new Date).getTime();!((new Date).getTime()-n>t););te(e)&&e()}function Vo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(ne(t))return n;if(null==t)return n;if(!ae(e)){var r="getPathValue Function param path must be string";return Go({message:r}),null}var o=At(t,e,n);return ne(n)||re(n)?o:o||n}function zo(t,e){if(!ae(t))throw new Error("removeEndMatch only use for string target");if(!ae(e))throw new Error("removeEndMatch only use for string match");if(de(t))return t;if(de(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.substr(n,e.length):t}function qo(t,e){if(!ae(t))throw new Error("removeEndMatch only use for string source");if(!ae(e))throw new Error("removeEndMatch only use for string target");if(de(t))return t;if(de(e))return t;var n=t.lastIndexOf(e);return n>=0?t.substr(n,e.length):t}function Zo(t){var e=t.data,n=t.key,r=t.defaultValue,o=void 0===r?null:r,a=t.convert,i=void 0===a?null:a,u=t.convertBuilder,c=void 0===u?null:u,l=t.format,s=void 0===l?null:l,f=t.formatBuilder,d=void 0===f?null:f,g=Vo(e,n,o),h=g;return null==(c||null)&&null==(i||null)||(h=te(c)?Zn({target:g,convert:c}):Zn({target:g,convert:i})),null==(d||null)&&null==(s||null)||(h=te(d)?vo({target:h,format:d}):vo({target:h,format:s})),h}function $o(t){var e=t.operate,n=t.item,r=t.list,o=t.key,a=t.sortInitialValue,i=void 0===a?0:a;if(null==(n||null))return r;var u=[],c=[],l=[];if((r||[]).length<=1){return Bo({message:"无需排序!"}),r}var s=Zo({data:n,key:o,convert:xe.number});switch((r||[]).forEach((function(t){var e=Zo({data:t,key:o,convert:xe.number});e<s&&u.push(t),e>s&&c.push(t)})),e){case Me.moveUp:if(s===i){return Bo({message:"已经排在首位!"}),r}(u||[]).forEach((function(t,e){if(e<u.length-1)l.push(t);else{var r=n;r[o]-=1,l.push(r);var a=t;a[o]+=1,l.push(a)}})),l=l.concat(c);break;case Me.moveDown:if(s===(r||[]).length+i-1){return Bo({message:"已经排在末位!"}),r}l=l.concat(u),(c||[]).forEach((function(t,e){if(0===e){var r=t;r[o]-=1,l.push(r);var a=n;a[o]+=1,l.push(a)}else l.push(t)}));break;default:Bo({message:"不符合的操作, 允许的操作为['".concat(Me.moveUp,"','").concat(Me.moveDown,"']!")})}return l}function Xo(t){var e=t.list,n=void 0===e?[]:e,r=t.convert,o=void 0===r?null:r,a=t.recursiveKey,i=void 0===a?"children":a;return(ie(n)?n:[n]).map((function(t){return _o({data:t,convert:o,target:i})}))}function _o(t){var e=t.data,n=t.convert,r=void 0===n?null:n,o=t.recursiveKey,a=void 0===o?"children":o;if(!te(r))return e;var i=r(e),u=e[a],c=[];return ie(u)&&(c=u.map((function(t){return _o({data:t,convert:r,target:a})}))),i[a]=c,i}function ta(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Vt(t,e,n);return!ne(r)}function ea(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(null==(e||null))throw new Error("handleItem: target not allow null");if(null==(e.state||null))throw new Error("handleItem: target.state not allow null");var a=e.state.metaOriginalData;if(null==(a||null))throw new Error("handleItem: target.state.metaOriginalData not allow null");var i=-1;if(te(r))if(te(o)){if(null==(a.list||null))throw new Error("handleItem: target.state.metaOriginalData.list must be array");a.list.forEach((function(t,e){r(t)===n&&(i=e)})),i>=0&&(a.list[i]=o(a.list[i]),e.setState({metaOriginalData:a}))}else{Go({message:"handler mast be function"})}else{Go({message:"compareDataIdHandler mast be function"})}}function na(){function t(t,e){return ne(e)?t:e}for(var e=Ct({},arguments.length<=0?void 0:arguments[0]),n=1;n<arguments.length;n++)e=Et(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e}function ra(t){if(t&&"object"===vt(t)){var e="";return Object.keys(t).forEach((function(n){var r,o=(null!==(r=n.replace(/([A-Z])/g,"-$1"))&&void 0!==r?r:"").toLowerCase();e+="".concat(o,":").concat(t[n],";")})),e}return t&&"string"==typeof t?t:""}function oa(t,e){return t&&"object"===vt(t)&&e&&"object"===vt(e)?Object.assign({},t,e):ra(t)+ra(e)}function aa(t,e){var n=t;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var ia="htmlAssist";function ua(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Zt(t))return t;if(!Zt(e)||e<=0)throw new Error(gr(he,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),ia));var o=parseFloat(t);if(o<r)return t;var a=Bn(o/e,n);return 0===a?"0":a+"rem"}var ca="localStorageAssist",la={getStorage:function(t){jr(gr(he,"setStorageGetter need config, use setStorageGetter to set it",ca))},setStorage:function(t,e){jr(gr(he,"setStorageSetter need config, use setStorageSetter to set it",ca))},removeStorage:function(t){jr(gr(he,"setStorageRemover need config, use setStorageRemover to set it",ca))},flushStorage:function(){jr(gr(he,"setStorageFlusher need config, use setStorageFlusher to set it",ca))}};function sa(t){la.getStorage=t}function fa(t){la.setStorage=t}function da(t){la.removeStorage=t}function ga(t){la.flushStorage=t}function ha(t){try{return la.getStorage(t)}catch(e){throw jr({key:t,e:e}),e}}function ma(t){var e=ha(t);return de(e)?null:JSON.parse(e||"{}")}function va(t,e){la.setStorage(t,e)}function pa(t,e){la.setStorage(t,JSON.stringify(e||{}))}function ya(t){la.removeStorage(t)}function wa(){la.flushStorage()}var ba="navigationAssist",Aa={navigateTo:function(t){jr(gr(he,"setNavigator need config, use setNavigator to set it",ba))},redirectTo:function(t,e){jr(gr(he,"setRedirector need config, use setRedirector to set it",ba))}};function xa(t){Aa.navigateTo=t}function Sa(t){Aa.redirectTo=t}function Da(t){if(ae(t)||ue(t))Aa.redirectTo(t);else{Ro("invalid parameter, params need string or object")}}function Ma(t){if(ae(t)||ue(t))Aa.navigateTo(t);else{Ro("invalid parameter, params need string or object")}}var Ca=function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,xr(pr(e,r))};var Ea="nearestLocalhostNotify";function Oa(){var t=ma(Ea);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function ja(){return pa(Ea,{nearestTime:parseInt((new Date).getTime()/1e3,10)})}function Ia(){ya(Ea)}function ka(t){var e=t.text,n=!1,r=0,o=Oa()||null;null==o?n=!0:r=o.nearestTime||0;var a,i,u,c,l,s,f,d,g,h,m=parseInt((new Date).getTime()/1e3,10);try{if(r+30<m&&(n=!0),n){var v="当前接口域名: ".concat(e,". ");i=(a={text:v}).title,u=a.description,c=void 0===u?"":u,l=a.placement,s=void 0===l?"":l,f=a.duration,d=void 0===f?3e3:f,g=a.onClose,h=void 0===g?function(){}:g,te(Ca)&&Ca({title:i,description:c,placement:s,duration:d,onClose:h}),Ir({message:v}),ja()}}catch(t){br(t)}}function Ta(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=L(t);if(de(e))return n;if(de(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function Na(t){return W(t)}var Fa="sessionStorageAssist",Pa={getStorage:function(t){jr(gr(he,"setStorageGetter need config, use setStorageGetter to set it",Fa))},setStorage:function(t,e){jr(gr(he,"setStorageSetter need config, use setStorageSetter to set it",Fa))},removeStorage:function(t){jr(gr(he,"setStorageRemover need config, use setStorageRemover to set it",Fa))},flushStorage:function(){jr(gr(he,"setStorageFlusher need config, use setStorageFlusher to set it",Fa))}};function Ya(t){Pa.getStorage=t}function Ba(t){Pa.setStorage=t}function Ha(t){Pa.removeStorage=t}function Ua(t){Pa.flushStorage=t}function Ra(t){try{return Pa.getStorage(t)}catch(e){throw jr({key:t,e:e}),e}}function La(t){var e=Ra(t);return de(e)?null:JSON.parse(e||"{}")}function Wa(t,e){Pa.setStorage(t,e)}function Ga(t,e){Pa.setStorage(t,JSON.stringify(e||{}))}function Ja(t){Pa.removeStorage(t)}function Ka(){Pa.flushStorage()}function Qa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(de(n)?"":",".concat(n))}function Va(t){var e=t.label,n=t.name,r=t.helper,o="",a="",i="";if(ae(e))o=e;else{Ar({label:e,name:n,helper:r}),Go({message:"label必须为文本"})}if(ae(n))a=n;else{Ar({label:e,name:n,helper:r}),Go({message:"name必须为文本"})}if(ae(r))i=r;else{Ar({label:e,name:n,helper:r}),Go({message:"helper必须为文本"})}return{label:o,name:a,helper:i}}function za(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{no as addHour,ro as addMinute,oo as addSecond,Ct as assign,Et as assignWith,aa as attachPropertiesToComponent,Qa as buildFieldDescription,za as buildFieldHelper,to as buildHexColor,eo as buildLinearGradient,gr as buildPromptModuleInfo,Ta as buildQueryStringify,_r as buildRGBColorFromHexColor,Xr as buildRandomHexColor,ra as buildStringStyle,Fr as cacheMountTarget,uo as calculateDateInterval,co as calculateMonthInterval,io as calculateTimeInterval,ta as checkExist,Va as checkFromConfig,sr as checkHasMore,ge as checkInCollection,wo as checkMessagePromptData,de as checkStringIsNullOrWhiteSpace,fr as checkWhetherDevelopmentEnvironment,ar as cloneWithoutMethod,xe as convertCollection,ua as convertPixelToRem,De as datetimeFormat,gt as decodeBase64,Vr as deleteCache,zr as deleteMultiCache,Gt as difference,wr as displayObjectMessage,yr as displayTextMessage,Pt as dropRight,Jo as ellipsis,Ae as emptyDatetime,ht as encodeBase64,St as endsWith,me as envCollection,Ne as errorImage,tr as evil,Jt as filter,Vt as find,Qt as findIndex,Nt as first,mt as fixedZero,Tt as floor,qr as flushAllCache,wa as flushLocalStorage,Ka as flushSessionStorage,jt as forEach,Se as formatCollection,po as formatDateInterval,yo as formatDateIntervalWithNow,mo as formatDatetime,fo as formatDecimal,go as formatMoney,ho as formatMoneyToChinese,vo as formatTarget,At as get,rr as getBrowserInfo,nr as getBrowserVersion,Gr as getCache,Br as getCachePool,lo as getDayOfWeek,Lr as getExpiration,lr as getGuid,ma as getJsonFromLocalStorage,La as getJsonFromSessionStorage,Tr as getLoggerDisplaySwitch,Kr as getMultiCache,Oa as getNearestLocalhostNotifyCache,ao as getNow,Vo as getPathValue,ha as getStringFromLocalStorage,Ra as getStringFromSessionStorage,so as getTodayOfWeek,dr as getValue,Zo as getValueByKey,It as gte,ea as handleItem,Hr as hasCache,ie as isArray,ee as isBoolean,er as isBrowser,oe as isDate,qt as isDatetime,Xt as isEqual,_t as isEqualBySerialize,te as isFunction,fe as isImageBase4,zt as isInvalid,$t as isMoney,re as isNull,Zt as isNumber,ue as isObject,ce as isPlainObject,le as isPromise,ae as isString,ne as isUndefined,se as isUrl,Jr as keys,la as localStorageAssist,vr as logColorCollection,Sr as logConfig,br as logData,Cr as logDebug,je as logDisplay,Or as logError,jr as logException,Er as logExecute,xr as logInfo,Oe as logLevel,kr as logObject,Dr as logStack,Ir as logText,Mr as logTrace,Ar as logWarn,mr as loggerSwitch,Rt as map,kt as memoize,na as mergeProps,oa as mergeStyle,pr as mergeTextMessage,bo as messagePromptAssist,ke as messageTypeCollection,Ma as navigateTo,Aa as navigationAssist,Ie as notificationTypeCollection,Na as parseQueryString,Da as redirectTo,ir as refitCommonData,ur as refitFieldDecoratorOption,zo as removeEndMatch,Ut as removeFromArray,qo as removeLastMatch,ya as removeLocalStorage,Ia as removeNearestLocalhostNotifyCache,Ja as removeSessionStorage,Ht as replace,Ko as replaceWithKeep,ye as requestMethod,Ot as reverse,xt as round,pa as saveJsonToLocalStorage,Ga as saveJsonToSessionStorage,va as saveStringToLocalStorage,Wa as saveStringToSessionStorage,cr as searchFromList,or as seededRandom,Pa as sessionStorageAssist,Lt as set,Ur as setCache,Pr as setCacheMount,Eo as setErrorMessageDisplayMonitor,Wr as setExpiration,So as setInfoMessageDisplayMonitor,xo as setLoadingMessageDisplayMonitor,ga as setLocalStorageFlusher,sa as setLocalStorageGetter,da as setLocalStorageRemover,fa as setLocalStorageSetter,Nr as setLoggerDisplaySwitch,Rr as setMultiCache,xa as setNavigator,ja as setNearestLocalhostNotifyCache,Ao as setOpenMessageDisplayMonitor,Sa as setRedirector,Ua as setSessionStorageFlusher,Ya as setSessionStorageGetter,Ha as setSessionStorageRemover,Ba as setSessionStorageSetter,Do as setSuccessMessageDisplayMonitor,Mo as setWarnMessageDisplayMonitor,Co as setWarningMessageDisplayMonitor,Lo as showErrorMessage,No as showInfoMessage,ko as showLoadingMessage,jo as showOpenMessage,Go as showRuntimeError,Ro as showSimpleErrorMessage,To as showSimpleInfoMessage,Io as showSimpleLoadingMessage,Oo as showSimpleOpenMessage,Wo as showSimpleRuntimeError,Fo as showSimpleSuccessMessage,Yo as showSimpleWarnMessage,Ho as showSimpleWarningMessage,Po as showSuccessMessage,Bo as showWarnMessage,Uo as showWarningMessage,Wt as size,Qo as sleep,Kt as sortBy,$o as sortCollectionByKey,Me as sortOperate,Dt as sortedUnique,Mt as split,Ft as startsWith,Zr as statisticsCache,Qr as takeCache,Zn as to,Wn as toBoolean,Hn as toBoundary,Vn as toDatetime,Kn as toLower,Qn as toLowerFirst,Pn as toMd5,Un as toMoney,Bn as toNumber,Rn as toPercentage,zn as toPromise,qn as toRound,Fn as toSha1,Ln as toString,Gn as toUpper,Jn as toUpperFirst,_o as transformData,Xo as transformListData,Te as transparentImage,Bt as trim,ka as trySendNearestLocalhostNotify,pe as underlyingExtensionState,ve as underlyingState,Yt as uniqBy,Ee as whetherNumber,Ce as whetherString,be as zeroInt,we as zeroString};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge text message
|
|
3
|
+
* @param {String} text the string will be merged
|
|
4
|
+
* @param {String} ancillaryInformation when ancillary Information not empty, it will be merged
|
|
5
|
+
*/
|
|
6
|
+
export function mergeTextMessage(text: string, ancillaryInformation: string): string;
|
|
1
7
|
/**
|
|
2
8
|
* Display text message
|
|
3
9
|
* @param {Object} option log option
|
|
@@ -27,122 +27,150 @@ export function setWarningNotificationDisplayMonitor(callbackMonitor: any): void
|
|
|
27
27
|
*/
|
|
28
28
|
export function setErrorNotificationDisplayMonitor(callbackMonitor: any): void;
|
|
29
29
|
/**
|
|
30
|
-
* Show simple
|
|
30
|
+
* Show simple title open notification with display monitor
|
|
31
31
|
*/
|
|
32
|
-
export function showSimpleOpenNotification(
|
|
32
|
+
export function showSimpleOpenNotification(title: any): void;
|
|
33
33
|
/**
|
|
34
34
|
* Show open notification with display monitor
|
|
35
35
|
*/
|
|
36
|
-
export function showOpenNotification({
|
|
37
|
-
|
|
36
|
+
export function showOpenNotification({ title, description, placement, duration, onClose, }: {
|
|
37
|
+
title: any;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
placement?: string | undefined;
|
|
38
40
|
duration?: number | undefined;
|
|
39
41
|
onClose?: (() => void) | undefined;
|
|
40
42
|
}): void;
|
|
41
43
|
/**
|
|
42
|
-
* Show simple
|
|
44
|
+
* Show simple title loading notification with display monitor
|
|
43
45
|
*/
|
|
44
|
-
export function showSimpleLoadingNotification(
|
|
46
|
+
export function showSimpleLoadingNotification(title: any): void;
|
|
45
47
|
/**
|
|
46
48
|
* Show loading notification with display monitor
|
|
47
49
|
*/
|
|
48
|
-
export function showLoadingNotification({
|
|
49
|
-
|
|
50
|
+
export function showLoadingNotification({ title, description, placement, duration, onClose, }: {
|
|
51
|
+
title: any;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
placement?: string | undefined;
|
|
50
54
|
duration?: number | undefined;
|
|
51
55
|
onClose?: (() => void) | undefined;
|
|
52
56
|
}): void;
|
|
53
57
|
/**
|
|
54
|
-
* Show simple
|
|
58
|
+
* Show simple title info notification with display monitor
|
|
55
59
|
*/
|
|
56
|
-
export function showSimpleInfoNotification(
|
|
60
|
+
export function showSimpleInfoNotification(title: any): void;
|
|
57
61
|
/**
|
|
58
62
|
* Show info notification with display monitor
|
|
59
63
|
*/
|
|
60
|
-
export function showInfoNotification({
|
|
61
|
-
|
|
64
|
+
export function showInfoNotification({ title, description, placement, duration, onClose, }: {
|
|
65
|
+
title: any;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
placement?: string | undefined;
|
|
62
68
|
duration?: number | undefined;
|
|
63
69
|
onClose?: (() => void) | undefined;
|
|
64
70
|
}): void;
|
|
65
71
|
/**
|
|
66
|
-
* Show simple
|
|
72
|
+
* Show simple title warn notification with display monitor
|
|
67
73
|
*/
|
|
68
|
-
export function
|
|
74
|
+
export function showSimpleWarnNotification(title: any): void;
|
|
69
75
|
/**
|
|
70
|
-
* Show
|
|
76
|
+
* Show warn notification with display monitor
|
|
71
77
|
*/
|
|
72
|
-
export function
|
|
73
|
-
|
|
78
|
+
export function showWarnNotification({ title, description, placement, duration, onClose, }: {
|
|
79
|
+
title: any;
|
|
80
|
+
description?: string | undefined;
|
|
81
|
+
placement?: string | undefined;
|
|
74
82
|
duration?: number | undefined;
|
|
75
83
|
onClose?: (() => void) | undefined;
|
|
76
84
|
}): void;
|
|
77
85
|
/**
|
|
78
|
-
* Show simple
|
|
86
|
+
* Show simple title warning notification with display monitor
|
|
79
87
|
*/
|
|
80
|
-
export function
|
|
88
|
+
export function showSimpleWarningNotification(title: any): void;
|
|
81
89
|
/**
|
|
82
|
-
* Show
|
|
90
|
+
* Show warning notification with display monitor
|
|
83
91
|
*/
|
|
84
|
-
export function
|
|
85
|
-
|
|
92
|
+
export function showWarningNotification({ title, description, placement, duration, onClose, }: {
|
|
93
|
+
title: any;
|
|
94
|
+
description?: string | undefined;
|
|
95
|
+
placement?: string | undefined;
|
|
86
96
|
duration?: number | undefined;
|
|
87
97
|
onClose?: (() => void) | undefined;
|
|
88
98
|
}): void;
|
|
89
99
|
/**
|
|
90
|
-
* Show simple
|
|
100
|
+
* Show simple title success notification with display monitor
|
|
91
101
|
*/
|
|
92
|
-
export function
|
|
102
|
+
export function showSimpleSuccessNotification(title: any): void;
|
|
93
103
|
/**
|
|
94
|
-
* Show
|
|
104
|
+
* Show success notification with display monitor
|
|
95
105
|
*/
|
|
96
|
-
export function
|
|
97
|
-
|
|
106
|
+
export function showSuccessNotification({ title, description, placement, duration, onClose, }: {
|
|
107
|
+
title: any;
|
|
108
|
+
description?: string | undefined;
|
|
109
|
+
placement?: string | undefined;
|
|
98
110
|
duration?: number | undefined;
|
|
99
111
|
onClose?: (() => void) | undefined;
|
|
100
112
|
}): void;
|
|
101
113
|
/**
|
|
102
|
-
* Show simple
|
|
114
|
+
* Show simple title error notification with display monitor
|
|
103
115
|
*/
|
|
104
|
-
export function showSimpleErrorNotification(
|
|
116
|
+
export function showSimpleErrorNotification(title: any): void;
|
|
105
117
|
/**
|
|
106
118
|
* Show error notification with display monitor
|
|
107
119
|
*/
|
|
108
|
-
export function showErrorNotification({
|
|
109
|
-
|
|
120
|
+
export function showErrorNotification({ title, description, placement, duration, onClose, }: {
|
|
121
|
+
title: any;
|
|
122
|
+
description?: string | undefined;
|
|
123
|
+
placement?: string | undefined;
|
|
110
124
|
duration?: number | undefined;
|
|
111
125
|
onClose?: (() => void) | undefined;
|
|
112
126
|
}): void;
|
|
113
127
|
export namespace notificationPromptAssist {
|
|
114
|
-
function showOpenNotification({
|
|
115
|
-
|
|
128
|
+
function showOpenNotification({ title, description, placement, duration, onClose, }: {
|
|
129
|
+
title: any;
|
|
130
|
+
description?: string | undefined;
|
|
131
|
+
placement?: string | undefined;
|
|
116
132
|
duration?: number | undefined;
|
|
117
133
|
onClose?: (() => void) | undefined;
|
|
118
134
|
}): void;
|
|
119
|
-
function showLoadingNotification({
|
|
120
|
-
|
|
135
|
+
function showLoadingNotification({ title, description, placement, duration, onClose, }: {
|
|
136
|
+
title: any;
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
placement?: string | undefined;
|
|
121
139
|
duration?: number | undefined;
|
|
122
140
|
onClose?: (() => void) | undefined;
|
|
123
141
|
}): void;
|
|
124
|
-
function showInfoNotification({
|
|
125
|
-
|
|
142
|
+
function showInfoNotification({ title, description, placement, duration, onClose, }: {
|
|
143
|
+
title: any;
|
|
144
|
+
description?: string | undefined;
|
|
145
|
+
placement?: string | undefined;
|
|
126
146
|
duration?: number | undefined;
|
|
127
147
|
onClose?: (() => void) | undefined;
|
|
128
148
|
}): void;
|
|
129
|
-
function showSuccessNotification({
|
|
130
|
-
|
|
149
|
+
function showSuccessNotification({ title, description, placement, duration, onClose, }: {
|
|
150
|
+
title: any;
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
placement?: string | undefined;
|
|
131
153
|
duration?: number | undefined;
|
|
132
154
|
onClose?: (() => void) | undefined;
|
|
133
155
|
}): void;
|
|
134
|
-
function showWarnNotification({
|
|
135
|
-
|
|
156
|
+
function showWarnNotification({ title, description, placement, duration, onClose, }: {
|
|
157
|
+
title: any;
|
|
158
|
+
description?: string | undefined;
|
|
159
|
+
placement?: string | undefined;
|
|
136
160
|
duration?: number | undefined;
|
|
137
161
|
onClose?: (() => void) | undefined;
|
|
138
162
|
}): void;
|
|
139
|
-
function showWarningNotification({
|
|
140
|
-
|
|
163
|
+
function showWarningNotification({ title, description, placement, duration, onClose, }: {
|
|
164
|
+
title: any;
|
|
165
|
+
description?: string | undefined;
|
|
166
|
+
placement?: string | undefined;
|
|
141
167
|
duration?: number | undefined;
|
|
142
168
|
onClose?: (() => void) | undefined;
|
|
143
169
|
}): void;
|
|
144
|
-
function showErrorNotification({
|
|
145
|
-
|
|
170
|
+
function showErrorNotification({ title, description, placement, duration, onClose, }: {
|
|
171
|
+
title: any;
|
|
172
|
+
description?: string | undefined;
|
|
173
|
+
placement?: string | undefined;
|
|
146
174
|
duration?: number | undefined;
|
|
147
175
|
onClose?: (() => void) | undefined;
|
|
148
176
|
}): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-utility",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "easy-soft-utility",
|
|
6
6
|
"keywords": [
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"stylelint-declaration-block-no-ignored-properties": "^2.6.0",
|
|
126
126
|
"webpack": "^5.75.0"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "58b543cf3415e2bc8f00ed74564425510070097e"
|
|
129
129
|
}
|