jmash-core 0.0.106 → 0.0.108

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.
@@ -28,9 +28,9 @@ const r3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAA
28
28
  APP_API_URL: "/",
29
29
  APP_BASE_API: "/",
30
30
  APP_CLIENT_ID: "pc_vue3"
31
- }), d1 = /* @__PURE__ */ new Map(), Yn = [], n3 = () => import("./index-Mnaauuzn.mjs");
31
+ }), d1 = /* @__PURE__ */ new Map(), Yn = [], n3 = () => import("./index-C1KAa9PO.mjs");
32
32
  d1.set("Layout", n3);
33
- const a3 = /* @__PURE__ */ Object.assign({ "./views/dashboard/components/BarChart.vue": () => import("./BarChart-D6VTKnAU.mjs"), "./views/dashboard/components/FunnelChart.vue": () => import("./FunnelChart-Ci14WUay.mjs"), "./views/dashboard/components/PieChart.vue": () => import("./PieChart-C60V9Kgc.mjs"), "./views/dashboard/components/RadarChart.vue": () => import("./RadarChart-BBq1VxXC.mjs"), "./views/dashboard/index.vue": () => import("./index-Cuya2xZq.mjs"), "./views/error-page/401.vue": () => import("./401-E782PquR.mjs"), "./views/error-page/404.vue": () => import("./404-C_piB9vN.mjs"), "./views/login/components/types.vue": () => import("./types-_Dh3OFCg.mjs"), "./views/login/index.vue": () => import("./index-d9XDquy6.mjs"), "./views/my/profile.vue": () => import("./profile-DI2Ni9_V.mjs"), "./views/my/runAs.vue": () => import("./runAs-e9Fc_nyP.mjs"), "./views/my/updatePwd.vue": () => import("./updatePwd-DcxEOzQy.mjs"), "./views/redirect/index.vue": () => import("./index-uykKwY2Z.mjs") });
33
+ const a3 = /* @__PURE__ */ Object.assign({ "./views/dashboard/components/BarChart.vue": () => import("./BarChart-oW-R1RXw.mjs"), "./views/dashboard/components/FunnelChart.vue": () => import("./FunnelChart-Ci14WUay.mjs"), "./views/dashboard/components/PieChart.vue": () => import("./PieChart-C60V9Kgc.mjs"), "./views/dashboard/components/RadarChart.vue": () => import("./RadarChart-BBq1VxXC.mjs"), "./views/dashboard/index.vue": () => import("./index-CAh0BAJl.mjs"), "./views/error-page/401.vue": () => import("./401-Cje8e0iQ.mjs"), "./views/error-page/404.vue": () => import("./404-Dcy7ErNt.mjs"), "./views/login/components/types.vue": () => import("./types-DaRQE9AI.mjs"), "./views/login/index.vue": () => import("./index-pfRSPpqI.mjs"), "./views/my/profile.vue": () => import("./profile-DSyIwcjT.mjs"), "./views/my/runAs.vue": () => import("./runAs-ByT2IRUb.mjs"), "./views/my/updatePwd.vue": () => import("./updatePwd-BW1ZcKeg.mjs"), "./views/redirect/index.vue": () => import("./index-uykKwY2Z.mjs") });
34
34
  o3(a3, 7);
35
35
  function o3(e, t) {
36
36
  for (const r in e)
@@ -222,7 +222,7 @@ function QB() {
222
222
  params: e
223
223
  });
224
224
  }
225
- const z1 = () => import("./index-Mnaauuzn.mjs"), p3 = () => import("./index-d9XDquy6.mjs"), _3 = () => import("./types-_Dh3OFCg.mjs"), v3 = () => import("./profile-DI2Ni9_V.mjs"), x3 = () => import("./401-E782PquR.mjs"), m3 = () => import("./404-C_piB9vN.mjs"), g3 = () => import("./index-Cuya2xZq.mjs"), w3 = () => import("./index-uykKwY2Z.mjs"), Qn = [
225
+ const z1 = () => import("./index-C1KAa9PO.mjs"), p3 = () => import("./index-pfRSPpqI.mjs"), _3 = () => import("./types-DaRQE9AI.mjs"), v3 = () => import("./profile-DSyIwcjT.mjs"), x3 = () => import("./401-Cje8e0iQ.mjs"), m3 = () => import("./404-Dcy7ErNt.mjs"), g3 = () => import("./index-CAh0BAJl.mjs"), w3 = () => import("./index-uykKwY2Z.mjs"), Qn = [
226
226
  {
227
227
  path: "/redirect",
228
228
  component: z1,
@@ -607,6 +607,12 @@ const b3 = {
607
607
  pwdRules: "请输入8-20位包含数字,大小写字母,特殊符号的密码",
608
608
  comparePwd: "两次密码不一致",
609
609
  successResetPwd: "密码修改成功"
610
+ },
611
+ // 文件
612
+ file: {
613
+ warning: "提示",
614
+ imageLtRequired: "确认上传2MB以上的图片吗",
615
+ fileLtRequired: "确认上传10MB以上的文件吗"
610
616
  }
611
617
  };
612
618
  var Jn = {
@@ -1983,6 +1989,79 @@ D0.interceptors.response.use(
1983
1989
  });
1984
1990
  }), e.response) : e.response && e.response.status === 403 ? (Ee.error("403禁止访问,您没有权限,请联系管理员!"), e.response) : e.response && e.response.data.code ? (Ee.error(e.response.data.message), e.response) : (console.log(e), Ee.error("网络错误,请联系系统管理员!"), Promise.reject(new Error(e)))
