@indfnd/utils 0.1.10 → 0.1.12
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/CHANGELOG.md +9 -0
- package/dist/ind-utils.es.js +3 -2
- package/dist/ind-utils.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/config/base.config.ts +2 -0
- package/src/utils/number.ts +2 -2
- package/types/config/base.config.d.ts +1 -0
- package/types/config/base.config.d.ts.map +1 -1
- package/types/config/index.d.ts +2 -0
- package/types/config/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.12](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.11...v0.1.12) (2024-06-26)
|
|
6
|
+
|
|
7
|
+
### [0.1.11](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.10...v0.1.11) (2024-06-16)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **number:** 修改保留小数位数消除了两位数据的问题 ([52c6e5a](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/52c6e5a641314e274c5e6f99832f3a284f33ac7a))
|
|
13
|
+
|
|
5
14
|
### [0.1.10](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.9...v0.1.10) (2024-05-27)
|
|
6
15
|
|
|
7
16
|
|
package/dist/ind-utils.es.js
CHANGED
|
@@ -3242,6 +3242,7 @@ var baseConfig = {
|
|
|
3242
3242
|
ismAcServerContext: "/ind-ism-ac-server",
|
|
3243
3243
|
ismSqServerContext: "/ind-ism-sq-server",
|
|
3244
3244
|
ilmServerContext: "/ind-ilm-server",
|
|
3245
|
+
imgServerContext: "/ind-img-server",
|
|
3245
3246
|
ucExtServerContext: "/ind-uc-ext-server",
|
|
3246
3247
|
kkfilepreviewContext: "/kkfilepreview",
|
|
3247
3248
|
errorMessage: "\u7CFB\u7EDF\u5F00\u5C0F\u5DEE\u4E86\uFF0C\u8BF7\u7A0D\u540E\u5C1D\u8BD5",
|
|
@@ -10539,9 +10540,9 @@ function round(number, precision = 2) {
|
|
|
10539
10540
|
if (result.length > 2) {
|
|
10540
10541
|
const num = result[1];
|
|
10541
10542
|
const e = result[2];
|
|
10542
|
-
return Math.round(
|
|
10543
|
+
return Math.round(parseFloat(+num + "e" + (+e + precision))) / Math.pow(10, precision);
|
|
10543
10544
|
}
|
|
10544
|
-
return Math.round(
|
|
10545
|
+
return Math.round(parseFloat(+number + "e" + precision)) / Math.pow(10, precision);
|
|
10545
10546
|
}
|
|
10546
10547
|
return number;
|
|
10547
10548
|
}
|
package/dist/ind-utils.umd.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
`),function(h){if(l=h.indexOf(":"),a=pu.trim(h.substr(0,l)).toLowerCase(),f=pu.trim(h.substr(l+1)),a){if(u[a]&&Yp.indexOf(a)>=0)return;a==="set-cookie"?u[a]=(u[a]?u[a]:[]).concat([f]):u[a]=u[a]?u[a]+", "+f:f}}),u},Fa=rt,Gp=Fa.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a"),a;function f(l){var g=l;return r&&(u.setAttribute("href",g),g=u.href),u.setAttribute("href",g),{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",host:u.host,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:u.pathname.charAt(0)==="/"?u.pathname:"/"+u.pathname}}return a=f(window.location.href),function(g){var h=Fa.isString(g)?f(g):g;return h.protocol===a.protocol&&h.host===a.host}}():function(){return function(){return!0}}(),Vr=rt,qp=Rp,zp=Lp,Kp=Ia,Jp=Hp,Vp=kp,Qp=Gp,hu=Da,Pa=function(r){return new Promise(function(a,f){var l=r.data,g=r.headers,h=r.responseType;Vr.isFormData(l)&&delete g["Content-Type"];var d=new XMLHttpRequest;if(r.auth){var y=r.auth.username||"",E=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+E)}var _=Jp(r.baseURL,r.url);d.open(r.method.toUpperCase(),Kp(_,r.params,r.paramsSerializer),!0),d.timeout=r.timeout;function w(){if(!!d){var $="getAllResponseHeaders"in d?Vp(d.getAllResponseHeaders()):null,M=!h||h==="text"||h==="json"?d.responseText:d.response,B={data:M,status:d.status,statusText:d.statusText,headers:$,config:r,request:d};qp(a,f,B),d=null}}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){!d||(f(hu("Request aborted",r,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(hu("Network Error",r,null,d)),d=null},d.ontimeout=function(){var M="timeout of "+r.timeout+"ms exceeded";r.timeoutErrorMessage&&(M=r.timeoutErrorMessage),f(hu(M,r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},Vr.isStandardBrowserEnv()){var S=(r.withCredentials||Qp(_))&&r.xsrfCookieName?zp.read(r.xsrfCookieName):void 0;S&&(g[r.xsrfHeaderName]=S)}"setRequestHeader"in d&&Vr.forEach(g,function(M,B){typeof l=="undefined"&&B.toLowerCase()==="content-type"?delete g[B]:d.setRequestHeader(B,M)}),Vr.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),h&&h!=="json"&&(d.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&d.addEventListener("progress",r.onDownloadProgress),typeof r.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",r.onUploadProgress),r.cancelToken&&r.cancelToken.promise.then(function(M){!d||(d.abort(),f(M),d=null)}),l||(l=null),d.send(l)})},Ue=rt,Ma=Fp,Xp=$a,Zp={"Content-Type":"application/x-www-form-urlencoded"};function Ra(n,r){!Ue.isUndefined(n)&&Ue.isUndefined(n["Content-Type"])&&(n["Content-Type"]=r)}function jp(){var n;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(n=Pa),n}function eh(n,r,u){if(Ue.isString(n))try{return(r||JSON.parse)(n),Ue.trim(n)}catch(a){if(a.name!=="SyntaxError")throw a}return(u||JSON.stringify)(n)}var Qr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:jp(),transformRequest:[function(r,u){return Ma(u,"Accept"),Ma(u,"Content-Type"),Ue.isFormData(r)||Ue.isArrayBuffer(r)||Ue.isBuffer(r)||Ue.isStream(r)||Ue.isFile(r)||Ue.isBlob(r)?r:Ue.isArrayBufferView(r)?r.buffer:Ue.isURLSearchParams(r)?(Ra(u,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):Ue.isObject(r)||u&&u["Content-Type"]==="application/json"?(Ra(u,"application/json"),eh(r)):r}],transformResponse:[function(r){var u=this.transitional,a=u&&u.silentJSONParsing,f=u&&u.forcedJSONParsing,l=!a&&this.responseType==="json";if(l||f&&Ue.isString(r)&&r.length)try{return JSON.parse(r)}catch(g){if(l)throw g.name==="SyntaxError"?Xp(g,this,"E_JSON_PARSE"):g}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(r){return r>=200&&r<300}};Qr.headers={common:{Accept:"application/json, text/plain, */*"}},Ue.forEach(["delete","get","head"],function(r){Qr.headers[r]={}}),Ue.forEach(["post","put","patch"],function(r){Qr.headers[r]=Ue.merge(Zp)});var gu=Qr,th=rt,nh=gu,rh=function(r,u,a){var f=this||nh;return th.forEach(a,function(g){r=g.call(f,r,u)}),r},La=function(r){return!!(r&&r.__CANCEL__)},Na=rt,du=rh,ih=La,uh=gu;function vu(n){n.cancelToken&&n.cancelToken.throwIfRequested()}var oh=function(r){vu(r),r.headers=r.headers||{},r.data=du.call(r,r.data,r.headers,r.transformRequest),r.headers=Na.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),Na.forEach(["delete","get","head","post","put","patch","common"],function(f){delete r.headers[f]});var u=r.adapter||uh.adapter;return u(r).then(function(f){return vu(r),f.data=du.call(r,f.data,f.headers,r.transformResponse),f},function(f){return ih(f)||(vu(r),f&&f.response&&(f.response.data=du.call(r,f.response.data,f.response.headers,r.transformResponse))),Promise.reject(f)})},Ye=rt,Ba=function(r,u){u=u||{};var a={},f=["url","method","data"],l=["headers","auth","proxy","params"],g=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],h=["validateStatus"];function d(w,S){return Ye.isPlainObject(w)&&Ye.isPlainObject(S)?Ye.merge(w,S):Ye.isPlainObject(S)?Ye.merge({},S):Ye.isArray(S)?S.slice():S}function y(w){Ye.isUndefined(u[w])?Ye.isUndefined(r[w])||(a[w]=d(void 0,r[w])):a[w]=d(r[w],u[w])}Ye.forEach(f,function(S){Ye.isUndefined(u[S])||(a[S]=d(void 0,u[S]))}),Ye.forEach(l,y),Ye.forEach(g,function(S){Ye.isUndefined(u[S])?Ye.isUndefined(r[S])||(a[S]=d(void 0,r[S])):a[S]=d(void 0,u[S])}),Ye.forEach(h,function(S){S in u?a[S]=d(r[S],u[S]):S in r&&(a[S]=d(void 0,r[S]))});var E=f.concat(l).concat(g).concat(h),_=Object.keys(r).concat(Object.keys(u)).filter(function(S){return E.indexOf(S)===-1});return Ye.forEach(_,y),a},ah={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},Ua=ah,yu={};["object","boolean","number","function","string","symbol"].forEach(function(n,r){yu[n]=function(a){return typeof a===n||"a"+(r<1?"n ":" ")+n}});var Wa={},fh=Ua.version.split(".");function Ha(n,r){for(var u=r?r.split("."):fh,a=n.split("."),f=0;f<3;f++){if(u[f]>a[f])return!0;if(u[f]<a[f])return!1}return!1}yu.transitional=function(r,u,a){var f=u&&Ha(u);function l(g,h){return"[Axios v"+Ua.version+"] Transitional option '"+g+"'"+h+(a?". "+a:"")}return function(g,h,d){if(r===!1)throw new Error(l(h," has been removed in "+u));return f&&!Wa[h]&&(Wa[h]=!0,console.warn(l(h," has been deprecated since v"+u+" and will be removed in the near future"))),r?r(g,h,d):!0}};function sh(n,r,u){if(typeof n!="object")throw new TypeError("options must be an object");for(var a=Object.keys(n),f=a.length;f-- >0;){var l=a[f],g=r[l];if(g){var h=n[l],d=h===void 0||g(h,l,n);if(d!==!0)throw new TypeError("option "+l+" must be "+d);continue}if(u!==!0)throw Error("Unknown option "+l)}}var lh={isOlderVersion:Ha,assertOptions:sh,validators:yu},Ya=rt,ch=Ia,ka=$p,Ga=oh,Xr=Ba,qa=lh,Bn=qa.validators;function pr(n){this.defaults=n,this.interceptors={request:new ka,response:new ka}}pr.prototype.request=function(r){typeof r=="string"?(r=arguments[1]||{},r.url=arguments[0]):r=r||{},r=Xr(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var u=r.transitional;u!==void 0&&qa.assertOptions(u,{silentJSONParsing:Bn.transitional(Bn.boolean,"1.0.0"),forcedJSONParsing:Bn.transitional(Bn.boolean,"1.0.0"),clarifyTimeoutError:Bn.transitional(Bn.boolean,"1.0.0")},!1);var a=[],f=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(f=f&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});var l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});var g;if(!f){var h=[Ga,void 0];for(Array.prototype.unshift.apply(h,a),h=h.concat(l),g=Promise.resolve(r);h.length;)g=g.then(h.shift(),h.shift());return g}for(var d=r;a.length;){var y=a.shift(),E=a.shift();try{d=y(d)}catch(_){E(_);break}}try{g=Ga(d)}catch(_){return Promise.reject(_)}for(;l.length;)g=g.then(l.shift(),l.shift());return g},pr.prototype.getUri=function(r){return r=Xr(this.defaults,r),ch(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")},Ya.forEach(["delete","get","head","options"],function(r){pr.prototype[r]=function(u,a){return this.request(Xr(a||{},{method:r,url:u,data:(a||{}).data}))}}),Ya.forEach(["post","put","patch"],function(r){pr.prototype[r]=function(u,a,f){return this.request(Xr(f||{},{method:r,url:u,data:a}))}});var ph=pr;function mu(n){this.message=n}mu.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},mu.prototype.__CANCEL__=!0;var za=mu,hh=za;function Zr(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(f){r=f});var u=this;n(function(f){u.reason||(u.reason=new hh(f),r(u.reason))})}Zr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Zr.source=function(){var r,u=new Zr(function(f){r=f});return{token:u,cancel:r}};var gh=Zr,dh=function(r){return function(a){return r.apply(null,a)}},vh=function(r){return typeof r=="object"&&r.isAxiosError===!0},Ka=rt,yh=Ca,jr=ph,mh=Ba,_h=gu;function Ja(n){var r=new jr(n),u=yh(jr.prototype.request,r);return Ka.extend(u,jr.prototype,r),Ka.extend(u,r),u}var At=Ja(_h);At.Axios=jr,At.create=function(r){return Ja(mh(At.defaults,r))},At.Cancel=za,At.CancelToken=gh,At.isCancel=La,At.all=function(r){return Promise.all(r)},At.spread=dh,At.isAxiosError=vh,au.exports=At,au.exports.default=At;var wh=au.exports,Eh=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},u=Symbol("test"),a=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var f=42;r[u]=f;for(u in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==u||!Object.prototype.propertyIsEnumerable.call(r,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(r,u);if(g.value!==f||g.enumerable!==!0)return!1}return!0},Va=typeof Symbol!="undefined"&&Symbol,Sh=Eh,Ah=function(){return typeof Va!="function"||typeof Symbol!="function"||typeof Va("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Sh()},Qa={foo:{}},bh=Object,Ch=function(){return{__proto__:Qa}.foo===Qa.foo&&!({__proto__:null}instanceof bh)},Oh="Function.prototype.bind called on incompatible ",xh=Object.prototype.toString,Th=Math.max,Ih="[object Function]",Xa=function(r,u){for(var a=[],f=0;f<r.length;f+=1)a[f]=r[f];for(var l=0;l<u.length;l+=1)a[l+r.length]=u[l];return a},$h=function(r,u){for(var a=[],f=u||0,l=0;f<r.length;f+=1,l+=1)a[l]=r[f];return a},Dh=function(n,r){for(var u="",a=0;a<n.length;a+=1)u+=n[a],a+1<n.length&&(u+=r);return u},Fh=function(r){var u=this;if(typeof u!="function"||xh.apply(u)!==Ih)throw new TypeError(Oh+u);for(var a=$h(arguments,1),f,l=function(){if(this instanceof f){var E=u.apply(this,Xa(a,arguments));return Object(E)===E?E:this}return u.apply(r,Xa(a,arguments))},g=Th(0,u.length-a.length),h=[],d=0;d<g;d++)h[d]="$"+d;if(f=Function("binder","return function ("+Dh(h,",")+"){ return binder.apply(this,arguments); }")(l),u.prototype){var y=function(){};y.prototype=u.prototype,f.prototype=new y,y.prototype=null}return f},Ph=Fh,_u=Function.prototype.bind||Ph,Mh=Function.prototype.call,Rh=Object.prototype.hasOwnProperty,Lh=_u,Nh=Lh.call(Mh,Rh),se,Un=SyntaxError,Za=Function,Wn=TypeError,wu=function(n){try{return Za('"use strict"; return ('+n+").constructor;")()}catch(r){}},En=Object.getOwnPropertyDescriptor;if(En)try{En({},"")}catch(n){En=null}var Eu=function(){throw new Wn},Bh=En?function(){try{return arguments.callee,Eu}catch(n){try{return En(arguments,"callee").get}catch(r){return Eu}}}():Eu,Hn=Ah(),Uh=Ch(),Re=Object.getPrototypeOf||(Uh?function(n){return n.__proto__}:null),Yn={},Wh=typeof Uint8Array=="undefined"||!Re?se:Re(Uint8Array),Sn={"%AggregateError%":typeof AggregateError=="undefined"?se:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?se:ArrayBuffer,"%ArrayIteratorPrototype%":Hn&&Re?Re([][Symbol.iterator]()):se,"%AsyncFromSyncIteratorPrototype%":se,"%AsyncFunction%":Yn,"%AsyncGenerator%":Yn,"%AsyncGeneratorFunction%":Yn,"%AsyncIteratorPrototype%":Yn,"%Atomics%":typeof Atomics=="undefined"?se:Atomics,"%BigInt%":typeof BigInt=="undefined"?se:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?se:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?se:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?se:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?se:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?se:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?se:FinalizationRegistry,"%Function%":Za,"%GeneratorFunction%":Yn,"%Int8Array%":typeof Int8Array=="undefined"?se:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?se:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?se:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Hn&&Re?Re(Re([][Symbol.iterator]())):se,"%JSON%":typeof JSON=="object"?JSON:se,"%Map%":typeof Map=="undefined"?se:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Hn||!Re?se:Re(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?se:Promise,"%Proxy%":typeof Proxy=="undefined"?se:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?se:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?se:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Hn||!Re?se:Re(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?se:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Hn&&Re?Re(""[Symbol.iterator]()):se,"%Symbol%":Hn?Symbol:se,"%SyntaxError%":Un,"%ThrowTypeError%":Bh,"%TypedArray%":Wh,"%TypeError%":Wn,"%Uint8Array%":typeof Uint8Array=="undefined"?se:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?se:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?se:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?se:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?se:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?se:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?se:WeakSet};if(Re)try{null.error}catch(n){var Hh=Re(Re(n));Sn["%Error.prototype%"]=Hh}var Yh=function n(r){var u;if(r==="%AsyncFunction%")u=wu("async function () {}");else if(r==="%GeneratorFunction%")u=wu("function* () {}");else if(r==="%AsyncGeneratorFunction%")u=wu("async function* () {}");else if(r==="%AsyncGenerator%"){var a=n("%AsyncGeneratorFunction%");a&&(u=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var f=n("%AsyncGenerator%");f&&Re&&(u=Re(f.prototype))}return Sn[r]=u,u},ja={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},hr=_u,ei=Nh,kh=hr.call(Function.call,Array.prototype.concat),Gh=hr.call(Function.apply,Array.prototype.splice),ef=hr.call(Function.call,String.prototype.replace),ti=hr.call(Function.call,String.prototype.slice),qh=hr.call(Function.call,RegExp.prototype.exec),zh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Kh=/\\(\\)?/g,Jh=function(r){var u=ti(r,0,1),a=ti(r,-1);if(u==="%"&&a!=="%")throw new Un("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&u!=="%")throw new Un("invalid intrinsic syntax, expected opening `%`");var f=[];return ef(r,zh,function(l,g,h,d){f[f.length]=h?ef(d,Kh,"$1"):g||l}),f},Vh=function(r,u){var a=r,f;if(ei(ja,a)&&(f=ja[a],a="%"+f[0]+"%"),ei(Sn,a)){var l=Sn[a];if(l===Yn&&(l=Yh(a)),typeof l=="undefined"&&!u)throw new Wn("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:f,name:a,value:l}}throw new Un("intrinsic "+r+" does not exist!")},An=function(r,u){if(typeof r!="string"||r.length===0)throw new Wn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof u!="boolean")throw new Wn('"allowMissing" argument must be a boolean');if(qh(/^%?[^%]*%?$/,r)===null)throw new Un("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Jh(r),f=a.length>0?a[0]:"",l=Vh("%"+f+"%",u),g=l.name,h=l.value,d=!1,y=l.alias;y&&(f=y[0],Gh(a,kh([0,1],y)));for(var E=1,_=!0;E<a.length;E+=1){var w=a[E],S=ti(w,0,1),$=ti(w,-1);if((S==='"'||S==="'"||S==="`"||$==='"'||$==="'"||$==="`")&&S!==$)throw new Un("property names with quotes must have matching quotes");if((w==="constructor"||!_)&&(d=!0),f+="."+w,g="%"+f+"%",ei(Sn,g))h=Sn[g];else if(h!=null){if(!(w in h)){if(!u)throw new Wn("base intrinsic for "+r+" exists, but the property is not available.");return}if(En&&E+1>=a.length){var M=En(h,w);_=!!M,_&&"get"in M&&!("originalValue"in M.get)?h=M.get:h=h[w]}else _=ei(h,w),h=h[w];_&&!d&&(Sn[g]=h)}}return h},tf={exports:{}},Qh=An,Su=Qh("%Object.defineProperty%",!0),Au=function(){if(Su)try{return Su({},"a",{value:1}),!0}catch(r){return!1}return!1};Au.hasArrayLengthDefineBug=function(){if(!Au())return null;try{return Su([],"length",{value:1}).length!==1}catch(r){return!0}};var nf=Au,Xh=An,ni=Xh("%Object.getOwnPropertyDescriptor%",!0);if(ni)try{ni([],"length")}catch(n){ni=null}var rf=ni,Zh=nf(),bu=An,gr=Zh&&bu("%Object.defineProperty%",!0);if(gr)try{gr({},"a",{value:1})}catch(n){gr=!1}var jh=bu("%SyntaxError%"),kn=bu("%TypeError%"),uf=rf,eg=function(r,u,a){if(!r||typeof r!="object"&&typeof r!="function")throw new kn("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new kn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new kn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new kn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new kn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new kn("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,g=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,d=!!uf&&uf(r,u);if(gr)gr(r,u,{configurable:g===null&&d?d.configurable:!g,enumerable:f===null&&d?d.enumerable:!f,value:a,writable:l===null&&d?d.writable:!l});else if(h||!f&&!l&&!g)r[u]=a;else throw new jh("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},of=An,af=eg,tg=nf(),ff=rf,sf=of("%TypeError%"),ng=of("%Math.floor%"),rg=function(r,u){if(typeof r!="function")throw new sf("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||ng(u)!==u)throw new sf("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],f=!0,l=!0;if("length"in r&&ff){var g=ff(r,"length");g&&!g.configurable&&(f=!1),g&&!g.writable&&(l=!1)}return(f||l||!a)&&(tg?af(r,"length",u,!0,!0):af(r,"length",u)),r};(function(n){var r=_u,u=An,a=rg,f=u("%TypeError%"),l=u("%Function.prototype.apply%"),g=u("%Function.prototype.call%"),h=u("%Reflect.apply%",!0)||r.call(g,l),d=u("%Object.defineProperty%",!0),y=u("%Math.max%");if(d)try{d({},"a",{value:1})}catch(_){d=null}n.exports=function(w){if(typeof w!="function")throw new f("a function is required");var S=h(r,g,arguments);return a(S,1+y(0,w.length-(arguments.length-1)),!0)};var E=function(){return h(r,l,arguments)};d?d(n.exports,"apply",{value:E}):n.exports.apply=E})(tf);var lf=An,cf=tf.exports,ig=cf(lf("String.prototype.indexOf")),ug=function(r,u){var a=lf(r,!!u);return typeof a=="function"&&ig(r,".prototype.")>-1?cf(a):a},og={},ag=Object.freeze(Object.defineProperty({__proto__:null,default:og},Symbol.toStringTag,{value:"Module"})),fg=pp(ag),Cu=typeof Map=="function"&&Map.prototype,Ou=Object.getOwnPropertyDescriptor&&Cu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ri=Cu&&Ou&&typeof Ou.get=="function"?Ou.get:null,pf=Cu&&Map.prototype.forEach,xu=typeof Set=="function"&&Set.prototype,Tu=Object.getOwnPropertyDescriptor&&xu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ii=xu&&Tu&&typeof Tu.get=="function"?Tu.get:null,hf=xu&&Set.prototype.forEach,sg=typeof WeakMap=="function"&&WeakMap.prototype,dr=sg?WeakMap.prototype.has:null,lg=typeof WeakSet=="function"&&WeakSet.prototype,vr=lg?WeakSet.prototype.has:null,cg=typeof WeakRef=="function"&&WeakRef.prototype,gf=cg?WeakRef.prototype.deref:null,pg=Boolean.prototype.valueOf,hg=Object.prototype.toString,gg=Function.prototype.toString,dg=String.prototype.match,Iu=String.prototype.slice,un=String.prototype.replace,vg=String.prototype.toUpperCase,df=String.prototype.toLowerCase,vf=RegExp.prototype.test,yf=Array.prototype.concat,Mt=Array.prototype.join,yg=Array.prototype.slice,mf=Math.floor,$u=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Du=Object.getOwnPropertySymbols,Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Gn?"object":"symbol")?Symbol.toStringTag:null,_f=Object.prototype.propertyIsEnumerable,wf=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function Ef(n,r){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||vf.call(/e/,r))return r;var u=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var a=n<0?-mf(-n):mf(n);if(a!==n){var f=String(a),l=Iu.call(r,f.length+1);return un.call(f,u,"$&_")+"."+un.call(un.call(l,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(r,u,"$&_")}var Pu=fg,Sf=Pu.custom,Af=Of(Sf)?Sf:null,mg=function n(r,u,a,f){var l=u||{};if(on(l,"quoteStyle")&&l.quoteStyle!=="single"&&l.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(on(l,"maxStringLength")&&(typeof l.maxStringLength=="number"?l.maxStringLength<0&&l.maxStringLength!==1/0:l.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=on(l,"customInspect")?l.customInspect:!0;if(typeof g!="boolean"&&g!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(on(l,"indent")&&l.indent!==null&&l.indent!==" "&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(on(l,"numericSeparator")&&typeof l.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=l.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Tf(r,l);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var d=String(r);return h?Ef(r,d):d}if(typeof r=="bigint"){var y=String(r)+"n";return h?Ef(r,y):y}var E=typeof l.depth=="undefined"?5:l.depth;if(typeof a=="undefined"&&(a=0),a>=E&&E>0&&typeof r=="object")return Mu(r)?"[Array]":"[Object]";var _=Lg(l,a);if(typeof f=="undefined")f=[];else if(xf(f,r)>=0)return"[Circular]";function w(qe,K,H){if(K&&(f=yg.call(f),f.push(K)),H){var R={depth:l.depth};return on(l,"quoteStyle")&&(R.quoteStyle=l.quoteStyle),n(qe,R,a+1,f)}return n(qe,l,a+1,f)}if(typeof r=="function"&&!Cf(r)){var S=xg(r),$=ui(r,w);return"[Function"+(S?": "+S:" (anonymous)")+"]"+($.length>0?" { "+Mt.call($,", ")+" }":"")}if(Of(r)){var M=Gn?un.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Fu.call(r);return typeof r=="object"&&!Gn?yr(M):M}if(Pg(r)){for(var B="<"+df.call(String(r.nodeName)),P=r.attributes||[],k=0;k<P.length;k++)B+=" "+P[k].name+"="+bf(_g(P[k].value),"double",l);return B+=">",r.childNodes&&r.childNodes.length&&(B+="..."),B+="</"+df.call(String(r.nodeName))+">",B}if(Mu(r)){if(r.length===0)return"[]";var F=ui(r,w);return _&&!Rg(F)?"["+Lu(F,_)+"]":"[ "+Mt.call(F,", ")+" ]"}if(Eg(r)){var L=ui(r,w);return!("cause"in Error.prototype)&&"cause"in r&&!_f.call(r,"cause")?"{ ["+String(r)+"] "+Mt.call(yf.call("[cause]: "+w(r.cause),L),", ")+" }":L.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Mt.call(L,", ")+" }"}if(typeof r=="object"&&g){if(Af&&typeof r[Af]=="function"&&Pu)return Pu(r,{depth:E-a});if(g!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Tg(r)){var N=[];return pf&&pf.call(r,function(qe,K){N.push(w(K,r,!0)+" => "+w(qe,r))}),If("Map",ri.call(r),N,_)}if(Dg(r)){var X=[];return hf&&hf.call(r,function(qe){X.push(w(qe,r))}),If("Set",ii.call(r),X,_)}if(Ig(r))return Ru("WeakMap");if(Fg(r))return Ru("WeakSet");if($g(r))return Ru("WeakRef");if(Ag(r))return yr(w(Number(r)));if(Cg(r))return yr(w($u.call(r)));if(bg(r))return yr(pg.call(r));if(Sg(r))return yr(w(String(r)));if(typeof window!="undefined"&&r===window)return"{ [object Window] }";if(r===_n)return"{ [object globalThis] }";if(!wg(r)&&!Cf(r)){var z=ui(r,w),ue=wf?wf(r)===Object.prototype:r instanceof Object||r.constructor===Object,ye=r instanceof Object?"":"null prototype",de=!ue&&ke&&Object(r)===r&&ke in r?Iu.call(an(r),8,-1):ye?"Object":"",oe=ue||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",$e=oe+(de||ye?"["+Mt.call(yf.call([],de||[],ye||[]),": ")+"] ":"");return z.length===0?$e+"{}":_?$e+"{"+Lu(z,_)+"}":$e+"{ "+Mt.call(z,", ")+" }"}return String(r)};function bf(n,r,u){var a=(u.quoteStyle||r)==="double"?'"':"'";return a+n+a}function _g(n){return un.call(String(n),/"/g,""")}function Mu(n){return an(n)==="[object Array]"&&(!ke||!(typeof n=="object"&&ke in n))}function wg(n){return an(n)==="[object Date]"&&(!ke||!(typeof n=="object"&&ke in n))}function Cf(n){return an(n)==="[object RegExp]"&&(!ke||!(typeof n=="object"&&ke in n))}function Eg(n){return an(n)==="[object Error]"&&(!ke||!(typeof n=="object"&&ke in n))}function Sg(n){return an(n)==="[object String]"&&(!ke||!(typeof n=="object"&&ke in n))}function Ag(n){return an(n)==="[object Number]"&&(!ke||!(typeof n=="object"&&ke in n))}function bg(n){return an(n)==="[object Boolean]"&&(!ke||!(typeof n=="object"&&ke in n))}function Of(n){if(Gn)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Fu)return!1;try{return Fu.call(n),!0}catch(r){}return!1}function Cg(n){if(!n||typeof n!="object"||!$u)return!1;try{return $u.call(n),!0}catch(r){}return!1}var Og=Object.prototype.hasOwnProperty||function(n){return n in this};function on(n,r){return Og.call(n,r)}function an(n){return hg.call(n)}function xg(n){if(n.name)return n.name;var r=dg.call(gg.call(n),/^function\s*([\w$]+)/);return r?r[1]:null}function xf(n,r){if(n.indexOf)return n.indexOf(r);for(var u=0,a=n.length;u<a;u++)if(n[u]===r)return u;return-1}function Tg(n){if(!ri||!n||typeof n!="object")return!1;try{ri.call(n);try{ii.call(n)}catch(r){return!0}return n instanceof Map}catch(r){}return!1}function Ig(n){if(!dr||!n||typeof n!="object")return!1;try{dr.call(n,dr);try{vr.call(n,vr)}catch(r){return!0}return n instanceof WeakMap}catch(r){}return!1}function $g(n){if(!gf||!n||typeof n!="object")return!1;try{return gf.call(n),!0}catch(r){}return!1}function Dg(n){if(!ii||!n||typeof n!="object")return!1;try{ii.call(n);try{ri.call(n)}catch(r){return!0}return n instanceof Set}catch(r){}return!1}function Fg(n){if(!vr||!n||typeof n!="object")return!1;try{vr.call(n,vr);try{dr.call(n,dr)}catch(r){return!0}return n instanceof WeakSet}catch(r){}return!1}function Pg(n){return!n||typeof n!="object"?!1:typeof HTMLElement!="undefined"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Tf(n,r){if(n.length>r.maxStringLength){var u=n.length-r.maxStringLength,a="... "+u+" more character"+(u>1?"s":"");return Tf(Iu.call(n,0,r.maxStringLength),r)+a}var f=un.call(un.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Mg);return bf(f,"single",r)}function Mg(n){var r=n.charCodeAt(0),u={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return u?"\\"+u:"\\x"+(r<16?"0":"")+vg.call(r.toString(16))}function yr(n){return"Object("+n+")"}function Ru(n){return n+" { ? }"}function If(n,r,u,a){var f=a?Lu(u,a):Mt.call(u,", ");return n+" ("+r+") {"+f+"}"}function Rg(n){for(var r=0;r<n.length;r++)if(xf(n[r],`
|
|
3
3
|
`)>=0)return!1;return!0}function Lg(n,r){var u;if(n.indent===" ")u=" ";else if(typeof n.indent=="number"&&n.indent>0)u=Mt.call(Array(n.indent+1)," ");else return null;return{base:u,prev:Mt.call(Array(r+1),u)}}function Lu(n,r){if(n.length===0)return"";var u=`
|
|
4
4
|
`+r.prev+r.base;return u+Mt.call(n,","+u)+`
|
|
5
|
-
`+r.prev}function ui(n,r){var u=Mu(n),a=[];if(u){a.length=n.length;for(var f=0;f<n.length;f++)a[f]=on(n,f)?r(n[f],n):""}var l=typeof Du=="function"?Du(n):[],g;if(Gn){g={};for(var h=0;h<l.length;h++)g["$"+l[h]]=l[h]}for(var d in n)!on(n,d)||u&&String(Number(d))===d&&d<n.length||Gn&&g["$"+d]instanceof Symbol||(vf.call(/[^\w$]/,d)?a.push(r(d,n)+": "+r(n[d],n)):a.push(d+": "+r(n[d],n)));if(typeof Du=="function")for(var y=0;y<l.length;y++)_f.call(n,l[y])&&a.push("["+r(l[y])+"]: "+r(n[l[y]],n));return a}var Nu=An,qn=ug,Ng=mg,Bg=Nu("%TypeError%"),oi=Nu("%WeakMap%",!0),ai=Nu("%Map%",!0),Ug=qn("WeakMap.prototype.get",!0),Wg=qn("WeakMap.prototype.set",!0),Hg=qn("WeakMap.prototype.has",!0),Yg=qn("Map.prototype.get",!0),kg=qn("Map.prototype.set",!0),Gg=qn("Map.prototype.has",!0),Bu=function(n,r){for(var u=n,a;(a=u.next)!==null;u=a)if(a.key===r)return u.next=a.next,a.next=n.next,n.next=a,a},qg=function(n,r){var u=Bu(n,r);return u&&u.value},zg=function(n,r,u){var a=Bu(n,r);a?a.value=u:n.next={key:r,next:n.next,value:u}},Kg=function(n,r){return!!Bu(n,r)},Jg=function(){var r,u,a,f={assert:function(l){if(!f.has(l))throw new Bg("Side channel does not contain "+Ng(l))},get:function(l){if(oi&&l&&(typeof l=="object"||typeof l=="function")){if(r)return Ug(r,l)}else if(ai){if(u)return Yg(u,l)}else if(a)return qg(a,l)},has:function(l){if(oi&&l&&(typeof l=="object"||typeof l=="function")){if(r)return Hg(r,l)}else if(ai){if(u)return Gg(u,l)}else if(a)return Kg(a,l);return!1},set:function(l,g){oi&&l&&(typeof l=="object"||typeof l=="function")?(r||(r=new oi),Wg(r,l,g)):ai?(u||(u=new ai),kg(u,l,g)):(a||(a={key:{},next:null}),zg(a,l,g))}};return f},Vg=String.prototype.replace,Qg=/%20/g,Uu={RFC1738:"RFC1738",RFC3986:"RFC3986"},Wu={default:Uu.RFC3986,formatters:{RFC1738:function(n){return Vg.call(n,Qg,"+")},RFC3986:function(n){return String(n)}},RFC1738:Uu.RFC1738,RFC3986:Uu.RFC3986},Xg=Wu,Hu=Object.prototype.hasOwnProperty,bn=Array.isArray,Rt=function(){for(var n=[],r=0;r<256;++r)n.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return n}(),Zg=function(r){for(;r.length>1;){var u=r.pop(),a=u.obj[u.prop];if(bn(a)){for(var f=[],l=0;l<a.length;++l)typeof a[l]!="undefined"&&f.push(a[l]);u.obj[u.prop]=f}}},$f=function(r,u){for(var a=u&&u.plainObjects?Object.create(null):{},f=0;f<r.length;++f)typeof r[f]!="undefined"&&(a[f]=r[f]);return a},jg=function n(r,u,a){if(!u)return r;if(typeof u!="object"){if(bn(r))r.push(u);else if(r&&typeof r=="object")(a&&(a.plainObjects||a.allowPrototypes)||!Hu.call(Object.prototype,u))&&(r[u]=!0);else return[r,u];return r}if(!r||typeof r!="object")return[r].concat(u);var f=r;return bn(r)&&!bn(u)&&(f=$f(r,a)),bn(r)&&bn(u)?(u.forEach(function(l,g){if(Hu.call(r,g)){var h=r[g];h&&typeof h=="object"&&l&&typeof l=="object"?r[g]=n(h,l,a):r.push(l)}else r[g]=l}),r):Object.keys(u).reduce(function(l,g){var h=u[g];return Hu.call(l,g)?l[g]=n(l[g],h,a):l[g]=h,l},f)},ed=function(r,u){return Object.keys(u).reduce(function(a,f){return a[f]=u[f],a},r)},td=function(n,r,u){var a=n.replace(/\+/g," ");if(u==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(f){return a}},nd=function(r,u,a,f,l){if(r.length===0)return r;var g=r;if(typeof r=="symbol"?g=Symbol.prototype.toString.call(r):typeof r!="string"&&(g=String(r)),a==="iso-8859-1")return escape(g).replace(/%u[0-9a-f]{4}/gi,function(E){return"%26%23"+parseInt(E.slice(2),16)+"%3B"});for(var h="",d=0;d<g.length;++d){var y=g.charCodeAt(d);if(y===45||y===46||y===95||y===126||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||l===Xg.RFC1738&&(y===40||y===41)){h+=g.charAt(d);continue}if(y<128){h=h+Rt[y];continue}if(y<2048){h=h+(Rt[192|y>>6]+Rt[128|y&63]);continue}if(y<55296||y>=57344){h=h+(Rt[224|y>>12]+Rt[128|y>>6&63]+Rt[128|y&63]);continue}d+=1,y=65536+((y&1023)<<10|g.charCodeAt(d)&1023),h+=Rt[240|y>>18]+Rt[128|y>>12&63]+Rt[128|y>>6&63]+Rt[128|y&63]}return h},rd=function(r){for(var u=[{obj:{o:r},prop:"o"}],a=[],f=0;f<u.length;++f)for(var l=u[f],g=l.obj[l.prop],h=Object.keys(g),d=0;d<h.length;++d){var y=h[d],E=g[y];typeof E=="object"&&E!==null&&a.indexOf(E)===-1&&(u.push({obj:g,prop:y}),a.push(E))}return Zg(u),r},id=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},ud=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},od=function(r,u){return[].concat(r,u)},ad=function(r,u){if(bn(r)){for(var a=[],f=0;f<r.length;f+=1)a.push(u(r[f]));return a}return u(r)},Df={arrayToObject:$f,assign:ed,combine:od,compact:rd,decode:td,encode:nd,isBuffer:ud,isRegExp:id,maybeMap:ad,merge:jg},Ff=Jg,fi=Df,mr=Wu,fd=Object.prototype.hasOwnProperty,Pf={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,u){return r+"["+u+"]"},repeat:function(r){return r}},kt=Array.isArray,sd=Array.prototype.push,Mf=function(n,r){sd.apply(n,kt(r)?r:[r])},ld=Date.prototype.toISOString,Rf=mr.default,Ge={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:fi.encode,encodeValuesOnly:!1,format:Rf,formatter:mr.formatters[Rf],indices:!1,serializeDate:function(r){return ld.call(r)},skipNulls:!1,strictNullHandling:!1},cd=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},Yu={},pd=function n(r,u,a,f,l,g,h,d,y,E,_,w,S,$,M,B){for(var P=r,k=B,F=0,L=!1;(k=k.get(Yu))!==void 0&&!L;){var N=k.get(r);if(F+=1,typeof N!="undefined"){if(N===F)throw new RangeError("Cyclic object value");L=!0}typeof k.get(Yu)=="undefined"&&(F=0)}if(typeof d=="function"?P=d(u,P):P instanceof Date?P=_(P):a==="comma"&&kt(P)&&(P=fi.maybeMap(P,function(R){return R instanceof Date?_(R):R})),P===null){if(l)return h&&!$?h(u,Ge.encoder,M,"key",w):u;P=""}if(cd(P)||fi.isBuffer(P)){if(h){var X=$?u:h(u,Ge.encoder,M,"key",w);return[S(X)+"="+S(h(P,Ge.encoder,M,"value",w))]}return[S(u)+"="+S(String(P))]}var z=[];if(typeof P=="undefined")return z;var ue;if(a==="comma"&&kt(P))$&&h&&(P=fi.maybeMap(P,h)),ue=[{value:P.length>0?P.join(",")||null:void 0}];else if(kt(d))ue=d;else{var ye=Object.keys(P);ue=y?ye.sort(y):ye}for(var de=f&&kt(P)&&P.length===1?u+"[]":u,oe=0;oe<ue.length;++oe){var $e=ue[oe],qe=typeof $e=="object"&&typeof $e.value!="undefined"?$e.value:P[$e];if(!(g&&qe===null)){var K=kt(P)?typeof a=="function"?a(de,$e):de:de+(E?"."+$e:"["+$e+"]");B.set(r,F);var H=Ff();H.set(Yu,B),Mf(z,n(qe,K,a,f,l,g,a==="comma"&&$&&kt(P)?null:h,d,y,E,_,w,S,$,M,H))}}return z},hd=function(r){if(!r)return Ge;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=r.charset||Ge.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=mr.default;if(typeof r.format!="undefined"){if(!fd.call(mr.formatters,r.format))throw new TypeError("Unknown format option provided.");a=r.format}var f=mr.formatters[a],l=Ge.filter;return(typeof r.filter=="function"||kt(r.filter))&&(l=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Ge.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Ge.allowDots:!!r.allowDots,charset:u,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ge.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Ge.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Ge.encode,encoder:typeof r.encoder=="function"?r.encoder:Ge.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Ge.encodeValuesOnly,filter:l,format:a,formatter:f,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Ge.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Ge.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ge.strictNullHandling}},gd=function(n,r){var u=n,a=hd(r),f,l;typeof a.filter=="function"?(l=a.filter,u=l("",u)):kt(a.filter)&&(l=a.filter,f=l);var g=[];if(typeof u!="object"||u===null)return"";var h;r&&r.arrayFormat in Pf?h=r.arrayFormat:r&&"indices"in r?h=r.indices?"indices":"repeat":h="indices";var d=Pf[h];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y=d==="comma"&&r&&r.commaRoundTrip;f||(f=Object.keys(u)),a.sort&&f.sort(a.sort);for(var E=Ff(),_=0;_<f.length;++_){var w=f[_];a.skipNulls&&u[w]===null||Mf(g,pd(u[w],w,d,y,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,E))}var S=g.join(a.delimiter),$=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?$+="utf8=%26%2310003%3B&":$+="utf8=%E2%9C%93&"),S.length>0?$+S:""},zn=Df,ku=Object.prototype.hasOwnProperty,dd=Array.isArray,Le={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:zn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},vd=function(n){return n.replace(/&#(\d+);/g,function(r,u){return String.fromCharCode(parseInt(u,10))})},Lf=function(n,r){return n&&typeof n=="string"&&r.comma&&n.indexOf(",")>-1?n.split(","):n},yd="utf8=%26%2310003%3B",md="utf8=%E2%9C%93",_d=function(r,u){var a={__proto__:null},f=u.ignoreQueryPrefix?r.replace(/^\?/,""):r,l=u.parameterLimit===1/0?void 0:u.parameterLimit,g=f.split(u.delimiter,l),h=-1,d,y=u.charset;if(u.charsetSentinel)for(d=0;d<g.length;++d)g[d].indexOf("utf8=")===0&&(g[d]===md?y="utf-8":g[d]===yd&&(y="iso-8859-1"),h=d,d=g.length);for(d=0;d<g.length;++d)if(d!==h){var E=g[d],_=E.indexOf("]="),w=_===-1?E.indexOf("="):_+1,S,$;w===-1?(S=u.decoder(E,Le.decoder,y,"key"),$=u.strictNullHandling?null:""):(S=u.decoder(E.slice(0,w),Le.decoder,y,"key"),$=zn.maybeMap(Lf(E.slice(w+1),u),function(M){return u.decoder(M,Le.decoder,y,"value")})),$&&u.interpretNumericEntities&&y==="iso-8859-1"&&($=vd($)),E.indexOf("[]=")>-1&&($=dd($)?[$]:$),ku.call(a,S)?a[S]=zn.combine(a[S],$):a[S]=$}return a},wd=function(n,r,u,a){for(var f=a?r:Lf(r,u),l=n.length-1;l>=0;--l){var g,h=n[l];if(h==="[]"&&u.parseArrays)g=[].concat(f);else{g=u.plainObjects?Object.create(null):{};var d=h.charAt(0)==="["&&h.charAt(h.length-1)==="]"?h.slice(1,-1):h,y=parseInt(d,10);!u.parseArrays&&d===""?g={0:f}:!isNaN(y)&&h!==d&&String(y)===d&&y>=0&&u.parseArrays&&y<=u.arrayLimit?(g=[],g[y]=f):d!=="__proto__"&&(g[d]=f)}f=g}return f},Ed=function(r,u,a,f){if(!!r){var l=a.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,g=/(\[[^[\]]*])/,h=/(\[[^[\]]*])/g,d=a.depth>0&&g.exec(l),y=d?l.slice(0,d.index):l,E=[];if(y){if(!a.plainObjects&&ku.call(Object.prototype,y)&&!a.allowPrototypes)return;E.push(y)}for(var _=0;a.depth>0&&(d=h.exec(l))!==null&&_<a.depth;){if(_+=1,!a.plainObjects&&ku.call(Object.prototype,d[1].slice(1,-1))&&!a.allowPrototypes)return;E.push(d[1])}return d&&E.push("["+l.slice(d.index)+"]"),wd(E,u,a,f)}},Sd=function(r){if(!r)return Le;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=typeof r.charset=="undefined"?Le.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?Le.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Le.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Le.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Le.arrayLimit,charset:u,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Le.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Le.comma,decoder:typeof r.decoder=="function"?r.decoder:Le.decoder,delimiter:typeof r.delimiter=="string"||zn.isRegExp(r.delimiter)?r.delimiter:Le.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Le.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Le.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Le.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Le.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Le.strictNullHandling}},Ad=function(n,r){var u=Sd(r);if(n===""||n===null||typeof n=="undefined")return u.plainObjects?Object.create(null):{};for(var a=typeof n=="string"?_d(n,u):n,f=u.plainObjects?Object.create(null):{},l=Object.keys(a),g=0;g<l.length;++g){var h=l[g],d=Ed(h,a[h],u,typeof n=="string");f=zn.merge(f,d,u)}return u.allowSparse===!0?f:zn.compact(f)},bd=gd,Cd=Ad,Od=Wu,xd={formats:Od,parse:Cd,stringify:bd};function Nf(){const n=location.search,r=new Object;if(n.indexOf("?")!=-1){let a=n.substr(1).split("&");for(let f=0;f<a.length;f++)r[a[f].split("=")[0]]=unescape(a[f].split("=")[1])}return r}const Bf="Content-Type";function Gu(n){let r=(n==null?void 0:n[Bf])||(n==null?void 0:n["content-type"])||"";const u=r.indexOf(";");return u!==-1&&(r=r.substring(0,u)),r}function Uf(n,r){n[Bf]=r}const _r={form:"application/x-www-form-urlencoded",multiForm:"multipart/form-data",body:"application/json",os:"application/octet-stream",json:"application/json"},Wf="v8-token",Td="lambo-token";function Id(n){Ln(Wf,n),qu.set("TOKEN_KEY",n,1)}function Hf(){let n=_e(Td);return n||(n=qu.get("lambo-sso-key")),n||(n=qu.get("TOKEN_KEY")),n||(n=Rn(Wf)),n||!1}const qu={set:function(n,r,u){if(n.indexOf("=")!==-1)throw new Error("Cookie\u4E0D\u652F\u6301key\u4E2D\u4F7F\u7528\u7B49\u53F7\u3010=\u3011, key:"+n);let a=new Date;a.setTime(a.getTime()+24*60*60*1e3*u),window.document.cookie=n+"="+r+";path=/;expires="+a.toGMTString()},get:function(n){if(document.cookie.length>0){var r=document.cookie.split("; ");for(let a=0;a<r.length;a++){let f=r[a].split("=");if(f[0]===n){var u=f[1];for(let l=2;l<f.length;l++)u+="="+f[l];return u}}}}};var Yf={title:"",icomId:"",showMenus:!1,routerBase:"ind",loginRouteName:"login",rootRouteName:"root",homeRouteName:"home",authServerContext:"/user-manage-server",ossServerContext:"/user-manage-server",ismAmServerContext:"/ind-ism-am-server",ismAcServerContext:"/ind-ism-ac-server",ismSqServerContext:"/ind-ism-sq-server",ilmServerContext:"/ind-ilm-server",ucExtServerContext:"/ind-uc-ext-server",kkfilepreviewContext:"/kkfilepreview",errorMessage:"\u7CFB\u7EDF\u5F00\u5C0F\u5DEE\u4E86\uFF0C\u8BF7\u7A0D\u540E\u5C1D\u8BD5",leftLockDays:7,labelStyle:{labelWidthButton:50,labelWidthSmall:100+40,labelWidthMiddle:120+40,labelWidthMiddleLarge:140+40,labelWidthLarge:160+40,labelWidthSuperLarge:180+40},linkColor:"#488AFF"};function $d(){return{showMenus:!0}}function Dd(){return{showMenus:typeof window!="undefined"&&window.top===window.self}}function kf(n){return n?Object.assign({},Yf,$d()):Object.assign({},Yf,Dd())}const Lt=kf(),Fd=1,Pd=10106;let wr=null;function Md(n){wr&&clearTimeout(wr);let r=!wr;wr=setTimeout(()=>{wr=null},1e3*20),r&&n()}function Rd(n){let r=Hf();r&&(n.headers.token=r);const u=Nf();(u.hasOwnProperty("sso_token")||sessionStorage.getItem("sso_token"))&&(n.params=Object.assign({sso_token:u.sso_token||sessionStorage.getItem("sso_token"),sso_id:u.sso_id},n.params));const a=Gu(n.headers);return n.method==="post"?a===_r.form&&(n.data=xd.stringify(n.data)):n.method,n}function Gf(n){let r=n.data;if(Gu(n.headers)!==_r.json)return r;switch(typeof n.data=="string"&&(r=JSON.parse(n.data)),r.code){case Fd:return r;case Pd:{Md(function(){window.sessionNotValidHandler&&window.sessionNotValidHandler()});break}default:{let f=r.message||r.msg||Lt.errorMessage;window.apiErrorHandler&&window.apiErrorHandler(f)}}return Promise.reject(r)}function qf(n){var r;return(n==null?void 0:n.code)==="ECONNABORTED"?window.apiErrorHandler&&window.apiErrorHandler("\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"):((r=n==null?void 0:n.response)==null?void 0:r.status)!==200&&window.apiErrorHandler&&window.apiErrorHandler("\u8BF7\u6C42\u51FA\u9519\u4E86"),Promise.reject(n)}const he=wh.create({timeout:5*60*1e3});he.interceptors.request.use(Rd,qf),he.interceptors.response.use(Gf,qf),he.formPost=function(n,r,u){const a=(u==null?void 0:u.headers)||{};return Uf(a,_r.form),he.post(n,r,Pt(pt({},u),{headers:a}))};var zf={exports:{}},Kf={exports:{}};(function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(u,a){return u<<a|u>>>32-a},rotr:function(u,a){return u<<32-a|u>>>a},endian:function(u){if(u.constructor==Number)return r.rotl(u,8)&16711935|r.rotl(u,24)&4278255360;for(var a=0;a<u.length;a++)u[a]=r.endian(u[a]);return u},randomBytes:function(u){for(var a=[];u>0;u--)a.push(Math.floor(Math.random()*256));return a},bytesToWords:function(u){for(var a=[],f=0,l=0;f<u.length;f++,l+=8)a[l>>>5]|=u[f]<<24-l%32;return a},wordsToBytes:function(u){for(var a=[],f=0;f<u.length*32;f+=8)a.push(u[f>>>5]>>>24-f%32&255);return a},bytesToHex:function(u){for(var a=[],f=0;f<u.length;f++)a.push((u[f]>>>4).toString(16)),a.push((u[f]&15).toString(16));return a.join("")},hexToBytes:function(u){for(var a=[],f=0;f<u.length;f+=2)a.push(parseInt(u.substr(f,2),16));return a},bytesToBase64:function(u){for(var a=[],f=0;f<u.length;f+=3)for(var l=u[f]<<16|u[f+1]<<8|u[f+2],g=0;g<4;g++)f*8+g*6<=u.length*8?a.push(n.charAt(l>>>6*(3-g)&63)):a.push("=");return a.join("")},base64ToBytes:function(u){u=u.replace(/[^A-Z0-9+\/]/ig,"");for(var a=[],f=0,l=0;f<u.length;l=++f%4)l!=0&&a.push((n.indexOf(u.charAt(f-1))&Math.pow(2,-2*l+8)-1)<<l*2|n.indexOf(u.charAt(f))>>>6-l*2);return a}};Kf.exports=r})();var zu={utf8:{stringToBytes:function(n){return zu.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(zu.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],u=0;u<n.length;u++)r.push(n.charCodeAt(u)&255);return r},bytesToString:function(n){for(var r=[],u=0;u<n.length;u++)r.push(String.fromCharCode(n[u]));return r.join("")}}},Jf=zu;/*!
|
|
5
|
+
`+r.prev}function ui(n,r){var u=Mu(n),a=[];if(u){a.length=n.length;for(var f=0;f<n.length;f++)a[f]=on(n,f)?r(n[f],n):""}var l=typeof Du=="function"?Du(n):[],g;if(Gn){g={};for(var h=0;h<l.length;h++)g["$"+l[h]]=l[h]}for(var d in n)!on(n,d)||u&&String(Number(d))===d&&d<n.length||Gn&&g["$"+d]instanceof Symbol||(vf.call(/[^\w$]/,d)?a.push(r(d,n)+": "+r(n[d],n)):a.push(d+": "+r(n[d],n)));if(typeof Du=="function")for(var y=0;y<l.length;y++)_f.call(n,l[y])&&a.push("["+r(l[y])+"]: "+r(n[l[y]],n));return a}var Nu=An,qn=ug,Ng=mg,Bg=Nu("%TypeError%"),oi=Nu("%WeakMap%",!0),ai=Nu("%Map%",!0),Ug=qn("WeakMap.prototype.get",!0),Wg=qn("WeakMap.prototype.set",!0),Hg=qn("WeakMap.prototype.has",!0),Yg=qn("Map.prototype.get",!0),kg=qn("Map.prototype.set",!0),Gg=qn("Map.prototype.has",!0),Bu=function(n,r){for(var u=n,a;(a=u.next)!==null;u=a)if(a.key===r)return u.next=a.next,a.next=n.next,n.next=a,a},qg=function(n,r){var u=Bu(n,r);return u&&u.value},zg=function(n,r,u){var a=Bu(n,r);a?a.value=u:n.next={key:r,next:n.next,value:u}},Kg=function(n,r){return!!Bu(n,r)},Jg=function(){var r,u,a,f={assert:function(l){if(!f.has(l))throw new Bg("Side channel does not contain "+Ng(l))},get:function(l){if(oi&&l&&(typeof l=="object"||typeof l=="function")){if(r)return Ug(r,l)}else if(ai){if(u)return Yg(u,l)}else if(a)return qg(a,l)},has:function(l){if(oi&&l&&(typeof l=="object"||typeof l=="function")){if(r)return Hg(r,l)}else if(ai){if(u)return Gg(u,l)}else if(a)return Kg(a,l);return!1},set:function(l,g){oi&&l&&(typeof l=="object"||typeof l=="function")?(r||(r=new oi),Wg(r,l,g)):ai?(u||(u=new ai),kg(u,l,g)):(a||(a={key:{},next:null}),zg(a,l,g))}};return f},Vg=String.prototype.replace,Qg=/%20/g,Uu={RFC1738:"RFC1738",RFC3986:"RFC3986"},Wu={default:Uu.RFC3986,formatters:{RFC1738:function(n){return Vg.call(n,Qg,"+")},RFC3986:function(n){return String(n)}},RFC1738:Uu.RFC1738,RFC3986:Uu.RFC3986},Xg=Wu,Hu=Object.prototype.hasOwnProperty,bn=Array.isArray,Rt=function(){for(var n=[],r=0;r<256;++r)n.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return n}(),Zg=function(r){for(;r.length>1;){var u=r.pop(),a=u.obj[u.prop];if(bn(a)){for(var f=[],l=0;l<a.length;++l)typeof a[l]!="undefined"&&f.push(a[l]);u.obj[u.prop]=f}}},$f=function(r,u){for(var a=u&&u.plainObjects?Object.create(null):{},f=0;f<r.length;++f)typeof r[f]!="undefined"&&(a[f]=r[f]);return a},jg=function n(r,u,a){if(!u)return r;if(typeof u!="object"){if(bn(r))r.push(u);else if(r&&typeof r=="object")(a&&(a.plainObjects||a.allowPrototypes)||!Hu.call(Object.prototype,u))&&(r[u]=!0);else return[r,u];return r}if(!r||typeof r!="object")return[r].concat(u);var f=r;return bn(r)&&!bn(u)&&(f=$f(r,a)),bn(r)&&bn(u)?(u.forEach(function(l,g){if(Hu.call(r,g)){var h=r[g];h&&typeof h=="object"&&l&&typeof l=="object"?r[g]=n(h,l,a):r.push(l)}else r[g]=l}),r):Object.keys(u).reduce(function(l,g){var h=u[g];return Hu.call(l,g)?l[g]=n(l[g],h,a):l[g]=h,l},f)},ed=function(r,u){return Object.keys(u).reduce(function(a,f){return a[f]=u[f],a},r)},td=function(n,r,u){var a=n.replace(/\+/g," ");if(u==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(f){return a}},nd=function(r,u,a,f,l){if(r.length===0)return r;var g=r;if(typeof r=="symbol"?g=Symbol.prototype.toString.call(r):typeof r!="string"&&(g=String(r)),a==="iso-8859-1")return escape(g).replace(/%u[0-9a-f]{4}/gi,function(E){return"%26%23"+parseInt(E.slice(2),16)+"%3B"});for(var h="",d=0;d<g.length;++d){var y=g.charCodeAt(d);if(y===45||y===46||y===95||y===126||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||l===Xg.RFC1738&&(y===40||y===41)){h+=g.charAt(d);continue}if(y<128){h=h+Rt[y];continue}if(y<2048){h=h+(Rt[192|y>>6]+Rt[128|y&63]);continue}if(y<55296||y>=57344){h=h+(Rt[224|y>>12]+Rt[128|y>>6&63]+Rt[128|y&63]);continue}d+=1,y=65536+((y&1023)<<10|g.charCodeAt(d)&1023),h+=Rt[240|y>>18]+Rt[128|y>>12&63]+Rt[128|y>>6&63]+Rt[128|y&63]}return h},rd=function(r){for(var u=[{obj:{o:r},prop:"o"}],a=[],f=0;f<u.length;++f)for(var l=u[f],g=l.obj[l.prop],h=Object.keys(g),d=0;d<h.length;++d){var y=h[d],E=g[y];typeof E=="object"&&E!==null&&a.indexOf(E)===-1&&(u.push({obj:g,prop:y}),a.push(E))}return Zg(u),r},id=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},ud=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},od=function(r,u){return[].concat(r,u)},ad=function(r,u){if(bn(r)){for(var a=[],f=0;f<r.length;f+=1)a.push(u(r[f]));return a}return u(r)},Df={arrayToObject:$f,assign:ed,combine:od,compact:rd,decode:td,encode:nd,isBuffer:ud,isRegExp:id,maybeMap:ad,merge:jg},Ff=Jg,fi=Df,mr=Wu,fd=Object.prototype.hasOwnProperty,Pf={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,u){return r+"["+u+"]"},repeat:function(r){return r}},kt=Array.isArray,sd=Array.prototype.push,Mf=function(n,r){sd.apply(n,kt(r)?r:[r])},ld=Date.prototype.toISOString,Rf=mr.default,Ge={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:fi.encode,encodeValuesOnly:!1,format:Rf,formatter:mr.formatters[Rf],indices:!1,serializeDate:function(r){return ld.call(r)},skipNulls:!1,strictNullHandling:!1},cd=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},Yu={},pd=function n(r,u,a,f,l,g,h,d,y,E,_,w,S,$,M,B){for(var P=r,k=B,F=0,L=!1;(k=k.get(Yu))!==void 0&&!L;){var N=k.get(r);if(F+=1,typeof N!="undefined"){if(N===F)throw new RangeError("Cyclic object value");L=!0}typeof k.get(Yu)=="undefined"&&(F=0)}if(typeof d=="function"?P=d(u,P):P instanceof Date?P=_(P):a==="comma"&&kt(P)&&(P=fi.maybeMap(P,function(R){return R instanceof Date?_(R):R})),P===null){if(l)return h&&!$?h(u,Ge.encoder,M,"key",w):u;P=""}if(cd(P)||fi.isBuffer(P)){if(h){var X=$?u:h(u,Ge.encoder,M,"key",w);return[S(X)+"="+S(h(P,Ge.encoder,M,"value",w))]}return[S(u)+"="+S(String(P))]}var z=[];if(typeof P=="undefined")return z;var ue;if(a==="comma"&&kt(P))$&&h&&(P=fi.maybeMap(P,h)),ue=[{value:P.length>0?P.join(",")||null:void 0}];else if(kt(d))ue=d;else{var ye=Object.keys(P);ue=y?ye.sort(y):ye}for(var de=f&&kt(P)&&P.length===1?u+"[]":u,oe=0;oe<ue.length;++oe){var $e=ue[oe],qe=typeof $e=="object"&&typeof $e.value!="undefined"?$e.value:P[$e];if(!(g&&qe===null)){var K=kt(P)?typeof a=="function"?a(de,$e):de:de+(E?"."+$e:"["+$e+"]");B.set(r,F);var H=Ff();H.set(Yu,B),Mf(z,n(qe,K,a,f,l,g,a==="comma"&&$&&kt(P)?null:h,d,y,E,_,w,S,$,M,H))}}return z},hd=function(r){if(!r)return Ge;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=r.charset||Ge.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=mr.default;if(typeof r.format!="undefined"){if(!fd.call(mr.formatters,r.format))throw new TypeError("Unknown format option provided.");a=r.format}var f=mr.formatters[a],l=Ge.filter;return(typeof r.filter=="function"||kt(r.filter))&&(l=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Ge.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Ge.allowDots:!!r.allowDots,charset:u,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ge.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Ge.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Ge.encode,encoder:typeof r.encoder=="function"?r.encoder:Ge.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Ge.encodeValuesOnly,filter:l,format:a,formatter:f,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Ge.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Ge.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ge.strictNullHandling}},gd=function(n,r){var u=n,a=hd(r),f,l;typeof a.filter=="function"?(l=a.filter,u=l("",u)):kt(a.filter)&&(l=a.filter,f=l);var g=[];if(typeof u!="object"||u===null)return"";var h;r&&r.arrayFormat in Pf?h=r.arrayFormat:r&&"indices"in r?h=r.indices?"indices":"repeat":h="indices";var d=Pf[h];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y=d==="comma"&&r&&r.commaRoundTrip;f||(f=Object.keys(u)),a.sort&&f.sort(a.sort);for(var E=Ff(),_=0;_<f.length;++_){var w=f[_];a.skipNulls&&u[w]===null||Mf(g,pd(u[w],w,d,y,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,E))}var S=g.join(a.delimiter),$=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?$+="utf8=%26%2310003%3B&":$+="utf8=%E2%9C%93&"),S.length>0?$+S:""},zn=Df,ku=Object.prototype.hasOwnProperty,dd=Array.isArray,Le={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:zn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},vd=function(n){return n.replace(/&#(\d+);/g,function(r,u){return String.fromCharCode(parseInt(u,10))})},Lf=function(n,r){return n&&typeof n=="string"&&r.comma&&n.indexOf(",")>-1?n.split(","):n},yd="utf8=%26%2310003%3B",md="utf8=%E2%9C%93",_d=function(r,u){var a={__proto__:null},f=u.ignoreQueryPrefix?r.replace(/^\?/,""):r,l=u.parameterLimit===1/0?void 0:u.parameterLimit,g=f.split(u.delimiter,l),h=-1,d,y=u.charset;if(u.charsetSentinel)for(d=0;d<g.length;++d)g[d].indexOf("utf8=")===0&&(g[d]===md?y="utf-8":g[d]===yd&&(y="iso-8859-1"),h=d,d=g.length);for(d=0;d<g.length;++d)if(d!==h){var E=g[d],_=E.indexOf("]="),w=_===-1?E.indexOf("="):_+1,S,$;w===-1?(S=u.decoder(E,Le.decoder,y,"key"),$=u.strictNullHandling?null:""):(S=u.decoder(E.slice(0,w),Le.decoder,y,"key"),$=zn.maybeMap(Lf(E.slice(w+1),u),function(M){return u.decoder(M,Le.decoder,y,"value")})),$&&u.interpretNumericEntities&&y==="iso-8859-1"&&($=vd($)),E.indexOf("[]=")>-1&&($=dd($)?[$]:$),ku.call(a,S)?a[S]=zn.combine(a[S],$):a[S]=$}return a},wd=function(n,r,u,a){for(var f=a?r:Lf(r,u),l=n.length-1;l>=0;--l){var g,h=n[l];if(h==="[]"&&u.parseArrays)g=[].concat(f);else{g=u.plainObjects?Object.create(null):{};var d=h.charAt(0)==="["&&h.charAt(h.length-1)==="]"?h.slice(1,-1):h,y=parseInt(d,10);!u.parseArrays&&d===""?g={0:f}:!isNaN(y)&&h!==d&&String(y)===d&&y>=0&&u.parseArrays&&y<=u.arrayLimit?(g=[],g[y]=f):d!=="__proto__"&&(g[d]=f)}f=g}return f},Ed=function(r,u,a,f){if(!!r){var l=a.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,g=/(\[[^[\]]*])/,h=/(\[[^[\]]*])/g,d=a.depth>0&&g.exec(l),y=d?l.slice(0,d.index):l,E=[];if(y){if(!a.plainObjects&&ku.call(Object.prototype,y)&&!a.allowPrototypes)return;E.push(y)}for(var _=0;a.depth>0&&(d=h.exec(l))!==null&&_<a.depth;){if(_+=1,!a.plainObjects&&ku.call(Object.prototype,d[1].slice(1,-1))&&!a.allowPrototypes)return;E.push(d[1])}return d&&E.push("["+l.slice(d.index)+"]"),wd(E,u,a,f)}},Sd=function(r){if(!r)return Le;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=typeof r.charset=="undefined"?Le.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?Le.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Le.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Le.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Le.arrayLimit,charset:u,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Le.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Le.comma,decoder:typeof r.decoder=="function"?r.decoder:Le.decoder,delimiter:typeof r.delimiter=="string"||zn.isRegExp(r.delimiter)?r.delimiter:Le.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Le.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Le.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Le.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Le.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Le.strictNullHandling}},Ad=function(n,r){var u=Sd(r);if(n===""||n===null||typeof n=="undefined")return u.plainObjects?Object.create(null):{};for(var a=typeof n=="string"?_d(n,u):n,f=u.plainObjects?Object.create(null):{},l=Object.keys(a),g=0;g<l.length;++g){var h=l[g],d=Ed(h,a[h],u,typeof n=="string");f=zn.merge(f,d,u)}return u.allowSparse===!0?f:zn.compact(f)},bd=gd,Cd=Ad,Od=Wu,xd={formats:Od,parse:Cd,stringify:bd};function Nf(){const n=location.search,r=new Object;if(n.indexOf("?")!=-1){let a=n.substr(1).split("&");for(let f=0;f<a.length;f++)r[a[f].split("=")[0]]=unescape(a[f].split("=")[1])}return r}const Bf="Content-Type";function Gu(n){let r=(n==null?void 0:n[Bf])||(n==null?void 0:n["content-type"])||"";const u=r.indexOf(";");return u!==-1&&(r=r.substring(0,u)),r}function Uf(n,r){n[Bf]=r}const _r={form:"application/x-www-form-urlencoded",multiForm:"multipart/form-data",body:"application/json",os:"application/octet-stream",json:"application/json"},Wf="v8-token",Td="lambo-token";function Id(n){Ln(Wf,n),qu.set("TOKEN_KEY",n,1)}function Hf(){let n=_e(Td);return n||(n=qu.get("lambo-sso-key")),n||(n=qu.get("TOKEN_KEY")),n||(n=Rn(Wf)),n||!1}const qu={set:function(n,r,u){if(n.indexOf("=")!==-1)throw new Error("Cookie\u4E0D\u652F\u6301key\u4E2D\u4F7F\u7528\u7B49\u53F7\u3010=\u3011, key:"+n);let a=new Date;a.setTime(a.getTime()+24*60*60*1e3*u),window.document.cookie=n+"="+r+";path=/;expires="+a.toGMTString()},get:function(n){if(document.cookie.length>0){var r=document.cookie.split("; ");for(let a=0;a<r.length;a++){let f=r[a].split("=");if(f[0]===n){var u=f[1];for(let l=2;l<f.length;l++)u+="="+f[l];return u}}}}};var Yf={title:"",icomId:"",showMenus:!1,routerBase:"ind",loginRouteName:"login",rootRouteName:"root",homeRouteName:"home",authServerContext:"/user-manage-server",ossServerContext:"/user-manage-server",ismAmServerContext:"/ind-ism-am-server",ismAcServerContext:"/ind-ism-ac-server",ismSqServerContext:"/ind-ism-sq-server",ilmServerContext:"/ind-ilm-server",imgServerContext:"/ind-img-server",ucExtServerContext:"/ind-uc-ext-server",kkfilepreviewContext:"/kkfilepreview",errorMessage:"\u7CFB\u7EDF\u5F00\u5C0F\u5DEE\u4E86\uFF0C\u8BF7\u7A0D\u540E\u5C1D\u8BD5",leftLockDays:7,labelStyle:{labelWidthButton:50,labelWidthSmall:100+40,labelWidthMiddle:120+40,labelWidthMiddleLarge:140+40,labelWidthLarge:160+40,labelWidthSuperLarge:180+40},linkColor:"#488AFF"};function $d(){return{showMenus:!0}}function Dd(){return{showMenus:typeof window!="undefined"&&window.top===window.self}}function kf(n){return n?Object.assign({},Yf,$d()):Object.assign({},Yf,Dd())}const Lt=kf(),Fd=1,Pd=10106;let wr=null;function Md(n){wr&&clearTimeout(wr);let r=!wr;wr=setTimeout(()=>{wr=null},1e3*20),r&&n()}function Rd(n){let r=Hf();r&&(n.headers.token=r);const u=Nf();(u.hasOwnProperty("sso_token")||sessionStorage.getItem("sso_token"))&&(n.params=Object.assign({sso_token:u.sso_token||sessionStorage.getItem("sso_token"),sso_id:u.sso_id},n.params));const a=Gu(n.headers);return n.method==="post"?a===_r.form&&(n.data=xd.stringify(n.data)):n.method,n}function Gf(n){let r=n.data;if(Gu(n.headers)!==_r.json)return r;switch(typeof n.data=="string"&&(r=JSON.parse(n.data)),r.code){case Fd:return r;case Pd:{Md(function(){window.sessionNotValidHandler&&window.sessionNotValidHandler()});break}default:{let f=r.message||r.msg||Lt.errorMessage;window.apiErrorHandler&&window.apiErrorHandler(f)}}return Promise.reject(r)}function qf(n){var r;return(n==null?void 0:n.code)==="ECONNABORTED"?window.apiErrorHandler&&window.apiErrorHandler("\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"):((r=n==null?void 0:n.response)==null?void 0:r.status)!==200&&window.apiErrorHandler&&window.apiErrorHandler("\u8BF7\u6C42\u51FA\u9519\u4E86"),Promise.reject(n)}const he=wh.create({timeout:5*60*1e3});he.interceptors.request.use(Rd,qf),he.interceptors.response.use(Gf,qf),he.formPost=function(n,r,u){const a=(u==null?void 0:u.headers)||{};return Uf(a,_r.form),he.post(n,r,Pt(pt({},u),{headers:a}))};var zf={exports:{}},Kf={exports:{}};(function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(u,a){return u<<a|u>>>32-a},rotr:function(u,a){return u<<32-a|u>>>a},endian:function(u){if(u.constructor==Number)return r.rotl(u,8)&16711935|r.rotl(u,24)&4278255360;for(var a=0;a<u.length;a++)u[a]=r.endian(u[a]);return u},randomBytes:function(u){for(var a=[];u>0;u--)a.push(Math.floor(Math.random()*256));return a},bytesToWords:function(u){for(var a=[],f=0,l=0;f<u.length;f++,l+=8)a[l>>>5]|=u[f]<<24-l%32;return a},wordsToBytes:function(u){for(var a=[],f=0;f<u.length*32;f+=8)a.push(u[f>>>5]>>>24-f%32&255);return a},bytesToHex:function(u){for(var a=[],f=0;f<u.length;f++)a.push((u[f]>>>4).toString(16)),a.push((u[f]&15).toString(16));return a.join("")},hexToBytes:function(u){for(var a=[],f=0;f<u.length;f+=2)a.push(parseInt(u.substr(f,2),16));return a},bytesToBase64:function(u){for(var a=[],f=0;f<u.length;f+=3)for(var l=u[f]<<16|u[f+1]<<8|u[f+2],g=0;g<4;g++)f*8+g*6<=u.length*8?a.push(n.charAt(l>>>6*(3-g)&63)):a.push("=");return a.join("")},base64ToBytes:function(u){u=u.replace(/[^A-Z0-9+\/]/ig,"");for(var a=[],f=0,l=0;f<u.length;l=++f%4)l!=0&&a.push((n.indexOf(u.charAt(f-1))&Math.pow(2,-2*l+8)-1)<<l*2|n.indexOf(u.charAt(f))>>>6-l*2);return a}};Kf.exports=r})();var zu={utf8:{stringToBytes:function(n){return zu.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(zu.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],u=0;u<n.length;u++)r.push(n.charCodeAt(u)&255);return r},bytesToString:function(n){for(var r=[],u=0;u<n.length;u++)r.push(String.fromCharCode(n[u]));return r.join("")}}},Jf=zu;/*!
|
|
6
6
|
* Determine if an object is a Buffer
|
|
7
7
|
*
|
|
8
8
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
@@ -33,4 +33,4 @@ __p += '`),ce&&(D+=`' +
|
|
|
33
33
|
function print() { __p += __j.call(arguments, '') }
|
|
34
34
|
`:`;
|
|
35
35
|
`)+D+`return __p
|
|
36
|
-
}`;var re=Xc(function(){return pe(p,q+"return "+D).apply(u,v)});if(re.source=D,ga(re))throw re;return re}function WS(e){return ge(e).toLowerCase()}function HS(e){return ge(e).toUpperCase()}function YS(e,t,i){if(e=ge(e),e&&(i||t===u))return ol(e);if(!e||!(t=ft(t)))return e;var o=It(e),s=It(t),p=al(o,s),v=fl(o,s)+1;return vn(o,p,v).join("")}function kS(e,t,i){if(e=ge(e),e&&(i||t===u))return e.slice(0,ll(e)+1);if(!e||!(t=ft(t)))return e;var o=It(e),s=fl(o,It(t))+1;return vn(o,0,s).join("")}function GS(e,t,i){if(e=ge(e),e&&(i||t===u))return e.replace(ho,"");if(!e||!(t=ft(t)))return e;var o=It(e),s=al(o,It(t));return vn(o,s).join("")}function qS(e,t){var i=de,o=oe;if(Oe(t)){var s="separator"in t?t.separator:s;i="length"in t?ne(t.length):i,o="omission"in t?ft(t.omission):o}e=ge(e);var p=e.length;if(jn(e)){var v=It(e);p=v.length}if(i>=p)return e;var m=i-er(o);if(m<1)return o;var b=v?vn(v,0,m).join(""):e.slice(0,m);if(s===u)return b+o;if(v&&(m+=b.length-m),da(s)){if(e.slice(m).search(s)){var T,I=b;for(s.global||(s=Do(s.source,ge(Ts.exec(s))+"g")),s.lastIndex=0;T=s.exec(I);)var D=T.index;b=b.slice(0,D===u?m:D)}}else if(e.indexOf(ft(s),m)!=m){var W=b.lastIndexOf(s);W>-1&&(b=b.slice(0,W))}return b+o}function zS(e){return e=ge(e),e&&r1.test(e)?e.replace(Cs,Ey):e}var KS=ar(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),ma=Zl("toUpperCase");function Qc(e,t,i){return e=ge(e),t=i?u:t,t===u?vy(e)?by(e):ay(e):e.match(t)||[]}var Xc=ie(function(e,t){try{return ot(e,u,t)}catch(i){return ga(i)?i:new j(i)}}),JS=jt(function(e,t){return dt(t,function(i){i=Yt(i),Xt(e,i,pa(e[i],e))}),e});function VS(e){var t=e==null?0:e.length,i=J();return e=t?Ae(e,function(o){if(typeof o[1]!="function")throw new vt(g);return[i(o[0]),o[1]]}):[],ie(function(o){for(var s=-1;++s<t;){var p=e[s];if(ot(p[0],this,o))return ot(p[1],this,o)}})}function QS(e){return Em(mt(e,_))}function _a(e){return function(){return e}}function XS(e,t){return e==null||e!==e?t:e}var ZS=ec(),jS=ec(!0);function nt(e){return e}function wa(e){return $l(typeof e=="function"?e:mt(e,_))}function eA(e){return Fl(mt(e,_))}function tA(e,t){return Pl(e,mt(t,_))}var nA=ie(function(e,t){return function(i){return Br(i,e,t)}}),rA=ie(function(e,t){return function(i){return Br(e,i,t)}});function Ea(e,t,i){var o=Be(t),s=Ni(t,o);i==null&&!(Oe(t)&&(s.length||!o.length))&&(i=t,t=e,e=this,s=Ni(t,Be(t)));var p=!(Oe(i)&&"chain"in i)||!!i.chain,v=tn(e);return dt(s,function(m){var b=t[m];e[m]=b,v&&(e.prototype[m]=function(){var T=this.__chain__;if(p||T){var I=e(this.__wrapped__),D=I.__actions__=je(this.__actions__);return D.push({func:b,args:arguments,thisArg:e}),I.__chain__=T,I}return b.apply(e,ln([this.value()],arguments))})}),e}function iA(){return We._===this&&(We._=$y),this}function Sa(){}function uA(e){return e=ne(e),ie(function(t){return Ml(t,e)})}var oA=jo(Ae),aA=jo(tl),fA=jo(bo);function Zc(e){return oa(e)?Co(Yt(e)):Bm(e)}function sA(e){return function(t){return e==null?u:Dn(e,t)}}var lA=nc(),cA=nc(!0);function Aa(){return[]}function ba(){return!1}function pA(){return{}}function hA(){return""}function gA(){return!0}function dA(e,t){if(e=ne(e),e<1||e>U)return[];var i=ae,o=Ke(e,ae);t=J(t),e-=ae;for(var s=To(o,t);++i<e;)t(i);return s}function vA(e){return te(e)?Ae(e,Yt):st(e)?[e]:je(mc(ge(e)))}function yA(e){var t=++Ty;return ge(e)+t}var mA=ki(function(e,t){return e+t},0),_A=ea("ceil"),wA=ki(function(e,t){return e/t},1),EA=ea("floor");function SA(e){return e&&e.length?Li(e,nt,Uo):u}function AA(e,t){return e&&e.length?Li(e,J(t,2),Uo):u}function bA(e){return il(e,nt)}function CA(e,t){return il(e,J(t,2))}function OA(e){return e&&e.length?Li(e,nt,ko):u}function xA(e,t){return e&&e.length?Li(e,J(t,2),ko):u}var TA=ki(function(e,t){return e*t},1),IA=ea("round"),$A=ki(function(e,t){return e-t},0);function DA(e){return e&&e.length?xo(e,nt):0}function FA(e,t){return e&&e.length?xo(e,J(t,2)):0}return c.after=eE,c.ary=Ic,c.assign=HE,c.assignIn=kc,c.assignInWith=nu,c.assignWith=YE,c.at=kE,c.before=$c,c.bind=pa,c.bindAll=JS,c.bindKey=Dc,c.castArray=pE,c.chain=Oc,c.chunk=E_,c.compact=S_,c.concat=A_,c.cond=VS,c.conforms=QS,c.constant=_a,c.countBy=Dw,c.create=GE,c.curry=Fc,c.curryRight=Pc,c.debounce=Mc,c.defaults=qE,c.defaultsDeep=zE,c.defer=tE,c.delay=nE,c.difference=b_,c.differenceBy=C_,c.differenceWith=O_,c.drop=x_,c.dropRight=T_,c.dropRightWhile=I_,c.dropWhile=$_,c.fill=D_,c.filter=Pw,c.flatMap=Lw,c.flatMapDeep=Nw,c.flatMapDepth=Bw,c.flatten=Sc,c.flattenDeep=F_,c.flattenDepth=P_,c.flip=rE,c.flow=ZS,c.flowRight=jS,c.fromPairs=M_,c.functions=jE,c.functionsIn=eS,c.groupBy=Uw,c.initial=L_,c.intersection=N_,c.intersectionBy=B_,c.intersectionWith=U_,c.invert=nS,c.invertBy=rS,c.invokeMap=Hw,c.iteratee=wa,c.keyBy=Yw,c.keys=Be,c.keysIn=tt,c.map=Qi,c.mapKeys=uS,c.mapValues=oS,c.matches=eA,c.matchesProperty=tA,c.memoize=Zi,c.merge=aS,c.mergeWith=Gc,c.method=nA,c.methodOf=rA,c.mixin=Ea,c.negate=ji,c.nthArg=uA,c.omit=fS,c.omitBy=sS,c.once=iE,c.orderBy=kw,c.over=oA,c.overArgs=uE,c.overEvery=aA,c.overSome=fA,c.partial=ha,c.partialRight=Rc,c.partition=Gw,c.pick=lS,c.pickBy=qc,c.property=Zc,c.propertyOf=sA,c.pull=k_,c.pullAll=bc,c.pullAllBy=G_,c.pullAllWith=q_,c.pullAt=z_,c.range=lA,c.rangeRight=cA,c.rearg=oE,c.reject=Kw,c.remove=K_,c.rest=aE,c.reverse=la,c.sampleSize=Vw,c.set=pS,c.setWith=hS,c.shuffle=Qw,c.slice=J_,c.sortBy=jw,c.sortedUniq=tw,c.sortedUniqBy=nw,c.split=LS,c.spread=fE,c.tail=rw,c.take=iw,c.takeRight=uw,c.takeRightWhile=ow,c.takeWhile=aw,c.tap=Sw,c.throttle=sE,c.thru=Vi,c.toArray=Wc,c.toPairs=zc,c.toPairsIn=Kc,c.toPath=vA,c.toPlainObject=Yc,c.transform=gS,c.unary=lE,c.union=fw,c.unionBy=sw,c.unionWith=lw,c.uniq=cw,c.uniqBy=pw,c.uniqWith=hw,c.unset=dS,c.unzip=ca,c.unzipWith=Cc,c.update=vS,c.updateWith=yS,c.values=lr,c.valuesIn=mS,c.without=gw,c.words=Qc,c.wrap=cE,c.xor=dw,c.xorBy=vw,c.xorWith=yw,c.zip=mw,c.zipObject=_w,c.zipObjectDeep=ww,c.zipWith=Ew,c.entries=zc,c.entriesIn=Kc,c.extend=kc,c.extendWith=nu,Ea(c,c),c.add=mA,c.attempt=Xc,c.camelCase=SS,c.capitalize=Jc,c.ceil=_A,c.clamp=_S,c.clone=hE,c.cloneDeep=dE,c.cloneDeepWith=vE,c.cloneWith=gE,c.conformsTo=yE,c.deburr=Vc,c.defaultTo=XS,c.divide=wA,c.endsWith=AS,c.eq=Dt,c.escape=bS,c.escapeRegExp=CS,c.every=Fw,c.find=Mw,c.findIndex=wc,c.findKey=KE,c.findLast=Rw,c.findLastIndex=Ec,c.findLastKey=JE,c.floor=EA,c.forEach=xc,c.forEachRight=Tc,c.forIn=VE,c.forInRight=QE,c.forOwn=XE,c.forOwnRight=ZE,c.get=va,c.gt=mE,c.gte=_E,c.has=tS,c.hasIn=ya,c.head=Ac,c.identity=nt,c.includes=Ww,c.indexOf=R_,c.inRange=wS,c.invoke=iS,c.isArguments=Mn,c.isArray=te,c.isArrayBuffer=wE,c.isArrayLike=et,c.isArrayLikeObject=Te,c.isBoolean=EE,c.isBuffer=yn,c.isDate=SE,c.isElement=AE,c.isEmpty=bE,c.isEqual=CE,c.isEqualWith=OE,c.isError=ga,c.isFinite=xE,c.isFunction=tn,c.isInteger=Lc,c.isLength=eu,c.isMap=Nc,c.isMatch=TE,c.isMatchWith=IE,c.isNaN=$E,c.isNative=DE,c.isNil=PE,c.isNull=FE,c.isNumber=Bc,c.isObject=Oe,c.isObjectLike=xe,c.isPlainObject=Gr,c.isRegExp=da,c.isSafeInteger=ME,c.isSet=Uc,c.isString=tu,c.isSymbol=st,c.isTypedArray=sr,c.isUndefined=RE,c.isWeakMap=LE,c.isWeakSet=NE,c.join=W_,c.kebabCase=OS,c.last=wt,c.lastIndexOf=H_,c.lowerCase=xS,c.lowerFirst=TS,c.lt=BE,c.lte=UE,c.max=SA,c.maxBy=AA,c.mean=bA,c.meanBy=CA,c.min=OA,c.minBy=xA,c.stubArray=Aa,c.stubFalse=ba,c.stubObject=pA,c.stubString=hA,c.stubTrue=gA,c.multiply=TA,c.nth=Y_,c.noConflict=iA,c.noop=Sa,c.now=Xi,c.pad=IS,c.padEnd=$S,c.padStart=DS,c.parseInt=FS,c.random=ES,c.reduce=qw,c.reduceRight=zw,c.repeat=PS,c.replace=MS,c.result=cS,c.round=IA,c.runInContext=A,c.sample=Jw,c.size=Xw,c.snakeCase=RS,c.some=Zw,c.sortedIndex=V_,c.sortedIndexBy=Q_,c.sortedIndexOf=X_,c.sortedLastIndex=Z_,c.sortedLastIndexBy=j_,c.sortedLastIndexOf=ew,c.startCase=NS,c.startsWith=BS,c.subtract=$A,c.sum=DA,c.sumBy=FA,c.template=US,c.times=dA,c.toFinite=nn,c.toInteger=ne,c.toLength=Hc,c.toLower=WS,c.toNumber=Et,c.toSafeInteger=WE,c.toString=ge,c.toUpper=HS,c.trim=YS,c.trimEnd=kS,c.trimStart=GS,c.truncate=qS,c.unescape=zS,c.uniqueId=yA,c.upperCase=KS,c.upperFirst=ma,c.each=xc,c.eachRight=Tc,c.first=Ac,Ea(c,function(){var e={};return Wt(c,function(t,i){ve.call(c.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),c.VERSION=a,dt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),dt(["drop","take"],function(e,t){le.prototype[e]=function(i){i=i===u?1:Me(ne(i),0);var o=this.__filtered__&&!t?new le(this):this.clone();return o.__filtered__?o.__takeCount__=Ke(i,o.__takeCount__):o.__views__.push({size:Ke(i,ae),type:e+(o.__dir__<0?"Right":"")}),o},le.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),dt(["filter","map","takeWhile"],function(e,t){var i=t+1,o=i==K||i==R;le.prototype[e]=function(s){var p=this.clone();return p.__iteratees__.push({iteratee:J(s,3),type:i}),p.__filtered__=p.__filtered__||o,p}}),dt(["head","last"],function(e,t){var i="take"+(t?"Right":"");le.prototype[e]=function(){return this[i](1).value()[0]}}),dt(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");le.prototype[e]=function(){return this.__filtered__?new le(this):this[i](1)}}),le.prototype.compact=function(){return this.filter(nt)},le.prototype.find=function(e){return this.filter(e).head()},le.prototype.findLast=function(e){return this.reverse().find(e)},le.prototype.invokeMap=ie(function(e,t){return typeof e=="function"?new le(this):this.map(function(i){return Br(i,e,t)})}),le.prototype.reject=function(e){return this.filter(ji(J(e)))},le.prototype.slice=function(e,t){e=ne(e);var i=this;return i.__filtered__&&(e>0||t<0)?new le(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==u&&(t=ne(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},le.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},le.prototype.toArray=function(){return this.take(ae)},Wt(le.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),s=c[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!s||(c.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,b=v instanceof le,T=m[0],I=b||te(v),D=function(fe){var ce=s.apply(c,ln([fe],m));return o&&W?ce[0]:ce};I&&i&&typeof T=="function"&&T.length!=1&&(b=I=!1);var W=this.__chain__,q=!!this.__actions__.length,V=p&&!W,re=b&&!q;if(!p&&I){v=re?v:new le(this);var Q=e.apply(v,m);return Q.__actions__.push({func:Vi,args:[D],thisArg:u}),new yt(Q,W)}return V&&re?e.apply(this,m):(Q=this.thru(D),V?o?Q.value()[0]:Q.value():Q)})}),dt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ei[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var s=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(te(p)?p:[],s)}return this[i](function(v){return t.apply(te(v)?v:[],s)})}}),Wt(le.prototype,function(e,t){var i=c[t];if(i){var o=i.name+"";ve.call(ir,o)||(ir[o]=[]),ir[o].push({name:t,func:i})}}),ir[Yi(u,P).name]=[{name:"wrapper",func:u}],le.prototype.clone=zy,le.prototype.reverse=Ky,le.prototype.value=Jy,c.prototype.at=Aw,c.prototype.chain=bw,c.prototype.commit=Cw,c.prototype.next=Ow,c.prototype.plant=Tw,c.prototype.reverse=Iw,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=$w,c.prototype.first=c.prototype.head,Dr&&(c.prototype[Dr]=xw),c},tr=Cy();On?((On.exports=tr)._=tr,wo._=tr):We._=tr}).call(_n)})(Zu,Zu.exports);var we=Zu.exports;const is="IS_ENUM",S0={1:"\u662F",0:"\u5426"},us=[{K:"1",V:"\u662F"},{K:"0",V:"\u5426"}],A0={MANAGE_UNIT_ID:"00000000000000000000000020370001",ORG_CODE_ADMIN:"default",ORG_CODE_MKT:"08",ORG_CODE_LOG:"08",ORG_CODE_ACTIVITY:"08",ADMIN_LEVEL_IND:"01",ADMIN_LEVEL_CENTER:"02",ADMIN_LEVEL_FAC:"03",ADMIN_LEVEL_DIST:"04",ADMIN_LEVEL_COMMON_DEPT:"08",ADMIN_LEVEL_COMMON_POST:"80",LEVEL_IND:"01",LEVEL_CENTER:"02",LEVEL_FAC:"02",LEVEL_DIST:"04",LEVEL_CIGAR_DIST:"05",LEVEL_COMMON_DEPT:"03",LEVEL_COMMON_POST:"80",LEVEL_DIST_MANAGE_POST:"81",LEVEL_CUST_MANAGE_POST:"82",LEVEL_CIGAR_DIST_MANAGE_POST:"83",LEVEL_CIGAR_CUST_MANAGE_POST:"84",LEVEL_INTERNAL_POST:"85"};function b0(n=[],r="K",u="V"){return n.map(a=>({K:a[r],V:a[u]}))}function C0(n=[],r="K",u="V"){return n.reduce(a=>Pt(pt({},a),{[a[r]]:a[u]}),{})}function os(n=[],r={}){const u=we.cloneDeep(n),a=Object.keys(r);return u.forEach(f=>{const l=f.field||f.key,g=["enum","select"].includes(f.type);if(a.includes(l)&&g){f.cellRendererParams||(f.cellRendererParams={});const h=r[l];f.type==="enum"?Qu(h)?f.cellRendererParams.enumList=h:f.cellRendererParams.enumData=h:f.type==="select"&&(f.cellRendererParams.datas=h)}f.children&&f.children.length&&(f.children=os(f.children,r))}),u}function O0(n=[],r={}){const u=we.cloneDeep(n),a=Object.keys(r);return u.forEach(f=>{const l=f.formKey;if(a.includes(l)){const g=r[l];Qu(g)?f.enumList=g:f.enumData=g}}),u}const x0={bold:!0,fontSize:"14",horizontalAlignment:"center",verticalAlignment:"center"},T0={fontSize:"10",horizontalAlignment:"left",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},I0={fontSize:"10",horizontalAlignment:"right",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},$0={bold:!0,fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",fill:"bdc3c7",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},br={fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},D0=27,F0=18,P0=18,M0=18;function as({columns:n,datas:r}){var u=we.cloneDeep(n),a=we.cloneDeep(r);we.remove(u,F=>{var L;return F.cellClass&&((L=F==null?void 0:F.cellClass)==null?void 0:L.indexOf("button"))!=-1}),a.forEach((F,L)=>{F.__seq=L+1}),we.forEach(u,F=>{var L;F.cellClass&&((L=F==null?void 0:F.cellClass)==null?void 0:L.indexOf("enum"))!=-1&&a.forEach(N=>{N[F.field]=F.cellRendererParams.datas[N[F.field]]})});const f=F=>{if(F.children){var L=1+Math.max(...F.children.map(N=>f(N)));return F.deepth=L,L}else return 1};var l=Math.max(...u.map(F=>{var L=f(F);return F.deepth=L,L}));console.log("calc deepth = ",l);const g=F=>{if(F.children){var L=we.sum(F.children.map(N=>g(N)));return F.width=L,L}else return 1};var h=we.sum(u.map(F=>{var L=g(F);return F.width=L,L}));console.log("calc width = ",h),console.log("now columnsClo is ",u);var d=[],y=1,E=0;function _(F,L){E+=1,F.reduce((N,X,z)=>(X.children?(N.push({text:X.excelName||X.headerName||X.title,srow:E,scol:y,erow:E,ecol:y+X.width-1}),_(X.children,N)):(N.push({text:X.excelName||X.headerName||X.title,srow:E,scol:y,erow:l,ecol:y}),y+=1),N),L),E-=1}_(u,d);var w=[];function S(F,L){F.reduce((N,X)=>(X.children?S(X.children,N):N.push(X),N),L)}S(u,w);var $=w.map(F=>F.align||"left"),M=w.map(F=>F.align=="right"||F.align=="rightNum"?"n":"s"),B=w.map(F=>F.excelWidth?F.excelWidth:F.width?Math.floor(F.width/10):10),P=w.map(F=>F.numberFormat===void 0?F.align=="rightNum"?"#,##0.0000":F.align=="right"?"#,##0.00":"":F.numberFormat);w.map((F,L)=>{F.field=F.field?F.field:F.key;var N=F.excelName||F.headerName||F.title;N=N.replace(/<br\/>/g,""),F.columnWidth!==void 0?B[L]=F.columnWidth:N&&B[L]<N.length*2&&(B[L]=N.length*2)});var k=a.map(F=>w.map((L,N)=>{L.columnWidth!==void 0?B[N]=L.columnWidth:F[L.field]&&B[N]<(""+F[L.field]).length*2&&(B[N]=(""+F[L.field]).length*2);let X=null;L.cellStyle&&(L.cellStyle instanceof Function?X=L.cellStyle(F[L.field],F,a):X=L.cellStyle);let z=null;return L.formula&&(L.formula instanceof Function?z=L.formula(F[L.field],F,a):z=L.formula),{cellStyle:X,formula:z,value:F[L.field]}}));return{deepth:l,columnAlign:$,columnType:M,columnWidth:B,exportData:k,numberFormat:P,columnTitle:d,columnsCalc:w}}var fs=[];function R0(n){if(n.rowSpanColumns){let a=function(f,l){var g=we.findIndex(n.columns,{field:f});if(!r[f]){var h=[],d="CUR_VAL",y={};we.forEach(n.datas,function(E,_){var w=l?E[f]!=d||_==(u[""+_]||{}).first:E[f]!=d;if(w){if(!l&&y.first!==void 0)for(var S=y.first;S<=y.last;S++)u[""+S]={first:y.first,last:y.last};d=E[f],y={col:f,val:d,first:_,last:_,rowSpan:1},h.push(y)}else if(y.last=_,y.rowSpan=y.last-y.first+1,h.push({rowSpan:0}),!l&&_==n.datas.length-1)for(var S=y.first;S<=y.last;S++)u[""+S]={first:y.first,last:y.last}}),r[f]=h,we.forEach(h,function(E,_){E.rowSpan>1&&fs.push({mergeRowS:_,mergeRowE:_+E.rowSpan-1,megerColS:g,megerColE:g})})}};n.rowSpanIndexCol&&(n.rowSpanIndexCol=n.rowSpanColumns[0]);var r={},u={};a(n.rowSpanIndexCol),we.forEach(n.rowSpanColumns,function(f){a(f,!0)})}}function L0(n){var r=as(n);console.log("calcExportDatas",r);var u=n.title,a=r.deepth,f=n.columnAlign||r.columnAlign,l=n.columnType||r.columnType,g=r.columnTitle,h=n.columnWidth||r.columnWidth,d=f.length,y=n.paramLeft,E=n.paramRight,_=r.exportData,w=n.numberFormat||r.numberFormat;XlsxPopulate.fromBlankAsync().then(S=>{var $=S.sheet("Sheet1");$.name(u);for(var M=0;M<d;M++)$.column(M+1).width(h[M]==0?10:h[M]);var B=$.range(1,1,1,d);B.merged(!0),B.style(x0),B.cell(0,0).value(u),$.row(1).height(D0);var P=2;if(!!n.paramLeft||!!n.paramRight){var k=$.range(2,1,2,Math.round(d/2));k.cell(0,0).value(y||""),k.merged(!0),k.style(T0);var F=$.range(2,Math.round(d/2)+1,2,d);F.cell(0,0).value(E||""),F.merged(!0),F.style(I0),$.row(2).height(F0),P+=1}g.forEach(z=>{var ue=$.range(z.srow+P-1,z.scol,z.erow+P-1,z.ecol);ue.merged(!0),ue.style($0),ue.cell(0,0).value(z.text.replace(/<br\/>/g,""))});for(let z=0;z<a;z++)$.row(P+z).height(P0);P+=a;for(var M=0;M<_.length;M++){for(var L=_[M],N=0;N<L.length;N++)if(l[N]==="s"&&L[N]?($.cell(P+M,N+1).value(L[N].value),br.numberFormat=""):l[N]==="n"&&L[N]?($.cell(P+M,N+1).value(L[N].value?parseFloat(L[N].value):L[N].value),br.numberFormat=w[N]):$.cell(P+M,N+1).value(""),L[N].formula&&$.cell(P+M,N+1).formula(L[N].formula),br.horizontalAlignment=f[N],L[N].cellStyle){let ue=we.merge({},br,L[N].cellStyle);$.cell(P+M,N+1).style(ue)}else $.cell(P+M,N+1).style(br);if(n.rowColor&&M%2!=0){var X=$.range(P+M,1,P+M,d);X.style({fill:"f8f8f9"})}$.row(P+M).height(M0)}n.rowSpanColumns&&(R0(Pt(pt({},n),{columns:r.columnsCalc})),we.forEach(fs,function(z){var ue=$.range(z.mergeRowS+P,z.megerColS+1,z.mergeRowE+P,z.megerColE+1);ue.merged(!0)})),$.freezePanes(n.leftColumns||0,(n.topRows||0)+P-1),S.outputAsync().then(function(z){if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(z,u+".xlsx");else{var ue=window.URL.createObjectURL(z),ye=document.createElement("a");document.body.appendChild(ye),ye.href=ue,ye.download=u+".xlsx",ye.click(),window.URL.revokeObjectURL(ue),document.body.removeChild(ye)}})}).catch(S=>console.log(S))}function N0(n){return new Promise((r,u)=>{var a=as(n),f=a.deepth;a.exportData;const l=new FileReader;l.onload=g=>iu(this,null,function*(){XlsxPopulate.fromDataAsync(g.target.result).then(h=>{var w;var d=h.sheet(0),y=2;(!!n.paramLeft||!!n.paramRight)&&(y+=1),y+=f;let E=[];for(let S=y;S<d._rows.length;S++){var _=d.row(S);let $={};E.push($);for(let M=1;M<_._cells.length;M++){let B=(w=_._cells[M])==null?void 0:w._value;if(M>a.columnsCalc.length)continue;let P=a.columnsCalc[M-1];$[P.field]=B}}r(E)}).catch(h=>console.log(h))}),l.readAsArrayBuffer(n.file)})}const ss=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function B0(n){if(!n)return"";let r="";const u=ss.length;for(;n>=0;){const a=n%u;r=ss[a]+r,n=parseInt((n-a)/u)-1}return r}function U0(){return document.addEventListener?function(n,r,u){n&&r&&u&&n.addEventListener(r,u,!1)}:function(n,r,u){n&&r&&u&&n.attachEvent("on"+r,u)}}function W0(){return window.document.removeEventListener?function(n,r,u){n&&r&&n.removeEventListener(r,u,!1)}:function(n,r,u){n&&r&&n.detachEvent("on"+r,u)}}function H0(n,r,u){const a=U0();return a(n,r,u),a}function Y0(n,r,u){const a=W0();return a(n,r,u),a}const ls=n=>n.stopPropagation();function k0(n,r){(typeof n.cancelable!="boolean"||n.cancelable)&&n.preventDefault(),r&&ls(n)}function G0(n){if(!n||n.length<4)return"";const r=n.substring(0,4),u=n.substring(4,6),a=cs(parseInt(u));return u?`${r}H${a}`:`${r}`}function cs(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return n<=6?1:2}function q0(n){if(!n||n.length<4)return n;const r=n.substring(0,4);if(!n.substring(4,6))return`${r}\u5168\u5E74`;const f=parseInt(n.substring(5))===1?"\u4E0A\u534A\u5E74":"\u4E0B\u534A\u5E74";return`${r}${f}`}function z0(n){if(!n||n.length<4)return n;const r=n.substring(0,4);if(!n.substring(4,6))return`${r}01`;const f=parseInt(n.substring(5))*6-5,l=f<10?`0${f}`:`${f}`;return`${r}${l}`}function K0(n){if(!n||n.length<4)return n;const r=n.substring(0,4);if(!n.substring(4,6))return`${r}12`;const f=parseInt(n.substring(5))*2,l=f<10?`0${f}`:`${f}`;return`${r}${l}`}const J0={aac:"audio/aac",abw:"application/x-abiword",arc:"application/x-freearc",avi:"video/x-msvideo",azw:"application/vnd.amazon.ebook",bin:"application/octet-stream",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip2",csh:"application/x-csh",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",gif:"image/gif",html:"text/html",ico:"image/vnd.microsoft.icon",ics:"text/calendar",jar:"application/java-archive",jpg:"image/jpeg",jpeg:"image/jpeg",js:"text/javascript",json:"application/json",jsonld:"application/ld+json",mid:"audio/midi",midi:"audio/x-midi",mjs:"text/javascript",mp3:"audio/mpeg",mpeg:"video/mpeg",mpkg:"application/vnd.apple.installer+xml",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",otf:"font/otf",png:"image/png",pdf:"application/pdf",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rar:"application/x-rar-compressed",rtf:"application/rtf",sh:"application/x-sh",svg:"image/svg+xml",swf:"application/x-shockwave-flash",tar:"application/x-tar",tiff:"image/tiff",ttf:"font/ttf",txt:"text/plain",vsd:"application/vnd.visio",wav:"audio/wav",weba:"audio/webm",webm:"video/webm",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xul:"application/vnd.mozilla.xul+xml",zip:"application/zip","7z":"application/x-7z-compressed"};function V0(n){let r="";for(n=(n||0).toString();n.length>3;)r=","+n.slice(-3)+r,n=n.slice(0,n.length-3);return n&&(r=n+r),r}function Q0(n){const r=n.length,u=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],a=["\u4EDF","\u4F70","\u62FE","\u4EBF","\u4EDF","\u4F70","\u62FE","\u4E07","\u4EDF","\u4F70","\u62FE"];let f=[],l=[],g="";for(let h=0;h<r;h++)f.push(parseInt(n[h])),l[h]=u[f[h]];for(let h=r-1,d=1;h>0;h--)l.splice(h,0,a[a.length-d++]);return g=l.join(""),r>=1&&(g+="\u5143\u6574"),g}function X0(n){if(!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))return"\u6570\u636E\u975E\u6CD5";let r="\u5343\u767E\u62FE\u4EBF\u5343\u767E\u62FE\u4E07\u5343\u767E\u62FE\u5143\u89D2\u5206",u="";n+="00";let a=n.indexOf(".");a>=0&&(n=n.substring(0,a)+n.substr(a+1,2)),r=r.substr(r.length-n.length);for(let f=0;f<n.length;f++)u+="\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396".charAt(parseInt(n.charAt(f)))+r.charAt(f);return u.replace(/零(千|百|拾|角)/g,"\u96F6").replace(/(零)+/g,"\u96F6").replace(/零(万|亿|元)/g,"$1").replace(/(亿)万|壹(拾)/g,"$1$2").replace(/^元零?|零分/g,"").replace(/元$/g,"\u5143\u6574")}function Z0(n,r=2){n=n.toString();let u=n.indexOf(".");return u!==-1?n=n.substring(0,r+u+1):n=n.substring(0),parseFloat(n).toFixed(r)}function ps(n,r=2){if(typeof n=="number"){const a=/([0-9])+e([-0-9]+)/.exec(n+"")||[];if(a.length>2){const f=a[1],l=a[2];return Math.round(parseInt(+f+"e"+(+l+r)))/Math.pow(10,r)}return Math.round(parseInt(+n+"e"+r))/Math.pow(10,r)}return n}function j0(n,r=2){const u=parseFloat(n+"");return!isNaN(u)&&(u||u===0)?ps(u,r).toFixed(r):n}const ev=n=>{if(isNaN(n))throw"numToChineseNumerals: \u6570\u636E\u975E\u6CD5";return n=Number(n),hs(n).replace(/^零/,"").replace(/^一十/,"\u5341")},tv=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],nv=["","\u5341","\u767E","\u5343"];function hs(n){if(n===0)return"";const r=Math.floor(Math.log10(n)),u=Math.floor(r/8),a=Math.floor(r%8/4);let f=Math.floor(n/Math.pow(10,4*a+8*u)),l=n%Math.pow(10,4*a+8*u),g=we(String(f).padStart(4,"0")).split("").map((h,d)=>tv[h]+(h==="0"?"":nv[3-d])).uniq().value().join("").replace(/零$/,"");for(let h=0;h<a;h++)g+="\u4E07";for(let h=0;h<u;h++)g+="\u4EBF";return g+hs(l)}function gs(n){return n?["\u4E00","\u4E8C","\u4E09","\u56DB"][n-1]:""}function rv(n){if(!n||n.length<6)return"";const r=n.substring(0,4),u=n.substring(4,6),a=ds(parseInt(u));return`${r}Q${a}`}function ds(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return Math.ceil(n/3)}function iv(n){if(!n||n.length<6)return n;const r=n.substring(0,4),u=parseInt(n.substring(5));return`${r}\u7B2C${gs(u)}\u5B63\u5EA6`}function uv(n){if(!n||n.length<6)return n;const r=n.substring(0,4),a=parseInt(n.substring(5))*3-2,f=a<10?`0${a}`:`${a}`;return`${r}${f}`}function ov(n){if(!n||n.length<6)return n;const r=n.substring(0,4),a=parseInt(n.substring(5))*3,f=a<10?`0${a}`:`${a}`;return`${r}${f}`}const zt="__",Jn="--";function ju({tooltip:n,item:r,parents:u,title:a}){let f=null;return n&&(Xu(n)?f=n(r,u):n===!0?f=a:f=n),f}function eo(n,r,u={}){var N;const L=r,{key:a,keyProp:f,title:l,titleProp:g,titleFormatter:h,sortProp:d,sortOrder:y="asc",keyLastSuffix:E,isLimitChildren:_,headerTooltip:w,children:S}=L,$=rp(L,["key","keyProp","title","titleProp","titleFormatter","sortProp","sortOrder","keyLastSuffix","isLimitChildren","headerTooltip","children"]),{keyPropName:M="key",titlePropName:B="title",keyPrefix:P="",parents:k=[]}=u;if(f){let X=((N=we.uniqBy(n,r.keyProp))==null?void 0:N.filter(z=>!Kn(z[r.keyProp])))||[];if(d){const z=X.filter(ye=>Kn(ye[d])),ue=X.filter(ye=>!Kn(ye[d]));X=we.orderBy(ue,[d],[y]).concat(z)}return X.map(z=>{const ue=h?h(z[g]):z[g];if(S&&S.length){const de=`${P}${f}${Jn}${z[f]}${zt}`,oe=S.map($e=>{let qe=_?n.filter(K=>K[f]===z[f]):n;return eo(qe,$e,Pt(pt({},u),{keyPrefix:de,parents:[...k,z]}))});return Pt(pt({},$),{[B]:ue,headerTooltip:ju({tooltip:w,item:z,parents:k,title:ue}),children:we.flatten(oe)})}const ye=E?`${zt}${E}`:"";return Pt(pt({},$),{[M]:`${P}${f}${Jn}${z[f]}${ye}`,[B]:ue,headerTooltip:ju({tooltip:w,item:z,parents:k,title:ue})})})}const F=ju({tooltip:w,item:{},parents:k,title:l});if(S&&S.length){const X=`${P}${a||""}`,z=S.map(ue=>eo(n,ue,Pt(pt({},u),{keyPrefix:X})));return Pt(pt({},$),{[B]:l,headerTooltip:F,children:we.flatten(z)})}return Pt(pt({},$),{[M]:`${P}${a||""}`,[B]:l,headerTooltip:F})}function to(n=[]){return!n||!n.length?[]:n.reduce((r,u)=>u.children?[...r,...to(u.children)]:[...r,u],[])}function vs(n,r){var f;if(!r.length)return;const u=r[0];if(r=r.slice(1),u.includes(Jn)&&r.length){const[l,g]=u.split(Jn),h=we.filter(n,{[l]:g});return vs(h,r)}return r.length&&console.error("\u600E\u4E48\u4F1A\u4E0D\u662F\u6700\u540E\u4E00\u5C42\u5206\u7EC4\u5462\uFF0C\u8BF7\u8054\u7CFB\u5F00\u53D1\u4EBA\u5458\u67E5\u770B\uFF01"),(f=n==null?void 0:n[0])==null?void 0:f[u]}function hi(n,r){if(!n)return"";if(si(r))return n[r]||"";for(const u of r)if(n[u])return n[u];return""}function ys(n,r,u,a,f){if(u>=n.length)return;const l=n[u];let g=we.find(a,{key:l});if(!g&&(g={key:l,title:r[u],children:[]},a.push(g),u===n.length-1)){Object.assign(g,f,{title:r[u]});return}ys(n,r,u+1,g.children,f)}function av({sumColumnDefs:n}){const r=[];for(const u of n){const{key:a,title:f}=u,l=a.split(zt),g=f.split(zt);ys(l,g,0,r,u)}return r}function fv(n=[],r=[],u,a={}){var E;const f=[];a.sumColumnDefs&&a.sumColumnDefs.length&&f.push(...av(a));const l=we.flatten(r.map(_=>eo(n,_,a)))||[];f.push(...l);const g=to(f),h=((E=we.uniqBy(n,_=>hi(_,u)))==null?void 0:E.filter(_=>!Kn(hi(_,u))))||[],d=we.groupBy(n,_=>hi(_,u));return{data:h.map(_=>{const w=hi(_,u),S=d[w]||[],$=pt({},_);return a.sumColumnDefs&&a.sumColumnDefs.length&&a.sumColumnDefs.forEach(M=>{const{key:B}=M,P=B.split(zt)||[],k=(P==null?void 0:P[0])||"",F=(P==null?void 0:P[P.length-1])||"",{sumColKeyProp:L="sumColCode"}=a,N=we.find(S,{[L]:k})||{};$[B]=N[F]}),g.forEach(M=>{const B=M[a.keyPropName||"key"]||"",P=B.split(zt)||[],k=vs(S,P);$[B]=k,delete $[P[P.length-1]]}),$}),columns:f}}function sv(n={},r=[],u={}){const a=[],f={};return Object.keys(n).forEach(g=>{g.includes(zt)||(f[g]=n[g])}),r.forEach(g=>{const h={},d=g[u.keyPropName||"key"]||"";if(d.includes(zt)){const y=d.split(zt);y.forEach((E,_)=>{if(E.includes(Jn)&&y.length){const[w,S]=E.split(Jn);h[w]=S}else if(y.length!==_+1)console.error("columns\u6709\u95EE\u9898\uFF0C\u8BF7\u68C0\u67E5\uFF01");else{const w=we.find(a,h);w?w[E]=n[d]:a.push(Pt(pt(pt({},f),h),{[E]:n[d]}))}})}}),a}function lv(n=[],r=[],u={}){const a=to(r);return n.reduce((f,l)=>[...f,...sv(l,a,u)],[])}let cv=n=>crypto.getRandomValues(new Uint8Array(n)),pv=(n,r,u)=>{let a=(2<<Math.log(n.length-1)/Math.LN2)-1,f=-~(1.6*a*r/n.length);return(l=r)=>{let g="";for(;;){let h=u(f),d=f;for(;d--;)if(g+=n[h[d]&a]||"",g.length===l)return g}}};const hv=((n,r=21)=>pv(n,r,cv))("0123456789abcdef",32);function gv(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=Math.random()*16|0,u=n==="x"?r:r&3|8;return u.toString(16)})}function dv(n){var r=new Array("\u9A8C\u8BC1\u901A\u8FC7!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u4F4D\u6570\u4E0D\u5BF9!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u51FA\u751F\u65E5\u671F\u8D85\u51FA\u8303\u56F4\u6216\u542B\u6709\u975E\u6CD5\u5B57\u7B26!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u6821\u9A8C\u9519\u8BEF!","\u8EAB\u4EFD\u8BC1\u5730\u533A\u975E\u6CD5!"),u={11:"\u5317\u4EAC",12:"\u5929\u6D25",13:"\u6CB3\u5317",14:"\u5C71\u897F",15:"\u5185\u8499\u53E4",21:"\u8FBD\u5B81",22:"\u5409\u6797",23:"\u9ED1\u9F99\u6C5F",31:"\u4E0A\u6D77",32:"\u6C5F\u82CF",33:"\u6D59\u6C5F",34:"\u5B89\u5FBD",35:"\u798F\u5EFA",36:"\u6C5F\u897F",37:"\u5C71\u4E1C",41:"\u6CB3\u5357",42:"\u6E56\u5317",43:"\u6E56\u5357",44:"\u5E7F\u4E1C",45:"\u5E7F\u897F",46:"\u6D77\u5357",50:"\u91CD\u5E86",51:"\u56DB\u5DDD",52:"\u8D35\u5DDE",53:"\u4E91\u5357",54:"\u897F\u85CF",61:"\u9655\u897F",62:"\u7518\u8083",63:"\u9752\u6D77",64:"\u5B81\u590F",65:"\u65B0\u7586",71:"\u53F0\u6E7E",81:"\u9999\u6E2F",82:"\u6FB3\u95E8",91:"\u56FD\u5916"},a,f,l,g,h,d=new Array;if(d=n.split(""),u[parseInt(n.substr(0,2))]==null)return r[4];switch(n.length){case 15:return(parseInt(n.substr(6,2))+1900)%4==0||(parseInt(n.substr(6,2))+1900)%100==0&&(parseInt(n.substr(6,2))+1900)%4==0?h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/:h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/,h.test(n)?r[0]:r[2];case 18:return parseInt(n.substr(6,4))%4==0||parseInt(n.substr(6,4))%100==0&&parseInt(n.substr(6,4))%4==0?h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/:h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/,h.test(n)?(l=(parseInt(d[0])+parseInt(d[10]))*7+(parseInt(d[1])+parseInt(d[11]))*9+(parseInt(d[2])+parseInt(d[12]))*10+(parseInt(d[3])+parseInt(d[13]))*5+(parseInt(d[4])+parseInt(d[14]))*8+(parseInt(d[5])+parseInt(d[15]))*4+(parseInt(d[6])+parseInt(d[16]))*2+parseInt(d[7])*1+parseInt(d[8])*6+parseInt(d[9])*3,a=l%11,g="F",f="10X98765432",g=f.substr(a,1),g==d[17]?r[0]:r[3]):r[2];default:return r[1]}}function vv(n){var r=/^1[3456789]\d{9}$/;return!!r.test(n)}function yv(n){var r=/^([0-9]{3,4}-)?[0-9]{7,8}$/,u=/^((\+?86)|(\(\+86\)))?(13[0123456789][0-9]{8}|15[012356789][0-9]{8}|18[0123456789][0-9]{8}|14[57][0-9]{8}|17[678][0-9]{8})$/;return!!(u.test(n)||r.test(n))}function mv(n){return/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](-)?(([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))$/.test(n)?!0:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](-)?[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/.test(n)}const ms="ind-dict_";function _v(n){return _e(`${ms}${n}`)}function wv(n,r){be(`${ms}${n}`,r)}const _s=Lt.authServerContext;function Ev(n){return he.get(`${_s}/anon/dict/getDictsMap`,{params:{dictId:n}})}function ws(n){return iu(this,null,function*(){if(n===is)return us;const r=_v(n);if(r)return r;try{const{data:u}=yield he.get(`${_s}/dict/getDicts`,{params:{dictId:n}});return wv(n,u),u}catch(u){console.error(`getDict error dictId=${n}`,u)}})}function Sv(n){return iu(this,null,function*(){const r={},u=yield Promise.all(n.map(a=>ws(a)));return n.forEach((a,f)=>{if(u[f]){const l={};u[f].forEach(g=>{l[g.K]=g.V}),r[a]={data:l,renderData:u[f]}}}),r})}const Bt=Lt.authServerContext;function Av(){return he.get(`${Bt}/manage/menu/getAllPermission`)}function bv(){return he.get(`${Bt}/manage/upmsMenuHistory/list`)}function Cv(n){return he.post(`${Bt}/manage/upmsMenuHistory/add`,null,{params:n})}function Ov(n){return he.get(`${Bt}/manage/upmsMenuHistory/delete/`+n)}function xv(){return he.get(`${Bt}/manage/upmsMenuCollect/list`)}function Tv(n){return he.post(`${Bt}/manage/upmsMenuCollect/add`,null,{params:n})}function Iv(n){return he.get(`${Bt}/manage/upmsMenuCollect/delete/`+n)}function $v(n){return he.post(`${Bt}/manage/upmsMenuCollect/remove`,null,{params:n})}function Dv(){return he.get(`${Bt}/manage/app/list`)}function Fv(){return he.get(`${Bt}/ipm/bc/basic/item/getMaxTabNum`)}const Es=Lt.ossServerContext;function Ss(n=""){return`${Es}/oss/file/get/${n}`}function As(){return`${Es}/oss/file/put`}function Pv(n,r){const u={};return r&&(u.responseType=r),he.get(Ss(n),u)}function Mv(n,r){let u=new FormData;return u.append("file",r,n),he({method:"post",url:As(),headers:{"Content-Type":_r.multiForm},data:u})}const Vn=Lt.authServerContext;function Rv({userName:n,password:r,validCodeId:u,validCodeInput:a}){let f="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDD2iolFHi+6bUh+V6JPr2gFJQsC0QNsq2EwI0MAPlI5AaizBHRVMjX1H73ptuDSiT3QZh4kk74w+eDLyYj4JXo1SvvDw5w378SLhUIDzH0zrlt3oleT3kiPQxC17yM3Os/wrtHO7IC+KGo9qrg+LJFyR/fYYHcyH9i+JAejBEnJQIDAQAB",g=new window.NodeRSA(f,"pkcs8-public").encrypt(r,"base64"),h=window.Base64.encode(g);const d={usn:n,upw:h,validCodeId:u,validCodeInput:a};return he.formPost(Vn+"/sso/auth/login",d)}function Lv(){return he.get(`${Vn}/manage/user/getCurrentInfo`)}function Nv(){return he.get(`${Vn}/anon/user/getGlobalPolicy`)}function Bv(n){return he.post(`${Vn}/manage/user/updatePassword`,n)}function Uv(n){return`${Vn}/anon/user/getCaptcha/`+n}function Wv(){return he.get(`${Vn}/sso/logout`)}const Hv=Lt.ismAmServerContext;function Yv(n){return he.get(`${Hv}/tree/com/listComTree`,{params:n})}const kv=Lt.ucExtServerContext;function Gv(n){return he.get(`${kv}/index-desc/list`,{params:n})}const no=Lt.ismAmServerContext;function qv(n){return he.get(`${no}/tree/item/listItemTree`,{params:n})}function zv(){return he.get(`${no}/basic/getPriceInfo`,{})}function Kv(n){return he.get(`${no}/basic/getItem`,{params:n})}const Jv=Lt.ucExtServerContext;function Vv(n){return he.get(`${Jv}/tree/uc-user/listUserTree`,{params:n})}C.Base64ForLogin=Jd,C.CONTENT_TYPE=_r,C.IS_OR_NOT_ENUM=S0,C.IS_OR_NOT_ENUM_KEY=is,C.IS_OR_NOT_ENUM_LIST=us,C.MIME_TYPE=J0,C.UC_ENUM=A0,C.addMenuCollectApi=Tv,C.axios=he,C.base64ToBlob=Vd,C.blobToBase64=Qd,C.checkIdCard=dv,C.checkPhone=vv,C.checkTel=yv,C.checkVehicleNo=mv,C.clearIndexDescCache=up,C.clearPermissionCache=fp,C.clearSessionStorage=qr,C.clearUserInfoCache=cp,C.config=Lt,C.cryptor=Kd,C.deleteMenuCollectApi=Iv,C.deleteMenuHistoryApi=Ov,C.exportJsonToExcel=L0,C.flattenRow2ColumnData=lv,C.formatDate=Zd,C.formatDateChinese=jd,C.formatDecimal=Z0,C.formatHalfYear=q0,C.formatQuarter=iv,C.getAppListApi=Dv,C.getCaptchaURL=Uv,C.getContentType=Gu,C.getDictApi=ws,C.getDictMapApi=Sv,C.getDictsMapApi=Ev,C.getExcelColumnIdx=B0,C.getGlobalPolicyApi=Nv,C.getHalfYear=G0,C.getHalfYearBeginMonth=z0,C.getHalfYearEndMonth=K0,C.getHalfYearNum=cs,C.getIndexDescCache=cr,C.getItem=Kv,C.getLocalStorage=Rn,C.getMaxTabNumValueApi=Fv,C.getMenuCollectApi=xv,C.getMenuHistoryApi=bv,C.getOssFileApi=Pv,C.getOssFileUrl=Ss,C.getPermissionApi=Av,C.getPermissionCache=op,C.getPriceInfo=zv,C.getQuarter=rv,C.getQuarterBeginMonth=uv,C.getQuarterEndMonth=ov,C.getQuarterNum=ds,C.getSessionStorage=_e,C.getToken=Hf,C.getType=ns,C.getUrlParams=Nf,C.getUserInfoApi=Lv,C.getUserInfoCache=sp,C.guid=gv,C.importJsonFromExcel=N0,C.isArguments=f0,C.isArray=Qu,C.isArrayLike=li,C.isBoolean=r0,C.isDate=a0,C.isDecimal=y0,C.isElement=c0,C.isEmpty=p0,C.isEqual=pi,C.isEqualWith=E0,C.isError=l0,C.isEven=h0,C.isFinite=d0,C.isFunction=Xu,C.isInteger=v0,C.isNegative=m0,C.isNil=Kn,C.isNull=es,C.isNumber=fn,C.isNumberEqual=w0,C.isObject=i0,C.isObjectLike=ci,C.isOdd=g0,C.isPlainObject=u0,C.isPositive=_0,C.isPromise=o0,C.isPrototype=rs,C.isRegExp=s0,C.isString=si,C.isType=bt,C.isUndefined=ts,C.listComTreeApi=Yv,C.listIndexDescApi=Gv,C.listItemTreeApi=qv,C.listUserTreeApi=Vv,C.loginApi=Rv,C.logoutApi=Wv,C.menuHistoryApi=Cv,C.numToChineseNumerals=ev,C.numToDX=X0,C.off=Y0,C.on=H0,C.preventDefault=k0,C.putOssFileApi=Mv,C.putOssFileUrl=As,C.quarter2Chinese=gs,C.removeLocalStorage=mn,C.removeMenuCollectApi=$v,C.removeSessionStorage=Ze,C.renderColumnEnums=os,C.renderEnumData=C0,C.renderEnumList=b0,C.renderFieldEnums=O0,C.responseInterceptors=Gf,C.round=ps,C.row2column=fv,C.setContentType=Uf,C.setIndexDescCache=ip,C.setLocalStorage=Ln,C.setPermissionCache=ap,C.setSessionStorage=be,C.setToken=Id,C.setUserInfoCache=lp,C.stopPropagation=ls,C.str2Date=Xd,C.toChies=Q0,C.toFixed=j0,C.toThousands=V0,C.updatePasswordApi=Bv,C.useConfig=kf,C.uuid=hv,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
36
|
+
}`;var re=Xc(function(){return pe(p,q+"return "+D).apply(u,v)});if(re.source=D,ga(re))throw re;return re}function WS(e){return ge(e).toLowerCase()}function HS(e){return ge(e).toUpperCase()}function YS(e,t,i){if(e=ge(e),e&&(i||t===u))return ol(e);if(!e||!(t=ft(t)))return e;var o=It(e),s=It(t),p=al(o,s),v=fl(o,s)+1;return vn(o,p,v).join("")}function kS(e,t,i){if(e=ge(e),e&&(i||t===u))return e.slice(0,ll(e)+1);if(!e||!(t=ft(t)))return e;var o=It(e),s=fl(o,It(t))+1;return vn(o,0,s).join("")}function GS(e,t,i){if(e=ge(e),e&&(i||t===u))return e.replace(ho,"");if(!e||!(t=ft(t)))return e;var o=It(e),s=al(o,It(t));return vn(o,s).join("")}function qS(e,t){var i=de,o=oe;if(Oe(t)){var s="separator"in t?t.separator:s;i="length"in t?ne(t.length):i,o="omission"in t?ft(t.omission):o}e=ge(e);var p=e.length;if(jn(e)){var v=It(e);p=v.length}if(i>=p)return e;var m=i-er(o);if(m<1)return o;var b=v?vn(v,0,m).join(""):e.slice(0,m);if(s===u)return b+o;if(v&&(m+=b.length-m),da(s)){if(e.slice(m).search(s)){var T,I=b;for(s.global||(s=Do(s.source,ge(Ts.exec(s))+"g")),s.lastIndex=0;T=s.exec(I);)var D=T.index;b=b.slice(0,D===u?m:D)}}else if(e.indexOf(ft(s),m)!=m){var W=b.lastIndexOf(s);W>-1&&(b=b.slice(0,W))}return b+o}function zS(e){return e=ge(e),e&&r1.test(e)?e.replace(Cs,Ey):e}var KS=ar(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),ma=Zl("toUpperCase");function Qc(e,t,i){return e=ge(e),t=i?u:t,t===u?vy(e)?by(e):ay(e):e.match(t)||[]}var Xc=ie(function(e,t){try{return ot(e,u,t)}catch(i){return ga(i)?i:new j(i)}}),JS=jt(function(e,t){return dt(t,function(i){i=Yt(i),Xt(e,i,pa(e[i],e))}),e});function VS(e){var t=e==null?0:e.length,i=J();return e=t?Ae(e,function(o){if(typeof o[1]!="function")throw new vt(g);return[i(o[0]),o[1]]}):[],ie(function(o){for(var s=-1;++s<t;){var p=e[s];if(ot(p[0],this,o))return ot(p[1],this,o)}})}function QS(e){return Em(mt(e,_))}function _a(e){return function(){return e}}function XS(e,t){return e==null||e!==e?t:e}var ZS=ec(),jS=ec(!0);function nt(e){return e}function wa(e){return $l(typeof e=="function"?e:mt(e,_))}function eA(e){return Fl(mt(e,_))}function tA(e,t){return Pl(e,mt(t,_))}var nA=ie(function(e,t){return function(i){return Br(i,e,t)}}),rA=ie(function(e,t){return function(i){return Br(e,i,t)}});function Ea(e,t,i){var o=Be(t),s=Ni(t,o);i==null&&!(Oe(t)&&(s.length||!o.length))&&(i=t,t=e,e=this,s=Ni(t,Be(t)));var p=!(Oe(i)&&"chain"in i)||!!i.chain,v=tn(e);return dt(s,function(m){var b=t[m];e[m]=b,v&&(e.prototype[m]=function(){var T=this.__chain__;if(p||T){var I=e(this.__wrapped__),D=I.__actions__=je(this.__actions__);return D.push({func:b,args:arguments,thisArg:e}),I.__chain__=T,I}return b.apply(e,ln([this.value()],arguments))})}),e}function iA(){return We._===this&&(We._=$y),this}function Sa(){}function uA(e){return e=ne(e),ie(function(t){return Ml(t,e)})}var oA=jo(Ae),aA=jo(tl),fA=jo(bo);function Zc(e){return oa(e)?Co(Yt(e)):Bm(e)}function sA(e){return function(t){return e==null?u:Dn(e,t)}}var lA=nc(),cA=nc(!0);function Aa(){return[]}function ba(){return!1}function pA(){return{}}function hA(){return""}function gA(){return!0}function dA(e,t){if(e=ne(e),e<1||e>U)return[];var i=ae,o=Ke(e,ae);t=J(t),e-=ae;for(var s=To(o,t);++i<e;)t(i);return s}function vA(e){return te(e)?Ae(e,Yt):st(e)?[e]:je(mc(ge(e)))}function yA(e){var t=++Ty;return ge(e)+t}var mA=ki(function(e,t){return e+t},0),_A=ea("ceil"),wA=ki(function(e,t){return e/t},1),EA=ea("floor");function SA(e){return e&&e.length?Li(e,nt,Uo):u}function AA(e,t){return e&&e.length?Li(e,J(t,2),Uo):u}function bA(e){return il(e,nt)}function CA(e,t){return il(e,J(t,2))}function OA(e){return e&&e.length?Li(e,nt,ko):u}function xA(e,t){return e&&e.length?Li(e,J(t,2),ko):u}var TA=ki(function(e,t){return e*t},1),IA=ea("round"),$A=ki(function(e,t){return e-t},0);function DA(e){return e&&e.length?xo(e,nt):0}function FA(e,t){return e&&e.length?xo(e,J(t,2)):0}return c.after=eE,c.ary=Ic,c.assign=HE,c.assignIn=kc,c.assignInWith=nu,c.assignWith=YE,c.at=kE,c.before=$c,c.bind=pa,c.bindAll=JS,c.bindKey=Dc,c.castArray=pE,c.chain=Oc,c.chunk=E_,c.compact=S_,c.concat=A_,c.cond=VS,c.conforms=QS,c.constant=_a,c.countBy=Dw,c.create=GE,c.curry=Fc,c.curryRight=Pc,c.debounce=Mc,c.defaults=qE,c.defaultsDeep=zE,c.defer=tE,c.delay=nE,c.difference=b_,c.differenceBy=C_,c.differenceWith=O_,c.drop=x_,c.dropRight=T_,c.dropRightWhile=I_,c.dropWhile=$_,c.fill=D_,c.filter=Pw,c.flatMap=Lw,c.flatMapDeep=Nw,c.flatMapDepth=Bw,c.flatten=Sc,c.flattenDeep=F_,c.flattenDepth=P_,c.flip=rE,c.flow=ZS,c.flowRight=jS,c.fromPairs=M_,c.functions=jE,c.functionsIn=eS,c.groupBy=Uw,c.initial=L_,c.intersection=N_,c.intersectionBy=B_,c.intersectionWith=U_,c.invert=nS,c.invertBy=rS,c.invokeMap=Hw,c.iteratee=wa,c.keyBy=Yw,c.keys=Be,c.keysIn=tt,c.map=Qi,c.mapKeys=uS,c.mapValues=oS,c.matches=eA,c.matchesProperty=tA,c.memoize=Zi,c.merge=aS,c.mergeWith=Gc,c.method=nA,c.methodOf=rA,c.mixin=Ea,c.negate=ji,c.nthArg=uA,c.omit=fS,c.omitBy=sS,c.once=iE,c.orderBy=kw,c.over=oA,c.overArgs=uE,c.overEvery=aA,c.overSome=fA,c.partial=ha,c.partialRight=Rc,c.partition=Gw,c.pick=lS,c.pickBy=qc,c.property=Zc,c.propertyOf=sA,c.pull=k_,c.pullAll=bc,c.pullAllBy=G_,c.pullAllWith=q_,c.pullAt=z_,c.range=lA,c.rangeRight=cA,c.rearg=oE,c.reject=Kw,c.remove=K_,c.rest=aE,c.reverse=la,c.sampleSize=Vw,c.set=pS,c.setWith=hS,c.shuffle=Qw,c.slice=J_,c.sortBy=jw,c.sortedUniq=tw,c.sortedUniqBy=nw,c.split=LS,c.spread=fE,c.tail=rw,c.take=iw,c.takeRight=uw,c.takeRightWhile=ow,c.takeWhile=aw,c.tap=Sw,c.throttle=sE,c.thru=Vi,c.toArray=Wc,c.toPairs=zc,c.toPairsIn=Kc,c.toPath=vA,c.toPlainObject=Yc,c.transform=gS,c.unary=lE,c.union=fw,c.unionBy=sw,c.unionWith=lw,c.uniq=cw,c.uniqBy=pw,c.uniqWith=hw,c.unset=dS,c.unzip=ca,c.unzipWith=Cc,c.update=vS,c.updateWith=yS,c.values=lr,c.valuesIn=mS,c.without=gw,c.words=Qc,c.wrap=cE,c.xor=dw,c.xorBy=vw,c.xorWith=yw,c.zip=mw,c.zipObject=_w,c.zipObjectDeep=ww,c.zipWith=Ew,c.entries=zc,c.entriesIn=Kc,c.extend=kc,c.extendWith=nu,Ea(c,c),c.add=mA,c.attempt=Xc,c.camelCase=SS,c.capitalize=Jc,c.ceil=_A,c.clamp=_S,c.clone=hE,c.cloneDeep=dE,c.cloneDeepWith=vE,c.cloneWith=gE,c.conformsTo=yE,c.deburr=Vc,c.defaultTo=XS,c.divide=wA,c.endsWith=AS,c.eq=Dt,c.escape=bS,c.escapeRegExp=CS,c.every=Fw,c.find=Mw,c.findIndex=wc,c.findKey=KE,c.findLast=Rw,c.findLastIndex=Ec,c.findLastKey=JE,c.floor=EA,c.forEach=xc,c.forEachRight=Tc,c.forIn=VE,c.forInRight=QE,c.forOwn=XE,c.forOwnRight=ZE,c.get=va,c.gt=mE,c.gte=_E,c.has=tS,c.hasIn=ya,c.head=Ac,c.identity=nt,c.includes=Ww,c.indexOf=R_,c.inRange=wS,c.invoke=iS,c.isArguments=Mn,c.isArray=te,c.isArrayBuffer=wE,c.isArrayLike=et,c.isArrayLikeObject=Te,c.isBoolean=EE,c.isBuffer=yn,c.isDate=SE,c.isElement=AE,c.isEmpty=bE,c.isEqual=CE,c.isEqualWith=OE,c.isError=ga,c.isFinite=xE,c.isFunction=tn,c.isInteger=Lc,c.isLength=eu,c.isMap=Nc,c.isMatch=TE,c.isMatchWith=IE,c.isNaN=$E,c.isNative=DE,c.isNil=PE,c.isNull=FE,c.isNumber=Bc,c.isObject=Oe,c.isObjectLike=xe,c.isPlainObject=Gr,c.isRegExp=da,c.isSafeInteger=ME,c.isSet=Uc,c.isString=tu,c.isSymbol=st,c.isTypedArray=sr,c.isUndefined=RE,c.isWeakMap=LE,c.isWeakSet=NE,c.join=W_,c.kebabCase=OS,c.last=wt,c.lastIndexOf=H_,c.lowerCase=xS,c.lowerFirst=TS,c.lt=BE,c.lte=UE,c.max=SA,c.maxBy=AA,c.mean=bA,c.meanBy=CA,c.min=OA,c.minBy=xA,c.stubArray=Aa,c.stubFalse=ba,c.stubObject=pA,c.stubString=hA,c.stubTrue=gA,c.multiply=TA,c.nth=Y_,c.noConflict=iA,c.noop=Sa,c.now=Xi,c.pad=IS,c.padEnd=$S,c.padStart=DS,c.parseInt=FS,c.random=ES,c.reduce=qw,c.reduceRight=zw,c.repeat=PS,c.replace=MS,c.result=cS,c.round=IA,c.runInContext=A,c.sample=Jw,c.size=Xw,c.snakeCase=RS,c.some=Zw,c.sortedIndex=V_,c.sortedIndexBy=Q_,c.sortedIndexOf=X_,c.sortedLastIndex=Z_,c.sortedLastIndexBy=j_,c.sortedLastIndexOf=ew,c.startCase=NS,c.startsWith=BS,c.subtract=$A,c.sum=DA,c.sumBy=FA,c.template=US,c.times=dA,c.toFinite=nn,c.toInteger=ne,c.toLength=Hc,c.toLower=WS,c.toNumber=Et,c.toSafeInteger=WE,c.toString=ge,c.toUpper=HS,c.trim=YS,c.trimEnd=kS,c.trimStart=GS,c.truncate=qS,c.unescape=zS,c.uniqueId=yA,c.upperCase=KS,c.upperFirst=ma,c.each=xc,c.eachRight=Tc,c.first=Ac,Ea(c,function(){var e={};return Wt(c,function(t,i){ve.call(c.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),c.VERSION=a,dt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),dt(["drop","take"],function(e,t){le.prototype[e]=function(i){i=i===u?1:Me(ne(i),0);var o=this.__filtered__&&!t?new le(this):this.clone();return o.__filtered__?o.__takeCount__=Ke(i,o.__takeCount__):o.__views__.push({size:Ke(i,ae),type:e+(o.__dir__<0?"Right":"")}),o},le.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),dt(["filter","map","takeWhile"],function(e,t){var i=t+1,o=i==K||i==R;le.prototype[e]=function(s){var p=this.clone();return p.__iteratees__.push({iteratee:J(s,3),type:i}),p.__filtered__=p.__filtered__||o,p}}),dt(["head","last"],function(e,t){var i="take"+(t?"Right":"");le.prototype[e]=function(){return this[i](1).value()[0]}}),dt(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");le.prototype[e]=function(){return this.__filtered__?new le(this):this[i](1)}}),le.prototype.compact=function(){return this.filter(nt)},le.prototype.find=function(e){return this.filter(e).head()},le.prototype.findLast=function(e){return this.reverse().find(e)},le.prototype.invokeMap=ie(function(e,t){return typeof e=="function"?new le(this):this.map(function(i){return Br(i,e,t)})}),le.prototype.reject=function(e){return this.filter(ji(J(e)))},le.prototype.slice=function(e,t){e=ne(e);var i=this;return i.__filtered__&&(e>0||t<0)?new le(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==u&&(t=ne(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},le.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},le.prototype.toArray=function(){return this.take(ae)},Wt(le.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),s=c[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!s||(c.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,b=v instanceof le,T=m[0],I=b||te(v),D=function(fe){var ce=s.apply(c,ln([fe],m));return o&&W?ce[0]:ce};I&&i&&typeof T=="function"&&T.length!=1&&(b=I=!1);var W=this.__chain__,q=!!this.__actions__.length,V=p&&!W,re=b&&!q;if(!p&&I){v=re?v:new le(this);var Q=e.apply(v,m);return Q.__actions__.push({func:Vi,args:[D],thisArg:u}),new yt(Q,W)}return V&&re?e.apply(this,m):(Q=this.thru(D),V?o?Q.value()[0]:Q.value():Q)})}),dt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ei[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var s=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(te(p)?p:[],s)}return this[i](function(v){return t.apply(te(v)?v:[],s)})}}),Wt(le.prototype,function(e,t){var i=c[t];if(i){var o=i.name+"";ve.call(ir,o)||(ir[o]=[]),ir[o].push({name:t,func:i})}}),ir[Yi(u,P).name]=[{name:"wrapper",func:u}],le.prototype.clone=zy,le.prototype.reverse=Ky,le.prototype.value=Jy,c.prototype.at=Aw,c.prototype.chain=bw,c.prototype.commit=Cw,c.prototype.next=Ow,c.prototype.plant=Tw,c.prototype.reverse=Iw,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=$w,c.prototype.first=c.prototype.head,Dr&&(c.prototype[Dr]=xw),c},tr=Cy();On?((On.exports=tr)._=tr,wo._=tr):We._=tr}).call(_n)})(Zu,Zu.exports);var we=Zu.exports;const is="IS_ENUM",S0={1:"\u662F",0:"\u5426"},us=[{K:"1",V:"\u662F"},{K:"0",V:"\u5426"}],A0={MANAGE_UNIT_ID:"00000000000000000000000020370001",ORG_CODE_ADMIN:"default",ORG_CODE_MKT:"08",ORG_CODE_LOG:"08",ORG_CODE_ACTIVITY:"08",ADMIN_LEVEL_IND:"01",ADMIN_LEVEL_CENTER:"02",ADMIN_LEVEL_FAC:"03",ADMIN_LEVEL_DIST:"04",ADMIN_LEVEL_COMMON_DEPT:"08",ADMIN_LEVEL_COMMON_POST:"80",LEVEL_IND:"01",LEVEL_CENTER:"02",LEVEL_FAC:"02",LEVEL_DIST:"04",LEVEL_CIGAR_DIST:"05",LEVEL_COMMON_DEPT:"03",LEVEL_COMMON_POST:"80",LEVEL_DIST_MANAGE_POST:"81",LEVEL_CUST_MANAGE_POST:"82",LEVEL_CIGAR_DIST_MANAGE_POST:"83",LEVEL_CIGAR_CUST_MANAGE_POST:"84",LEVEL_INTERNAL_POST:"85"};function b0(n=[],r="K",u="V"){return n.map(a=>({K:a[r],V:a[u]}))}function C0(n=[],r="K",u="V"){return n.reduce(a=>Pt(pt({},a),{[a[r]]:a[u]}),{})}function os(n=[],r={}){const u=we.cloneDeep(n),a=Object.keys(r);return u.forEach(f=>{const l=f.field||f.key,g=["enum","select"].includes(f.type);if(a.includes(l)&&g){f.cellRendererParams||(f.cellRendererParams={});const h=r[l];f.type==="enum"?Qu(h)?f.cellRendererParams.enumList=h:f.cellRendererParams.enumData=h:f.type==="select"&&(f.cellRendererParams.datas=h)}f.children&&f.children.length&&(f.children=os(f.children,r))}),u}function O0(n=[],r={}){const u=we.cloneDeep(n),a=Object.keys(r);return u.forEach(f=>{const l=f.formKey;if(a.includes(l)){const g=r[l];Qu(g)?f.enumList=g:f.enumData=g}}),u}const x0={bold:!0,fontSize:"14",horizontalAlignment:"center",verticalAlignment:"center"},T0={fontSize:"10",horizontalAlignment:"left",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},I0={fontSize:"10",horizontalAlignment:"right",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},$0={bold:!0,fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",fill:"bdc3c7",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},br={fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},D0=27,F0=18,P0=18,M0=18;function as({columns:n,datas:r}){var u=we.cloneDeep(n),a=we.cloneDeep(r);we.remove(u,F=>{var L;return F.cellClass&&((L=F==null?void 0:F.cellClass)==null?void 0:L.indexOf("button"))!=-1}),a.forEach((F,L)=>{F.__seq=L+1}),we.forEach(u,F=>{var L;F.cellClass&&((L=F==null?void 0:F.cellClass)==null?void 0:L.indexOf("enum"))!=-1&&a.forEach(N=>{N[F.field]=F.cellRendererParams.datas[N[F.field]]})});const f=F=>{if(F.children){var L=1+Math.max(...F.children.map(N=>f(N)));return F.deepth=L,L}else return 1};var l=Math.max(...u.map(F=>{var L=f(F);return F.deepth=L,L}));console.log("calc deepth = ",l);const g=F=>{if(F.children){var L=we.sum(F.children.map(N=>g(N)));return F.width=L,L}else return 1};var h=we.sum(u.map(F=>{var L=g(F);return F.width=L,L}));console.log("calc width = ",h),console.log("now columnsClo is ",u);var d=[],y=1,E=0;function _(F,L){E+=1,F.reduce((N,X,z)=>(X.children?(N.push({text:X.excelName||X.headerName||X.title,srow:E,scol:y,erow:E,ecol:y+X.width-1}),_(X.children,N)):(N.push({text:X.excelName||X.headerName||X.title,srow:E,scol:y,erow:l,ecol:y}),y+=1),N),L),E-=1}_(u,d);var w=[];function S(F,L){F.reduce((N,X)=>(X.children?S(X.children,N):N.push(X),N),L)}S(u,w);var $=w.map(F=>F.align||"left"),M=w.map(F=>F.align=="right"||F.align=="rightNum"?"n":"s"),B=w.map(F=>F.excelWidth?F.excelWidth:F.width?Math.floor(F.width/10):10),P=w.map(F=>F.numberFormat===void 0?F.align=="rightNum"?"#,##0.0000":F.align=="right"?"#,##0.00":"":F.numberFormat);w.map((F,L)=>{F.field=F.field?F.field:F.key;var N=F.excelName||F.headerName||F.title;N=N.replace(/<br\/>/g,""),F.columnWidth!==void 0?B[L]=F.columnWidth:N&&B[L]<N.length*2&&(B[L]=N.length*2)});var k=a.map(F=>w.map((L,N)=>{L.columnWidth!==void 0?B[N]=L.columnWidth:F[L.field]&&B[N]<(""+F[L.field]).length*2&&(B[N]=(""+F[L.field]).length*2);let X=null;L.cellStyle&&(L.cellStyle instanceof Function?X=L.cellStyle(F[L.field],F,a):X=L.cellStyle);let z=null;return L.formula&&(L.formula instanceof Function?z=L.formula(F[L.field],F,a):z=L.formula),{cellStyle:X,formula:z,value:F[L.field]}}));return{deepth:l,columnAlign:$,columnType:M,columnWidth:B,exportData:k,numberFormat:P,columnTitle:d,columnsCalc:w}}var fs=[];function R0(n){if(n.rowSpanColumns){let a=function(f,l){var g=we.findIndex(n.columns,{field:f});if(!r[f]){var h=[],d="CUR_VAL",y={};we.forEach(n.datas,function(E,_){var w=l?E[f]!=d||_==(u[""+_]||{}).first:E[f]!=d;if(w){if(!l&&y.first!==void 0)for(var S=y.first;S<=y.last;S++)u[""+S]={first:y.first,last:y.last};d=E[f],y={col:f,val:d,first:_,last:_,rowSpan:1},h.push(y)}else if(y.last=_,y.rowSpan=y.last-y.first+1,h.push({rowSpan:0}),!l&&_==n.datas.length-1)for(var S=y.first;S<=y.last;S++)u[""+S]={first:y.first,last:y.last}}),r[f]=h,we.forEach(h,function(E,_){E.rowSpan>1&&fs.push({mergeRowS:_,mergeRowE:_+E.rowSpan-1,megerColS:g,megerColE:g})})}};n.rowSpanIndexCol&&(n.rowSpanIndexCol=n.rowSpanColumns[0]);var r={},u={};a(n.rowSpanIndexCol),we.forEach(n.rowSpanColumns,function(f){a(f,!0)})}}function L0(n){var r=as(n);console.log("calcExportDatas",r);var u=n.title,a=r.deepth,f=n.columnAlign||r.columnAlign,l=n.columnType||r.columnType,g=r.columnTitle,h=n.columnWidth||r.columnWidth,d=f.length,y=n.paramLeft,E=n.paramRight,_=r.exportData,w=n.numberFormat||r.numberFormat;XlsxPopulate.fromBlankAsync().then(S=>{var $=S.sheet("Sheet1");$.name(u);for(var M=0;M<d;M++)$.column(M+1).width(h[M]==0?10:h[M]);var B=$.range(1,1,1,d);B.merged(!0),B.style(x0),B.cell(0,0).value(u),$.row(1).height(D0);var P=2;if(!!n.paramLeft||!!n.paramRight){var k=$.range(2,1,2,Math.round(d/2));k.cell(0,0).value(y||""),k.merged(!0),k.style(T0);var F=$.range(2,Math.round(d/2)+1,2,d);F.cell(0,0).value(E||""),F.merged(!0),F.style(I0),$.row(2).height(F0),P+=1}g.forEach(z=>{var ue=$.range(z.srow+P-1,z.scol,z.erow+P-1,z.ecol);ue.merged(!0),ue.style($0),ue.cell(0,0).value(z.text.replace(/<br\/>/g,""))});for(let z=0;z<a;z++)$.row(P+z).height(P0);P+=a;for(var M=0;M<_.length;M++){for(var L=_[M],N=0;N<L.length;N++)if(l[N]==="s"&&L[N]?($.cell(P+M,N+1).value(L[N].value),br.numberFormat=""):l[N]==="n"&&L[N]?($.cell(P+M,N+1).value(L[N].value?parseFloat(L[N].value):L[N].value),br.numberFormat=w[N]):$.cell(P+M,N+1).value(""),L[N].formula&&$.cell(P+M,N+1).formula(L[N].formula),br.horizontalAlignment=f[N],L[N].cellStyle){let ue=we.merge({},br,L[N].cellStyle);$.cell(P+M,N+1).style(ue)}else $.cell(P+M,N+1).style(br);if(n.rowColor&&M%2!=0){var X=$.range(P+M,1,P+M,d);X.style({fill:"f8f8f9"})}$.row(P+M).height(M0)}n.rowSpanColumns&&(R0(Pt(pt({},n),{columns:r.columnsCalc})),we.forEach(fs,function(z){var ue=$.range(z.mergeRowS+P,z.megerColS+1,z.mergeRowE+P,z.megerColE+1);ue.merged(!0)})),$.freezePanes(n.leftColumns||0,(n.topRows||0)+P-1),S.outputAsync().then(function(z){if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(z,u+".xlsx");else{var ue=window.URL.createObjectURL(z),ye=document.createElement("a");document.body.appendChild(ye),ye.href=ue,ye.download=u+".xlsx",ye.click(),window.URL.revokeObjectURL(ue),document.body.removeChild(ye)}})}).catch(S=>console.log(S))}function N0(n){return new Promise((r,u)=>{var a=as(n),f=a.deepth;a.exportData;const l=new FileReader;l.onload=g=>iu(this,null,function*(){XlsxPopulate.fromDataAsync(g.target.result).then(h=>{var w;var d=h.sheet(0),y=2;(!!n.paramLeft||!!n.paramRight)&&(y+=1),y+=f;let E=[];for(let S=y;S<d._rows.length;S++){var _=d.row(S);let $={};E.push($);for(let M=1;M<_._cells.length;M++){let B=(w=_._cells[M])==null?void 0:w._value;if(M>a.columnsCalc.length)continue;let P=a.columnsCalc[M-1];$[P.field]=B}}r(E)}).catch(h=>console.log(h))}),l.readAsArrayBuffer(n.file)})}const ss=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function B0(n){if(!n)return"";let r="";const u=ss.length;for(;n>=0;){const a=n%u;r=ss[a]+r,n=parseInt((n-a)/u)-1}return r}function U0(){return document.addEventListener?function(n,r,u){n&&r&&u&&n.addEventListener(r,u,!1)}:function(n,r,u){n&&r&&u&&n.attachEvent("on"+r,u)}}function W0(){return window.document.removeEventListener?function(n,r,u){n&&r&&n.removeEventListener(r,u,!1)}:function(n,r,u){n&&r&&n.detachEvent("on"+r,u)}}function H0(n,r,u){const a=U0();return a(n,r,u),a}function Y0(n,r,u){const a=W0();return a(n,r,u),a}const ls=n=>n.stopPropagation();function k0(n,r){(typeof n.cancelable!="boolean"||n.cancelable)&&n.preventDefault(),r&&ls(n)}function G0(n){if(!n||n.length<4)return"";const r=n.substring(0,4),u=n.substring(4,6),a=cs(parseInt(u));return u?`${r}H${a}`:`${r}`}function cs(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return n<=6?1:2}function q0(n){if(!n||n.length<4)return n;const r=n.substring(0,4);if(!n.substring(4,6))return`${r}\u5168\u5E74`;const f=parseInt(n.substring(5))===1?"\u4E0A\u534A\u5E74":"\u4E0B\u534A\u5E74";return`${r}${f}`}function z0(n){if(!n||n.length<4)return n;const r=n.substring(0,4);if(!n.substring(4,6))return`${r}01`;const f=parseInt(n.substring(5))*6-5,l=f<10?`0${f}`:`${f}`;return`${r}${l}`}function K0(n){if(!n||n.length<4)return n;const r=n.substring(0,4);if(!n.substring(4,6))return`${r}12`;const f=parseInt(n.substring(5))*2,l=f<10?`0${f}`:`${f}`;return`${r}${l}`}const J0={aac:"audio/aac",abw:"application/x-abiword",arc:"application/x-freearc",avi:"video/x-msvideo",azw:"application/vnd.amazon.ebook",bin:"application/octet-stream",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip2",csh:"application/x-csh",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",gif:"image/gif",html:"text/html",ico:"image/vnd.microsoft.icon",ics:"text/calendar",jar:"application/java-archive",jpg:"image/jpeg",jpeg:"image/jpeg",js:"text/javascript",json:"application/json",jsonld:"application/ld+json",mid:"audio/midi",midi:"audio/x-midi",mjs:"text/javascript",mp3:"audio/mpeg",mpeg:"video/mpeg",mpkg:"application/vnd.apple.installer+xml",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",otf:"font/otf",png:"image/png",pdf:"application/pdf",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rar:"application/x-rar-compressed",rtf:"application/rtf",sh:"application/x-sh",svg:"image/svg+xml",swf:"application/x-shockwave-flash",tar:"application/x-tar",tiff:"image/tiff",ttf:"font/ttf",txt:"text/plain",vsd:"application/vnd.visio",wav:"audio/wav",weba:"audio/webm",webm:"video/webm",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xul:"application/vnd.mozilla.xul+xml",zip:"application/zip","7z":"application/x-7z-compressed"};function V0(n){let r="";for(n=(n||0).toString();n.length>3;)r=","+n.slice(-3)+r,n=n.slice(0,n.length-3);return n&&(r=n+r),r}function Q0(n){const r=n.length,u=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],a=["\u4EDF","\u4F70","\u62FE","\u4EBF","\u4EDF","\u4F70","\u62FE","\u4E07","\u4EDF","\u4F70","\u62FE"];let f=[],l=[],g="";for(let h=0;h<r;h++)f.push(parseInt(n[h])),l[h]=u[f[h]];for(let h=r-1,d=1;h>0;h--)l.splice(h,0,a[a.length-d++]);return g=l.join(""),r>=1&&(g+="\u5143\u6574"),g}function X0(n){if(!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))return"\u6570\u636E\u975E\u6CD5";let r="\u5343\u767E\u62FE\u4EBF\u5343\u767E\u62FE\u4E07\u5343\u767E\u62FE\u5143\u89D2\u5206",u="";n+="00";let a=n.indexOf(".");a>=0&&(n=n.substring(0,a)+n.substr(a+1,2)),r=r.substr(r.length-n.length);for(let f=0;f<n.length;f++)u+="\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396".charAt(parseInt(n.charAt(f)))+r.charAt(f);return u.replace(/零(千|百|拾|角)/g,"\u96F6").replace(/(零)+/g,"\u96F6").replace(/零(万|亿|元)/g,"$1").replace(/(亿)万|壹(拾)/g,"$1$2").replace(/^元零?|零分/g,"").replace(/元$/g,"\u5143\u6574")}function Z0(n,r=2){n=n.toString();let u=n.indexOf(".");return u!==-1?n=n.substring(0,r+u+1):n=n.substring(0),parseFloat(n).toFixed(r)}function ps(n,r=2){if(typeof n=="number"){const a=/([0-9])+e([-0-9]+)/.exec(n+"")||[];if(a.length>2){const f=a[1],l=a[2];return Math.round(parseFloat(+f+"e"+(+l+r)))/Math.pow(10,r)}return Math.round(parseFloat(+n+"e"+r))/Math.pow(10,r)}return n}function j0(n,r=2){const u=parseFloat(n+"");return!isNaN(u)&&(u||u===0)?ps(u,r).toFixed(r):n}const ev=n=>{if(isNaN(n))throw"numToChineseNumerals: \u6570\u636E\u975E\u6CD5";return n=Number(n),hs(n).replace(/^零/,"").replace(/^一十/,"\u5341")},tv=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],nv=["","\u5341","\u767E","\u5343"];function hs(n){if(n===0)return"";const r=Math.floor(Math.log10(n)),u=Math.floor(r/8),a=Math.floor(r%8/4);let f=Math.floor(n/Math.pow(10,4*a+8*u)),l=n%Math.pow(10,4*a+8*u),g=we(String(f).padStart(4,"0")).split("").map((h,d)=>tv[h]+(h==="0"?"":nv[3-d])).uniq().value().join("").replace(/零$/,"");for(let h=0;h<a;h++)g+="\u4E07";for(let h=0;h<u;h++)g+="\u4EBF";return g+hs(l)}function gs(n){return n?["\u4E00","\u4E8C","\u4E09","\u56DB"][n-1]:""}function rv(n){if(!n||n.length<6)return"";const r=n.substring(0,4),u=n.substring(4,6),a=ds(parseInt(u));return`${r}Q${a}`}function ds(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return Math.ceil(n/3)}function iv(n){if(!n||n.length<6)return n;const r=n.substring(0,4),u=parseInt(n.substring(5));return`${r}\u7B2C${gs(u)}\u5B63\u5EA6`}function uv(n){if(!n||n.length<6)return n;const r=n.substring(0,4),a=parseInt(n.substring(5))*3-2,f=a<10?`0${a}`:`${a}`;return`${r}${f}`}function ov(n){if(!n||n.length<6)return n;const r=n.substring(0,4),a=parseInt(n.substring(5))*3,f=a<10?`0${a}`:`${a}`;return`${r}${f}`}const zt="__",Jn="--";function ju({tooltip:n,item:r,parents:u,title:a}){let f=null;return n&&(Xu(n)?f=n(r,u):n===!0?f=a:f=n),f}function eo(n,r,u={}){var N;const L=r,{key:a,keyProp:f,title:l,titleProp:g,titleFormatter:h,sortProp:d,sortOrder:y="asc",keyLastSuffix:E,isLimitChildren:_,headerTooltip:w,children:S}=L,$=rp(L,["key","keyProp","title","titleProp","titleFormatter","sortProp","sortOrder","keyLastSuffix","isLimitChildren","headerTooltip","children"]),{keyPropName:M="key",titlePropName:B="title",keyPrefix:P="",parents:k=[]}=u;if(f){let X=((N=we.uniqBy(n,r.keyProp))==null?void 0:N.filter(z=>!Kn(z[r.keyProp])))||[];if(d){const z=X.filter(ye=>Kn(ye[d])),ue=X.filter(ye=>!Kn(ye[d]));X=we.orderBy(ue,[d],[y]).concat(z)}return X.map(z=>{const ue=h?h(z[g]):z[g];if(S&&S.length){const de=`${P}${f}${Jn}${z[f]}${zt}`,oe=S.map($e=>{let qe=_?n.filter(K=>K[f]===z[f]):n;return eo(qe,$e,Pt(pt({},u),{keyPrefix:de,parents:[...k,z]}))});return Pt(pt({},$),{[B]:ue,headerTooltip:ju({tooltip:w,item:z,parents:k,title:ue}),children:we.flatten(oe)})}const ye=E?`${zt}${E}`:"";return Pt(pt({},$),{[M]:`${P}${f}${Jn}${z[f]}${ye}`,[B]:ue,headerTooltip:ju({tooltip:w,item:z,parents:k,title:ue})})})}const F=ju({tooltip:w,item:{},parents:k,title:l});if(S&&S.length){const X=`${P}${a||""}`,z=S.map(ue=>eo(n,ue,Pt(pt({},u),{keyPrefix:X})));return Pt(pt({},$),{[B]:l,headerTooltip:F,children:we.flatten(z)})}return Pt(pt({},$),{[M]:`${P}${a||""}`,[B]:l,headerTooltip:F})}function to(n=[]){return!n||!n.length?[]:n.reduce((r,u)=>u.children?[...r,...to(u.children)]:[...r,u],[])}function vs(n,r){var f;if(!r.length)return;const u=r[0];if(r=r.slice(1),u.includes(Jn)&&r.length){const[l,g]=u.split(Jn),h=we.filter(n,{[l]:g});return vs(h,r)}return r.length&&console.error("\u600E\u4E48\u4F1A\u4E0D\u662F\u6700\u540E\u4E00\u5C42\u5206\u7EC4\u5462\uFF0C\u8BF7\u8054\u7CFB\u5F00\u53D1\u4EBA\u5458\u67E5\u770B\uFF01"),(f=n==null?void 0:n[0])==null?void 0:f[u]}function hi(n,r){if(!n)return"";if(si(r))return n[r]||"";for(const u of r)if(n[u])return n[u];return""}function ys(n,r,u,a,f){if(u>=n.length)return;const l=n[u];let g=we.find(a,{key:l});if(!g&&(g={key:l,title:r[u],children:[]},a.push(g),u===n.length-1)){Object.assign(g,f,{title:r[u]});return}ys(n,r,u+1,g.children,f)}function av({sumColumnDefs:n}){const r=[];for(const u of n){const{key:a,title:f}=u,l=a.split(zt),g=f.split(zt);ys(l,g,0,r,u)}return r}function fv(n=[],r=[],u,a={}){var E;const f=[];a.sumColumnDefs&&a.sumColumnDefs.length&&f.push(...av(a));const l=we.flatten(r.map(_=>eo(n,_,a)))||[];f.push(...l);const g=to(f),h=((E=we.uniqBy(n,_=>hi(_,u)))==null?void 0:E.filter(_=>!Kn(hi(_,u))))||[],d=we.groupBy(n,_=>hi(_,u));return{data:h.map(_=>{const w=hi(_,u),S=d[w]||[],$=pt({},_);return a.sumColumnDefs&&a.sumColumnDefs.length&&a.sumColumnDefs.forEach(M=>{const{key:B}=M,P=B.split(zt)||[],k=(P==null?void 0:P[0])||"",F=(P==null?void 0:P[P.length-1])||"",{sumColKeyProp:L="sumColCode"}=a,N=we.find(S,{[L]:k})||{};$[B]=N[F]}),g.forEach(M=>{const B=M[a.keyPropName||"key"]||"",P=B.split(zt)||[],k=vs(S,P);$[B]=k,delete $[P[P.length-1]]}),$}),columns:f}}function sv(n={},r=[],u={}){const a=[],f={};return Object.keys(n).forEach(g=>{g.includes(zt)||(f[g]=n[g])}),r.forEach(g=>{const h={},d=g[u.keyPropName||"key"]||"";if(d.includes(zt)){const y=d.split(zt);y.forEach((E,_)=>{if(E.includes(Jn)&&y.length){const[w,S]=E.split(Jn);h[w]=S}else if(y.length!==_+1)console.error("columns\u6709\u95EE\u9898\uFF0C\u8BF7\u68C0\u67E5\uFF01");else{const w=we.find(a,h);w?w[E]=n[d]:a.push(Pt(pt(pt({},f),h),{[E]:n[d]}))}})}}),a}function lv(n=[],r=[],u={}){const a=to(r);return n.reduce((f,l)=>[...f,...sv(l,a,u)],[])}let cv=n=>crypto.getRandomValues(new Uint8Array(n)),pv=(n,r,u)=>{let a=(2<<Math.log(n.length-1)/Math.LN2)-1,f=-~(1.6*a*r/n.length);return(l=r)=>{let g="";for(;;){let h=u(f),d=f;for(;d--;)if(g+=n[h[d]&a]||"",g.length===l)return g}}};const hv=((n,r=21)=>pv(n,r,cv))("0123456789abcdef",32);function gv(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var r=Math.random()*16|0,u=n==="x"?r:r&3|8;return u.toString(16)})}function dv(n){var r=new Array("\u9A8C\u8BC1\u901A\u8FC7!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u4F4D\u6570\u4E0D\u5BF9!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u51FA\u751F\u65E5\u671F\u8D85\u51FA\u8303\u56F4\u6216\u542B\u6709\u975E\u6CD5\u5B57\u7B26!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u6821\u9A8C\u9519\u8BEF!","\u8EAB\u4EFD\u8BC1\u5730\u533A\u975E\u6CD5!"),u={11:"\u5317\u4EAC",12:"\u5929\u6D25",13:"\u6CB3\u5317",14:"\u5C71\u897F",15:"\u5185\u8499\u53E4",21:"\u8FBD\u5B81",22:"\u5409\u6797",23:"\u9ED1\u9F99\u6C5F",31:"\u4E0A\u6D77",32:"\u6C5F\u82CF",33:"\u6D59\u6C5F",34:"\u5B89\u5FBD",35:"\u798F\u5EFA",36:"\u6C5F\u897F",37:"\u5C71\u4E1C",41:"\u6CB3\u5357",42:"\u6E56\u5317",43:"\u6E56\u5357",44:"\u5E7F\u4E1C",45:"\u5E7F\u897F",46:"\u6D77\u5357",50:"\u91CD\u5E86",51:"\u56DB\u5DDD",52:"\u8D35\u5DDE",53:"\u4E91\u5357",54:"\u897F\u85CF",61:"\u9655\u897F",62:"\u7518\u8083",63:"\u9752\u6D77",64:"\u5B81\u590F",65:"\u65B0\u7586",71:"\u53F0\u6E7E",81:"\u9999\u6E2F",82:"\u6FB3\u95E8",91:"\u56FD\u5916"},a,f,l,g,h,d=new Array;if(d=n.split(""),u[parseInt(n.substr(0,2))]==null)return r[4];switch(n.length){case 15:return(parseInt(n.substr(6,2))+1900)%4==0||(parseInt(n.substr(6,2))+1900)%100==0&&(parseInt(n.substr(6,2))+1900)%4==0?h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/:h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/,h.test(n)?r[0]:r[2];case 18:return parseInt(n.substr(6,4))%4==0||parseInt(n.substr(6,4))%100==0&&parseInt(n.substr(6,4))%4==0?h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/:h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/,h.test(n)?(l=(parseInt(d[0])+parseInt(d[10]))*7+(parseInt(d[1])+parseInt(d[11]))*9+(parseInt(d[2])+parseInt(d[12]))*10+(parseInt(d[3])+parseInt(d[13]))*5+(parseInt(d[4])+parseInt(d[14]))*8+(parseInt(d[5])+parseInt(d[15]))*4+(parseInt(d[6])+parseInt(d[16]))*2+parseInt(d[7])*1+parseInt(d[8])*6+parseInt(d[9])*3,a=l%11,g="F",f="10X98765432",g=f.substr(a,1),g==d[17]?r[0]:r[3]):r[2];default:return r[1]}}function vv(n){var r=/^1[3456789]\d{9}$/;return!!r.test(n)}function yv(n){var r=/^([0-9]{3,4}-)?[0-9]{7,8}$/,u=/^((\+?86)|(\(\+86\)))?(13[0123456789][0-9]{8}|15[012356789][0-9]{8}|18[0123456789][0-9]{8}|14[57][0-9]{8}|17[678][0-9]{8})$/;return!!(u.test(n)||r.test(n))}function mv(n){return/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](-)?(([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))$/.test(n)?!0:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](-)?[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/.test(n)}const ms="ind-dict_";function _v(n){return _e(`${ms}${n}`)}function wv(n,r){be(`${ms}${n}`,r)}const _s=Lt.authServerContext;function Ev(n){return he.get(`${_s}/anon/dict/getDictsMap`,{params:{dictId:n}})}function ws(n){return iu(this,null,function*(){if(n===is)return us;const r=_v(n);if(r)return r;try{const{data:u}=yield he.get(`${_s}/dict/getDicts`,{params:{dictId:n}});return wv(n,u),u}catch(u){console.error(`getDict error dictId=${n}`,u)}})}function Sv(n){return iu(this,null,function*(){const r={},u=yield Promise.all(n.map(a=>ws(a)));return n.forEach((a,f)=>{if(u[f]){const l={};u[f].forEach(g=>{l[g.K]=g.V}),r[a]={data:l,renderData:u[f]}}}),r})}const Bt=Lt.authServerContext;function Av(){return he.get(`${Bt}/manage/menu/getAllPermission`)}function bv(){return he.get(`${Bt}/manage/upmsMenuHistory/list`)}function Cv(n){return he.post(`${Bt}/manage/upmsMenuHistory/add`,null,{params:n})}function Ov(n){return he.get(`${Bt}/manage/upmsMenuHistory/delete/`+n)}function xv(){return he.get(`${Bt}/manage/upmsMenuCollect/list`)}function Tv(n){return he.post(`${Bt}/manage/upmsMenuCollect/add`,null,{params:n})}function Iv(n){return he.get(`${Bt}/manage/upmsMenuCollect/delete/`+n)}function $v(n){return he.post(`${Bt}/manage/upmsMenuCollect/remove`,null,{params:n})}function Dv(){return he.get(`${Bt}/manage/app/list`)}function Fv(){return he.get(`${Bt}/ipm/bc/basic/item/getMaxTabNum`)}const Es=Lt.ossServerContext;function Ss(n=""){return`${Es}/oss/file/get/${n}`}function As(){return`${Es}/oss/file/put`}function Pv(n,r){const u={};return r&&(u.responseType=r),he.get(Ss(n),u)}function Mv(n,r){let u=new FormData;return u.append("file",r,n),he({method:"post",url:As(),headers:{"Content-Type":_r.multiForm},data:u})}const Vn=Lt.authServerContext;function Rv({userName:n,password:r,validCodeId:u,validCodeInput:a}){let f="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDD2iolFHi+6bUh+V6JPr2gFJQsC0QNsq2EwI0MAPlI5AaizBHRVMjX1H73ptuDSiT3QZh4kk74w+eDLyYj4JXo1SvvDw5w378SLhUIDzH0zrlt3oleT3kiPQxC17yM3Os/wrtHO7IC+KGo9qrg+LJFyR/fYYHcyH9i+JAejBEnJQIDAQAB",g=new window.NodeRSA(f,"pkcs8-public").encrypt(r,"base64"),h=window.Base64.encode(g);const d={usn:n,upw:h,validCodeId:u,validCodeInput:a};return he.formPost(Vn+"/sso/auth/login",d)}function Lv(){return he.get(`${Vn}/manage/user/getCurrentInfo`)}function Nv(){return he.get(`${Vn}/anon/user/getGlobalPolicy`)}function Bv(n){return he.post(`${Vn}/manage/user/updatePassword`,n)}function Uv(n){return`${Vn}/anon/user/getCaptcha/`+n}function Wv(){return he.get(`${Vn}/sso/logout`)}const Hv=Lt.ismAmServerContext;function Yv(n){return he.get(`${Hv}/tree/com/listComTree`,{params:n})}const kv=Lt.ucExtServerContext;function Gv(n){return he.get(`${kv}/index-desc/list`,{params:n})}const no=Lt.ismAmServerContext;function qv(n){return he.get(`${no}/tree/item/listItemTree`,{params:n})}function zv(){return he.get(`${no}/basic/getPriceInfo`,{})}function Kv(n){return he.get(`${no}/basic/getItem`,{params:n})}const Jv=Lt.ucExtServerContext;function Vv(n){return he.get(`${Jv}/tree/uc-user/listUserTree`,{params:n})}C.Base64ForLogin=Jd,C.CONTENT_TYPE=_r,C.IS_OR_NOT_ENUM=S0,C.IS_OR_NOT_ENUM_KEY=is,C.IS_OR_NOT_ENUM_LIST=us,C.MIME_TYPE=J0,C.UC_ENUM=A0,C.addMenuCollectApi=Tv,C.axios=he,C.base64ToBlob=Vd,C.blobToBase64=Qd,C.checkIdCard=dv,C.checkPhone=vv,C.checkTel=yv,C.checkVehicleNo=mv,C.clearIndexDescCache=up,C.clearPermissionCache=fp,C.clearSessionStorage=qr,C.clearUserInfoCache=cp,C.config=Lt,C.cryptor=Kd,C.deleteMenuCollectApi=Iv,C.deleteMenuHistoryApi=Ov,C.exportJsonToExcel=L0,C.flattenRow2ColumnData=lv,C.formatDate=Zd,C.formatDateChinese=jd,C.formatDecimal=Z0,C.formatHalfYear=q0,C.formatQuarter=iv,C.getAppListApi=Dv,C.getCaptchaURL=Uv,C.getContentType=Gu,C.getDictApi=ws,C.getDictMapApi=Sv,C.getDictsMapApi=Ev,C.getExcelColumnIdx=B0,C.getGlobalPolicyApi=Nv,C.getHalfYear=G0,C.getHalfYearBeginMonth=z0,C.getHalfYearEndMonth=K0,C.getHalfYearNum=cs,C.getIndexDescCache=cr,C.getItem=Kv,C.getLocalStorage=Rn,C.getMaxTabNumValueApi=Fv,C.getMenuCollectApi=xv,C.getMenuHistoryApi=bv,C.getOssFileApi=Pv,C.getOssFileUrl=Ss,C.getPermissionApi=Av,C.getPermissionCache=op,C.getPriceInfo=zv,C.getQuarter=rv,C.getQuarterBeginMonth=uv,C.getQuarterEndMonth=ov,C.getQuarterNum=ds,C.getSessionStorage=_e,C.getToken=Hf,C.getType=ns,C.getUrlParams=Nf,C.getUserInfoApi=Lv,C.getUserInfoCache=sp,C.guid=gv,C.importJsonFromExcel=N0,C.isArguments=f0,C.isArray=Qu,C.isArrayLike=li,C.isBoolean=r0,C.isDate=a0,C.isDecimal=y0,C.isElement=c0,C.isEmpty=p0,C.isEqual=pi,C.isEqualWith=E0,C.isError=l0,C.isEven=h0,C.isFinite=d0,C.isFunction=Xu,C.isInteger=v0,C.isNegative=m0,C.isNil=Kn,C.isNull=es,C.isNumber=fn,C.isNumberEqual=w0,C.isObject=i0,C.isObjectLike=ci,C.isOdd=g0,C.isPlainObject=u0,C.isPositive=_0,C.isPromise=o0,C.isPrototype=rs,C.isRegExp=s0,C.isString=si,C.isType=bt,C.isUndefined=ts,C.listComTreeApi=Yv,C.listIndexDescApi=Gv,C.listItemTreeApi=qv,C.listUserTreeApi=Vv,C.loginApi=Rv,C.logoutApi=Wv,C.menuHistoryApi=Cv,C.numToChineseNumerals=ev,C.numToDX=X0,C.off=Y0,C.on=H0,C.preventDefault=k0,C.putOssFileApi=Mv,C.putOssFileUrl=As,C.quarter2Chinese=gs,C.removeLocalStorage=mn,C.removeMenuCollectApi=$v,C.removeSessionStorage=Ze,C.renderColumnEnums=os,C.renderEnumData=C0,C.renderEnumList=b0,C.renderFieldEnums=O0,C.responseInterceptors=Gf,C.round=ps,C.row2column=fv,C.setContentType=Uf,C.setIndexDescCache=ip,C.setLocalStorage=Ln,C.setPermissionCache=ap,C.setSessionStorage=be,C.setToken=Id,C.setUserInfoCache=lp,C.stopPropagation=ls,C.str2Date=Xd,C.toChies=Q0,C.toFixed=j0,C.toThousands=V0,C.updatePasswordApi=Bv,C.useConfig=kf,C.uuid=hv,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -30,6 +30,8 @@ export default {
|
|
|
30
30
|
ismSqServerContext: '/ind-ism-sq-server',
|
|
31
31
|
// ilm-server
|
|
32
32
|
ilmServerContext: '/ind-ilm-server',
|
|
33
|
+
// img-server
|
|
34
|
+
imgServerContext: '/ind-img-server',
|
|
33
35
|
// uc-ext-server
|
|
34
36
|
ucExtServerContext: '/ind-uc-ext-server',
|
|
35
37
|
// kkfilepreview 预览文件组件
|
package/src/utils/number.ts
CHANGED
|
@@ -84,9 +84,9 @@ export function round(number: number, precision = 2): number {
|
|
|
84
84
|
if (result.length > 2) {
|
|
85
85
|
const num = result[1]
|
|
86
86
|
const e = result[2]
|
|
87
|
-
return Math.round(
|
|
87
|
+
return Math.round(parseFloat(+num + 'e' + (+e + precision))) / Math.pow(10, precision)
|
|
88
88
|
}
|
|
89
|
-
return Math.round(
|
|
89
|
+
return Math.round(parseFloat(+number + 'e' + precision)) / Math.pow(10, precision)
|
|
90
90
|
}
|
|
91
91
|
return number
|
|
92
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.config.d.ts","sourceRoot":"","sources":["../../src/config/base.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.config.d.ts","sourceRoot":"","sources":["../../src/config/base.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAmDE,gBAAgB;;;AA9ClB,wBAgDC"}
|
package/types/config/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function useConfig(isDev?: boolean): {
|
|
|
12
12
|
ismAcServerContext: string
|
|
13
13
|
ismSqServerContext: string
|
|
14
14
|
ilmServerContext: string
|
|
15
|
+
imgServerContext: string
|
|
15
16
|
ucExtServerContext: string
|
|
16
17
|
kkfilepreviewContext: string
|
|
17
18
|
errorMessage: string
|
|
@@ -42,6 +43,7 @@ export declare const config: {
|
|
|
42
43
|
ismAcServerContext: string
|
|
43
44
|
ismSqServerContext: string
|
|
44
45
|
ilmServerContext: string
|
|
46
|
+
imgServerContext: string
|
|
45
47
|
ucExtServerContext: string
|
|
46
48
|
kkfilepreviewContext: string
|
|
47
49
|
errorMessage: string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIxC;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA"}
|