jinbi-utils 1.0.0-beta.1

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.
Files changed (72) hide show
  1. package/.babelrc +19 -0
  2. package/.cz-config.js +55 -0
  3. package/.dockerignore +3 -0
  4. package/.editorconfig +12 -0
  5. package/.eslintignore +8 -0
  6. package/.eslintrc.js +54 -0
  7. package/Dockerfile +3 -0
  8. package/README.md +160 -0
  9. package/api-extractor.json +15 -0
  10. package/commitlint.config.js +3 -0
  11. package/dist/index.esm.js +1277 -0
  12. package/dist/index.esm.min.js +15 -0
  13. package/dist/index.umd.js +1348 -0
  14. package/dist/index.umd.min.js +16 -0
  15. package/docs/assets/images/icons.png +0 -0
  16. package/docs/assets/images/icons@2x.png +0 -0
  17. package/docs/assets/images/widgets.png +0 -0
  18. package/docs/assets/images/widgets@2x.png +0 -0
  19. package/docs/assets/js/main.js +1 -0
  20. package/docs/assets/js/search.json +1 -0
  21. package/docs/globals.html +144 -0
  22. package/docs/index.html +147 -0
  23. package/docs/interfaces/file.compressimgqualitycallback.html +212 -0
  24. package/docs/interfaces/file.compressimgscalecallback.html +206 -0
  25. package/docs/interfaces/file.exportbyblobparams.html +294 -0
  26. package/docs/interfaces/file.filesizeobject.html +227 -0
  27. package/docs/interfaces/file.genexportbyblobparams.html +237 -0
  28. package/docs/modules/common.html +188 -0
  29. package/docs/modules/date.html +364 -0
  30. package/docs/modules/file.html +452 -0
  31. package/docs/modules/number.html +356 -0
  32. package/docs/modules/object.html +245 -0
  33. package/docs/modules/print.html +183 -0
  34. package/docs/modules/string.html +352 -0
  35. package/docs/modules/validate.html +389 -0
  36. package/jest.config.js +15 -0
  37. package/package.json +76 -0
  38. package/rollup.config.js +65 -0
  39. package/src/common/index.ts +323 -0
  40. package/src/constant/common.constant.ts +13 -0
  41. package/src/date/index.ts +143 -0
  42. package/src/file/index.ts +296 -0
  43. package/src/http/http.ts +79 -0
  44. package/src/http/httpEnums.ts +61 -0
  45. package/src/index.ts +10 -0
  46. package/src/number/index.ts +190 -0
  47. package/src/object/index.ts +54 -0
  48. package/src/print/index.ts +102 -0
  49. package/src/string/index.ts +111 -0
  50. package/src/validate/index.ts +78 -0
  51. package/src/wecom/wecom.ts +75 -0
  52. package/test/common/index.test.ts +19 -0
  53. package/test/date/index.test.ts +107 -0
  54. package/test/file/index.test.ts +104 -0
  55. package/test/number/index.test.ts +108 -0
  56. package/test/object/index.test.ts +20 -0
  57. package/test/string/index.test.ts +82 -0
  58. package/tsconfig.json +39 -0
  59. package/typedoc.json +9 -0
  60. package/types/common/index.d.ts +47 -0
  61. package/types/constant/common.constant.d.ts +12 -0
  62. package/types/date/index.d.ts +60 -0
  63. package/types/file/index.d.ts +96 -0
  64. package/types/http/http.d.ts +17 -0
  65. package/types/http/httpEnums.d.ts +53 -0
  66. package/types/index.d.ts +10 -0
  67. package/types/number/index.d.ts +62 -0
  68. package/types/object/index.d.ts +25 -0
  69. package/types/print/index.d.ts +11 -0
  70. package/types/string/index.d.ts +53 -0
  71. package/types/validate/index.d.ts +45 -0
  72. package/types/wecom/wecom.d.ts +3 -0