1985
1991
  );
1992
+ class eo {
1993
+ baseApiUrl() {
1994
+ let t = D0.defaults.baseURL;
1995
+ return t.slice(-1) === "/" && (t = t.slice(0, -1)), t;
1996
+ }
1997
+ /** 上传Url */
1998
+ uploadUrl() {
1999
+ return this.baseApiUrl() + "/v1/file/upload?tenant=" + T0().user.tenant;
2000
+ }
2001
+ /** Authorization */
2002
+ authHeader() {
2003
+ return { Authorization: "Bearer " + T0().token };
2004
+ }
2005
+ /**
2006
+ * url 获取图片Full路径
2007
+ * @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
2008
+ */
2009
+ imageUrl(t, r = 0, n = 0, a = "clip") {
2010
+ return this.baseApiUrl() + `/v1/file/image/${a}/${r}/${n}/` + t;
2011
+ }
2012
+ /**
2013
+ * Id 获取图片Full路径
2014
+ * @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
2015
+ */
2016
+ imageIdUrl(t, r = 0, n = 0, a = "clip") {
2017
+ return this.baseApiUrl() + "/v1/file/image_id/" + T0().user.tenant + `/${a}/${r}/${n}/` + t;
2018
+ }
2019
+ /** url 获取文件Full路径 */
2020
+ fileUrl(t) {
2021
+ return this.baseApiUrl() + "/v1/file/path/" + t;
2022
+ }
2023
+ /** Id 获取文件Full路径 */
2024
+ fileIdUrl(t) {
2025
+ return this.baseApiUrl() + "/v1/file/id/" + T0().user.tenant + t;
2026
+ }
2027
+ /** 文件是否存在 */
2028
+ existFileHex(t, r, n) {
2029
+ const a = T0().user.tenant, o = t.size;
2030
+ return D0({
2031
+ url: `/v1/file/exist/${a}/${o}/${r}/${n}`,
2032
+ method: "get"
2033
+ });
2034
+ }
2035
+ /** 上传文件 */
2036
+ uploadBase64File(t) {
2037
+ return t.tenant = T0().user.tenant, D0({
2038
+ url: "/v1/file/base64upload",
2039
+ method: "post",
2040
+ data: t
2041
+ });
2042
+ }
2043
+ /** 上传文件 */
2044
+ uploadFileApi(t) {
2045
+ const r = new FormData();
2046
+ return r.append("file", t), D0({
2047
+ url: "/api/v1/files",
2048
+ method: "post",
2049
+ data: r,
2050
+ headers: {
2051
+ "Content-Type": "multipart/form-data"
2052
+ }
2053
+ });
2054
+ }
2055
+ /** 删除文件 */
2056
+ deleteFileApi(t) {
2057
+ return D0({
2058
+ url: "/api/v1/files",
2059
+ method: "delete",
2060
+ params: { filePath: t }
2061
+ });
2062
+ }
2063
+ }
2064
+ const ne = new eo();
1986
2065
  function cA(e, t) {
1987
2066
  const r = [];
1988
2067
  return Object.keys(e).some((n) => {
@@ -2018,7 +2097,7 @@ class uA {
2018
2097
  return "";
2019
2098
  }
2020
2099
  }
2021
- function eo(e, t, r) {
2100
+ function to(e, t, r) {
2022
2101
  const n = { className: t, type: r };
2023
2102
  return D0({
2024
2103
  url: "/v1/" + e + "/enum/entry",
@@ -2030,12 +2109,12 @@ async function ca(e, t, r) {
2030
2109
  return new Promise((n, a) => {
2031
2110
  const o = `enum_${t}${r ? "_" + r : ""}`;
2032
2111
  let s = sessionStorage.getItem(o);
2033
- s && n(JSON.parse(s)), s ? a("NOT FUND!") : eo(e, t, r).then(({ data: u }) => {
2112
+ s && n(JSON.parse(s)), s ? a("NOT FUND!") : to(e, t, r).then(({ data: u }) => {
2034
2113
  s = JSON.stringify(u.values), u && u.values != null && sessionStorage.setItem(o, s), n(JSON.parse(s));
2035
2114
  });
2036
2115
  });
2037
2116
  }
2038
- class to {
2117
+ class ro {
2039
2118
  constructor(t) {
2040
2119
  // 业务数据,应该是一个可响应的 Entry 数组引用
2041
2120
  C0(this, "values", Fe([]));
@@ -2051,7 +2130,7 @@ class to {
2051
2130
  return "";
2052
2131
  }
2053
2132
  }
2054
- class hA extends to {
2133
+ class hA extends ro {
2055
2134
  constructor(t) {
2056
2135
  super(t), this.useValues();
2057
2136
  }
@@ -2105,7 +2184,7 @@ var p0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2105
2184
  function ua(e) {
2106
2185
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2107
2186
  }
2108
- function ro(e) {
2187
+ function no(e) {
2109
2188
  if (e.__esModule) return e;
2110
2189
  var t = e.default;
2111
2190
  if (typeof t == "function") {
@@ -2834,7 +2913,7 @@ var ha = { exports: {} };
2834
2913
  })(ha);
2835
2914
  var _1 = ha.exports;
2836
2915
  const { BigInteger: tt } = _1;
2837
- function no(e) {
2916
+ function ao(e) {
2838
2917
  let t = e.toString(16);
2839
2918
  if (t[0] !== "-")
2840
2919
  t.length % 2 === 1 ? t = "0" + t : t.match(/^[0-7]/) || (t = "00" + t);
@@ -2869,13 +2948,13 @@ class fa {
2869
2948
  }
2870
2949
  class g4 extends fa {
2871
2950
  constructor(t) {
2872
- super(), this.t = "02", t && (this.v = no(t));
2951
+ super(), this.t = "02", t && (this.v = ao(t));
2873
2952
  }
2874
2953
  getValue() {
2875
2954
  return this.v;
2876
2955
  }
2877
2956
  }
2878
- class ao extends fa {
2957
+ class oo extends fa {
2879
2958
  constructor(t) {
2880
2959
  super(), this.t = "30", this.asn1Array = t;
2881
2960
  }
@@ -2894,13 +2973,13 @@ function H1(e, t) {
2894
2973
  const r = da(e, t);
2895
2974
  return t + (r + 1) * 2;
2896
2975
  }
2897
- var oo = {
2976
+ var so = {
2898
2977
  /**
2899
2978
  * ASN.1 der 编码,针对 sm2 签名
2900
2979
  */
2901
2980
  encodeDer(e, t) {
2902
2981
  const r = new g4(e), n = new g4(t);
2903
- return new ao([r, n]).getEncodedHex();
2982
+ return new oo([r, n]).getEncodedHex();
2904
2983
  },
2905
2984
  /**
2906
2985
  * 解析 ASN.1 der,针对 sm2 验签
@@ -3058,7 +3137,7 @@ class p2 {
3058
3137
  return a;
3059
3138
  }
3060
3139
  }
3061
- let so = class {
3140
+ let io = class {
3062
3141
  constructor(t, r, n) {
3063
3142
  this.q = t, this.a = this.fromBigInteger(r), this.b = this.fromBigInteger(n), this.infinity = new p2(this, null, null);
3064
3143
  }
@@ -3101,29 +3180,29 @@ let so = class {
3101
3180
  }
3102
3181
  }
3103
3182
  };
3104
- var io = {
3183
+ var lo = {
3105
3184
  ECPointFp: p2,
3106
- ECCurveFp: so
3185
+ ECCurveFp: io
3107
3186
  };
3108
- const { BigInteger: Pe, SecureRandom: lo } = _1, { ECCurveFp: co } = io, uo = new lo(), { curve: X2, G: ho, n: b4 } = pa();
3109
- function fo() {
3187
+ const { BigInteger: Pe, SecureRandom: co } = _1, { ECCurveFp: uo } = lo, ho = new co(), { curve: X2, G: fo, n: b4 } = pa();
3188
+ function po() {
3110
3189
  return X2;
3111
3190
  }
3112
3191
  function pa() {
3113
- const e = new Pe("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), t = new Pe("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), r = new Pe("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16), n = new co(e, t, r), s = n.decodePointHex("04" + "32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7" + "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"), u = new Pe("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16);
3192
+ const e = new Pe("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16), t = new Pe("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16), r = new Pe("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16), n = new uo(e, t, r), s = n.decodePointHex("04" + "32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7" + "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"), u = new Pe("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16);
3114
3193
  return { curve: n, G: s, n: u };
3115
3194
  }
3116
- function po(e, t, r) {
3117
- const a = (e ? new Pe(e, t, r) : new Pe(b4.bitLength(), uo)).mod(b4.subtract(Pe.ONE)).add(Pe.ONE), o = ht(a.toString(16), 64), s = ho.multiply(a), u = ht(s.getX().toBigInteger().toString(16), 64), p = ht(s.getY().toBigInteger().toString(16), 64), c = "04" + u + p;
3195
+ function _o(e, t, r) {
3196
+ const a = (e ? new Pe(e, t, r) : new Pe(b4.bitLength(), ho)).mod(b4.subtract(Pe.ONE)).add(Pe.ONE), o = ht(a.toString(16), 64), s = fo.multiply(a), u = ht(s.getX().toBigInteger().toString(16), 64), p = ht(s.getY().toBigInteger().toString(16), 64), c = "04" + u + p;
3118
3197
  return { privateKey: o, publicKey: c };
3119
3198
  }
3120
- function _o(e) {
3199
+ function vo(e) {
3121
3200
  if (e.length !== 130) throw new Error("Invalid public key to compress");
3122
3201
  const t = (e.length - 2) / 2, r = e.substr(2, t), n = new Pe(e.substr(t + 2, t), 16);
3123
3202
  let a = "03";
3124
3203
  return n.mod(new Pe("2")).equals(Pe.ZERO) && (a = "02"), a + r;
3125
3204
  }
3126
- function vo(e) {
3205
+ function xo(e) {
3127
3206
  e = unescape(encodeURIComponent(e));
3128
3207
  const t = e.length, r = [];
3129
3208
  for (let a = 0; a < t; a++)
@@ -3138,10 +3217,10 @@ function vo(e) {
3138
3217
  function ht(e, t) {
3139
3218
  return e.length >= t ? e : new Array(t - e.length + 1).join("0") + e;
3140
3219
  }
3141
- function xo(e) {
3220
+ function mo(e) {
3142
3221
  return e.map((t) => (t = t.toString(16), t.length === 1 ? "0" + t : t)).join("");
3143
3222
  }
3144
- function mo(e) {
3223
+ function go(e) {
3145
3224
  const t = [];
3146
3225
  let r = 0;
3147
3226
  for (let n = 0; n < e.length * 2; n += 2)
@@ -3157,7 +3236,7 @@ function mo(e) {
3157
3236
  throw new Error("Malformed UTF-8 data");
3158
3237
  }
3159
3238
  }
3160
- function go(e) {
3239
+ function wo(e) {
3161
3240
  const t = [];
3162
3241
  let r = e.length;
3163
3242
  r % 2 !== 0 && (e = ht(e, r + 1)), r = e.length;
@@ -3165,30 +3244,30 @@ function go(e) {
3165
3244
  t.push(parseInt(e.substr(n, 2), 16));
3166
3245
  return t;
3167
3246
  }
3168
- function wo(e) {
3247
+ function yo(e) {
3169
3248
  const t = X2.decodePointHex(e);
3170
3249
  if (!t) return !1;
3171
3250
  const r = t.getX();
3172
3251
  return t.getY().square().equals(r.multiply(r.square()).add(r.multiply(X2.a)).add(X2.b));
3173
3252
  }
3174
- function yo(e, t) {
3253
+ function Co(e, t) {
3175
3254
  const r = X2.decodePointHex(e);
3176
3255
  if (!r) return !1;
3177
3256
  const n = X2.decodePointHex(t);
3178
3257
  return n ? r.equals(n) : !1;
3179
3258
  }
3180
- var Co = {
3181
- getGlobalCurve: fo,
3259
+ var bo = {
3260
+ getGlobalCurve: po,
3182
3261
  generateEcparam: pa,
3183
- generateKeyPairHex: po,
3184
- compressPublicKeyHex: _o,
3185
- utf8ToHex: vo,
3262
+ generateKeyPairHex: _o,
3263
+ compressPublicKeyHex: vo,
3264
+ utf8ToHex: xo,
3186
3265
  leftPad: ht,
3187
- arrayToHex: xo,
3188
- arrayToUtf8: mo,
3189
- hexToArray: go,
3190
- verifyPublicKey: wo,
3191
- comparePublicKeyHex: yo
3266
+ arrayToHex: mo,
3267
+ arrayToUtf8: go,
3268
+ hexToArray: wo,
3269
+ verifyPublicKey: yo,
3270
+ comparePublicKeyHex: Co
3192
3271
  };
3193
3272
  const Te = new Uint32Array(68), I1 = new Uint32Array(64);
3194
3273
  function Ae(e, t) {
@@ -3200,10 +3279,10 @@ function B4(e, t) {
3200
3279
  for (let n = e.length - 1; n >= 0; n--) r[n] = (e[n] ^ t[n]) & 255;
3201
3280
  return r;
3202
3281
  }
3203
- function bo(e) {
3282
+ function Bo(e) {
3204
3283
  return e ^ Ae(e, 9) ^ Ae(e, 17);
3205
3284
  }
3206
- function Bo(e) {
3285
+ function Ao(e) {
3207
3286
  return e ^ Ae(e, 15) ^ Ae(e, 23);
3208
3287
  }
3209
3288
  function Zt(e) {
@@ -3225,13 +3304,13 @@ function Zt(e) {
3225
3304
  for (let z = 0; z < 16; z++)
3226
3305
  Te[z] = s.getUint32((g + z) * 4, !1);
3227
3306
  for (let z = 16; z < 68; z++)
3228
- Te[z] = Bo(Te[z - 16] ^ Te[z - 9] ^ Ae(Te[z - 3], 15)) ^ Ae(Te[z - 13], 7) ^ Te[z - 6];
3307
+ Te[z] = Ao(Te[z - 16] ^ Te[z - 9] ^ Ae(Te[z - 3], 15)) ^ Ae(Te[z - 13], 7) ^ Te[z - 6];
3229
3308
  for (let z = 0; z < 64; z++)
3230
3309
  I1[z] = Te[z] ^ Te[z + 4];
3231
3310
  const i = 2043430169, f = 2055708042;
3232
3311
  let d = p[0], _ = p[1], C = p[2], m = p[3], v = p[4], y = p[5], E = p[6], D = p[7], I, S, T, H, F;
3233
3312
  for (let z = 0; z < 64; z++)
3234
- F = z >= 0 && z <= 15 ? i : f, I = Ae(Ae(d, 12) + v + Ae(F, z), 7), S = I ^ Ae(d, 12), T = (z >= 0 && z <= 15 ? d ^ _ ^ C : d & _ | d & C | _ & C) + m + S + I1[z], H = (z >= 0 && z <= 15 ? v ^ y ^ E : v & y | ~v & E) + D + I + Te[z], m = C, C = Ae(_, 9), _ = d, d = T, D = E, E = Ae(y, 19), y = v, v = bo(H);
3313
+ F = z >= 0 && z <= 15 ? i : f, I = Ae(Ae(d, 12) + v + Ae(F, z), 7), S = I ^ Ae(d, 12), T = (z >= 0 && z <= 15 ? d ^ _ ^ C : d & _ | d & C | _ & C) + m + S + I1[z], H = (z >= 0 && z <= 15 ? v ^ y ^ E : v & y | ~v & E) + D + I + Te[z], m = C, C = Ae(_, 9), _ = d, d = T, D = E, E = Ae(y, 19), y = v, v = Bo(H);
3235
3314
  p[0] ^= d, p[1] ^= _, p[2] ^= C, p[3] ^= m, p[4] ^= v, p[5] ^= y, p[6] ^= E, p[7] ^= D;
3236
3315
  }
3237
3316
  const c = [];
@@ -3244,17 +3323,17 @@ function Zt(e) {
3244
3323
  const _t = 64, _a = new Uint8Array(_t), va = new Uint8Array(_t);
3245
3324
  for (let e = 0; e < _t; e++)
3246
3325
  _a[e] = 54, va[e] = 92;
3247
- function Ao(e, t) {
3326
+ function Eo(e, t) {
3248
3327
  for (t.length > _t && (t = Zt(t)); t.length < _t; ) t.push(0);
3249
3328
  const r = B4(t, _a), n = B4(t, va), a = Zt([...r, ...e]);
3250
3329
  return Zt([...n, ...a]);
3251
3330
  }
3252
3331
  var xa = {
3253
3332
  sm3: Zt,
3254
- hmac: Ao
3333
+ hmac: Eo
3255
3334
  };
3256
- const { BigInteger: ve } = _1, { encodeDer: Eo, decodeDer: Fo } = oo, g0 = Co, rt = xa.sm3, { G: M2, curve: ma, n: K2 } = g0.generateEcparam(), ga = 0;
3257
- function zo(e, t, r = 1) {
3335
+ const { BigInteger: ve } = _1, { encodeDer: Fo, decodeDer: zo } = so, g0 = bo, rt = xa.sm3, { G: M2, curve: ma, n: K2 } = g0.generateEcparam(), ga = 0;
3336
+ function Mo(e, t, r = 1) {
3258
3337
  e = typeof e == "string" ? g0.hexToArray(g0.utf8ToHex(e)) : Array.prototype.slice.call(e), t = g0.getGlobalCurve().decodePointHex(t);
3259
3338
  const n = g0.generateKeyPairHex(), a = new ve(n.privateKey, 16);
3260
3339
  let o = n.publicKey;
@@ -3270,7 +3349,7 @@ function zo(e, t, r = 1) {
3270
3349
  const _ = g0.arrayToHex(e);
3271
3350
  return r === ga ? o + _ + c : o + c + _;
3272
3351
  }
3273
- function Mo(e, t, r = 1, {
3352
+ function Do(e, t, r = 1, {
3274
3353
  output: n = "string"
3275
3354
  } = {}) {
3276
3355
  t = new ve(t, 16);
@@ -3286,7 +3365,7 @@ function Mo(e, t, r = 1, {
3286
3365
  i === f.length && _(), s[m] ^= f[i++] & 255;
3287
3366
  return g0.arrayToHex(rt([].concat(c, s, h))) === a.toLowerCase() ? n === "array" ? s : g0.arrayToUtf8(s) : n === "array" ? [] : "";
3288
3367
  }
3289
- function Do(e, t, {
3368
+ function So(e, t, {
3290
3369
  pointPool: r,
3291
3370
  der: n,
3292
3371
  hash: a,
@@ -3304,14 +3383,14 @@ function Do(e, t, {
3304
3383
  } while (g.equals(ve.ZERO) || g.add(h).equals(K2));
3305
3384
  i = p.add(ve.ONE).modInverse(K2).multiply(h.subtract(g.multiply(p))).mod(K2);
3306
3385
  } while (i.equals(ve.ZERO));
3307
- return n ? Eo(g, i) : g0.leftPad(g.toString(16), 64) + g0.leftPad(i.toString(16), 64);
3386
+ return n ? Fo(g, i) : g0.leftPad(g.toString(16), 64) + g0.leftPad(i.toString(16), 64);
3308
3387
  }
3309
- function So(e, t, r, { der: n, hash: a, userId: o } = {}) {
3388
+ function Ho(e, t, r, { der: n, hash: a, userId: o } = {}) {
3310
3389
  let s = typeof e == "string" ? g0.utf8ToHex(e) : g0.arrayToHex(e);
3311
3390
  a && (s = wa(s, r, o));
3312
3391
  let u, p;
3313
3392
  if (n) {
3314
- const d = Fo(t);
3393
+ const d = zo(t);
3315
3394
  u = d.r, p = d.s;
3316
3395
  } else
3317
3396
  u = new ve(t.substring(0, 64), 16), p = new ve(t.substring(64), 16);
@@ -3343,34 +3422,34 @@ function Ca() {
3343
3422
  const e = g0.generateKeyPairHex(), t = ma.decodePointHex(e.publicKey);
3344
3423
  return e.k = new ve(e.privateKey, 16), e.x1 = t.getX().toBigInteger(), e;
3345
3424
  }
3346
- var Ho = {
3425
+ var Io = {
3347
3426
  generateKeyPairHex: g0.generateKeyPairHex,
3348
3427
  compressPublicKeyHex: g0.compressPublicKeyHex,
3349
3428
  comparePublicKeyHex: g0.comparePublicKeyHex,
3350
- doEncrypt: zo,
3351
- doDecrypt: Mo,
3352
- doSignature: Do,
3353
- doVerifySignature: So,
3429
+ doEncrypt: Mo,
3430
+ doDecrypt: Do,
3431
+ doSignature: So,
3432
+ doVerifySignature: Ho,
3354
3433
  getPublicKeyFromPrivateKey: ya,
3355
3434
  getPoint: Ca,
3356
3435
  verifyPublicKey: g0.verifyPublicKey
3357
3436
  };
3358
- const { sm3: Io, hmac: Vo } = xa;
3359
- function To(e, t) {
3437
+ const { sm3: Vo, hmac: To } = xa;
3438
+ function Lo(e, t) {
3360
3439
  return e.length >= t ? e : new Array(t - e.length + 1).join("0") + e;
3361
3440
  }
3362
3441
  function A4(e) {
3363
3442
  return e.map((t) => (t = t.toString(16), t.length === 1 ? "0" + t : t)).join("");
3364
3443
  }
3365
- function Lo(e) {
3444
+ function ko(e) {
3366
3445
  const t = [];
3367
3446
  let r = e.length;
3368
- r % 2 !== 0 && (e = To(e, r + 1)), r = e.length;
3447
+ r % 2 !== 0 && (e = Lo(e, r + 1)), r = e.length;
3369
3448
  for (let n = 0; n < r; n += 2)
3370
3449
  t.push(parseInt(e.substr(n, 2), 16));
3371
3450
  return t;
3372
3451
  }
3373
- function ko(e) {
3452
+ function Po(e) {
3374
3453
  const t = [];
3375
3454
  for (let r = 0, n = e.length; r < n; r++) {
3376
3455
  const a = e.codePointAt(r);
@@ -3387,16 +3466,16 @@ function ko(e) {
3387
3466
  }
3388
3467
  return t;
3389
3468
  }
3390
- var Po = function(e, t) {
3391
- if (e = typeof e == "string" ? ko(e) : Array.prototype.slice.call(e), t) {
3469
+ var Ro = function(e, t) {
3470
+ if (e = typeof e == "string" ? Po(e) : Array.prototype.slice.call(e), t) {
3392
3471
  if ((t.mode || "hmac") !== "hmac") throw new Error("invalid mode");
3393
3472
  let n = t.key;
3394
3473
  if (!n) throw new Error("invalid key");
3395
- return n = typeof n == "string" ? Lo(n) : Array.prototype.slice.call(n), A4(Vo(e, n));
3474
+ return n = typeof n == "string" ? ko(n) : Array.prototype.slice.call(n), A4(To(e, n));
3396
3475
  }
3397
- return A4(Io(e));
3476
+ return A4(Vo(e));
3398
3477
  };
3399
- const s2 = 0, Ro = 32, E2 = 16, Ot = [
3478
+ const s2 = 0, $o = 32, E2 = 16, Ot = [
3400
3479
  214,
3401
3480
  144,
3402
3481
  233,
@@ -3693,10 +3772,10 @@ function V1(e) {
3693
3772
  t.push(parseInt(e.substr(r, 2), 16));
3694
3773
  return t;
3695
3774
  }
3696
- function $o(e) {
3775
+ function Oo(e) {
3697
3776
  return e.map((t) => (t = t.toString(16), t.length === 1 ? "0" + t : t)).join("");
3698
3777
  }
3699
- function Oo(e) {
3778
+ function No(e) {
3700
3779
  const t = [];
3701
3780
  for (let r = 0, n = e.length; r < n; r++) {
3702
3781
  const a = e.codePointAt(r);
@@ -3713,7 +3792,7 @@ function Oo(e) {
3713
3792
  }
3714
3793
  return t;
3715
3794
  }
3716
- function No(e) {
3795
+ function qo(e) {
3717
3796
  const t = [];
3718
3797
  for (let r = 0, n = e.length; r < n; r++)
3719
3798
  e[r] >= 240 && e[r] <= 247 ? (t.push(String.fromCodePoint(((e[r] & 7) << 18) + ((e[r + 1] & 63) << 12) + ((e[r + 2] & 63) << 6) + (e[r + 3] & 63))), r += 3) : e[r] >= 224 && e[r] <= 239 ? (t.push(String.fromCodePoint(((e[r] & 15) << 12) + ((e[r + 1] & 63) << 6) + (e[r + 2] & 63))), r += 2) : e[r] >= 192 && e[r] <= 223 ? (t.push(String.fromCodePoint(((e[r] & 31) << 6) + (e[r + 1] & 63))), r++) : t.push(String.fromCodePoint(e[r]));
@@ -3732,7 +3811,7 @@ function qt(e) {
3732
3811
  function Ut(e) {
3733
3812
  return e ^ Y2(e, 13) ^ Y2(e, 23);
3734
3813
  }
3735
- function qo(e, t, r) {
3814
+ function Uo(e, t, r) {
3736
3815
  const n = new Array(4), a = new Array(4);
3737
3816
  for (let o = 0; o < 4; o++)
3738
3817
  a[0] = e[4 * o] & 255, a[1] = e[4 * o + 1] & 255, a[2] = e[4 * o + 2] & 255, a[3] = e[4 * o + 3] & 255, n[o] = a[0] << 24 | a[1] << 16 | a[2] << 8 | a[3];
@@ -3741,7 +3820,7 @@ function qo(e, t, r) {
3741
3820
  for (let o = 0; o < 16; o += 4)
3742
3821
  t[o] = n[3 - o / 4] >>> 24 & 255, t[o + 1] = n[3 - o / 4] >>> 16 & 255, t[o + 2] = n[3 - o / 4] >>> 8 & 255, t[o + 3] = n[3 - o / 4] & 255;
3743
3822
  }
3744
- function Uo(e, t, r) {
3823
+ function jo(e, t, r) {
3745
3824
  const n = new Array(4), a = new Array(4);
3746
3825
  for (let o = 0; o < 4; o++)
3747
3826
  a[0] = e[0 + 4 * o] & 255, a[1] = e[1 + 4 * o] & 255, a[2] = e[2 + 4 * o] & 255, a[3] = e[3 + 4 * o] & 255, n[o] = a[0] << 24 | a[1] << 16 | a[2] << 8 | a[3];
@@ -3762,12 +3841,12 @@ function E4(e, t, r, {
3762
3841
  throw new Error("iv is invalid");
3763
3842
  if (typeof t == "string" && (t = V1(t)), t.length !== 128 / 8)
3764
3843
  throw new Error("key is invalid");
3765
- if (typeof e == "string" ? r !== s2 ? e = Oo(e) : e = V1(e) : e = [...e], (n === "pkcs#5" || n === "pkcs#7") && r !== s2) {
3844
+ if (typeof e == "string" ? r !== s2 ? e = No(e) : e = V1(e) : e = [...e], (n === "pkcs#5" || n === "pkcs#7") && r !== s2) {
3766
3845
  const i = E2 - e.length % E2;
3767
3846
  for (let f = 0; f < i; f++) e.push(i);
3768
3847
  }
3769
- const u = new Array(Ro);
3770
- Uo(t, u, r);
3848
+ const u = new Array($o);
3849
+ jo(t, u, r);
3771
3850
  const p = [];
3772
3851
  let c = o, h = e.length, g = 0;
3773
3852
  for (; h >= E2; ) {
@@ -3775,7 +3854,7 @@ function E4(e, t, r, {
3775
3854
  if (a === "cbc")
3776
3855
  for (let d = 0; d < E2; d++)
3777
3856
  r !== s2 && (i[d] ^= c[d]);
3778
- qo(i, f, u);
3857
+ Uo(i, f, u);
3779
3858
  for (let d = 0; d < E2; d++)
3780
3859
  a === "cbc" && r === s2 && (f[d] ^= c[d]), p[g + d] = f[d];
3781
3860
  a === "cbc" && (r !== s2 ? c = f : c = i), h -= E2, g += E2;
@@ -3786,9 +3865,9 @@ function E4(e, t, r, {
3786
3865
  if (p[i - d] !== f) throw new Error("padding is invalid");
3787
3866
  p.splice(i - f, f);
3788
3867
  }
3789
- return s !== "array" ? r !== s2 ? $o(p) : No(p) : p;
3868
+ return s !== "array" ? r !== s2 ? Oo(p) : qo(p) : p;
3790
3869
  }
3791
- var jo = {
3870
+ var Wo = {
3792
3871
  encrypt(e, t, r) {
3793
3872
  return E4(e, t, 1, r);
3794
3873
  },
@@ -3796,87 +3875,14 @@ var jo = {
3796
3875
  return E4(e, t, 0, r);
3797
3876
  }
3798
3877
  }, Br = {
3799
- sm2: Ho,
3800
- sm3: Po,
3801
- sm4: jo
3878
+ sm2: Io,
3879
+ sm3: Ro,
3880
+ sm4: Wo
3802
3881
  };
3803
- const Wo = "04ad5161202264bb7c201f4cc39d6fb00fed81fc2cec1b3f23ddfb933d3f32977be40e4285cff6da4bad65933777c135b95f41846363086e34624ff73b3685e84c";
3882
+ const Go = "04ad5161202264bb7c201f4cc39d6fb00fed81fc2cec1b3f23ddfb933d3f32977be40e4285cff6da4bad65933777c135b95f41846363086e34624ff73b3685e84c";
3804
3883
  function _A(e) {
3805
- return Br.sm2.doEncrypt(e, Wo);
3806
- }
3807
- class Go {
3808
- baseApiUrl() {
3809
- let t = D0.defaults.baseURL;
3810
- return t.slice(-1) === "/" && (t = t.slice(0, -1)), t;
3811
- }
3812
- /** 上传Url */
3813
- uploadUrl() {
3814
- return this.baseApiUrl() + "/v1/file/upload?tenant=" + T0().user.tenant;
3815
- }
3816
- /** Authorization */
3817
- authHeader() {
3818
- return { Authorization: "Bearer " + T0().token };
3819
- }
3820
- /**
3821
- * url 获取图片Full路径
3822
- * @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
3823
- */
3824
- imageUrl(t, r = 0, n = 0, a = "clip") {
3825
- return this.baseApiUrl() + `/v1/file/image/${a}/${r}/${n}/` + t;
3826
- }
3827
- /**
3828
- * Id 获取图片Full路径
3829
- * @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
3830
- */
3831
- imageIdUrl(t, r = 0, n = 0, a = "clip") {
3832
- return this.baseApiUrl() + "/v1/file/image_id/" + T0().user.tenant + `/${a}/${r}/${n}/` + t;
3833
- }
3834
- /** url 获取文件Full路径 */
3835
- fileUrl(t) {
3836
- return this.baseApiUrl() + "/v1/file/path/" + t;
3837
- }
3838
- /** Id 获取文件Full路径 */
3839
- fileIdUrl(t) {
3840
- return this.baseApiUrl() + "/v1/file/id/" + T0().user.tenant + t;
3841
- }
3842
- /** 文件是否存在 */
3843
- existFileHex(t, r, n) {
3844
- const a = T0().user.tenant, o = t.size;
3845
- return D0({
3846
- url: `/v1/file/exist/${a}/${o}/${r}/${n}`,
3847
- method: "get"
3848
- });
3849
- }
3850
- /** 上传文件 */
3851
- uploadBase64File(t) {
3852
- return t.tenant = T0().user.tenant, D0({
3853
- url: "/v1/file/base64upload",
3854
- method: "post",
3855
- data: t
3856
- });
3857
- }
3858
- /** 上传文件 */
3859
- uploadFileApi(t) {
3860
- const r = new FormData();
3861
- return r.append("file", t), D0({
3862
- url: "/api/v1/files",
3863
- method: "post",
3864
- data: r,
3865
- headers: {
3866
- "Content-Type": "multipart/form-data"
3867
- }
3868
- });
3869
- }
3870
- /** 删除文件 */
3871
- deleteFileApi(t) {
3872
- return D0({
3873
- url: "/api/v1/files",
3874
- method: "delete",
3875
- params: { filePath: t }
3876
- });
3877
- }
3884
+ return Br.sm2.doEncrypt(e, Go);
3878
3885
  }
3879
- const ne = new Go();
3880
3886
  class Ko {
3881
3887
  //关闭当前页签
3882
3888
  closeTagView(t, r, n) {
@@ -10877,7 +10883,7 @@ var L1 = { exports: {} };
10877
10883
  const Hm = {}, Im = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10878
10884
  __proto__: null,
10879
10885
  default: Hm
10880
- }, Symbol.toStringTag, { value: "Module" })), Vm = /* @__PURE__ */ ro(Im);
10886
+ }, Symbol.toStringTag, { value: "Module" })), Vm = /* @__PURE__ */ no(Im);
10881
10887
  var z4;
10882
10888
  function b0() {
10883
10889
  return z4 || (z4 = 1, function(e, t) {
@@ -21345,9 +21351,9 @@ const pB = l2, _B = ["src"], vB = /* @__PURE__ */ B({
21345
21351
  if (console.log(m), !m || m.status !== "ready") return;
21346
21352
  const v = m.size / 1024 / 1024 < 2, y = m.size / 1024 / 1024 < 10;
21347
21353
  if (["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(m.raw.type) && !v)
21348
- return C(m, n("unionFiles.imageLtRequired"));
21354
+ return C(m, n("file.imageLtRequired"));
21349
21355
  if (!y)
21350
- return C(m, n("unionFiles.fileLtRequired"));
21356
+ return C(m, n("file.fileLtRequired"));
21351
21357
  }, i = (m, v) => {
21352
21358
  console.log(m, v), m.fileId && (wt({
21353
21359
  message: n("common.submitSuccess"),
@@ -21365,7 +21371,7 @@ const pB = l2, _B = ["src"], vB = /* @__PURE__ */ B({
21365
21371
  s.value && s.value.clearFiles();
21366
21372
  } });
21367
21373
  const C = async (m, v) => (console.log(m, v), new Promise((y) => {
21368
- J2.confirm(v, n("unionFiles.warning"), {
21374
+ J2.confirm(v, n("file.warning"), {
21369
21375
  confirmButtonText: n("common.confirm"),
21370
21376
  cancelButtonText: n("common.cancel"),
21371
21377
  type: "warning"
@@ -21458,7 +21464,7 @@ const pB = l2, _B = ["src"], vB = /* @__PURE__ */ B({
21458
21464
  p.value = d.url, u.value = !0;
21459
21465
  }, i = (d) => {
21460
21466
  const _ = d.size / 1024 / 1024 < 2;
21461
- ["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(d.type) && !_ && pB.confirm(r("unionFiles.imageLtRequired"), r("unionFiles.warning"), {
21467
+ ["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(d.type) && !_ && pB.confirm(r("file.imageLtRequired"), r("file.warning"), {
21462
21468
  confirmButtonText: r("common.confirm"),
21463
21469
  cancelButtonText: r("common.cancel"),
21464
21470
  type: "warning"
@@ -21514,7 +21520,7 @@ const pB = l2, _B = ["src"], vB = /* @__PURE__ */ B({
21514
21520
  ], 64);
21515
21521
  };
21516
21522
  }
21517
- }), bB = /* @__PURE__ */ jr(CB, [["__scopeId", "data-v-5efda2c9"]]), BB = { class: "el-upload__text" }, AB = { style: { color: "var(--el-color-primary)" } }, EB = { class: "dialog-footer" }, Un = /* @__PURE__ */ B({
21523
+ }), bB = /* @__PURE__ */ jr(CB, [["__scopeId", "data-v-1c5243a3"]]), BB = { class: "el-upload__text" }, AB = { style: { color: "var(--el-color-primary)" } }, EB = { class: "dialog-footer" }, Un = /* @__PURE__ */ B({
21518
21524
  __name: "index",
21519
21525
  props: {
21520
21526
  uploadVisible: {
@@ -21766,7 +21772,7 @@ export {
21766
21772
  zB as _,
21767
21773
  xA as a,
21768
21774
  cA as a0,
21769
- to as a1,
21775
+ ro as a1,
21770
21776
  dA as a2,
21771
21777
  fA as a3,
21772
21778
  uA as a4,