@@ -0,0 +1,15 @@
1
+ import e from"axios";var t={isWxWork:"wecom",isWeixin:"wechat",isMobile:"mobile",isMobileAny:"mobile"};function r(e){return null===e||""===e||void 0===e}var n=function(){localStorage.removeItem("wecom_userinfo"),localStorage.removeItem("wecom_token"),localStorage.removeItem("projectActive"),localStorage.removeItem("loginTime"),localStorage.removeItem("projectInfo")},o=function(e,t){var r=new RegExp("&{1}"+t+"\\=[a-zA-Z0-9_-]+","g"),n=e.replace(/\?/g,"&").match(r)[0];return n.substr(n.indexOf("=")+1)},i=function(e){for(var t=window.location.search.substring(1).split("&"),r=0;r<t.length;r++){var n=t[r].split("=");if(n[0]===e)return n[1]}return!1},a=function(){return localStorage.getItem("wecom_token")},u=function(){var e=navigator.userAgent.toLowerCase(),t=/wxwork/.test(e),r=/micromessenger/.test(e)&&!t,n=window.innerWidth<=768;return{isWxWork:t,isWeixin:r,isMobileScreen:n,isMobileAny:t||r||n}},c=function(e){var r="wecom";for(var n in e){if(e[n]){r=t[n];break}}return r};function s(e){e=e||32;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",r=t.length,n="",o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n}var l=function(e){for(var t="",r=document.cookie.split("; "),n=0;n<r.length;n++){var o=r[n].split("=");if(o[0]===e){t=o[1];break}}return t},f=function(){for(var e=[],t=0;t<=15;t++)e[t]=t.toString(16);var r="";for(t=1;t<=36;t++)r+=9===t||14===t||19===t||24===t?"-":15===t?4:20===t?e[4*Math.random()|8]:e[16*Math.random()|0];return r.replace(/-/g,"")},d=function(){return localStorage.getItem("jsapiTicket")},g=function(e){return localStorage.setItem("jsapiTicket",e)},h=function(){return localStorage.removeItem("jsapiTicket")},v=function(e,t){if(void 0===t&&(t="YYYY年MM月DD日 hh:mm:ss"),!e)return"-";var r=new Date(e),n=r.getFullYear()+"",o=r.getMonth()+1,i=r.getDate(),a=r.getHours()>9?r.getHours():"0"+r.getHours(),u=r.getMinutes()>9?r.getMinutes():"0"+r.getMinutes(),c=r.getSeconds()>9?r.getSeconds():"0"+r.getSeconds();return t.replace("YYYY",n+"").replace("MM",o+"").replace("DD",i+"").replace("hh",a+"").replace("mm",u+"").replace("ss",c+"")},p=function(e){for(var t=window.atob(e.split(",")[1]),r=new ArrayBuffer(t.length),n=new Uint8Array(r),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return new Blob([r],{type:"image/png"})},m=function(){var e=window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i),t=/micromessenger/i.test(navigator.userAgent),r=/wxwork/i.test(navigator.userAgent);return r&&e?"com-wx-mobile":r&&!e?"com-wx-pc":t&&e?"wx-mobile":t&&!e?"wx-pc":"other"},w=function(){return/wxwork/i.test(navigator.userAgent)},b=function(){var e=!1;return"uat2-h5-wecom.hengdayun.com"!==location.origin&&"127.0.0.1:8081"!==location.origin&&"localhost:8081"!==location.origin||(e=!0),e},S=function(e,t){var r=new Set;return e.filter((function(e){var n=e[t];return!r.has(n)&&(r.add(n),!0)}))},y=function(e){for(var t=e.split(","),r=t[0].match(/:(.\*?);/)[1],n=atob(t[1]),o=n.length,i=new Uint8Array(o);o--;)i[o]=n.charCodeAt(o);return new Blob([i],{type:r})},M=function(e,t){for(var r=e.split(","),n=r[0].match(/:(.*);/)[1],o=atob(r[1]),i=o.length,a=new Uint8Array(i);i--;)a[i]=o.charCodeAt(i);return new File([a],t,{type:n})},A=function(e){return/^image\//i.test(e)},R=function(e){var t=e.split(","),r=t[0],n=void 0===r?"":r,o=t[1],i=void 0===o?"":o;return{name:decodeURIComponent(n),url:decodeURIComponent(i)}},C=function(e){return!e||""===e||/^(\d+)(\.\d{1,2})?$/.test(e.toString())},k=function(e,t){var r,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||n.length,e)for(r=0;r<e;r++)o[r]=n[0|Math.random()*t];else{var i=void 0;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",r=0;r<36;r++)o[r]||(i=0|16*Math.random(),o[r]=n[19==r?3&i|8:i])}return o.join("")},x=function(e,t){var r=e.toLowerCase();return"localstorage"===r?localStorage.getItem("token")||"":"sessionstorage"===r?sessionStorage.getItem("token")||"":localStorage.getItem("token")||sessionStorage.getItem("token")||""},E=function(e,t){var r=e.toLowerCase();"localstorage"===r?localStorage.removeItem("token"):"sessionstorage"===r?sessionStorage.removeItem("token"):(localStorage.removeItem("token"),sessionStorage.getItem("token"))};function I(e){return"string"==typeof e?e.replace(/-/g,"/"):e}function T(e){return e?new Date(I(e)):new Date}function D(e,t){void 0===e&&(e=Date.now()),void 0===t&&(t="yyyy-MM-dd HH:mm:ss"),e=I(e);var r={"M+":(e=new Date(e)).getMonth()+1,"d+":e.getDate(),"h+":e.getHours()%12==0?12:e.getHours()%12,"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};return/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(""+e.getFullYear()).substr(4-RegExp.$1.length))),Object.keys(r).forEach((function(e){new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?r[e]:("00"+r[e]).substr((""+r[e]).length)))})),t}function N(e,t,n){if(void 0===t&&(t="yyyy年MM月dd日 HH时mm分ss秒"),void 0===n&&(n="-"),r(e))return n;e=I(e);var o=new Date(e),i=(Date.now()-o.getTime())/1e3;return i<0?e:i<30?"刚刚":i<3600?Math.ceil(i/60)+"分钟前":i<86400?Math.floor(i/3600)+"小时前":i<172800?"1天前":D(e,t)}function U(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n="yyyy-MM-dd"),r(e))return"-";e=I(e);var o=new Date(e);return o.setDate(o.getDate()+Number(t)),D(o,n)}
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function B(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))}function P(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function O(e,t){if(void 0===t&&(t="-"),r(e))return t;var n=e.toString();return n.includes(".")||(n+="."),n.replace(/\d(?=(\d{3})+\.)/g,(function(e){return e+","})).replace(/\.$/,"")}function z(e){void 0===e&&(e="");if(r(e))return"";if(Number(e)>=1e15)return e;var t,n,o,i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],a=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],s="";if("0"===(e=parseFloat(e).toString()))return s=i[0]+"元整";if(-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(t=(o=e.split("."))[0],n=o[1].substr(0,4)),parseInt(t,10)>0){for(var l=0,f=t.length,d=0;d<f;d+=1){var g=t.substr(d,1),h=f-d-1,v=h/4,p=h%4;"0"===g?l+=1:(l>0&&(s+=i[0]),l=0,s+=i[parseInt(g,10)]+a[p]),0===p&&l<4&&(s+=u[v])}s+="元"}if(""!==n){var m=n.length;for(d=0;d<m;d+=1){var w=n.substr(d,1);"0"!==w&&(s+=i[Number(w)]+c[d])}}return""===s?s+=i[0]+"元整":""===n&&(s+="整"),s}function j(e,t){void 0===t&&(t=2);var r=parseFloat(String(e));if(Number.isNaN(r))return"";var n=(r=Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)).toString(),o=n.indexOf(".");for(o<0&&(o=n.length,n+=".");n.length<=o+t;)n+="0";return n}function F(e,t){if(void 0===t&&(t=0),r(e))return e;var n=Math.pow(10,t),o=Number(e)*n;return Math.ceil(o)/n}function H(e,t){if(void 0===t&&(t=0),r(e))return e;var n=Math.pow(10,t),o=Number(e)*n;return Math.floor(o)/n}function W(e,t){void 0===t&&(t="B");var r=["B","KB","MB","GB","TB"],n=r.indexOf(t.toUpperCase());for(n=-1===n?0:n;e>=1024&&n<r.length;)e/=1024,n+=1;return{size:e,unit:r[n]}}function $(e,t,n){if(void 0===t&&(t="B"),void 0===n&&(n="-"),r(e))return n;var o=W(parseFloat(e.toString()),t);return""+F(o.size,2)+o.unit}function Y(e){for(var t=e.match(/:(.*?);/)[1],r=window.atob(e.split(",")[1]),n=new ArrayBuffer(r.length),o=new Uint8Array(n),i=0;i<r.length;i+=1)o[i]=r.charCodeAt(i);return new Blob([n],{type:t})}function _(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(e){e&&e.target?t(e.target.result):r(e)},n.onerror=function(e){r(e)},n.readAsDataURL(e)}))}function L(e,t,r){return new Promise((function(n,o){var i=parseFloat((e.size/1024/1024).toString()),a=new FileReader;a.onload=function(a){var u=new Image;u.onload=function(){var o=u.width,a=u.height,c=document.createElement("canvas"),s=c.getContext("2d"),l=t?t(o,a):1;(Number.isNaN(l)||"number"!=typeof l)&&(l=1);var f=r?r(i,l,o,a):1;if((Number.isNaN(f)||"number"!=typeof f)&&(f=1),s){var d=parseInt((o*l).toString(),10),g=parseInt((a*l).toString(),10);c.setAttribute("width",d.toString()),c.setAttribute("height",g.toString()),s.drawImage(u,0,0,d,g)}var h=c.toDataURL(e.type,f);n(Y(h))},u.onerror=function(e){o(e)},a.target&&(u.src=a.target.result)},a.onerror=function(e){o(e)},a.readAsDataURL(e)}))}function q(e){var t=e.axiosRequest,r=e.notWithCredentials,n=void 0===r?[]:r;return function(e){var r=this,o=e.filename,i=e.url,a=e.data,u=void 0===a?{}:a,c=e.params,s=void 0===c?{}:c,l=e.method,f=void 0===l?"post":l;return new Promise((function(e,a){t({method:f,url:i,data:u,params:s,responseType:"blob",config:{withCredentials:n.some((function(e){return!i.includes(e)}))}}).then((function(t){return B(r,void 0,void 0,(function(){var r,n,i,u,c,s,l,f,d,g;return P(this,(function(h){switch(h.label){case 0:return"application/json"!==(r=null==t?void 0:t.data).type?[3,1]:((n=new FileReader).readAsText(r,"utf-8"),n.onload=function(){var e={};try{e=JSON.parse(n.result)}catch(t){e=r}a(e)},[3,3]);case 1:try{i=t.headers,u=i["content-disposition"],c=decodeURIComponent(u.split(";")[1].split("filename=")[1]),o&&!o.includes(".")?(s=c.split("."),l=s[s.length-1],o+="."+l):o||(o=c)}catch(e){o||(o="download.xlsx")}return f=new Blob([t.data]),d=document.createElement("a"),[4,_(f)];case 2:g=h.sent(),d.href=g,d.download=o,document.body.appendChild(d),d.click(),document.body.removeChild(d),e(t),h.label=3;case 3:return[2]}}))}))})).catch((function(e){a(e)}))}))}}function G(e,t){var r=Object.keys,n=typeof e;return e&&t&&"object"===n&&n===typeof t?r(e).length===r(t).length&&r(e).every((function(r){return G(e[r],t[r])})):e===t}function Z(e,t,r,n,o){if(void 0===o&&(o=[]),o.push(e),e[r]===t)throw"GOT IT!";if(e[n]&&e[n].length>0)for(var i=0;i<e[n].length;i++)Z(e[n][i],t,r,n,o);o.pop()}function Q(e,t,r,n){var o=[];try{for(var i=0;i<r.length;i++)Z(r[i],e,t,n,o)}catch(e){return o}}function J(e){return/^(https?:|mailto:|tel:)/.test(e)}function K(e){if(!e)return e;return e.replace(/^\s+|\s+$/g,"")}function V(e){return/^0?(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/.test(e.toString())}function X(e){return e=e.toString(),/^1/.test(e)&&11===e.length}function ee(e){return/^0[1-9][0-9]{1,2}-[2-8][0-9]{6,7}$/.test(String(e))}function te(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)}function re(e){return/^[1-9][0-9]{4,9}$/gim.test(String(e))}function ne(e,t){return void 0===t&&(t="-"),r(e)?t:e}function oe(e,t,n){if(void 0===t&&(t=" "),void 0===n&&(n="-"),r(e))return n;if(11!==e.toString().length)return e;var o=e.toString().replace(/[^\d]/g,"").split(""),i="";return o.forEach((function(e,r){3!==r&&7!==r||(i+=t),i+=e})),i}function ie(e,t){if(void 0===t&&(t=""),r(e))return t;if(11!==e.toString().length)return e;var n=e.toString();return n.substr(0,3)+"****"+n.substr(7,11)}function ae(e,t){return void 0===t&&(t=""),r(e)?t:e.toString().replace(/\s/g,"").replace(/(.{4})/g,"$1 ")}function ue(){for(var e=[],t=65;t<91;t+=1)e.push(String.fromCharCode(t));return e}function ce(e){void 0===e&&(e="");return e.replace(/\B([A-Z])/g,"-$1").toLowerCase()}var se={HTTP_STATUS:{TEMP_RESPOND:{Continue:100,SwitchingProtocal:101},SUCCESS:{Ok:200,Created:201,Accepted:202,NoAuthoritativeInformation:203,NoContent:204,ResetContent:205,ParticalContent:206},REDIRECT:{MultipleChoice:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,TemporaryRedirect:307,PermanentRedirect:308},REQUEST_ERROR:{BadRequest:400,UnAuthorized:401,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAccepted:406,ProxyAuthorizationRequired:407,RequestTimeout:408,UpgradeRequired:426,TokenUnAuthorized:499},SERVER_ERROR:{InternalServerError:500,BadGateway:502,ServiceUnavailable:503,GateTimeout:504,HttpVersionNotSupported:505}},CODES:{Success:"00000",UnAuthorized:"00099",UnAuthorizedPhone:"11001",UnAuthorizedWecom:"11000",UnAuthorizedHavePhone:"11002"},ERR_CODE_WHITE_LIST:[]},le=e.create({timeout:15e3,headers:{"Content-Type":"application/json"}}),fe=function(e){var t=e.cacheType,r=e.currentMode,n=e.errorCb,o=e.getTokenCb;return e.tokenKey,le.interceptors.request.use((function(e){return B(void 0,void 0,void 0,(function(){var r,n;return P(this,(function(o){return r=x(t),n=u(),e.headers.Authorization=r,e.headers.token=r,e.headers.FrontType=c(n),[2,e]}))}))}),(function(e){return Promise.reject(e)})),le.interceptors.response.use((function(e){return B(void 0,void 0,void 0,(function(){var n,i,a;return P(this,(function(u){return n=e.data,i=n.code||e.status,n instanceof Blob||i===se.CODES.Success?[2,n]:i===se.CODES.UnAuthorized?("local"!==r&&"dev"!==r&&"development"!==r&&(E(t),o&&"function"==typeof o&&o()),[2,Promise.reject(new Error("token过期!"))]):(a=n.message||n.msg,[2,Promise.reject(new Error(a||"Error"))])}))}))}),(function(e){return B(void 0,void 0,void 0,(function(){return P(this,(function(t){return n&&"function"==typeof n&&n(e),[2,Promise.reject(e)]}))}))})),le};export{U as addDays,y as base64ToBlob,M as base64ToFile,_ as blobToDataURL,f as buildUUID,W as calcFileSize,F as ceil,n as clearLoginData,I as compatibleDate,L as compressImg,p as convertBase64UrlToBlob,z as convertCurrency,Y as dataURLtoBlob,G as deepEqual,$ as fileSizeFormat,S as filterRepeat,Q as findNodePath,H as floor,ae as formatBank,ne as formatEmptyValue,j as formatFloat,oe as formatPhone,ie as formatPhoneHide,D as formatTime,v as formateTimestamp,N as fromNow,q as genExportByBlob,ue as generateEnglishLetters,l as getCookie,u as getDeviceType,m as getEnvironment,R as getFileData,c as getFromType,w as getIsComWx,b as getIsDevelopment,o as getQueryString,i as getQueryVariable,d as getTicket,x as getToken,a as getWecomToken,fe as http,se as httpEnum,ce as humpTurnDashed,te as isEmail,r as isEmpty,J as isExternal,A as isImage,V as isMobile,X as isMobileSimple,re as isQQ,ee as isTelephone,T as newDate,s as randomString,h as removeTicket,E as removeToken,g as setTicket,O as toThousands,K as trimVal,k as uuid,C as validateTwoDecimal};