hflvloader 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/hflvloader.es.js +1190 -1143
  2. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-56b0e3e4]{position:absolute}.canvas-container[data-v-c471d52f]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-c471d52f]{position:relative;margin:auto}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog{padding:0!important}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog .el-dialog__header{display:none!important;padding-bottom:0!important}.custom-omit-input[data-v-956a5a3a]{width:100%}.custom-omit-input[data-v-956a5a3a] .el-input-group__append{padding:0}.group>div[data-v-20de9881]{position:relative;width:100%;height:100%}.group>div .component[data-v-20de9881]{position:absolute}.panel-area[data-v-55cea49e]{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.panel-area .panel-condition[data-v-55cea49e]{height:50px;flex-shrink:0;min-height:50px}.panel-area .panel-table[data-v-55cea49e]{flex:1;overflow:hidden;min-height:100px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { withDirectives as De, createElementBlock as W, openBlock as A, createBlock as $, resolveDynamicComponent as be, normalizeStyle as Se, vShow as ot, computed as O, reactive as he, onMounted as Ce, watch as Me, ref as R, createElementVNode as le, Fragment as Ne, renderList as He, provide as oe, defineComponent as Yt, normalizeClass as rt, resolveComponent as H, withCtx as F, createVNode as T, mergeProps as Xt, createSlots as Zt, createCommentVNode as We, toDisplayString as en, createTextVNode as j, renderSlot as tn, inject as ge, onBeforeMount as Je, onBeforeUnmount as Ge, onUnmounted as $e, resolveDirective as nn, withKeys as on } from "vue";
3
- import rn from "json5";
4
- import ln from "js-md5";
5
- import { defineStore as sn } from "pinia";
6
- import Ie from "js-cookie";
7
- import { ElMessage as an, ElNotification as cn, ElLoading as un, ElMessageBox as lt } from "element-plus";
2
+ import { withDirectives as Te, createElementBlock as W, openBlock as A, createBlock as Q, resolveDynamicComponent as Me, normalizeStyle as Oe, vShow as ot, computed as V, reactive as pe, onMounted as Ve, watch as be, ref as T, createElementVNode as re, Fragment as Ke, renderList as He, provide as oe, defineComponent as en, normalizeClass as rt, resolveComponent as K, withCtx as F, createVNode as E, mergeProps as tn, createSlots as nn, createCommentVNode as We, toDisplayString as on, createTextVNode as j, renderSlot as rn, inject as ge, onBeforeMount as Je, onBeforeUnmount as Ge, onUnmounted as $e, resolveDirective as ln, withKeys as sn } from "vue";
3
+ import an from "json5";
4
+ import cn from "js-md5";
5
+ import { defineStore as un } from "pinia";
6
+ import Re from "js-cookie";
7
+ import { ElMessage as fn, ElNotification as dn, ElLoading as pn, ElMessageBox as lt } from "element-plus";
8
8
  import { useRouter as Qe, useRoute as Ye } from "vue-router";
9
9
  class B {
10
10
  static SPECIAL_CHARS = ["0", "#", ".", "-", ",", "E", "%", "¤", "‰", "'"];
@@ -21,8 +21,8 @@ class B {
21
21
  return;
22
22
  }
23
23
  let r = !1;
24
- for (let t = 0; t < o.length; t++) {
25
- const u = o.charAt(t);
24
+ for (let n = 0; n < o.length; n++) {
25
+ const u = o.charAt(n);
26
26
  if (u === "'") {
27
27
  r = !r;
28
28
  continue;
@@ -50,12 +50,12 @@ class B {
50
50
  isCurrency: !1,
51
51
  isScientific: !1,
52
52
  groupingSize: 3
53
- }, t = o.indexOf("%");
53
+ }, n = o.indexOf("%");
54
54
  o.indexOf("¤");
55
- const u = o.indexOf("‰"), a = o.indexOf("E"), c = o.indexOf("."), p = o.indexOf(",");
56
- if (t !== -1 && (r.isPercent = !0, r.multiplier = 100, o = o.replace("%", "")), u !== -1 && (r.multiplier = 1e3, o = o.replace("‰", "")), a !== -1 && (r.isScientific = !0, o = o.substring(0, a)), p !== -1 && (r.useGrouping = !0), c !== -1) {
57
- const i = o.substring(0, c), g = o.substring(c + 1), y = (g.match(/0/g) || []).length;
58
- r.minFractionDigits = y, r.maxFractionDigits = g.length, r.decimalPart = g, r.minIntegerDigits = (i.match(/0/g) || []).length, r.integerPart = i;
55
+ const u = o.indexOf("‰"), s = o.indexOf("E"), c = o.indexOf("."), d = o.indexOf(",");
56
+ if (n !== -1 && (r.isPercent = !0, r.multiplier = 100, o = o.replace("%", "")), u !== -1 && (r.multiplier = 1e3, o = o.replace("‰", "")), s !== -1 && (r.isScientific = !0, o = o.substring(0, s)), d !== -1 && (r.useGrouping = !0), c !== -1) {
57
+ const l = o.substring(0, c), p = o.substring(c + 1), _ = (p.match(/0/g) || []).length;
58
+ r.minFractionDigits = _, r.maxFractionDigits = p.length, r.decimalPart = p, r.minIntegerDigits = (l.match(/0/g) || []).length, r.integerPart = l;
59
59
  } else
60
60
  r.minIntegerDigits = (o.match(/0/g) || []).length, r.integerPart = o;
61
61
  return r;
@@ -72,11 +72,11 @@ class B {
72
72
  return o.toString();
73
73
  this._parsed || (this._parsed = this._parsePattern(this.pattern));
74
74
  const r = this._parsed;
75
- let t = o * r.multiplier;
76
- const u = t < 0;
77
- t = Math.abs(t);
78
- let a = this._formatNumber(t, r);
79
- return u && (a = "-" + a), r.isPercent ? a += "%" : r.multiplier === 1e3 && (a += "‰"), a;
75
+ let n = o * r.multiplier;
76
+ const u = n < 0;
77
+ n = Math.abs(n);
78
+ let s = this._formatNumber(n, r);
79
+ return u && (s = "-" + s), r.isPercent ? s += "%" : r.multiplier === 1e3 && (s += "‰"), s;
80
80
  }
81
81
  /**
82
82
  * 格式化核心数字部分
@@ -84,8 +84,8 @@ class B {
84
84
  */
85
85
  _formatNumber(o, r) {
86
86
  const u = o.toFixed(r.maxFractionDigits).split(".");
87
- let a = u[0], c = u[1] || "";
88
- return c = this._formatDecimal(c, r), a = this._formatInteger(a, r), c ? a + "." + c : r.minFractionDigits > 0 ? a + "." + "0".repeat(r.minFractionDigits) : a;
87
+ let s = u[0], c = u[1] || "";
88
+ return c = this._formatDecimal(c, r), s = this._formatInteger(s, r), c ? s + "." + c : r.minFractionDigits > 0 ? s + "." + "0".repeat(r.minFractionDigits) : s;
89
89
  }
90
90
  /**
91
91
  * 格式化整数部分
@@ -112,9 +112,9 @@ class B {
112
112
  for (o = o.substring(0, r.maxFractionDigits); o.length < r.minFractionDigits; )
113
113
  o += "0";
114
114
  if (o.length > r.minFractionDigits) {
115
- const t = o.replace(/0+$/, "");
116
- if (t.length >= r.minFractionDigits)
117
- return t;
115
+ const n = o.replace(/0+$/, "");
116
+ if (n.length >= r.minFractionDigits)
117
+ return n;
118
118
  }
119
119
  return o;
120
120
  }
@@ -123,19 +123,19 @@ class B {
123
123
  */
124
124
  formatSimple(o, r = {}) {
125
125
  const {
126
- decimals: t = 2,
126
+ decimals: n = 2,
127
127
  useGrouping: u = !0,
128
- isPercent: a = !1
128
+ isPercent: s = !1
129
129
  } = r;
130
130
  let c = o;
131
- a && (c *= 100);
132
- const p = Math.pow(10, t);
133
- c = Math.round(c * p) / p;
134
- let [i, g = ""] = c.toFixed(t).split(".");
135
- const y = i.charAt(0) === "-";
136
- y && (i = i.substring(1)), u && (i = i.replace(/\B(?=(\d{3})+(?!\d))/g, ","));
137
- let h = g ? `${i}.${g}` : i;
138
- return y && (h = `-${h}`), a && (h += "%"), h;
131
+ s && (c *= 100);
132
+ const d = Math.pow(10, n);
133
+ c = Math.round(c * d) / d;
134
+ let [l, p = ""] = c.toFixed(n).split(".");
135
+ const _ = l.charAt(0) === "-";
136
+ _ && (l = l.substring(1)), u && (l = l.replace(/\B(?=(\d{3})+(?!\d))/g, ","));
137
+ let y = p ? `${l}.${p}` : l;
138
+ return _ && (y = `-${y}`), s && (y += "%"), y;
139
139
  }
140
140
  // ==================== 静态方法 ====================
141
141
  /**
@@ -145,8 +145,8 @@ class B {
145
145
  * @returns {string} 格式化结果
146
146
  */
147
147
  static format(o, r) {
148
- const t = new B();
149
- return t.applyPattern(r), t.format(o);
148
+ const n = new B();
149
+ return n.applyPattern(r), n.format(o);
150
150
  }
151
151
  /**
152
152
  * 格式化整数
@@ -155,8 +155,8 @@ class B {
155
155
  * @returns {string} 格式化结果
156
156
  */
157
157
  static formatInteger(o, r = !0) {
158
- const t = r ? "#,##0" : "0";
159
- return B.format(o, t);
158
+ const n = r ? "#,##0" : "0";
159
+ return B.format(o, n);
160
160
  }
161
161
  /**
162
162
  * 格式化小数
@@ -166,9 +166,9 @@ class B {
166
166
  * @param {boolean} useGrouping - 是否使用千位分隔符
167
167
  * @returns {string} 格式化结果
168
168
  */
169
- static formatDecimal(o, r = 0, t = 3, u = !0) {
170
- const a = u ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(t - r);
171
- return B.format(o, `${a}.${c}`);
169
+ static formatDecimal(o, r = 0, n = 3, u = !0) {
170
+ const s = u ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(n - r);
171
+ return B.format(o, `${s}.${c}`);
172
172
  }
173
173
  /**
174
174
  * 格式化百分比
@@ -177,9 +177,9 @@ class B {
177
177
  * @param {boolean} useGrouping - 是否使用千位分隔符
178
178
  * @returns {string} 格式化结果
179
179
  */
180
- static formatPercent(o, r = 2, t = !0) {
181
- const u = t ? "#,##0" : "0", a = "0".repeat(r);
182
- return B.format(o, `${u}.${a}%`);
180
+ static formatPercent(o, r = 2, n = !0) {
181
+ const u = n ? "#,##0" : "0", s = "0".repeat(r);
182
+ return B.format(o, `${u}.${s}%`);
183
183
  }
184
184
  /**
185
185
  * 格式化货币
@@ -189,9 +189,9 @@ class B {
189
189
  * @param {string} currencySymbol - 货币符号,默认¥
190
190
  * @returns {string} 格式化结果
191
191
  */
192
- static formatCurrency(o, r = 2, t = !0, u = "¥") {
193
- const a = t ? "#,##0" : "0", c = "0".repeat(r);
194
- return B.format(o, `${u}${a}.${c}`);
192
+ static formatCurrency(o, r = 2, n = !0, u = "¥") {
193
+ const s = n ? "#,##0" : "0", c = "0".repeat(r);
194
+ return B.format(o, `${u}${s}.${c}`);
195
195
  }
196
196
  /**
197
197
  * 解析格式化模式并验证
@@ -231,9 +231,9 @@ class B {
231
231
  * @param {number} maxDecimals - 最大小数位数
232
232
  * @returns {NumberFormat} 格式化器实例
233
233
  */
234
- static getNumberInstance(o = !0, r = 0, t = 3) {
235
- const u = new B(), a = o ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(t - r);
236
- return u.applyPattern(`${a}.${c}`), u;
234
+ static getNumberInstance(o = !0, r = 0, n = 3) {
235
+ const u = new B(), s = o ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(n - r);
236
+ return u.applyPattern(`${s}.${c}`), u;
237
237
  }
238
238
  /**
239
239
  * 创建货币格式化器
@@ -242,9 +242,9 @@ class B {
242
242
  * @param {boolean} useGrouping - 是否使用千位分隔符
243
243
  * @returns {NumberFormat} 格式化器实例
244
244
  */
245
- static getCurrencyInstance(o = "¥", r = 2, t = !0) {
246
- const u = new B(), a = t ? "#,##0" : "0", c = "0".repeat(r);
247
- return u.applyPattern(`${o}${a}.${c}`), u;
245
+ static getCurrencyInstance(o = "¥", r = 2, n = !0) {
246
+ const u = new B(), s = n ? "#,##0" : "0", c = "0".repeat(r);
247
+ return u.applyPattern(`${o}${s}.${c}`), u;
248
248
  }
249
249
  /**
250
250
  * 创建百分比格式化器
@@ -253,8 +253,8 @@ class B {
253
253
  * @returns {NumberFormat} 格式化器实例
254
254
  */
255
255
  static getPercentInstance(o = 2, r = !0) {
256
- const t = new B(), u = r ? "#,##0" : "0", a = "0".repeat(o);
257
- return t.applyPattern(`${u}.${a}%`), t;
256
+ const n = new B(), u = r ? "#,##0" : "0", s = "0".repeat(o);
257
+ return n.applyPattern(`${u}.${s}%`), n;
258
258
  }
259
259
  /**
260
260
  * 创建科学计数法格式化器
@@ -283,10 +283,10 @@ class B {
283
283
  * @param {boolean} round - 是否四舍五入
284
284
  * @returns {string} 格式化结果
285
285
  */
286
- static toFixed(o, r = 2, t = !0) {
286
+ static toFixed(o, r = 2, n = !0) {
287
287
  if (typeof o != "number" || isNaN(o))
288
288
  return o.toString();
289
- if (t)
289
+ if (n)
290
290
  return o.toFixed(r);
291
291
  {
292
292
  const u = Math.pow(10, r);
@@ -301,264 +301,264 @@ class B {
301
301
  */
302
302
  static formatFileSize(o, r = 2) {
303
303
  if (o === 0) return "0 Bytes";
304
- const t = 1024, u = r < 0 ? 0 : r, a = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], c = Math.floor(Math.log(o) / Math.log(t));
305
- return parseFloat((o / Math.pow(t, c)).toFixed(u)) + " " + a[c];
304
+ const n = 1024, u = r < 0 ? 0 : r, s = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], c = Math.floor(Math.log(o) / Math.log(n));
305
+ return parseFloat((o / Math.pow(n, c)).toFixed(u)) + " " + s[c];
306
306
  }
307
307
  }
308
308
  B.commonNF = new B();
309
309
  (function() {
310
- const n = () => {
311
- console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.12", "color: #2ecc71;"), console.log("%c编译日期: 2026/3/8 17:39:23", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
310
+ const t = () => {
311
+ console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.13", "color: #2ecc71;"), console.log("%c编译日期: 2026/3/11 16:27:09", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
312
312
  };
313
313
  if (typeof window < "u") {
314
- window._copyright_hflvloader = n;
314
+ window._copyright_hflvloader = t;
315
315
  try {
316
316
  Object.defineProperty(window, _copyright_hflvloader, {
317
- value: n,
317
+ value: t,
318
318
  writable: !1,
319
319
  configurable: !1,
320
320
  enumerable: !1
321
321
  });
322
322
  } catch {
323
- window._copyright_hflvloader = n;
323
+ window._copyright_hflvloader = t;
324
324
  }
325
325
  }
326
- n();
326
+ t();
327
327
  })();
328
- function v(n) {
329
- return !!(n && n != "");
328
+ function g(t) {
329
+ return !!(t && t != "");
330
330
  }
331
- function ae(n) {
332
- return !isNaN(parseFloat(n)) && isFinite(n);
331
+ function se(t) {
332
+ return !isNaN(parseFloat(t)) && isFinite(t);
333
333
  }
334
- function it(n) {
335
- return n && Object.prototype.toString.call(n) === "[object Date]" && !isNaN(n);
334
+ function it(t) {
335
+ return t && Object.prototype.toString.call(t) === "[object Date]" && !isNaN(t);
336
336
  }
337
- function q(n) {
338
- return typeof Array.isArray > "u" ? Object.prototype.toString.call(n) === "[object Array]" : Array.isArray(n);
337
+ function q(t) {
338
+ return typeof Array.isArray > "u" ? Object.prototype.toString.call(t) === "[object Array]" : Array.isArray(t);
339
339
  }
340
- function Pe(n) {
341
- return n == null;
340
+ function _e(t) {
341
+ return t == null;
342
342
  }
343
- function fn(n) {
344
- return !!(n || n === 0);
343
+ function mn(t) {
344
+ return !!(t || t === 0);
345
345
  }
346
- function re(n) {
347
- return n instanceof Object && n !== null;
346
+ function ee(t) {
347
+ return t instanceof Object && t !== null;
348
348
  }
349
- function pn(n) {
350
- return Object.keys(n).length === 0;
349
+ function hn(t) {
350
+ return Object.keys(t).length === 0;
351
351
  }
352
- function U(n) {
353
- return !!(n && typeof n == "function");
352
+ function U(t) {
353
+ return !!(t && typeof t == "function");
354
354
  }
355
- function st(n) {
356
- return n && n.__v_isRef && !!n.effect;
355
+ function st(t) {
356
+ return t && t.__v_isRef && !!t.effect;
357
357
  }
358
- function Le(n) {
359
- return typeof n == "string" || n instanceof String;
358
+ function ve(t) {
359
+ return typeof t == "string" || t instanceof String;
360
360
  }
361
- function at(n, o = {}) {
362
- if (Le(n) && v(n))
361
+ function at(t, o = {}) {
362
+ if (ve(t) && g(t))
363
363
  try {
364
- return rn.parse(n);
364
+ return an.parse(t);
365
365
  } catch (r) {
366
366
  return console.warn("JSON 解析错误:", r), o;
367
367
  }
368
368
  else
369
- return re(n) ? n : o;
369
+ return ee(t) ? t : o;
370
370
  }
371
- function xe(n) {
372
- return Le(n) ? n : re(n) ? JSON.stringify(n, null, 2) : "";
371
+ function Pe(t) {
372
+ return ve(t) ? t : ee(t) ? JSON.stringify(t, null, 2) : "";
373
373
  }
374
- function me(n) {
375
- if (typeof n == "object") {
376
- const o = Array.isArray(n) ? [] : {};
377
- for (const r in n)
378
- typeof n[r] == "object" ? o[r] = me(n[r]) : o[r] = n[r];
374
+ function ye(t) {
375
+ if (typeof t == "object") {
376
+ const o = Array.isArray(t) ? [] : {};
377
+ for (const r in t)
378
+ typeof t[r] == "object" ? o[r] = ye(t[r]) : o[r] = t[r];
379
379
  return o;
380
380
  }
381
- return n;
381
+ return t;
382
382
  }
383
- function ct(n, o) {
383
+ function ct(t, o) {
384
384
  for (const r in o)
385
- o[r] instanceof Object && n[r] && Object.assign(o[r], ct(n[r], o[r]));
386
- return { ...n, ...o };
385
+ o[r] instanceof Object && t[r] && Object.assign(o[r], ct(t[r], o[r]));
386
+ return { ...t, ...o };
387
387
  }
388
- function ut(n, o) {
389
- if (n) {
390
- let r = n.getFullYear(), t = n.getMonth() + 1, u = n.getDate(), a = n.getHours(), c = n.getMinutes(), p = n.getSeconds(), i = o;
391
- return i = i.replace("yyyy", r), i.indexOf("MM") >= 0 ? t >= 10 ? i = i.replace("MM", t) : i = i.replace("MM", "0" + t) : i = i.replace("M", t), i.indexOf("dd") >= 0 ? u >= 10 ? i = i.replace("dd", u) : i = i.replace("dd", "0" + u) : i = i.replace("d", u), i.indexOf("HH") >= 0 ? a >= 10 ? i = i.replace("HH", a) : i = i.replace("HH", "0" + a) : i = i.replace("H", a), i.indexOf("mm") >= 0 ? c >= 10 ? i = i.replace("mm", c) : i = i.replace("mm", "0" + c) : i = i.replace("m", c), i.indexOf("ss") >= 0 ? p >= 10 ? i = i.replace("ss", p) : i = i.replace("ss", "0" + p) : i = i.replace("s", p), i;
388
+ function ut(t, o) {
389
+ if (t) {
390
+ let r = t.getFullYear(), n = t.getMonth() + 1, u = t.getDate(), s = t.getHours(), c = t.getMinutes(), d = t.getSeconds(), l = o;
391
+ return l = l.replace("yyyy", r), l.indexOf("MM") >= 0 ? n >= 10 ? l = l.replace("MM", n) : l = l.replace("MM", "0" + n) : l = l.replace("M", n), l.indexOf("dd") >= 0 ? u >= 10 ? l = l.replace("dd", u) : l = l.replace("dd", "0" + u) : l = l.replace("d", u), l.indexOf("HH") >= 0 ? s >= 10 ? l = l.replace("HH", s) : l = l.replace("HH", "0" + s) : l = l.replace("H", s), l.indexOf("mm") >= 0 ? c >= 10 ? l = l.replace("mm", c) : l = l.replace("mm", "0" + c) : l = l.replace("m", c), l.indexOf("ss") >= 0 ? d >= 10 ? l = l.replace("ss", d) : l = l.replace("ss", "0" + d) : l = l.replace("s", d), l;
392
392
  }
393
393
  return "";
394
394
  }
395
- function ft(n) {
396
- if (n) {
397
- if (it(n))
398
- return n;
399
- if (ae(n)) {
400
- let o = /* @__PURE__ */ new Date(), r = parseInt(n);
395
+ function ft(t) {
396
+ if (t) {
397
+ if (it(t))
398
+ return t;
399
+ if (se(t)) {
400
+ let o = /* @__PURE__ */ new Date(), r = parseInt(t);
401
401
  return r < 9999999999 && (r = r * 1e3), o.setTime(r), o;
402
402
  } else
403
403
  try {
404
- return new Date(n);
404
+ return new Date(t);
405
405
  } catch {
406
406
  }
407
407
  }
408
408
  return null;
409
409
  }
410
- function dn(n, o = 0) {
411
- if (n) {
412
- let r = n.getDay(), t = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], u = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
413
- return o == 1 ? t[r] : o == 2 ? u[r] : r;
410
+ function gn(t, o = 0) {
411
+ if (t) {
412
+ let r = t.getDay(), n = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], u = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
413
+ return o == 1 ? n[r] : o == 2 ? u[r] : r;
414
414
  }
415
415
  return null;
416
416
  }
417
- function gn(n) {
417
+ function yn(t) {
418
418
  const o = document.createElement("textarea");
419
- o.value = n, document.body.appendChild(o), o.select();
419
+ o.value = t, document.body.appendChild(o), o.select();
420
420
  const r = document.execCommand("copy");
421
421
  return document.body.removeChild(o), r;
422
422
  }
423
- async function Ee(n) {
423
+ async function Ae(t) {
424
424
  try {
425
- return navigator.clipboard ? (await navigator.clipboard.writeText(n), !0) : !!gn(n);
425
+ return navigator.clipboard ? (await navigator.clipboard.writeText(t), !0) : !!yn(t);
426
426
  } catch (o) {
427
427
  return console.error("无法复制内容", o), !1;
428
428
  }
429
429
  }
430
- async function mn() {
430
+ async function _n() {
431
431
  try {
432
432
  return navigator.clipboard ? await navigator.clipboard.readText() : null;
433
- } catch (n) {
434
- return console.error("无法读取黏贴版内容", n), null;
433
+ } catch (t) {
434
+ return console.error("无法读取黏贴版内容", t), null;
435
435
  }
436
436
  }
437
- function hn(n, o) {
438
- return ae(n) ? n : o;
437
+ function vn(t, o) {
438
+ return se(t) ? t : o;
439
439
  }
440
- function Te(n, o) {
441
- return o.split(".").reduce((r, t) => r && r[t], n);
440
+ function Ie(t, o) {
441
+ return o.split(".").reduce((r, n) => r && r[n], t);
442
442
  }
443
- function Re(n, o) {
444
- if (!n || typeof n != "object" || typeof o != "string" || !o)
443
+ function De(t, o) {
444
+ if (!t || typeof t != "object" || typeof o != "string" || !o)
445
445
  return !1;
446
446
  const r = o.split(".");
447
- let t = n;
447
+ let n = t;
448
448
  for (const u of r)
449
- if (t && typeof t == "object" && t.hasOwnProperty(u))
450
- t = t[u];
449
+ if (n && typeof n == "object" && n.hasOwnProperty(u))
450
+ n = n[u];
451
451
  else
452
452
  return !1;
453
453
  return !0;
454
454
  }
455
- function pt() {
455
+ function dt() {
456
456
  if (typeof crypto < "u" && crypto.randomUUID)
457
457
  return crypto.randomUUID();
458
458
  if (typeof crypto < "u" && crypto.getRandomValues) {
459
- const n = new Uint8Array(16);
460
- return crypto.getRandomValues(n), n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Array.from(n).map((o, r) => [4, 6, 8, 10].includes(r) ? "-" + o.toString(16).padStart(2, "0") : o.toString(16).padStart(2, "0")).join("");
459
+ const t = new Uint8Array(16);
460
+ return crypto.getRandomValues(t), t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, Array.from(t).map((o, r) => [4, 6, 8, 10].includes(r) ? "-" + o.toString(16).padStart(2, "0") : o.toString(16).padStart(2, "0")).join("");
461
461
  }
462
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(n) {
462
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
463
463
  const o = Math.random() * 16 | 0;
464
- return (n === "x" ? o : o & 3 | 8).toString(16);
464
+ return (t === "x" ? o : o & 3 | 8).toString(16);
465
465
  });
466
466
  }
467
- function yn(n, o = {}, r) {
467
+ function Cn(t, o = {}, r) {
468
468
  try {
469
- let t = n.toString().trim();
470
- return t.indexOf("function") < 0 && (t = "function(param){" + t + "}"), new Function(`{return ${t}}`)()(o);
471
- } catch (t) {
472
- return console.error("执行自定义数时出错:", t), r;
469
+ let n = t.toString().trim();
470
+ return n.indexOf("function") < 0 && (n = "function(param){" + n + "}"), new Function(`{return ${n}}`)()(o);
471
+ } catch (n) {
472
+ return console.error("执行自定义数时出错:", n), r;
473
473
  }
474
474
  }
475
- function dt(n) {
476
- return v(n) ? ln(n) : "";
475
+ function pt(t) {
476
+ return g(t) ? cn(t) : "";
477
477
  }
478
- function X(n, ...o) {
478
+ function $(t, ...o) {
479
479
  if (!window.hflvloader_debug) return;
480
480
  const r = {
481
481
  debug: ["%c[DEBUG]", "color: #4CAF50; font-weight: bold"],
482
482
  info: ["%c[INFO]", "color: #2196F3; font-weight: bold"],
483
483
  warn: ["%c[WARN]", "color: #FF9800; font-weight: bold"],
484
484
  error: ["%c[ERROR]", "color: #F44336; font-weight: bold"]
485
- }, t = r[n] || r.debug;
486
- switch (n) {
485
+ }, n = r[t] || r.debug;
486
+ switch (t) {
487
487
  case "debug":
488
- console.debug(t[0], t[1], ...o);
488
+ console.debug(n[0], n[1], ...o);
489
489
  break;
490
490
  case "info":
491
- console.info(t[0], t[1], ...o);
491
+ console.info(n[0], n[1], ...o);
492
492
  break;
493
493
  case "warn":
494
- console.warn(t[0], t[1], ...o);
494
+ console.warn(n[0], n[1], ...o);
495
495
  break;
496
496
  case "error":
497
- console.error(t[0], t[1], ...o);
497
+ console.error(n[0], n[1], ...o);
498
498
  break;
499
499
  default:
500
- console.log(t[0], t[1], ...o);
500
+ console.log(n[0], n[1], ...o);
501
501
  }
502
502
  }
503
- function _n(n, o = 0) {
504
- if (typeof n != "number" || isNaN(n))
503
+ function wn(t, o = 0) {
504
+ if (typeof t != "number" || isNaN(t))
505
505
  return NaN;
506
- const t = 10 * Math.max(0, Math.floor(Number(o) || 0));
507
- return Math.round(n * t) / t;
506
+ const n = 10 * Math.max(0, Math.floor(Number(o) || 0));
507
+ return Math.round(t * n) / n;
508
508
  }
509
- function vn(n) {
510
- return (Math.floor(n) & 1) === 0;
509
+ function bn(t) {
510
+ return (Math.floor(t) & 1) === 0;
511
511
  }
512
- function wn(n, o = 0, r = 3, t = !1) {
513
- return ae(n) ? B.formatDecimal(Number(n), o, r, t) : n;
512
+ function xn(t, o = 0, r = 3, n = !1) {
513
+ return se(t) ? B.formatDecimal(Number(t), o, r, n) : t;
514
514
  }
515
- const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
515
+ const mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
516
516
  __proto__: null,
517
- consolePrint: X,
518
- copyToClipboard: Ee,
519
- deepCopy: me,
517
+ consolePrint: $,
518
+ copyToClipboard: Ae,
519
+ deepCopy: ye,
520
520
  deepMerge: ct,
521
- doMD5: dt,
522
- execCustomFunction: yn,
521
+ doMD5: pt,
522
+ execCustomFunction: Cn,
523
523
  formatDate: ut,
524
- formatNum: wn,
525
- generateSecureUUID: pt,
524
+ formatNum: xn,
525
+ generateSecureUUID: dt,
526
526
  getDate: ft,
527
527
  getJsonObject: at,
528
- getValByDefault: hn,
529
- getValueByPath: Te,
530
- getWeek: dn,
531
- hasOwnPathInObject: Re,
528
+ getValByDefault: vn,
529
+ getValueByPath: Ie,
530
+ getWeek: gn,
531
+ hasOwnPathInObject: De,
532
532
  isArray: q,
533
533
  isComputed: st,
534
534
  isDate: it,
535
- isEmptyObject: pn,
536
- isEven: vn,
535
+ isEmptyObject: hn,
536
+ isEven: bn,
537
537
  isFunction: U,
538
- isNotEmpty: v,
539
- isNullOrUndefined: Pe,
540
- isNumber: ae,
541
- isObject: re,
542
- isString: Le,
543
- isValid: fn,
544
- keepDecimalCalc: _n,
545
- pasteFromClipboard: mn,
546
- toJsonStr: xe
547
- }, Symbol.toStringTag, { value: "Module" })), xn = ["width", "height", "scale"];
548
- function Xe(n) {
538
+ isNotEmpty: g,
539
+ isNullOrUndefined: _e,
540
+ isNumber: se,
541
+ isObject: ee,
542
+ isString: ve,
543
+ isValid: mn,
544
+ keepDecimalCalc: wn,
545
+ pasteFromClipboard: _n,
546
+ toJsonStr: Pe
547
+ }, Symbol.toStringTag, { value: "Module" })), Sn = ["width", "height", "scale"];
548
+ function Xe(t) {
549
549
  const o = {};
550
- return Object.keys(n).filter((r) => !xn.includes(r)).forEach((r) => {
551
- r === "fontSize" ? o[r] += "px" : r === "backgroundImage" && v(n[r]) ? o["background-image"] = "url(" + n[r] + ")" : r === "backgroundRepeat" ? o["background-repeat"] = n[r] : r === "backgroundSize" ? o["background-size"] = n[r] : r === "backgroundPosition" ? o["background-position"] = n[r] : o[r] = n[r];
550
+ return Object.keys(t).filter((r) => !Sn.includes(r)).forEach((r) => {
551
+ r === "fontSize" ? o[r] += "px" : r === "backgroundImage" && g(t[r]) ? o["background-image"] = "url(" + t[r] + ")" : r === "backgroundRepeat" ? o["background-repeat"] = t[r] : r === "backgroundSize" ? o["background-size"] = t[r] : r === "backgroundPosition" ? o["background-position"] = t[r] : o[r] = t[r];
552
552
  }), o;
553
553
  }
554
- const gt = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
555
- function mt(n, o = []) {
554
+ const mt = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
555
+ function ht(t, o = []) {
556
556
  const r = {};
557
- return Object.keys(n).forEach((t) => {
558
- o.includes(t) || (t != "rotate" ? n[t] !== "" && (r[t] = n[t], gt.includes(t) && (r[t] += "px")) : r.transform = `${t}(${n[t]}deg)`);
557
+ return Object.keys(t).forEach((n) => {
558
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (r[n] = t[n], mt.includes(n) && (r[n] += "px")) : r.transform = `${n}(${t[n]}deg)`);
559
559
  }), r;
560
560
  }
561
- function bn(n, o = []) {
561
+ function Pn(t, o = []) {
562
562
  const r = {};
563
563
  return [
564
564
  "opacity",
@@ -573,139 +573,139 @@ function bn(n, o = []) {
573
573
  "letterSpacing",
574
574
  "textAlign",
575
575
  "color"
576
- ].forEach((t) => {
577
- o.includes(t) || (t != "rotate" ? n[t] !== "" && (r[t] = n[t], gt.includes(t) && (r[t] += "px")) : r.transform = `${t}(${n[t]}deg)`);
576
+ ].forEach((n) => {
577
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (r[n] = t[n], mt.includes(n) && (r[n] += "px")) : r.transform = `${n}(${t[n]}deg)`);
578
578
  }), r;
579
579
  }
580
- function Sn(n) {
581
- return n * Math.PI / 180;
580
+ function Mn(t) {
581
+ return t * Math.PI / 180;
582
582
  }
583
- function Cn(n) {
584
- return (n + 360) % 360;
583
+ function On(t) {
584
+ return (t + 360) % 360;
585
585
  }
586
- function Pn(n, o, r, t, u, a, c) {
587
- let p = Cn(n.rotate);
588
- const i = Sn(p), g = Math.round((n.left + n.width / 2) * 10) / 10, y = Math.round((n.top + n.height / 2) * 10) / 10;
589
- let h = p, _ = i;
586
+ function Vn(t, o, r, n, u, s, c) {
587
+ let d = On(t.rotate);
588
+ const l = Mn(d), p = Math.round((t.left + t.width / 2) * 10) / 10, _ = Math.round((t.top + t.height / 2) * 10) / 10;
589
+ let y = d, v = l;
590
590
  if (Math.abs(o - r) > 1e-3) {
591
- const G = Math.cos(_), Ve = Math.sin(_);
592
- _ = Math.atan2(r * Ve, o * G), h = Math.floor(_ * 180 / Math.PI % 360), h < 0 && (h += 360);
591
+ const G = Math.cos(v), ke = Math.sin(v);
592
+ v = Math.atan2(r * ke, o * G), y = Math.floor(v * 180 / Math.PI % 360), y < 0 && (y += 360);
593
593
  }
594
- const w = Math.abs(Math.cos(_)), x = Math.abs(Math.sin(_));
595
- let S = Math.round((n.width * w + n.height * x) * 10) / 10, P = Math.round((n.width * x + n.height * w) * 10) / 10, C = g - 0.5 * P, E = y - 0.5 * S, k = P, b = S, N = Math.round(n.height * x * 10) / 10, D = Math.round(N / k * 1e3) / 1e3;
594
+ const C = Math.abs(Math.cos(v)), w = Math.abs(Math.sin(v));
595
+ let x = Math.round((t.width * C + t.height * w) * 10) / 10, P = Math.round((t.width * w + t.height * C) * 10) / 10, S = p - 0.5 * P, R = _ - 0.5 * x, k = P, b = x, N = Math.round(t.height * w * 10) / 10, D = Math.round(N / k * 1e3) / 1e3;
596
596
  if (o != 1) {
597
- if (n.wdSet == "calc")
597
+ if (t.wdSet == "calc")
598
598
  k = Math.floor(k * o);
599
- else if (n.wdSet == "overspread") {
600
- let G = n.wdReserve < 0 ? 0 : n.wdReserve;
601
- k = Math.floor(t - G);
599
+ else if (t.wdSet == "overspread") {
600
+ let G = t.wdReserve < 0 ? 0 : t.wdReserve;
601
+ k = Math.floor(n - G);
602
602
  }
603
- if (n.hAffix != "left") if (n.hAffix == "right") {
604
- let G = a - (C + k);
605
- C = t - G - k;
606
- } else n.hAffix == "center" ? C = Math.floor(t * 0.5 - k * 0.5) : C = Math.floor(C * o);
603
+ if (t.hAffix != "left") if (t.hAffix == "right") {
604
+ let G = s - (S + k);
605
+ S = n - G - k;
606
+ } else t.hAffix == "center" ? S = Math.floor(n * 0.5 - k * 0.5) : S = Math.floor(S * o);
607
607
  }
608
608
  if (r != 1) {
609
- if (n.htSet == "calc")
609
+ if (t.htSet == "calc")
610
610
  b = Math.floor(b * r);
611
- else if (n.htSet == "overspread") {
612
- let G = n.htReserve < 0 ? 0 : n.htReserve;
611
+ else if (t.htSet == "overspread") {
612
+ let G = t.htReserve < 0 ? 0 : t.htReserve;
613
613
  b = Math.floor(u - G);
614
614
  }
615
- if (n.vAffix != "top") if (n.vAffix == "bottom") {
616
- let G = c - (E + b);
617
- E = u - G - b;
618
- } else n.vAffix == "center" ? E = Math.floor(u * 0.5 - b * 0.5) : E = Math.floor(E * r);
615
+ if (t.vAffix != "top") if (t.vAffix == "bottom") {
616
+ let G = c - (R + b);
617
+ R = u - G - b;
618
+ } else t.vAffix == "center" ? R = Math.floor(u * 0.5 - b * 0.5) : R = Math.floor(R * r);
619
619
  }
620
- const V = C + k * 0.5, J = E + b * 0.5, z = Math.round(k * D * 10) / 10, ee = Math.floor(Math.sqrt(z ** 2 + z ** 2)), ie = Math.floor((k - ee * w) / x), ce = V - ie / 2, Oe = J - ee / 2;
621
- n.left = Math.floor(ce), n.top = Math.floor(Oe), n.width = Math.floor(ie), n.height = Math.floor(ee), n.rotate = h;
620
+ const O = S + k * 0.5, J = R + b * 0.5, z = Math.round(k * D * 10) / 10, me = Math.floor(Math.sqrt(z ** 2 + z ** 2)), le = Math.floor((k - me * C) / w), ae = O - le / 2, ce = J - me / 2;
621
+ t.left = Math.floor(ae), t.top = Math.floor(ce), t.width = Math.floor(le), t.height = Math.floor(me), t.rotate = y;
622
622
  }
623
- function ue(n, o, r, t, u, a, c) {
624
- let p = JSON.parse(JSON.stringify(n));
625
- return p && p.length > 0 && p.forEach((i) => {
626
- if (i && i.style)
627
- if (i.style.rotateZoom && Math.abs(i.style.rotate) >= 1)
628
- Pn(i.style, t, u, o, r, a, c);
623
+ function ue(t, o, r, n, u, s, c) {
624
+ let d = JSON.parse(JSON.stringify(t));
625
+ return d && d.length > 0 && d.forEach((l) => {
626
+ if (l && l.style)
627
+ if (l.style.rotateZoom && Math.abs(l.style.rotate) >= 1)
628
+ Vn(l.style, n, u, o, r, s, c);
629
629
  else {
630
- if (t != 1) {
631
- let g = i.style.width;
632
- if (i.style.wdSet == "calc")
633
- g = Math.floor(i.style.width * t);
634
- else if (i.style.wdSet == "overspread") {
635
- let y = i.style.wdReserve < 0 ? 0 : i.style.wdReserve;
636
- g = Math.floor(o - y);
630
+ if (n != 1) {
631
+ let p = l.style.width;
632
+ if (l.style.wdSet == "calc")
633
+ p = Math.floor(l.style.width * n);
634
+ else if (l.style.wdSet == "overspread") {
635
+ let _ = l.style.wdReserve < 0 ? 0 : l.style.wdReserve;
636
+ p = Math.floor(o - _);
637
637
  }
638
- if (i.style.hAffix != "left") if (i.style.hAffix == "right") {
639
- let y = a - (i.style.left + i.style.width);
640
- i.style.left = o - y - g;
641
- } else i.style.hAffix == "center" ? i.style.left = Math.floor(o * 0.5 - g * 0.5) : i.style.left = Math.floor(i.style.left * t);
642
- i.style.width = g;
638
+ if (l.style.hAffix != "left") if (l.style.hAffix == "right") {
639
+ let _ = s - (l.style.left + l.style.width);
640
+ l.style.left = o - _ - p;
641
+ } else l.style.hAffix == "center" ? l.style.left = Math.floor(o * 0.5 - p * 0.5) : l.style.left = Math.floor(l.style.left * n);
642
+ l.style.width = p;
643
643
  }
644
644
  if (u != 1) {
645
- let g = i.style.height;
646
- if (i.style.htSet == "calc")
647
- g = Math.floor(i.style.height * u);
648
- else if (i.style.htSet == "overspread") {
649
- let y = i.style.htReserve < 0 ? 0 : i.style.htReserve;
650
- g = Math.floor(r - y);
645
+ let p = l.style.height;
646
+ if (l.style.htSet == "calc")
647
+ p = Math.floor(l.style.height * u);
648
+ else if (l.style.htSet == "overspread") {
649
+ let _ = l.style.htReserve < 0 ? 0 : l.style.htReserve;
650
+ p = Math.floor(r - _);
651
651
  }
652
- if (i.style.vAffix != "top") if (i.style.vAffix == "bottom") {
653
- let y = c - (i.style.top + i.style.height);
654
- i.style.top = r - y - g;
655
- } else i.style.vAffix == "center" ? i.style.top = Math.floor(r * 0.5 - g * 0.5) : i.style.top = Math.floor(i.style.top * u);
656
- i.style.height = g;
652
+ if (l.style.vAffix != "top") if (l.style.vAffix == "bottom") {
653
+ let _ = c - (l.style.top + l.style.height);
654
+ l.style.top = r - _ - p;
655
+ } else l.style.vAffix == "center" ? l.style.top = Math.floor(r * 0.5 - p * 0.5) : l.style.top = Math.floor(l.style.top * u);
656
+ l.style.height = p;
657
657
  }
658
658
  }
659
- }), p;
659
+ }), d;
660
660
  }
661
- function fo(n, o, r, t) {
662
- let u = {}, a = [];
661
+ function ho(t, o, r, n) {
662
+ let u = {}, s = [];
663
663
  if (!(r && r.screenAdapter && r.screenAdapter != "no-adapter"))
664
- u = r, a = t;
664
+ u = r, s = n;
665
665
  else {
666
- let c = Math.floor(n), p = Math.floor(o), i = Number(r.width), g = Number(r.height), y = 1, h = 1;
666
+ let c = Math.floor(t), d = Math.floor(o), l = Number(r.width), p = Number(r.height), _ = 1, y = 1;
667
667
  if (r.screenAdapter == "all-screen")
668
- u = JSON.parse(JSON.stringify(r)), c > i + 10 && (u.width = c, y = Math.floor(1e4 * c / i) / 1e4), p > g + 10 && (u.height = p, h = Math.floor(1e4 * p / g) / 1e4), a = ue(t, c, p, y, h, i, g);
668
+ u = JSON.parse(JSON.stringify(r)), c > l + 10 && (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), d > p + 10 && (u.height = d, y = Math.floor(1e4 * d / p) / 1e4), s = ue(n, c, d, _, y, l, p);
669
669
  else if (r.screenAdapter == "original-ratio") {
670
670
  u = JSON.parse(JSON.stringify(r));
671
- let _ = Math.floor(1e4 * i / g) / 1e4;
672
- Math.floor(p * _) > c ? (u.width = c, y = Math.floor(1e4 * c / i) / 1e4, p = Math.floor(c / _), u.height = p, h = Math.floor(1e4 * p / g) / 1e4) : (u.height = p, h = Math.floor(1e4 * p / g) / 1e4, c = Math.floor(p * _), u.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = ue(t, c, p, y, h, i, g);
671
+ let v = Math.floor(1e4 * l / p) / 1e4;
672
+ Math.floor(d * v) > c ? (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4, d = Math.floor(c / v), u.height = d, y = Math.floor(1e4 * d / p) / 1e4) : (u.height = d, y = Math.floor(1e4 * d / p) / 1e4, c = Math.floor(d * v), u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), s = ue(n, c, d, _, y, l, p);
673
673
  } else if (r.screenAdapter == "h-adapter-wh") {
674
674
  u = JSON.parse(JSON.stringify(r));
675
- let _ = Math.floor(1e4 * i / g) / 1e4;
676
- c > i + 10 && (u.width = c, y = Math.floor(1e4 * c / i) / 1e4, p = Math.floor(c / _), u.height = p, h = Math.floor(1e4 * p / g) / 1e4), a = ue(t, c, p, y, h, i, g);
675
+ let v = Math.floor(1e4 * l / p) / 1e4;
676
+ c > l + 10 && (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4, d = Math.floor(c / v), u.height = d, y = Math.floor(1e4 * d / p) / 1e4), s = ue(n, c, d, _, y, l, p);
677
677
  } else if (r.screenAdapter == "v-adapter-wh") {
678
678
  u = JSON.parse(JSON.stringify(r));
679
- let _ = Math.floor(1e4 * i / g) / 1e4;
680
- p > g + 10 && (u.height = p, h = Math.floor(1e4 * p / g) / 1e4, c = Math.floor(p * _), u.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = ue(t, c, p, y, h, i, g);
681
- } else r.screenAdapter == "h-adapter" ? (u = JSON.parse(JSON.stringify(r)), c > i + 10 && (u.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = ue(t, c, p, y, h, i, g)) : r.screenAdapter == "v-adapter" ? (u = JSON.parse(JSON.stringify(r)), p > g + 10 && (u.height = p, h = Math.floor(1e4 * p / g) / 1e4), a = ue(t, c, p, y, h, i, g)) : (u = r, a = t);
679
+ let v = Math.floor(1e4 * l / p) / 1e4;
680
+ d > p + 10 && (u.height = d, y = Math.floor(1e4 * d / p) / 1e4, c = Math.floor(d * v), u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), s = ue(n, c, d, _, y, l, p);
681
+ } else r.screenAdapter == "h-adapter" ? (u = JSON.parse(JSON.stringify(r)), c > l + 10 && (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), s = ue(n, c, d, _, y, l, p)) : r.screenAdapter == "v-adapter" ? (u = JSON.parse(JSON.stringify(r)), d > p + 10 && (u.height = d, y = Math.floor(1e4 * d / p) / 1e4), s = ue(n, c, d, _, y, l, p)) : (u = r, s = n);
682
682
  }
683
683
  return {
684
684
  canvasStyleData: u,
685
- componentData: a
685
+ componentData: s
686
686
  };
687
687
  }
688
- async function Ze(n, o = []) {
689
- const r = (t) => new Promise((u) => {
690
- const { animationTime: a, value: c = "", isLoop: p } = t;
691
- n.style.setProperty("--time", `${a}s`), n.classList.add(c, "animated", et(p));
692
- const i = () => {
693
- n.removeEventListener("animationend", i), n.removeEventListener("animationcancel", i), n.classList.remove(c, "animated", et(p)), n.style.removeProperty("--time"), u();
688
+ async function Ze(t, o = []) {
689
+ const r = (n) => new Promise((u) => {
690
+ const { animationTime: s, value: c = "", isLoop: d } = n;
691
+ t.style.setProperty("--time", `${s}s`), t.classList.add(c, "animated", et(d));
692
+ const l = () => {
693
+ t.removeEventListener("animationend", l), t.removeEventListener("animationcancel", l), t.classList.remove(c, "animated", et(d)), t.style.removeProperty("--time"), u();
694
694
  };
695
- n.addEventListener("animationend", i), n.addEventListener("animationcancel", i);
695
+ t.addEventListener("animationend", l), t.addEventListener("animationcancel", l);
696
696
  });
697
- for (let t = 0, u = o.length; t < u; t++)
698
- await r(o[t]);
697
+ for (let n = 0, u = o.length; n < u; n++)
698
+ await r(o[n]);
699
699
  }
700
- function et(n) {
701
- return n ? "infinite" : "no-infinite";
700
+ function et(t) {
701
+ return t ? "infinite" : "no-infinite";
702
702
  }
703
- const Z = (n, o) => {
704
- const r = n.__vccOpts || n;
705
- for (const [t, u] of o)
706
- r[t] = u;
703
+ const Z = (t, o) => {
704
+ const r = t.__vccOpts || t;
705
+ for (const [n, u] of o)
706
+ r[n] = u;
707
707
  return r;
708
- }, Mn = {
708
+ }, In = {
709
709
  __name: "ComponentWrapper",
710
710
  props: {
711
711
  config: {
@@ -715,66 +715,66 @@ const Z = (n, o) => {
715
715
  }
716
716
  }
717
717
  },
718
- setup(n, { expose: o }) {
719
- const r = n, t = O(() => r.config || {}), u = O({
720
- get: () => !t.value.style?.isHide,
721
- set: (w) => {
722
- t.value.style && (t.value.style.isHide = !w);
718
+ setup(t, { expose: o }) {
719
+ const r = t, n = V(() => r.config || {}), u = V({
720
+ get: () => !n.value.style?.isHide,
721
+ set: (C) => {
722
+ n.value.style && (n.value.style.isHide = !C);
723
723
  }
724
- }), a = he({}), c = (w, x) => {
725
- w ? a[`Ve${x}`] = w : delete a[`Ve${x}`];
726
- }, p = (w) => a[`Ve${w}`], i = () => {
727
- if (t.value.animations && t.value.animations.length > 0) {
728
- let w = a[`Ve${t.value.id}`];
729
- w.$el && Ze(w.$el, t.value.animations);
724
+ }), s = pe({}), c = (C, w) => {
725
+ C ? s[`Ve${w}`] = C : delete s[`Ve${w}`];
726
+ }, d = (C) => s[`Ve${C}`], l = () => {
727
+ if (n.value.animations && n.value.animations.length > 0) {
728
+ let C = s[`Ve${n.value.id}`];
729
+ C.$el && Ze(C.$el, n.value.animations);
730
730
  }
731
- }, g = () => {
731
+ }, p = () => {
732
732
  u.value = !1;
733
- }, y = () => {
733
+ }, _ = () => {
734
734
  u.value = !0;
735
- }, h = () => u.value;
736
- Ce(() => {
737
- i();
735
+ }, y = () => u.value;
736
+ Ve(() => {
737
+ l();
738
738
  }), o({
739
- getComponentRef: p,
740
- hide: g,
741
- show: y,
742
- showStatus: h
739
+ getComponentRef: d,
740
+ hide: p,
741
+ show: _,
742
+ showStatus: y
743
743
  });
744
- const _ = { props: r, config: t, isShow: u, componentRefs: a, setComponentRef: c, getComponentRef: p, execAnimation: i, hide: g, show: y, showStatus: h, ref: R, computed: O, onMounted: Ce, reactive: he, watch: Me, get getSVGStyle() {
745
- return bn;
744
+ const v = { props: r, config: n, isShow: u, componentRefs: s, setComponentRef: c, getComponentRef: d, execAnimation: l, hide: p, show: _, showStatus: y, ref: T, computed: V, onMounted: Ve, reactive: pe, watch: be, get getSVGStyle() {
745
+ return Pn;
746
746
  }, get getStyle() {
747
- return mt;
747
+ return ht;
748
748
  }, get runAnimation() {
749
749
  return Ze;
750
750
  } };
751
- return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
751
+ return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
752
752
  }
753
753
  };
754
- function On(n, o, r, t, u, a) {
755
- return De((A(), W("div", { class: "component-wrapper" }, [
756
- t.config.component.startsWith("SVG") ? (A(), $(be(t.config.component), {
754
+ function Dn(t, o, r, n, u, s) {
755
+ return Te((A(), W("div", { class: "component-wrapper" }, [
756
+ n.config.component.startsWith("SVG") ? (A(), Q(Me(n.config.component), {
757
757
  key: 0,
758
- ref: (c) => t.setComponentRef(c, t.config.id),
758
+ ref: (c) => n.setComponentRef(c, n.config.id),
759
759
  class: "component",
760
- style: Se(t.getSVGStyle(t.config.style)),
761
- "prop-value": t.config.propValue,
762
- element: t.config,
760
+ style: Oe(n.getSVGStyle(n.config.style)),
761
+ "prop-value": n.config.propValue,
762
+ element: n.config,
763
763
  designStatus: !1
764
- }, null, 8, ["style", "prop-value", "element"])) : (A(), $(be(t.config.component), {
764
+ }, null, 8, ["style", "prop-value", "element"])) : (A(), Q(Me(n.config.component), {
765
765
  key: 1,
766
- ref: (c) => t.setComponentRef(c, t.config.id),
766
+ ref: (c) => n.setComponentRef(c, n.config.id),
767
767
  class: "component",
768
- style: Se(t.getStyle(t.config.style)),
769
- "prop-value": t.config.propValue,
770
- element: t.config,
768
+ style: Oe(n.getStyle(n.config.style)),
769
+ "prop-value": n.config.propValue,
770
+ element: n.config,
771
771
  designStatus: !1
772
772
  }, null, 8, ["style", "prop-value", "element"]))
773
773
  ], 512)), [
774
- [ot, t.isShow]
774
+ [ot, n.isShow]
775
775
  ]);
776
776
  }
777
- const Vn = /* @__PURE__ */ Z(Mn, [["render", On], ["__scopeId", "data-v-56b0e3e4"], ["__file", "ComponentWrapper.vue"]]), In = /* @__PURE__ */ Object.assign({
777
+ const kn = /* @__PURE__ */ Z(In, [["render", Dn], ["__scopeId", "data-v-56b0e3e4"], ["__file", "ComponentWrapper.vue"]]), Rn = /* @__PURE__ */ Object.assign({
778
778
  name: "VEPage"
779
779
  }, {
780
780
  __name: "index",
@@ -791,73 +791,73 @@ const Vn = /* @__PURE__ */ Z(Mn, [["render", On], ["__scopeId", "data-v-56b0e3e4
791
791
  default: []
792
792
  }
793
793
  },
794
- setup(n, { expose: o }) {
795
- const r = n, t = R({}), u = O(() => r.canvasStyle || {}), a = O(() => r.componentData || []), c = (_, w) => {
796
- _ && (t.value[w] = _);
797
- }, p = O(() => {
798
- let _ = {}, w = { ...u.value || {} }, x = w.diyStyles || {};
799
- delete w.diyStyles;
800
- let S = Xe(w || {});
801
- return S.hasOwnProperty("backgroundColor") && (S["background-color"] = S.backgroundColor, delete S.backgroundColor), S.width = `${u.value.width}px`, S.height = `${u.value.height}px`, _ = { ...S, ...x }, X("debug", "style", _, "_style", S, "diyStyle", x), v(_.background) && !v(_["background-color"]) && delete _["background-color"], v(_.background) || v(_["background-image"]) || v(_["background-color"]) || (_["background-color"] = "transparent !important"), _;
802
- }), i = (_, w, x) => {
803
- if (v(_) && v(w)) {
804
- const S = "VeP" + _, P = t.value[S];
794
+ setup(t, { expose: o }) {
795
+ const r = t, n = T({}), u = V(() => r.canvasStyle || {}), s = V(() => r.componentData || []), c = (v, C) => {
796
+ v && (n.value[C] = v);
797
+ }, d = V(() => {
798
+ let v = {}, C = { ...u.value || {} }, w = C.diyStyles || {};
799
+ delete C.diyStyles;
800
+ let x = Xe(C || {});
801
+ return x.hasOwnProperty("backgroundColor") && (x["background-color"] = x.backgroundColor, delete x.backgroundColor), x.width = `${u.value.width}px`, x.height = `${u.value.height}px`, v = { ...x, ...w }, $("debug", "style", v, "_style", x, "diyStyle", w), g(v.background) && !g(v["background-color"]) && delete v["background-color"], g(v.background) || g(v["background-image"]) || g(v["background-color"]) || (v["background-color"] = "transparent !important"), v;
802
+ }), l = (v, C, w) => {
803
+ if (g(v) && g(C)) {
804
+ const x = "VeP" + v, P = n.value[x];
805
805
  if (P) {
806
- let C;
807
- q(P) ? C = P[0] : C = P;
808
- const E = C.getComponentRef(_);
809
- E ? E?.$options.name === "Group" && x && x.compId ? E.callGroupCompMethod(x.compId, w, x.data) : E[w] && (x ? E[w](x) : E[w]()) : X("warning", "The component is not exist.id:", _);
806
+ let S;
807
+ q(P) ? S = P[0] : S = P;
808
+ const R = S.getComponentRef(v);
809
+ R ? R?.$options.name === "Group" && w && w.compId ? R.callGroupCompMethod(w.compId, C, w.data) : R[C] && (w ? R[C](w) : R[C]()) : $("warning", "The component is not exist.id:", v);
810
810
  }
811
811
  }
812
- }, g = (_, w, x = {}) => {
813
- if (v(_)) {
814
- const S = "VeP" + _, P = t.value[S];
812
+ }, p = (v, C, w = {}) => {
813
+ if (g(v)) {
814
+ const x = "VeP" + v, P = n.value[x];
815
815
  if (P) {
816
- let C;
817
- q(P) ? C = P[0] : C = P, w ? C.show() : C.hide();
816
+ let S;
817
+ q(P) ? S = P[0] : S = P, C ? S.show() : S.hide();
818
818
  }
819
819
  }
820
- }, y = (_, w, x) => {
821
- if (v(_) && v(w)) {
822
- const S = "VeP" + _, P = t.value[S];
820
+ }, _ = (v, C, w) => {
821
+ if (g(v) && g(C)) {
822
+ const x = "VeP" + v, P = n.value[x];
823
823
  if (P) {
824
- let C;
825
- if (q(P) ? C = P[0] : C = P, C && C[w])
826
- return x ? C[w](x) : C[w]();
824
+ let S;
825
+ if (q(P) ? S = P[0] : S = P, S && S[C])
826
+ return w ? S[C](w) : S[C]();
827
827
  }
828
828
  }
829
829
  };
830
- oe("VE-CompMethod", i), oe("VE-CompHideAndShow", g), oe("VE-CompWrapMethod", y), o({
831
- callCompMethod: i
830
+ oe("VE-CompMethod", l), oe("VE-CompHideAndShow", p), oe("VE-CompWrapMethod", _), o({
831
+ callCompMethod: l
832
832
  });
833
- const h = { props: r, componentRefs: t, canvasStyle: u, componentData: a, setComponentRef: c, calcCanvasStyle: p, callCompMethod: i, callCompHideAndShow: g, callCompWrapMethod: y, ref: R, computed: O, provide: oe, watch: Me, get getCanvasStyle() {
833
+ const y = { props: r, componentRefs: n, canvasStyle: u, componentData: s, setComponentRef: c, calcCanvasStyle: d, callCompMethod: l, callCompHideAndShow: p, callCompWrapMethod: _, ref: T, computed: V, provide: oe, watch: be, get getCanvasStyle() {
834
834
  return Xe;
835
- }, ComponentWrapper: Vn, get isNotEmpty() {
836
- return v;
835
+ }, ComponentWrapper: kn, get isNotEmpty() {
836
+ return g;
837
837
  }, get isArray() {
838
838
  return q;
839
839
  }, get consolePrint() {
840
- return X;
840
+ return $;
841
841
  } };
842
- return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
842
+ return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
843
843
  }
844
844
  });
845
- function kn(n, o, r, t, u, a) {
845
+ function En(t, o, r, n, u, s) {
846
846
  return A(), W("div", { class: "canvas-container" }, [
847
- le("div", {
847
+ re("div", {
848
848
  class: "canvas",
849
- style: Se(t.calcCanvasStyle)
849
+ style: Oe(n.calcCanvasStyle)
850
850
  }, [
851
- (A(!0), W(Ne, null, He(t.componentData, (c, p) => (A(), $(t.ComponentWrapper, {
852
- key: p,
851
+ (A(!0), W(Ke, null, He(n.componentData, (c, d) => (A(), Q(n.ComponentWrapper, {
852
+ key: d,
853
853
  config: c,
854
854
  ref_for: !0,
855
- ref: (i) => t.setComponentRef(i, "VeP" + c.id)
855
+ ref: (l) => n.setComponentRef(l, "VeP" + c.id)
856
856
  }, null, 8, ["config"]))), 128))
857
857
  ], 4)
858
858
  ]);
859
859
  }
860
- const Dn = /* @__PURE__ */ Z(In, [["render", kn], ["__scopeId", "data-v-c471d52f"], ["__file", "index.vue"]]), En = Yt({
860
+ const Tn = /* @__PURE__ */ Z(Rn, [["render", En], ["__scopeId", "data-v-c471d52f"], ["__file", "index.vue"]]), An = en({
861
861
  name: "ve-comp-svg-icon",
862
862
  props: {
863
863
  iconClass: {
@@ -873,25 +873,25 @@ const Dn = /* @__PURE__ */ Z(In, [["render", kn], ["__scopeId", "data-v-c471d52f
873
873
  default: ""
874
874
  }
875
875
  },
876
- setup(n) {
876
+ setup(t) {
877
877
  return {
878
- iconName: O(() => `#icon-${n.iconClass}`),
879
- svgClass: O(() => n.className ? `ve-comp-svg-icon ${n.className}` : "ve-comp-svg-icon")
878
+ iconName: V(() => `#icon-${t.iconClass}`),
879
+ svgClass: V(() => t.className ? `ve-comp-svg-icon ${t.className}` : "ve-comp-svg-icon")
880
880
  };
881
881
  }
882
882
  });
883
- function Tn(n, o, r, t, u, a) {
883
+ function Fn(t, o, r, n, u, s) {
884
884
  return A(), W("svg", {
885
- class: rt(n.svgClass),
885
+ class: rt(t.svgClass),
886
886
  "aria-hidden": "true"
887
887
  }, [
888
- le("use", {
889
- "xlink:href": n.iconName,
890
- fill: n.color
888
+ re("use", {
889
+ "xlink:href": t.iconName,
890
+ fill: t.color
891
891
  }, null, 8, ["xlink:href", "fill"])
892
892
  ], 2);
893
893
  }
894
- const ht = /* @__PURE__ */ Z(En, [["render", Tn], ["__file", "index.vue"]]), Rn = /* @__PURE__ */ Object.assign({
894
+ const gt = /* @__PURE__ */ Z(An, [["render", Fn], ["__file", "index.vue"]]), jn = /* @__PURE__ */ Object.assign({
895
895
  name: "CompositeIcon"
896
896
  }, {
897
897
  __name: "index",
@@ -910,72 +910,72 @@ const ht = /* @__PURE__ */ Z(En, [["render", Tn], ["__file", "index.vue"]]), Rn
910
910
  default: ""
911
911
  }
912
912
  },
913
- setup(n, { expose: o }) {
913
+ setup(t, { expose: o }) {
914
914
  o();
915
- const p = { props: n, isImage: (i) => i && i.toString().toLowerCase().startsWith("img#"), getImageSrc: (i) => i.toString().substring(4), isSvgIcon: (i) => i && i.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (i) => i.toString().substring(4), VeCompSvgIcon: ht };
916
- return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
915
+ const d = { props: t, isImage: (l) => l && l.toString().toLowerCase().startsWith("img#"), getImageSrc: (l) => l.toString().substring(4), isSvgIcon: (l) => l && l.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (l) => l.toString().substring(4), VeCompSvgIcon: gt };
916
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
917
917
  }
918
918
  });
919
- function An(n, o, r, t, u, a) {
920
- const c = H("el-icon");
921
- return A(), $(c, {
922
- size: t.props.iconSize,
923
- color: t.props.color
919
+ function Bn(t, o, r, n, u, s) {
920
+ const c = K("el-icon");
921
+ return A(), Q(c, {
922
+ size: n.props.iconSize,
923
+ color: n.props.color
924
924
  }, {
925
925
  default: F(() => [
926
- t.isImage(t.props.icon) ? (A(), W("img", {
926
+ n.isImage(n.props.icon) ? (A(), W("img", {
927
927
  key: 0,
928
- src: t.getImageSrc(t.props.icon)
929
- }, null, 8, ["src"])) : t.isSvgIcon(t.props.icon) ? (A(), $(t.VeCompSvgIcon, {
928
+ src: n.getImageSrc(n.props.icon)
929
+ }, null, 8, ["src"])) : n.isSvgIcon(n.props.icon) ? (A(), Q(n.VeCompSvgIcon, {
930
930
  key: 1,
931
- "icon-class": t.getSvgIconClass(t.props.icon),
932
- color: t.props.color
933
- }, null, 8, ["icon-class", "color"])) : (A(), $(be(t.props.icon), { key: 2 }))
931
+ "icon-class": n.getSvgIconClass(n.props.icon),
932
+ color: n.props.color
933
+ }, null, 8, ["icon-class", "color"])) : (A(), Q(Me(n.props.icon), { key: 2 }))
934
934
  ]),
935
935
  _: 1
936
936
  }, 8, ["size", "color"]);
937
937
  }
938
- const Fn = /* @__PURE__ */ Z(Rn, [["render", An], ["__file", "index.vue"]]);
939
- let ke = null;
940
- const Ae = () => {
941
- if (!ke) {
942
- const n = he({}), o = R([]);
943
- ke = {
944
- dialogs: n,
938
+ const Nn = /* @__PURE__ */ Z(jn, [["render", Bn], ["__file", "index.vue"]]);
939
+ let Ee = null;
940
+ const Fe = () => {
941
+ if (!Ee) {
942
+ const t = pe({}), o = T([]);
943
+ Ee = {
944
+ dialogs: t,
945
945
  dialogStack: o,
946
946
  openDialog: (c = {}) => {
947
- const p = c.dialogId || "dialog-" + pt(), i = o.value.length;
948
- i >= 1 && (c.appendToBody = !0);
949
- const g = {
950
- id: p,
951
- level: i,
947
+ const d = c.dialogId || "dialog-" + dt(), l = o.value.length;
948
+ l >= 1 && (c.appendToBody = !0);
949
+ const p = {
950
+ id: d,
951
+ level: l,
952
952
  config: c
953
953
  };
954
- if (n[p] = g, o.value.length >= 1) {
955
- let y = !1;
956
- for (let h = 0; h < o.value.length; h++)
957
- if (p == o.value[h]) {
958
- y = !0;
954
+ if (t[d] = p, o.value.length >= 1) {
955
+ let _ = !1;
956
+ for (let y = 0; y < o.value.length; y++)
957
+ if (d == o.value[y]) {
958
+ _ = !0;
959
959
  break;
960
960
  }
961
- y || o.value.push(p);
961
+ _ || o.value.push(d);
962
962
  } else
963
- o.value.push(p);
964
- return p;
963
+ o.value.push(d);
964
+ return d;
965
965
  },
966
966
  closeDialog: (c) => {
967
- delete n[c], o.value = o.value.filter((p) => p !== c);
967
+ delete t[c], o.value = o.value.filter((d) => d !== c);
968
968
  },
969
969
  closeAllDialogs: () => {
970
- Object.keys(n).forEach((c) => {
971
- delete n[c];
970
+ Object.keys(t).forEach((c) => {
971
+ delete t[c];
972
972
  }), o.value = [];
973
973
  },
974
974
  getDialogCount: () => o.value.length
975
975
  };
976
976
  }
977
- return ke;
978
- }, jn = /* @__PURE__ */ Object.assign({
977
+ return Ee;
978
+ }, Kn = /* @__PURE__ */ Object.assign({
979
979
  name: "FullScreenDialog"
980
980
  }, {
981
981
  __name: "FullscreenDialog",
@@ -986,20 +986,20 @@ const Ae = () => {
986
986
  }
987
987
  },
988
988
  emits: ["confirm", "cancel"],
989
- setup(n, { expose: o, emit: r }) {
990
- const t = n, u = r, a = O(() => t.config), c = O(() => a.value.title || "对话框"), p = O(() => !!t.config.showHeader), i = R(a.value.fullscreen), g = R(a.value.width), y = R(!0), h = O(() => {
991
- let b = a.value.width ?? 800;
992
- return p.value ? b + 32 : b;
993
- }), _ = O(() => {
989
+ setup(t, { expose: o, emit: r }) {
990
+ const n = t, u = r, s = V(() => n.config), c = V(() => s.value.title || "对话框"), d = V(() => !!n.config.showHeader), l = T(s.value.fullscreen), p = T(s.value.width), _ = T(!0), y = V(() => {
991
+ let b = s.value.width ?? 800;
992
+ return d.value ? b + 32 : b;
993
+ }), v = V(() => {
994
994
  let b = {};
995
- return b.style = {}, b.style.width = a.value.width ?? 800, b.style.height = a.value.height ?? 600, b.prop = {}, b.prop.subpageId = a.value.pageId, b.containerParam = a.value.pageParam || {}, b;
996
- }), w = O(() => {
995
+ return b.style = {}, b.style.width = s.value.width ?? 800, b.style.height = s.value.height ?? 600, b.prop = {}, b.prop.subpageId = s.value.pageId, b.containerParam = s.value.pageParam || {}, b;
996
+ }), C = V(() => {
997
997
  let b = {};
998
- return b.modal = a.value.modal, b["show-close"] = a.value.showClose, b.draggable = a.value.draggable, a.value.appendToBody && (b["append-to-body"] = a.value.appendToBody), p.value || (b.class = " no-header-dialog"), a.value.customPosition ? b["align-center"] = !1 : b["align-center"] = !0, b;
999
- }), x = O(() => {
998
+ return b.modal = s.value.modal, b["show-close"] = s.value.showClose, b.draggable = s.value.draggable, s.value.appendToBody && (b["append-to-body"] = s.value.appendToBody), d.value || (b.class = " no-header-dialog"), s.value.customPosition ? b["align-center"] = !1 : b["align-center"] = !0, b;
999
+ }), w = V(() => {
1000
1000
  let b = {};
1001
- if (a.value.customPosition) {
1002
- let N = a.value.absLeft ?? 100, D = a.value.absTop ?? 100;
1001
+ if (s.value.customPosition) {
1002
+ let N = s.value.absLeft ?? 100, D = s.value.absTop ?? 100;
1003
1003
  Object.assign(b, {
1004
1004
  position: "fixed",
1005
1005
  left: `${N}px`,
@@ -1008,66 +1008,66 @@ const Ae = () => {
1008
1008
  margin: "0 !important"
1009
1009
  });
1010
1010
  }
1011
- return a.value.noBackgroundColor && Object.assign(b, {
1011
+ return s.value.noBackgroundColor && Object.assign(b, {
1012
1012
  backgroundColor: "transparent"
1013
1013
  }), b;
1014
- }), S = () => {
1014
+ }), x = () => {
1015
1015
  u("confirm");
1016
1016
  }, P = () => {
1017
- u("cancel"), C();
1018
- }, C = () => {
1019
- y.value = !1;
1020
- }, E = (b) => {
1017
+ u("cancel"), S();
1018
+ }, S = () => {
1019
+ _.value = !1;
1020
+ }, R = (b) => {
1021
1021
  u("cancel");
1022
1022
  };
1023
1023
  oe("VE-CompMethod", function() {
1024
- X("warning", "对话框模式,不提供compMethod函数实现");
1024
+ $("warning", "对话框模式,不提供compMethod函数实现");
1025
1025
  }), oe("VE-CompHideAndShow", function() {
1026
- X("warning", "对话框模式,不提供compHideAndShow函数实现");
1026
+ $("warning", "对话框模式,不提供compHideAndShow函数实现");
1027
1027
  }), oe("VE-CompWrapMethod", function() {
1028
- X("warning", "对话框模式,不提供compWrapMethod函数实现");
1028
+ $("warning", "对话框模式,不提供compWrapMethod函数实现");
1029
1029
  }), o({
1030
- close: C
1030
+ close: S
1031
1031
  });
1032
- const k = { props: t, emit: u, config: a, title: c, showTitle: p, isFullscreen: i, previousWidth: g, openDialog: y, dialogWidth: h, element: _, bindAttr: w, customStyle: x, confirmInner: S, cancel: P, close: C, handleClose: E, ref: R, computed: O, provide: oe, get consolePrint() {
1033
- return X;
1032
+ const k = { props: n, emit: u, config: s, title: c, showTitle: d, isFullscreen: l, previousWidth: p, openDialog: _, dialogWidth: y, element: v, bindAttr: C, customStyle: w, confirmInner: x, cancel: P, close: S, handleClose: R, ref: T, computed: V, provide: oe, get consolePrint() {
1033
+ return $;
1034
1034
  }, get isNotEmpty() {
1035
- return v;
1035
+ return g;
1036
1036
  } };
1037
1037
  return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
1038
1038
  }
1039
1039
  });
1040
- function Bn(n, o, r, t, u, a) {
1041
- const c = H("Subpage"), p = H("el-button"), i = H("el-dialog");
1040
+ function Hn(t, o, r, n, u, s) {
1041
+ const c = K("Subpage"), d = K("el-button"), l = K("el-dialog");
1042
1042
  return A(), W("div", { class: "full-screen-dialog-wrapper" }, [
1043
- T(i, Xt({
1044
- modelValue: t.openDialog,
1045
- "onUpdate:modelValue": o[0] || (o[0] = (g) => t.openDialog = g),
1046
- width: t.dialogWidth,
1047
- fullscreen: t.isFullscreen
1048
- }, t.bindAttr, {
1049
- style: t.customStyle,
1050
- onClose: t.handleClose
1051
- }), Zt({
1043
+ E(l, tn({
1044
+ modelValue: n.openDialog,
1045
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => n.openDialog = p),
1046
+ width: n.dialogWidth,
1047
+ fullscreen: n.isFullscreen
1048
+ }, n.bindAttr, {
1049
+ style: n.customStyle,
1050
+ onClose: n.handleClose
1051
+ }), nn({
1052
1052
  header: F(() => [
1053
- t.showTitle ? (A(), W("span", { key: 0 }, en(t.title), 1)) : We("", !0)
1053
+ n.showTitle ? (A(), W("span", { key: 0 }, on(n.title), 1)) : We("", !0)
1054
1054
  ]),
1055
1055
  default: F(() => [
1056
- t.isNotEmpty(t.config.pageId) ? (A(), $(c, {
1056
+ n.isNotEmpty(n.config.pageId) ? (A(), Q(c, {
1057
1057
  key: 0,
1058
- "prop-value": t.element.prop,
1059
- element: t.element
1058
+ "prop-value": n.element.prop,
1059
+ element: n.element
1060
1060
  }, null, 8, ["prop-value", "element"])) : We("", !0)
1061
1061
  ]),
1062
1062
  _: 2
1063
1063
  }, [
1064
- t.config.showFooter ? {
1064
+ n.config.showFooter ? {
1065
1065
  name: "footer",
1066
1066
  fn: F(() => [
1067
- le("div", { class: "dialog-footer" }, [
1068
- T(p, {
1067
+ re("div", { class: "dialog-footer" }, [
1068
+ E(d, {
1069
1069
  type: "primary",
1070
- onClick: t.confirmInner
1070
+ onClick: n.confirmInner
1071
1071
  }, {
1072
1072
  default: F(() => [
1073
1073
  j("确定")
@@ -1075,7 +1075,7 @@ function Bn(n, o, r, t, u, a) {
1075
1075
  _: 1
1076
1076
  }),
1077
1077
  j(),
1078
- T(p, { onClick: t.cancel }, {
1078
+ E(d, { onClick: n.cancel }, {
1079
1079
  default: F(() => [
1080
1080
  j("关 闭")
1081
1081
  ]),
@@ -1088,28 +1088,28 @@ function Bn(n, o, r, t, u, a) {
1088
1088
  ]), 1040, ["modelValue", "width", "fullscreen", "style"])
1089
1089
  ]);
1090
1090
  }
1091
- const Nn = /* @__PURE__ */ Z(jn, [["render", Bn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), Hn = /* @__PURE__ */ Object.assign({
1091
+ const Ln = /* @__PURE__ */ Z(Kn, [["render", Hn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), qn = /* @__PURE__ */ Object.assign({
1092
1092
  name: "DialogContainer"
1093
1093
  }, {
1094
1094
  __name: "DialogContainer",
1095
- setup(n, { expose: o }) {
1095
+ setup(t, { expose: o }) {
1096
1096
  o();
1097
- const { dialogs: r, closeDialog: t } = Ae(), u = O(() => Object.values(r)), c = { dialogs: r, closeDialog: t, dialogList: u, cancelHandler: (p) => {
1098
- t(p);
1097
+ const { dialogs: r, closeDialog: n } = Fe(), u = V(() => Object.values(r)), c = { dialogs: r, closeDialog: n, dialogList: u, cancelHandler: (d) => {
1098
+ n(d);
1099
1099
  }, get useDialogManager() {
1100
- return Ae;
1101
- }, computed: O, FullScreenDialog: Nn };
1100
+ return Fe;
1101
+ }, computed: V, FullScreenDialog: Ln };
1102
1102
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
1103
1103
  }
1104
1104
  });
1105
- function Ln(n, o, r, t, u, a) {
1106
- return A(!0), W(Ne, null, He(t.dialogList, (c) => (A(), $(t.FullScreenDialog, {
1105
+ function zn(t, o, r, n, u, s) {
1106
+ return A(!0), W(Ke, null, He(n.dialogList, (c) => (A(), Q(n.FullScreenDialog, {
1107
1107
  key: c.id,
1108
1108
  config: c.config,
1109
- onCancel: (p) => t.cancelHandler(c.id)
1109
+ onCancel: (d) => n.cancelHandler(c.id)
1110
1110
  }, null, 8, ["config", "onCancel"]))), 128);
1111
1111
  }
1112
- const qn = /* @__PURE__ */ Z(Hn, [["render", Ln], ["__file", "DialogContainer.vue"]]), Kn = /* @__PURE__ */ Object.assign({
1112
+ const Un = /* @__PURE__ */ Z(qn, [["render", zn], ["__file", "DialogContainer.vue"]]), Wn = /* @__PURE__ */ Object.assign({
1113
1113
  name: "CommonDialog"
1114
1114
  }, {
1115
1115
  __name: "index",
@@ -1128,52 +1128,52 @@ const qn = /* @__PURE__ */ Z(Hn, [["render", Ln], ["__file", "DialogContainer.vu
1128
1128
  }
1129
1129
  },
1130
1130
  emits: ["confirm"],
1131
- setup(n, { expose: o, emit: r }) {
1132
- const t = R("弹框"), u = R(!1), a = n, c = r;
1133
- let p = null;
1134
- const i = O(() => t.value && v(t.value) ? t.value : a.title), g = () => {
1135
- c("confirm", { callBack: p });
1136
- }, y = () => {
1131
+ setup(t, { expose: o, emit: r }) {
1132
+ const n = T("弹框"), u = T(!1), s = t, c = r;
1133
+ let d = null;
1134
+ const l = V(() => n.value && g(n.value) ? n.value : s.title), p = () => {
1135
+ c("confirm", { callBack: d });
1136
+ }, _ = () => {
1137
1137
  u.value = !1;
1138
- }, h = (w = {}) => {
1139
- u.value = !0, p = w.callBack, t.value = w.title || "";
1138
+ }, y = (C = {}) => {
1139
+ u.value = !0, d = C.callBack, n.value = C.title || "";
1140
1140
  };
1141
1141
  o({
1142
- show: h,
1143
- cancel: y
1142
+ show: y,
1143
+ cancel: _
1144
1144
  });
1145
- const _ = { showTitle: t, openDialog: u, props: a, emit: c, get callBack() {
1146
- return p;
1147
- }, set callBack(w) {
1148
- p = w;
1149
- }, title: i, confirmInner: g, cancel: y, show: h, ref: R, computed: O, get isNotEmpty() {
1150
- return v;
1145
+ const v = { showTitle: n, openDialog: u, props: s, emit: c, get callBack() {
1146
+ return d;
1147
+ }, set callBack(C) {
1148
+ d = C;
1149
+ }, title: l, confirmInner: p, cancel: _, show: y, ref: T, computed: V, get isNotEmpty() {
1150
+ return g;
1151
1151
  } };
1152
- return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
1152
+ return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
1153
1153
  }
1154
1154
  });
1155
- function zn(n, o, r, t, u, a) {
1156
- const c = H("el-button"), p = H("el-dialog");
1157
- return A(), $(p, {
1158
- title: t.title,
1159
- modelValue: t.openDialog,
1160
- "onUpdate:modelValue": o[0] || (o[0] = (i) => t.openDialog = i),
1161
- width: t.props.width,
1162
- "before-close": t.cancel,
1155
+ function Jn(t, o, r, n, u, s) {
1156
+ const c = K("el-button"), d = K("el-dialog");
1157
+ return A(), Q(d, {
1158
+ title: n.title,
1159
+ modelValue: n.openDialog,
1160
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => n.openDialog = l),
1161
+ width: n.props.width,
1162
+ "before-close": n.cancel,
1163
1163
  "destroy-on-close": !0,
1164
- modal: t.props.modal,
1164
+ modal: n.props.modal,
1165
1165
  "show-close": !1,
1166
1166
  "align-center": !0,
1167
1167
  draggable: ""
1168
1168
  }, {
1169
1169
  default: F(() => [
1170
- tn(n.$slots, "dialog-content")
1170
+ rn(t.$slots, "dialog-content")
1171
1171
  ]),
1172
1172
  footer: F(() => [
1173
- le("div", { class: "dialog-footer" }, [
1174
- T(c, {
1173
+ re("div", { class: "dialog-footer" }, [
1174
+ E(c, {
1175
1175
  type: "primary",
1176
- onClick: t.confirmInner
1176
+ onClick: n.confirmInner
1177
1177
  }, {
1178
1178
  default: F(() => [
1179
1179
  j("确定")
@@ -1181,7 +1181,7 @@ function zn(n, o, r, t, u, a) {
1181
1181
  _: 1
1182
1182
  }),
1183
1183
  j(),
1184
- T(c, { onClick: t.cancel }, {
1184
+ E(c, { onClick: n.cancel }, {
1185
1185
  default: F(() => [
1186
1186
  j("关 闭")
1187
1187
  ]),
@@ -1192,7 +1192,7 @@ function zn(n, o, r, t, u, a) {
1192
1192
  _: 3
1193
1193
  }, 8, ["title", "modelValue", "width", "modal"]);
1194
1194
  }
1195
- const Un = /* @__PURE__ */ Z(Kn, [["render", zn], ["__file", "index.vue"]]), Wn = /* @__PURE__ */ Object.assign({
1195
+ const Gn = /* @__PURE__ */ Z(Wn, [["render", Jn], ["__file", "index.vue"]]), $n = /* @__PURE__ */ Object.assign({
1196
1196
  name: "OmitInput"
1197
1197
  }, {
1198
1198
  __name: "index",
@@ -1211,38 +1211,38 @@ const Un = /* @__PURE__ */ Z(Kn, [["render", zn], ["__file", "index.vue"]]), Wn
1211
1211
  }
1212
1212
  },
1213
1213
  emits: ["update:modelValue"],
1214
- setup(n, { expose: o, emit: r }) {
1214
+ setup(t, { expose: o, emit: r }) {
1215
1215
  o();
1216
- const t = n, u = r, a = R(null), c = R(""), p = O({
1217
- get: () => t.modelValue,
1218
- set: (h) => u("update:modelValue", h)
1219
- }), y = { props: t, emits: u, inputDialogRef: a, inputTextArea: c, internalValue: p, openInputDialog: () => {
1220
- c.value = me(p.value), a.value?.show();
1221
- }, confirmEdit: (h) => {
1222
- p.value = me(c.value), a.value?.cancel();
1223
- }, ref: R, computed: O, get deepCopy() {
1224
- return me;
1216
+ const n = t, u = r, s = T(null), c = T(""), d = V({
1217
+ get: () => n.modelValue,
1218
+ set: (y) => u("update:modelValue", y)
1219
+ }), _ = { props: n, emits: u, inputDialogRef: s, inputTextArea: c, internalValue: d, openInputDialog: () => {
1220
+ c.value = ye(d.value), s.value?.show();
1221
+ }, confirmEdit: (y) => {
1222
+ d.value = ye(c.value), s.value?.cancel();
1223
+ }, ref: T, computed: V, get deepCopy() {
1224
+ return ye;
1225
1225
  } };
1226
- return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
1226
+ return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
1227
1227
  }
1228
1228
  });
1229
- function Jn(n, o, r, t, u, a) {
1230
- const c = H("el-text"), p = H("el-input"), i = H("CommonDialog");
1229
+ function Qn(t, o, r, n, u, s) {
1230
+ const c = K("el-text"), d = K("el-input"), l = K("CommonDialog");
1231
1231
  return A(), W("div", {
1232
- class: rt(["custom-omit-input-wrapper", n.$attrs.class])
1232
+ class: rt(["custom-omit-input-wrapper", t.$attrs.class])
1233
1233
  }, [
1234
- T(p, {
1235
- modelValue: t.internalValue,
1236
- "onUpdate:modelValue": o[0] || (o[0] = (g) => t.internalValue = g),
1237
- placeholder: t.props.placeholder,
1234
+ E(d, {
1235
+ modelValue: n.internalValue,
1236
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => n.internalValue = p),
1237
+ placeholder: n.props.placeholder,
1238
1238
  clearable: "",
1239
1239
  type: "text",
1240
1240
  class: "custom-omit-input"
1241
1241
  }, {
1242
1242
  append: F(() => [
1243
- T(c, {
1243
+ E(c, {
1244
1244
  style: { width: "32px", "text-align": "center" },
1245
- onClick: t.openInputDialog
1245
+ onClick: n.openInputDialog
1246
1246
  }, {
1247
1247
  default: F(() => [
1248
1248
  j("...")
@@ -1253,17 +1253,17 @@ function Jn(n, o, r, t, u, a) {
1253
1253
  _: 1
1254
1254
  }, 8, ["modelValue", "placeholder"]),
1255
1255
  j(),
1256
- T(i, {
1256
+ E(l, {
1257
1257
  ref: "inputDialogRef",
1258
- title: t.props.dialogTitle,
1258
+ title: n.props.dialogTitle,
1259
1259
  width: 700,
1260
- onConfirm: t.confirmEdit
1260
+ onConfirm: n.confirmEdit
1261
1261
  }, {
1262
1262
  "dialog-content": F(() => [
1263
- le("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
1264
- T(p, {
1265
- modelValue: t.inputTextArea,
1266
- "onUpdate:modelValue": o[1] || (o[1] = (g) => t.inputTextArea = g),
1263
+ re("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
1264
+ E(d, {
1265
+ modelValue: n.inputTextArea,
1266
+ "onUpdate:modelValue": o[1] || (o[1] = (p) => n.inputTextArea = p),
1267
1267
  type: "textarea",
1268
1268
  rows: 22
1269
1269
  }, null, 8, ["modelValue"])
@@ -1273,7 +1273,7 @@ function Jn(n, o, r, t, u, a) {
1273
1273
  }, 8, ["title"])
1274
1274
  ], 2);
1275
1275
  }
1276
- const Gn = /* @__PURE__ */ Z(Wn, [["render", Jn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), ye = sn(
1276
+ const Yn = /* @__PURE__ */ Z($n, [["render", Qn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), Ce = un(
1277
1277
  "ve/dataCache",
1278
1278
  {
1279
1279
  state: () => ({
@@ -1290,332 +1290,334 @@ const Gn = /* @__PURE__ */ Z(Wn, [["render", Jn], ["__scopeId", "data-v-956a5a3a
1290
1290
  // 暂时只考虑扁平结构
1291
1291
  }),
1292
1292
  actions: {
1293
- setData(n, o) {
1294
- this.data[n] = o;
1293
+ setData(t, o) {
1294
+ this.data[t] = o;
1295
1295
  },
1296
- setPageSource(n = "DB") {
1297
- this.pageSource = n;
1296
+ setPageSource(t = "DB") {
1297
+ this.pageSource = t;
1298
1298
  },
1299
- setContainerSymbol(n) {
1300
- this.containerSymbol = n;
1299
+ setContainerSymbol(t) {
1300
+ this.containerSymbol = t;
1301
1301
  },
1302
- setTdtApiKey(n = "") {
1303
- this.tdtApiKey = n;
1302
+ setTdtApiKey(t = "") {
1303
+ this.tdtApiKey = t;
1304
1304
  },
1305
- setRuleData(n, o, r = !1) {
1306
- r ? this.rules[n] = o : this.rules[n] || (this.rules[n] = o);
1305
+ setRuleData(t, o, r = !1) {
1306
+ r ? this.rules[t] = o : this.rules[t] || (this.rules[t] = o);
1307
1307
  }
1308
1308
  }
1309
1309
  }
1310
- ), Fe = (n) => {
1310
+ ), je = (t) => {
1311
1311
  const o = /* @__PURE__ */ new Map();
1312
1312
  return new Proxy({}, {
1313
- get(r, t = "undefinedKey") {
1314
- return o.has(t) || o.set(t, O(() => n.data[t] ?? {})), o.get(t);
1313
+ get(r, n = "undefinedKey") {
1314
+ return o.has(n) || o.set(n, V(() => t.data[n] ?? {})), o.get(n);
1315
1315
  },
1316
- set(r, t, u) {
1317
- return n.setData(t, u), !0;
1316
+ set(r, n, u) {
1317
+ return t.setData(n, u), !0;
1318
1318
  }
1319
1319
  });
1320
1320
  };
1321
- function $n() {
1322
- const n = ge("hflvloader-api");
1323
- if (!n)
1321
+ function Xn() {
1322
+ const t = ge("hflvloader-api");
1323
+ if (!t)
1324
1324
  throw new Error("组件注册时未提供API,请检查!");
1325
- return n;
1325
+ return t;
1326
1326
  }
1327
- function _e(n, o, r = {}) {
1328
- let t = {
1327
+ function we(t, o, r = {}) {
1328
+ let n = {
1329
1329
  ...r,
1330
1330
  message: o || "message",
1331
- type: n || "info"
1331
+ type: t || "info"
1332
1332
  };
1333
- an(t);
1333
+ fn(n);
1334
1334
  }
1335
- function je(n, o, r = {}) {
1336
- let t = {
1335
+ function Be(t, o, r = {}) {
1336
+ let n = {
1337
1337
  ...r,
1338
1338
  message: o || "message",
1339
- type: n || "info"
1339
+ type: t || "info"
1340
1340
  };
1341
- cn(t);
1341
+ dn(n);
1342
1342
  }
1343
- function yt(n = {}) {
1344
- const o = un.service(n);
1345
- let r = n.timeout || 3e4;
1343
+ function yt(t = {}) {
1344
+ const o = pn.service(t);
1345
+ let r = t.timeout || 3e4;
1346
1346
  return setTimeout(() => {
1347
1347
  o && o.close();
1348
1348
  }, r), o;
1349
1349
  }
1350
- async function _t(n, o, r = {}) {
1351
- let t = [], u = {};
1350
+ async function _t(t, o, r = {}) {
1351
+ let n = [], u = {};
1352
1352
  try {
1353
- (await Promise.allSettled([lt.confirm(o, n, r)])).forEach((c, p) => {
1353
+ (await Promise.allSettled([lt.confirm(o, t, r)])).forEach((c, d) => {
1354
1354
  if (c.status === "fulfilled")
1355
- p === 0 && (u = c.value);
1355
+ d === 0 && (u = c.value);
1356
1356
  else {
1357
- const i = c.reason;
1358
- t.push(i);
1357
+ const l = c.reason;
1358
+ n.push(l);
1359
1359
  }
1360
1360
  });
1361
- } catch (a) {
1362
- console.error("showMessageBoxConfirmAsync 异常:", a), t.push(a);
1361
+ } catch (s) {
1362
+ console.error("showMessageBoxConfirmAsync 异常:", s), n.push(s);
1363
1363
  }
1364
- return { errors: t, resultInfo: u };
1364
+ return { errors: n, resultInfo: u };
1365
1365
  }
1366
- async function vt(n, o, r = {}) {
1367
- let t = [], u = {};
1366
+ async function vt(t, o, r = {}) {
1367
+ let n = [], u = {};
1368
1368
  try {
1369
- (await Promise.allSettled([lt.prompt(o, n, r)])).forEach((c, p) => {
1369
+ (await Promise.allSettled([lt.prompt(o, t, r)])).forEach((c, d) => {
1370
1370
  if (c.status === "fulfilled")
1371
- p === 0 && (u = c.value);
1371
+ d === 0 && (u = c.value);
1372
1372
  else {
1373
- const i = c.reason;
1374
- t.push(i);
1373
+ const l = c.reason;
1374
+ n.push(l);
1375
1375
  }
1376
1376
  });
1377
- } catch (a) {
1378
- console.error("showMessageBoxPromptAsync 异常:", a), t.push(a);
1377
+ } catch (s) {
1378
+ console.error("showMessageBoxPromptAsync 异常:", s), n.push(s);
1379
1379
  }
1380
- return { errors: t, resultInfo: u };
1380
+ return { errors: n, resultInfo: u };
1381
1381
  }
1382
- const po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1382
+ const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1383
1383
  __proto__: null,
1384
1384
  showLoading: yt,
1385
- showMessage: _e,
1385
+ showMessage: we,
1386
1386
  showMessageBoxConfirmAsync: _t,
1387
1387
  showMessageBoxPromptAsync: vt,
1388
- showNotification: je
1388
+ showNotification: Be
1389
1389
  }, Symbol.toStringTag, { value: "Module" })), fe = {
1390
- "==": (n, o) => n == o,
1391
- "!=": (n, o) => n != o,
1392
- ">": (n, o) => +n > +o,
1393
- ">=": (n, o) => +n >= +o,
1394
- "<": (n, o) => +n < +o,
1395
- "<=": (n, o) => +n <= +o,
1396
- contain: (n, o) => n != null && String(n).includes(String(o)),
1397
- unContain: (n, o) => n == null || !String(n).includes(String(o)),
1398
- equals: (n, o) => n != null && String(n) == String(o),
1399
- notEquals: (n, o) => n == null || !String(n) == String(o),
1400
- equalsIgnoreCase: (n, o) => n != null && String(n).toLowerCase() == String(o).toLowerCase(),
1401
- isNull: (n, o) => n == null,
1402
- isNotNull: (n, o) => n != null
1403
- }, pe = (n) => typeof n == "string" && n.trim() !== "" && !isNaN(n) ? +n : n;
1404
- function tt(n = {}, o = !0, r = {}) {
1405
- const t = n, u = o, a = r, c = /* @__PURE__ */ new Map(), p = $n(), i = ye(), g = ge("VE-ContainerParam"), y = ge("VE-CompMethod"), h = [], { openDialog: _, closeDialog: w } = Ae();
1406
- let x = null;
1407
- const S = 250, P = ge("VE-CompHideAndShow"), C = [], E = ge("VE-CompWrapMethod"), k = Fe(i);
1390
+ "==": (t, o) => t == o,
1391
+ "!=": (t, o) => t != o,
1392
+ ">": (t, o) => +t > +o,
1393
+ ">=": (t, o) => +t >= +o,
1394
+ "<": (t, o) => +t < +o,
1395
+ "<=": (t, o) => +t <= +o,
1396
+ contain: (t, o) => t != null && String(t).includes(String(o)),
1397
+ unContain: (t, o) => t == null || !String(t).includes(String(o)),
1398
+ equals: (t, o) => t != null && String(t) == String(o),
1399
+ notEquals: (t, o) => t == null || !String(t) == String(o),
1400
+ equalsIgnoreCase: (t, o) => t != null && String(t).toLowerCase() == String(o).toLowerCase(),
1401
+ isNull: (t, o) => t == null,
1402
+ isNotNull: (t, o) => t != null
1403
+ }, de = (t) => typeof t == "string" && t.trim() !== "" && !isNaN(t) ? +t : t;
1404
+ function tt(t = {}, o = !0, r = {}) {
1405
+ const n = t, u = o, s = r, c = /* @__PURE__ */ new Map(), d = Xn(), l = Ce(), p = ge("VE-ContainerParam"), _ = ge("VE-CompMethod"), y = [], { openDialog: v, closeDialog: C } = Fe();
1406
+ let w = null;
1407
+ const x = 250, P = ge("VE-CompHideAndShow"), S = [], R = ge("VE-CompWrapMethod"), k = je(l);
1408
1408
  let b = null;
1409
- const N = /* @__PURE__ */ new Map(), D = () => {
1409
+ const N = /* @__PURE__ */ new Map();
1410
+ let D = !1;
1411
+ const O = () => {
1410
1412
  b && (b(), b = null);
1411
- }, V = (e) => {
1412
- if (g) {
1413
- if (st(g))
1414
- return g.value[e];
1415
- if (re(g))
1416
- return g[e];
1417
- }
1418
1413
  }, J = (e) => {
1414
+ if (p) {
1415
+ if (st(p))
1416
+ return p.value[e];
1417
+ if (ee(p))
1418
+ return p[e];
1419
+ }
1420
+ }, z = (e) => {
1419
1421
  if (e && e.path) {
1420
- let s = e.params || [], l = {};
1421
- s.forEach((f, d) => {
1422
- if (se(f)) {
1423
- let m = Q(f);
1424
- l[f.tarKey] = m;
1422
+ let a = e.params || [], i = {};
1423
+ a.forEach((f, m) => {
1424
+ if (ie(f)) {
1425
+ let h = Y(f);
1426
+ i[f.tarKey] = h;
1425
1427
  }
1426
- }), e.namedRouter ? U(a.routerPush) && a.routerPush(e.path, l) : U(a.routerPush2) && a.routerPush2(e.path, l);
1428
+ }), e.namedRouter ? U(s.routerPush) && s.routerPush(e.path, i) : U(s.routerPush2) && s.routerPush2(e.path, i);
1427
1429
  }
1428
- }, z = (e = []) => {
1429
- let s = [];
1430
- return e.forEach((l) => {
1431
- if (se(l)) {
1432
- let f = Q(l);
1433
- s.push([
1434
- l.tarKey,
1430
+ }, me = (e = []) => {
1431
+ let a = [];
1432
+ return e.forEach((i) => {
1433
+ if (ie(i)) {
1434
+ let f = Y(i);
1435
+ a.push([
1436
+ i.tarKey,
1435
1437
  f
1436
1438
  ]);
1437
1439
  }
1438
- }), s;
1439
- }, ee = (e, s) => {
1440
- if (e.customFunc && v(e.successFunc)) {
1441
- const l = {
1442
- helper: { ...a, ...I }
1440
+ }), a;
1441
+ }, le = (e, a) => {
1442
+ if (e.customFunc && g(e.successFunc)) {
1443
+ const i = {
1444
+ helper: { ...s, ...I }
1443
1445
  };
1444
1446
  try {
1445
1447
  let f = e.successFunc.toString().trim();
1446
- f.indexOf("function") < 0 && (f = `function(res) { ${f} }`), new Function("context", `with(context) {return ${f}}`)(l)(s);
1448
+ f.indexOf("function") < 0 && (f = `function(res) { ${f} }`), new Function("context", `with(context) {return ${f}}`)(i)(a);
1447
1449
  } catch (f) {
1448
1450
  console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", f);
1449
1451
  }
1450
1452
  }
1451
- }, ie = (e, s, l) => {
1452
- if (e.customFunc && v(e.errorFunc)) {
1453
+ }, ae = (e, a, i) => {
1454
+ if (e.customFunc && g(e.errorFunc)) {
1453
1455
  const f = {
1454
- helper: { ...a, ...I }
1456
+ helper: { ...s, ...I }
1455
1457
  };
1456
1458
  try {
1457
- let d = e.errorFunc.toString().trim();
1458
- d.indexOf("function") < 0 && (d = "function (res,err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(f)(s, l);
1459
- } catch (d) {
1460
- console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", d);
1459
+ let m = e.errorFunc.toString().trim();
1460
+ m.indexOf("function") < 0 && (m = "function (res,err){" + m + "}"), new Function("context", `with(context) {return ${m}}`)(f)(a, i);
1461
+ } catch (m) {
1462
+ console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", m);
1461
1463
  }
1462
1464
  }
1463
- }, ce = (e, s) => {
1464
- if (q(s) && s.length > 0) {
1465
- let l, f, d;
1466
- for (let m = 0; m < s.length; m++)
1467
- l = s[m], d = l.dataKey || "data", v(d) && Re(e, d) && (f = Te(e, d), v(l.ds) && v(l.tarKey) && Pt(l, f));
1465
+ }, ce = (e, a) => {
1466
+ if (q(a) && a.length > 0) {
1467
+ let i, f, m;
1468
+ for (let h = 0; h < a.length; h++)
1469
+ i = a[h], m = i.dataKey || "data", g(m) && De(e, m) && (f = Ie(e, m), g(i.ds) && g(i.tarKey) && Mt(i, f));
1468
1470
  }
1469
- }, Oe = async (e) => {
1470
- let s = [], l = {};
1471
+ }, G = async (e) => {
1472
+ let a = [], i = {};
1471
1473
  try {
1472
- (await Promise.allSettled([p.rawRequest(e)])).forEach((d, m) => {
1473
- if (d.status === "fulfilled")
1474
- m === 0 && (l = d.value);
1474
+ (await Promise.allSettled([d.rawRequest(e)])).forEach((m, h) => {
1475
+ if (m.status === "fulfilled")
1476
+ h === 0 && (i = m.value);
1475
1477
  else {
1476
- const M = d.reason;
1477
- s.push(M);
1478
+ const M = m.reason;
1479
+ a.push(M);
1478
1480
  }
1479
1481
  });
1480
1482
  } catch (f) {
1481
- console.error("_dataRequestHandler4Async 异常:", f), s.push(f);
1483
+ console.error("_dataRequestHandler4Async 异常:", f), a.push(f);
1482
1484
  }
1483
- return { errors: s, resultInfo: l };
1484
- }, G = (e) => {
1485
+ return { errors: a, resultInfo: i };
1486
+ }, ke = (e) => {
1485
1487
  if (e.method == "GET" || e.method == "get") {
1486
- let s = e.url;
1487
- if (/\{#.*?#\}/g.test(s)) {
1488
- let f = e.data || [], d = /* @__PURE__ */ new Set(), m = !1, M = null;
1489
- if (s = s.replace(/\{#(.*?)#\}/g, (L, ne) => {
1490
- m = !1, M = null;
1491
- for (let de = 0; de < f.length; de++)
1492
- if (ne == f[de][0]) {
1493
- m = !0, M = f[de][1];
1488
+ let a = e.url;
1489
+ if (/\{#.*?#\}/g.test(a)) {
1490
+ let f = e.data || [], m = /* @__PURE__ */ new Set(), h = !1, M = null;
1491
+ if (a = a.replace(/\{#(.*?)#\}/g, (H, ne) => {
1492
+ h = !1, M = null;
1493
+ for (let he = 0; he < f.length; he++)
1494
+ if (ne == f[he][0]) {
1495
+ h = !0, M = f[he][1];
1494
1496
  break;
1495
1497
  }
1496
- return m ? (d.add(ne), M) : L;
1497
- }), d.size > 0) {
1498
- let L = f.filter((ne, de) => !d.has(ne[0]));
1499
- e.url = s, e.data = L || [];
1498
+ return h ? (m.add(ne), M) : H;
1499
+ }), m.size > 0) {
1500
+ let H = f.filter((ne, he) => !m.has(ne[0]));
1501
+ e.url = a, e.data = H || [];
1500
1502
  }
1501
1503
  }
1502
1504
  }
1503
- }, Ve = async (e) => {
1504
- if (e && v(e.url)) {
1505
- let s = e.respParams || [], l = {};
1506
- l.url = e.url, l.externalRequest = e.external || !1, l.method = e.method || "GET", l.paramType = "object", l.data = z(e.params), l.headers = e.headers, e.series && (l.series = e.series, l.requestCount = e.requestCount || 0, l.time = e.time || 1e3), G(l);
1505
+ }, Ct = async (e) => {
1506
+ if (e && g(e.url)) {
1507
+ let a = e.respParams || [], i = {};
1508
+ i.url = e.url, i.externalRequest = e.external || !1, i.method = e.method || "GET", i.paramType = "object", i.data = me(e.params), i.headers = e.headers, e.series && (i.series = e.series, i.requestCount = e.requestCount || 0, i.time = e.time || 1e3), ke(i);
1507
1509
  let f = null;
1508
1510
  if (e.loading) {
1509
- let d = e.load || {}, m = {
1510
- ...d.extParam,
1511
- lock: d.lock,
1512
- background: d.background,
1513
- text: d.text
1511
+ let m = e.load || {}, h = {
1512
+ ...m.extParam,
1513
+ lock: m.lock,
1514
+ background: m.background,
1515
+ text: m.text
1514
1516
  };
1515
- f = yt(m);
1517
+ f = yt(h);
1516
1518
  }
1517
1519
  if (e.sync) {
1518
- l.series = !1;
1519
- const { errors: d, resultInfo: m } = await Oe(l);
1520
- if (f && f.close(), d && d.length > 0) {
1520
+ i.series = !1;
1521
+ const { errors: m, resultInfo: h } = await G(i);
1522
+ if (f && f.close(), m && m.length > 0) {
1521
1523
  if (e.enabledRespErrTip) {
1522
1524
  let M = e.respErrTip || {};
1523
1525
  te(M);
1524
1526
  }
1525
- ie(e, m, d[0]);
1526
- } else if (m)
1527
- if (l.externalRequest)
1528
- if (m && m.status == 200) {
1527
+ ae(e, h, m[0]);
1528
+ } else if (h)
1529
+ if (i.externalRequest)
1530
+ if (h && h.status == 200) {
1529
1531
  if (e.enabledRespTip) {
1530
1532
  let M = e.respTip || {};
1531
1533
  te(M);
1532
1534
  }
1533
- ce(m, s), ee(e, m);
1535
+ ce(h, a), le(e, h);
1534
1536
  } else {
1535
1537
  if (e.enabledRespErrTip) {
1536
1538
  let M = e.respErrTip || {};
1537
1539
  te(M);
1538
1540
  }
1539
- ie(e, m, null);
1541
+ ae(e, h, null);
1540
1542
  }
1541
1543
  else {
1542
- if (m) {
1544
+ if (h) {
1543
1545
  if (e.enabledRespTip) {
1544
1546
  let M = e.respTip || {};
1545
1547
  te(M);
1546
1548
  }
1547
- ce(m, s);
1549
+ ce(h, a);
1548
1550
  }
1549
- ee(e, m);
1551
+ le(e, h);
1550
1552
  }
1551
1553
  } else {
1552
- let d = p.request(l, function(m) {
1553
- if (f && f.close(), l.externalRequest)
1554
- if (m && m.status == 200) {
1554
+ let m = d.request(i, function(h) {
1555
+ if (f && f.close(), i.externalRequest)
1556
+ if (h && h.status == 200) {
1555
1557
  if (e.enabledRespTip) {
1556
1558
  let M = e.respTip || {};
1557
1559
  te(M);
1558
1560
  }
1559
- ce(m, s), ee(e, m);
1561
+ ce(h, a), le(e, h);
1560
1562
  } else {
1561
1563
  if (e.enabledRespErrTip) {
1562
1564
  let M = e.respErrTip || {};
1563
1565
  te(M);
1564
1566
  }
1565
- ie(e, m, null);
1567
+ ae(e, h, null);
1566
1568
  }
1567
1569
  else {
1568
- if (m) {
1570
+ if (h) {
1569
1571
  if (e.enabledRespTip) {
1570
1572
  let M = e.respTip || {};
1571
1573
  te(M);
1572
1574
  }
1573
- ce(m, s);
1575
+ ce(h, a);
1574
1576
  }
1575
- ee(e, m);
1577
+ le(e, h);
1576
1578
  }
1577
- }, function(m) {
1579
+ }, function(h) {
1578
1580
  if (f && f.close(), e.enabledRespErrTip) {
1579
1581
  let M = e.respErrTip || {};
1580
1582
  te(M);
1581
1583
  }
1582
- ie(e, null, m);
1584
+ ae(e, null, h);
1583
1585
  });
1584
- d && h.push(d);
1586
+ m && y.push(m);
1585
1587
  }
1586
1588
  }
1587
1589
  }, te = (e = {}) => {
1588
- e.tipType == "msg" ? _e(e.type, e.msg, e.extParam) : e.tipType == "notify" && je(e.type, e.msg, e.extParam);
1590
+ e.tipType == "msg" ? we(e.type, e.msg, e.extParam) : e.tipType == "notify" && Be(e.type, e.msg, e.extParam);
1589
1591
  }, wt = (e) => {
1590
1592
  if (e && q(e.params)) {
1591
- let s = e.params || [], l = null;
1592
- for (let f = 0; f < s.length; f++)
1593
- if (l = s[f], se(l)) {
1594
- let d = Q(l);
1595
- I.setDataCache(l.tarKey, d);
1593
+ let a = e.params || [], i = null;
1594
+ for (let f = 0; f < a.length; f++)
1595
+ if (i = a[f], ie(i)) {
1596
+ let m = Y(i);
1597
+ I.setDataCache(i.tarKey, m);
1596
1598
  }
1597
1599
  }
1598
- }, xt = (e) => {
1600
+ }, bt = (e) => {
1599
1601
  if (e && q(e.params)) {
1600
- let s = e.params || [], l = null;
1601
- for (let f = 0; f < s.length; f++)
1602
- if (l = s[f], v(l.ipn) && v(l.opn) && c.has(l.ipn)) {
1603
- let d = c.get(l.ipn), m = fe.equals(d, l.ipv);
1604
- if (m)
1605
- c.set(l.opn, l.opv);
1602
+ let a = e.params || [], i = null;
1603
+ for (let f = 0; f < a.length; f++)
1604
+ if (i = a[f], g(i.ipn) && g(i.opn) && c.has(i.ipn)) {
1605
+ let m = c.get(i.ipn), h = fe.equals(m, i.ipv);
1606
+ if (h)
1607
+ c.set(i.opn, i.opv);
1606
1608
  else {
1607
- let M = pe(d), L = pe(l.ipv);
1608
- m = fe["=="](M, L), m && c.set(l.opn, l.opv);
1609
+ let M = de(m), H = de(i.ipv);
1610
+ h = fe["=="](M, H), h && c.set(i.opn, i.opv);
1609
1611
  }
1610
1612
  }
1611
1613
  }
1612
- }, bt = (e) => {
1614
+ }, xt = (e) => {
1613
1615
  if (e && q(e.params)) {
1614
- let s = e.params || [], l = null;
1615
- for (let f = 0; f < s.length; f++)
1616
- if (l = s[f], se(l)) {
1617
- let d = Q(l);
1618
- I.setParam(l.tarKey, d);
1616
+ let a = e.params || [], i = null;
1617
+ for (let f = 0; f < a.length; f++)
1618
+ if (i = a[f], ie(i)) {
1619
+ let m = Y(i);
1620
+ I.setParam(i.tarKey, m);
1619
1621
  }
1620
1622
  }
1621
1623
  }, I = {
@@ -1625,109 +1627,109 @@ function tt(n = {}, o = !0, r = {}) {
1625
1627
  getParam: function(e) {
1626
1628
  return c.get(e);
1627
1629
  },
1628
- setParam: function(e, s) {
1629
- c.set(e, s);
1630
+ setParam: function(e, a) {
1631
+ c.set(e, a);
1630
1632
  },
1631
1633
  getDataCache: function(e) {
1632
- return i.data[e];
1634
+ return l.data[e];
1633
1635
  },
1634
- setDataCache: function(e, s) {
1635
- i.setData(e, s);
1636
+ setDataCache: function(e, a) {
1637
+ l.setData(e, a);
1636
1638
  },
1637
1639
  getContainerParam: function(e) {
1638
- return V(e);
1640
+ return J(e);
1639
1641
  },
1640
- setSessionParam: function(e, s) {
1641
- sessionStorage.setItem(e, s);
1642
+ setSessionParam: function(e, a) {
1643
+ sessionStorage.setItem(e, a);
1642
1644
  },
1643
1645
  getSessionParam: function(e) {
1644
1646
  return sessionStorage.getItem(e);
1645
1647
  },
1646
- setLocalParam: function(e, s) {
1647
- localStorage.setItem(e, s);
1648
+ setLocalParam: function(e, a) {
1649
+ localStorage.setItem(e, a);
1648
1650
  },
1649
1651
  getLocalParam: function(e) {
1650
1652
  return localStorage.getItem(e);
1651
1653
  },
1652
- callCompMethod: function(e, s, l = {}) {
1653
- U(y) ? y(e, s, l) : console.error("compMethod is not function.");
1654
+ callCompMethod: function(e, a, i = {}) {
1655
+ U(_) ? _(e, a, i) : console.error("compMethod is not function.");
1654
1656
  },
1655
- setJsCookie: function(e, s, l = 30) {
1656
- Ie.set(e, s, { expires: l });
1657
+ setJsCookie: function(e, a, i = 30) {
1658
+ Re.set(e, a, { expires: i });
1657
1659
  },
1658
1660
  getJsCookie: function(e) {
1659
- return Ie.get(e);
1661
+ return Re.get(e);
1660
1662
  },
1661
1663
  removeJsCookie: function(e) {
1662
- Ie.remove(e);
1664
+ Re.remove(e);
1663
1665
  },
1664
- log: function(e = "log", s) {
1665
- e == "error" ? console.error(s) : e == "info" ? console.info(s) : e == "warn" ? console.warn(s) : console.log(s);
1666
+ log: function(e = "log", a) {
1667
+ e == "error" ? console.error(a) : e == "info" ? console.info(a) : e == "warn" ? console.warn(a) : console.log(a);
1666
1668
  },
1667
1669
  isNotEmptyStr: function(e) {
1668
- return v(e);
1670
+ return g(e);
1669
1671
  },
1670
1672
  md5: function(e) {
1671
- return dt(e);
1673
+ return pt(e);
1672
1674
  },
1673
1675
  getDate: function(e) {
1674
1676
  return ft(e);
1675
1677
  },
1676
- formatDate: function(e, s = "yyyy-MM-dd") {
1677
- return ut(e, s);
1678
+ formatDate: function(e, a = "yyyy-MM-dd") {
1679
+ return ut(e, a);
1678
1680
  },
1679
1681
  closeDialog: function(e) {
1680
- w(e);
1682
+ C(e);
1681
1683
  },
1682
- hideAndShowComp: function(e, s, l = {}) {
1683
- U(P) ? P(e, s, l) : console.error("hideAndShowComp is not function.");
1684
+ hideAndShowComp: function(e, a, i = {}) {
1685
+ U(P) ? P(e, a, i) : console.error("hideAndShowComp is not function.");
1684
1686
  },
1685
- callCompWrapMethod: function(e, s, l = {}) {
1686
- if (U(E))
1687
- return E(e, s, l);
1687
+ callCompWrapMethod: function(e, a, i = {}) {
1688
+ if (U(R))
1689
+ return R(e, a, i);
1688
1690
  console.error("compWrapMethod is not function.");
1689
1691
  },
1690
1692
  getRuleDataCache: function(e) {
1691
- return i.rules[e];
1693
+ return l.rules[e];
1692
1694
  },
1693
- setRuleDataCache: function(e, s, l = !1) {
1694
- i.setRuleData(e, s, l);
1695
+ setRuleDataCache: function(e, a, i = !1) {
1696
+ l.setRuleData(e, a, i);
1695
1697
  },
1696
1698
  getNumberFormat: function() {
1697
1699
  return B;
1698
1700
  },
1699
- formatNum: function(e, s = 0, l = 3, f = !1) {
1700
- return ae(e) ? B.formatDecimal(e, s, l, f) : e;
1701
+ formatNum: function(e, a = 0, i = 3, f = !1) {
1702
+ return se(e) ? B.formatDecimal(e, a, i, f) : e;
1701
1703
  }
1702
1704
  }, St = (e) => {
1703
- if (e && v(e.funcBody)) {
1704
- const s = {
1705
- helper: { ...a, ...I }
1705
+ if (e && g(e.funcBody)) {
1706
+ const a = {
1707
+ helper: { ...s, ...I }
1706
1708
  };
1707
1709
  try {
1708
- let l = e.funcBody.toString().trim();
1709
- l.indexOf("function") < 0 && (l = "function(){" + l + "}"), new Function("context", `with(context) {return ${l}}`)(s)();
1710
- } catch (l) {
1711
- console.error("处理自定义函数时出错:", l);
1710
+ let i = e.funcBody.toString().trim();
1711
+ i.indexOf("function") < 0 && (i = "function(){" + i + "}"), new Function("context", `with(context) {return ${i}}`)(a)();
1712
+ } catch (i) {
1713
+ console.error("处理自定义函数时出错:", i);
1712
1714
  }
1713
1715
  }
1714
- }, Ct = (e) => {
1715
- if (e && v(e.type)) {
1716
+ }, Pt = (e) => {
1717
+ if (e && g(e.type)) {
1716
1718
  if (e.opType == "clear") {
1717
- let s = e.type;
1718
- s == "session" ? sessionStorage.clear() : s == "local" && localStorage.clear();
1719
+ let a = e.type;
1720
+ a == "session" ? sessionStorage.clear() : a == "local" && localStorage.clear();
1719
1721
  } else if (q(e.params) && e.params.length > 0) {
1720
- let s = e.type, l = e.params || [], f = null;
1721
- for (let d = 0; d < l.length; d++)
1722
- if (f = l[d], f.delete)
1723
- v(f.tarKey) && (s == "session" ? sessionStorage.removeItem(f.tarKey) : s == "local" ? localStorage.removeItem(f.tarKey) : s == "jsCookie" && I.removeJsCookie(f.tarKey));
1724
- else if (se(f)) {
1725
- let m = Q(f);
1726
- s == "session" ? sessionStorage.setItem(f.tarKey, m) : s == "local" ? localStorage.setItem(f.tarKey, m) : s == "jsCookie" && I.setJsCookie(f.tarKey, m);
1722
+ let a = e.type, i = e.params || [], f = null;
1723
+ for (let m = 0; m < i.length; m++)
1724
+ if (f = i[m], f.delete)
1725
+ g(f.tarKey) && (a == "session" ? sessionStorage.removeItem(f.tarKey) : a == "local" ? localStorage.removeItem(f.tarKey) : a == "jsCookie" && I.removeJsCookie(f.tarKey));
1726
+ else if (ie(f)) {
1727
+ let h = Y(f);
1728
+ a == "session" ? sessionStorage.setItem(f.tarKey, h) : a == "local" ? localStorage.setItem(f.tarKey, h) : a == "jsCookie" && I.setJsCookie(f.tarKey, h);
1727
1729
  }
1728
1730
  }
1729
1731
  }
1730
- }, se = (e) => v(e.ds) && v(e.tarKey) ? e.ds != "inputV" ? v(e.key) : !0 : !1, Q = (e) => {
1732
+ }, ie = (e) => g(e.ds) && g(e.tarKey) ? e.ds != "inputV" ? g(e.key) : !0 : !1, Y = (e) => {
1731
1733
  if (e.ds == "inputP")
1732
1734
  return I.getParam(e.key);
1733
1735
  if (e.ds == "cacheP")
@@ -1741,425 +1743,443 @@ function tt(n = {}, o = !0, r = {}) {
1741
1743
  if (e.ds == "jsCookieP")
1742
1744
  return I.getJsCookie(e.key);
1743
1745
  if (e.ds == "compProp")
1744
- return U(a.getPropValue) ? a.getPropValue(e.key) : null;
1746
+ return U(s.getPropValue) ? s.getPropValue(e.key) : null;
1745
1747
  if (e.ds == "compStyle")
1746
- return U(a.getStyleValue) ? a.getStyleValue(e.key) : null;
1748
+ return U(s.getStyleValue) ? s.getStyleValue(e.key) : null;
1747
1749
  if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
1748
- let s = I.getParam(e.ds);
1749
- return Pe(s) ? null : re(s) ? v(e.key) && Re(s, e.key) ? Te(s, e.key) : null : s;
1750
+ let a = I.getParam(e.ds);
1751
+ return _e(a) ? null : ee(a) ? g(e.key) && De(a, e.key) ? Ie(a, e.key) : null : a;
1750
1752
  } else {
1751
- let s = e.key;
1752
- return s.toString().trim().indexOf("#json#") == 0 ? (s = s.toString().trim().replace("#json#", ""), at(s, {})) : e.key;
1753
+ let a = e.key;
1754
+ return a.toString().trim().indexOf("#json#") == 0 ? (a = a.toString().trim().replace("#json#", ""), at(a, {})) : e.key;
1753
1755
  }
1754
- }, Pt = (e, s) => {
1756
+ }, Mt = (e, a) => {
1755
1757
  if (e.ds == "cacheP")
1756
- return I.setDataCache(e.tarKey, s);
1758
+ return I.setDataCache(e.tarKey, a);
1757
1759
  if (e.ds == "inputP")
1758
- return I.setParam(e.tarKey, s);
1760
+ return I.setParam(e.tarKey, a);
1759
1761
  if (e.ds == "sessionP")
1760
- return I.setSessionParam(e.tarKey, s);
1762
+ return I.setSessionParam(e.tarKey, a);
1761
1763
  if (e.ds == "localP")
1762
- return I.setLocalParam(e.tarKey, s);
1763
- e.ds == "jsCookieP" ? I.setJsCookie(e.tarKey, s) : e.ds == "compProp" ? U(a.setPropValue) && a.setPropValue(e.tarKey, s) : e.ds == "compStyle" && U(a.setStyleValue) && a.setStyleValue(e.tarKey, s);
1764
- }, Mt = (e) => {
1764
+ return I.setLocalParam(e.tarKey, a);
1765
+ e.ds == "jsCookieP" ? I.setJsCookie(e.tarKey, a) : e.ds == "compProp" ? U(s.setPropValue) && s.setPropValue(e.tarKey, a) : e.ds == "compStyle" && U(s.setStyleValue) && s.setStyleValue(e.tarKey, a);
1766
+ }, Ot = (e) => {
1765
1767
  if (e) {
1766
- let s = e.styleSets || [], l = e.propSets || [];
1767
- q(l) && l.length > 0 && U(a.setPropValue) && l.forEach((f, d) => {
1768
- if (se(f)) {
1769
- let m = Q(f);
1770
- a.setPropValue(f.tarKey, m);
1768
+ let a = e.styleSets || [], i = e.propSets || [];
1769
+ q(i) && i.length > 0 && U(s.setPropValue) && i.forEach((f, m) => {
1770
+ if (ie(f)) {
1771
+ let h = Y(f);
1772
+ s.setPropValue(f.tarKey, h);
1771
1773
  }
1772
- }), q(s) && s.length > 0 && U(a.setStyleValue) && s.forEach((f, d) => {
1773
- if (se(f)) {
1774
- let m = Q(f);
1775
- a.setStyleValue(f.tarKey, m);
1774
+ }), q(a) && a.length > 0 && U(s.setStyleValue) && a.forEach((f, m) => {
1775
+ if (ie(f)) {
1776
+ let h = Y(f);
1777
+ s.setStyleValue(f.tarKey, h);
1776
1778
  }
1777
1779
  });
1778
1780
  }
1779
- }, Ot = (e) => {
1780
- let s = !1;
1781
+ }, Vt = (e) => {
1782
+ let a = !1;
1781
1783
  if (e && q(e.params)) {
1782
- let l = e.params || [], f = null, d = !1;
1783
- for (let m = 0; m < l.length; m++) {
1784
- f = l[m];
1785
- let M = Q(f), L = f.value;
1784
+ let i = e.params || [], f = null, m = !1;
1785
+ for (let h = 0; h < i.length; h++) {
1786
+ f = i[h];
1787
+ let M = Y(f), H = f.value;
1786
1788
  const ne = f.opType;
1787
- if ([">", ">=", "<", "<=", "=="].includes(ne) && (M = pe(M), L = pe(L)), fe[ne] ? d = fe[ne](M, L) : d = !1, d) {
1788
- s = !0;
1789
+ if ([">", ">=", "<", "<=", "=="].includes(ne) && (M = de(M), H = de(H)), fe[ne] ? m = fe[ne](M, H) : m = !1, m) {
1790
+ a = !0;
1789
1791
  break;
1790
1792
  }
1791
1793
  }
1792
- if (e.enabledTip && s) {
1793
- let m = e.tip || {};
1794
- m.tipType == "msg" ? _e(m.type, m.msg, m.extParam) : m.tipType == "notify" && je(m.type, m.msg, m.extParam);
1794
+ if (e.enabledTip && a) {
1795
+ let h = e.tip || {};
1796
+ h.tipType == "msg" ? we(h.type, h.msg, h.extParam) : h.tipType == "notify" && Be(h.type, h.msg, h.extParam);
1795
1797
  }
1796
1798
  }
1797
- return s;
1798
- }, qe = (e, s) => {
1799
- if (e.customFunc && v(e.confirmFunc)) {
1800
- const l = {
1801
- helper: { ...a, ...I }
1799
+ return a;
1800
+ }, Le = (e, a) => {
1801
+ if (e.customFunc && g(e.confirmFunc)) {
1802
+ const i = {
1803
+ helper: { ...s, ...I }
1802
1804
  };
1803
1805
  try {
1804
1806
  let f = e.confirmFunc.toString().trim();
1805
- f.indexOf("function") < 0 && (f = "function (promptValue){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(l)(s);
1807
+ f.indexOf("function") < 0 && (f = "function (promptValue){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(i)(a);
1806
1808
  } catch (f) {
1807
1809
  console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", f);
1808
1810
  }
1809
1811
  }
1810
- }, Vt = (e, s) => {
1811
- if (e.customFunc && v(e.errorFunc)) {
1812
- const l = {
1813
- helper: { ...a, ...I }
1812
+ }, It = (e, a) => {
1813
+ if (e.customFunc && g(e.errorFunc)) {
1814
+ const i = {
1815
+ helper: { ...s, ...I }
1814
1816
  };
1815
1817
  try {
1816
1818
  let f = e.errorFunc.toString().trim();
1817
- f.indexOf("function") < 0 && (f = "function (err){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(l)(s);
1819
+ f.indexOf("function") < 0 && (f = "function (err){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(i)(a);
1818
1820
  } catch (f) {
1819
1821
  console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", f);
1820
1822
  }
1821
1823
  }
1822
- }, ve = (e, s) => {
1824
+ }, xe = (e, a) => {
1823
1825
  if (e.customFunc) {
1824
- let l = "";
1825
- if (s == "cancel" && v(e.cancelFunc))
1826
- l = e.cancelFunc;
1827
- else if (s == "close" && v(e.closeFunc))
1828
- l = e.closeFunc;
1826
+ let i = "";
1827
+ if (a == "cancel" && g(e.cancelFunc))
1828
+ i = e.cancelFunc;
1829
+ else if (a == "close" && g(e.closeFunc))
1830
+ i = e.closeFunc;
1829
1831
  else
1830
1832
  return;
1831
1833
  const f = {
1832
- helper: { ...a, ...I }
1834
+ helper: { ...s, ...I }
1833
1835
  };
1834
1836
  try {
1835
- let d = l.toString().trim();
1836
- d.indexOf("function") < 0 && (d = "function (err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(f)();
1837
- } catch (d) {
1838
- console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", d);
1837
+ let m = i.toString().trim();
1838
+ m.indexOf("function") < 0 && (m = "function (err){" + m + "}"), new Function("context", `with(context) {return ${m}}`)(f)();
1839
+ } catch (m) {
1840
+ console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", m);
1839
1841
  }
1840
1842
  }
1841
- }, It = async (e) => {
1842
- let s = !1;
1843
- if (e && v(e.type)) {
1844
- let l = {
1843
+ }, Dt = async (e) => {
1844
+ let a = !1;
1845
+ if (e && g(e.type)) {
1846
+ let i = {
1845
1847
  ...e.params,
1846
1848
  type: e.msgType || "info",
1847
1849
  confirmButtonText: e.confirmText,
1848
1850
  cancelButtonText: e.cancelText
1849
1851
  };
1850
1852
  if (e.type == "confirm") {
1851
- const { errors: f, resultInfo: d } = await _t(e.title, e.message, l);
1852
- f && f.length > 0 ? f[0] == "cancel" ? ve(e, "cancel") : f[0] == "close" && ve(e, "close") : d == "confirm" && (s = !0, qe(e, null));
1853
+ const { errors: f, resultInfo: m } = await _t(e.title, e.message, i);
1854
+ f && f.length > 0 ? f[0] == "cancel" ? xe(e, "cancel") : f[0] == "close" && xe(e, "close") : m == "confirm" && (a = !0, Le(e, null));
1853
1855
  } else if (e.type == "prompt") {
1854
- if (v(l.inputPattern)) {
1855
- const m = l.inputPattern.replace(/\\\\/g, "\\");
1856
- l.inputPattern = new RegExp(m);
1856
+ if (g(i.inputPattern)) {
1857
+ const h = i.inputPattern.replace(/\\\\/g, "\\");
1858
+ i.inputPattern = new RegExp(h);
1857
1859
  }
1858
- const { errors: f, resultInfo: d } = await vt(e.title, e.message, l);
1859
- f && f.length > 0 ? f[0] == "cancel" ? ve(e, "cancel") : f[0] == "close" ? ve(e, "close") : Vt(e, f[0]) : d.action == "confirm" && (s = !0, I.setParam("promptValue", d.value), qe(e, d.value));
1860
+ const { errors: f, resultInfo: m } = await vt(e.title, e.message, i);
1861
+ f && f.length > 0 ? f[0] == "cancel" ? xe(e, "cancel") : f[0] == "close" ? xe(e, "close") : It(e, f[0]) : m.action == "confirm" && (a = !0, I.setParam("promptValue", m.value), Le(e, m.value));
1860
1862
  }
1861
- e.autoBlock || (s = !0);
1863
+ e.autoBlock || (a = !0);
1862
1864
  } else
1863
- s = !0;
1864
- return s;
1865
+ a = !0;
1866
+ return a;
1865
1867
  }, kt = (e) => {
1866
- if (e && v(e.pageId)) {
1867
- let s = { ...e };
1868
+ if (e && g(e.pageId)) {
1869
+ let a = { ...e };
1868
1870
  if (e.customPosition) {
1869
- let l = (I.getParam("elementRectLeft") ?? 0) + (ae(e.leftOffset) ? e.leftOffset : 0), f = (I.getParam("elementRectTop") ?? 0) + (ae(e.topOffset) ? e.topOffset : 0);
1870
- s.absLeft = l, s.absTop = f;
1871
+ let i = (I.getParam("elementRectLeft") ?? 0) + (se(e.leftOffset) ? e.leftOffset : 0), f = (I.getParam("elementRectTop") ?? 0) + (se(e.topOffset) ? e.topOffset : 0);
1872
+ a.absLeft = i, a.absTop = f;
1871
1873
  }
1872
- _(s);
1874
+ v(a);
1873
1875
  }
1874
- }, Dt = (e) => {
1876
+ }, Rt = (e) => {
1875
1877
  if (e && q(e.params)) {
1876
- let s = e.params || [], l = null;
1877
- for (let f = 0; f < s.length; f++)
1878
- if (l = s[f], v(l.compId)) {
1879
- let d = l.options || {};
1880
- l.type == "s" ? I.hideAndShowComp(l.compId, !0, d) : I.hideAndShowComp(l.compId, !1, d);
1878
+ let a = e.params || [], i = null;
1879
+ for (let f = 0; f < a.length; f++)
1880
+ if (i = a[f], g(i.compId)) {
1881
+ let m = i.options || {};
1882
+ i.type == "s" ? I.hideAndShowComp(i.compId, !0, m) : I.hideAndShowComp(i.compId, !1, m);
1881
1883
  }
1882
1884
  }
1883
1885
  }, Et = (e) => {
1884
1886
  if (e) {
1885
- let s = e.interval ?? 1e3, l = setInterval(
1887
+ let a = e.interval ?? 1e3, i = setInterval(
1886
1888
  () => {
1887
- X("debug", "定时器触发..."), Ue();
1889
+ $("debug", "定时器触发..."), Ue();
1888
1890
  },
1889
- s
1891
+ a
1890
1892
  );
1891
- C.push(l), Ue();
1893
+ S.push(i), Ue();
1892
1894
  }
1893
1895
  }, Tt = (e) => {
1894
1896
  if (e) {
1895
- let s = e.bindRefreshKey, l = e.clearFlag;
1896
- if (v(s))
1897
- if (l)
1898
- D();
1897
+ let a = e.bindRefreshKey, i = e.clearFlag;
1898
+ if (g(a))
1899
+ if (i)
1900
+ O();
1899
1901
  else {
1900
- D();
1901
- const f = k[s];
1902
+ O();
1903
+ const f = k[a];
1902
1904
  if (!f) return;
1903
- b = Me(f, (d, m) => {
1904
- Qt();
1905
+ b = be(f, (m, h) => {
1906
+ Zt();
1905
1907
  });
1906
1908
  }
1907
1909
  }
1908
- }, Rt = (e) => {
1910
+ }, At = (e) => {
1909
1911
  if (e) {
1910
- let s = e.interval ?? 1e3, l = setTimeout(
1912
+ let a = e.interval ?? 1e3, i = setTimeout(
1911
1913
  () => {
1912
- $t(e.id);
1914
+ Xt(e.id);
1913
1915
  },
1914
- s
1916
+ a
1915
1917
  );
1916
- N.set(e.id, l);
1918
+ N.set(e.id, i);
1917
1919
  }
1918
- }, At = (e, s = {}) => {
1919
- if (e && v(e.eventId)) {
1920
- let l = s.eventIds || [];
1921
- if (l.findIndex((d) => d == e.eventId) < 0) {
1922
- let d = Object.keys(t);
1923
- for (let m = 0; m < d.length; m++) {
1924
- let M = t[d[m]] || [];
1925
- for (const L of M)
1926
- if (L.id == e.eventId) {
1927
- if (l.push(L.id), s.eventIds = [...l], L.default) {
1928
- we(L.actionList, s);
1920
+ }, Ft = (e, a = {}) => {
1921
+ if (e && g(e.eventId)) {
1922
+ let i = a.eventIds || [];
1923
+ if (i.findIndex((m) => m == e.eventId) < 0) {
1924
+ let m = Object.keys(n);
1925
+ for (let h = 0; h < m.length; h++) {
1926
+ let M = n[m[h]] || [];
1927
+ for (const H of M)
1928
+ if (H.id == e.eventId) {
1929
+ if (i.push(H.id), a.eventIds = [...i], H.default) {
1930
+ Se(H.actionList, a);
1929
1931
  break;
1930
- } else ze(L) && we(L.actionList, s);
1932
+ } else ze(H) && Se(H.actionList, a);
1931
1933
  break;
1932
1934
  }
1933
1935
  }
1934
1936
  } else
1935
- X("error", "存在循环调用,不执行事件配置", e.eventId);
1937
+ $("error", "存在循环调用,不执行事件配置", e.eventId);
1936
1938
  }
1937
- }, we = async (e = [], s = {}) => {
1938
- let l = null;
1939
+ }, Se = async (e = [], a = {}) => {
1940
+ let i = null;
1939
1941
  for (let f = 0; f < e.length; f++)
1940
- if (l = e[f], l.action == "router")
1941
- J(l.config);
1942
- else if (l.action == "dataRequest")
1943
- await Ve(l.config);
1944
- else if (l.action == "cacheSet")
1945
- wt(l.config);
1946
- else if (l.action == "paramMap")
1947
- xt(l.config);
1948
- else if (l.action == "paramSet")
1949
- bt(l.config);
1950
- else if (l.action == "customFunction")
1951
- St(l.config);
1952
- else if (l.action == "webStorage")
1953
- Ct(l.config);
1954
- else if (l.action == "componentSet")
1955
- Mt(l.config);
1956
- else if (l.action == "actionEnd") {
1957
- if (Ot(l.config)) {
1942
+ if (i = e[f], i.action == "router")
1943
+ z(i.config);
1944
+ else if (i.action == "dataRequest")
1945
+ await Ct(i.config);
1946
+ else if (i.action == "cacheSet")
1947
+ wt(i.config);
1948
+ else if (i.action == "paramMap")
1949
+ bt(i.config);
1950
+ else if (i.action == "paramSet")
1951
+ xt(i.config);
1952
+ else if (i.action == "customFunction")
1953
+ St(i.config);
1954
+ else if (i.action == "webStorage")
1955
+ Pt(i.config);
1956
+ else if (i.action == "componentSet")
1957
+ Ot(i.config);
1958
+ else if (i.action == "actionEnd") {
1959
+ if (Vt(i.config)) {
1958
1960
  console.log("actionEnd is true. break");
1959
1961
  break;
1960
1962
  }
1961
- } else if (l.action == "messageBox") {
1962
- if (!await It(l.config)) {
1963
+ } else if (i.action == "messageBox") {
1964
+ if (!await Dt(i.config)) {
1963
1965
  console.log("messageBox is false. break");
1964
1966
  break;
1965
1967
  }
1966
- } else if (l.action == "openDialog") {
1967
- kt(l.config);
1968
+ } else if (i.action == "openDialog") {
1969
+ kt(i.config);
1968
1970
  break;
1969
- } else l.action == "showAndHideSet" ? Dt(l.config) : l.action == "timerSet" ? Et(l.config) : l.action == "performEvent" ? At(l.config, s) : l.action == "bindRefreshSet" ? Tt(l.config) : l.action == "delaySet" && Rt(l.config);
1970
- }, Ke = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", Ft = (e) => {
1971
- let s = !1, l, f, d = !1;
1972
- v(e.lType) && (Ke(e.lType) ? d = !0 : d = v(e.lValue));
1973
- let m = !1;
1974
- if (v(e.rType) && (Ke(e.rType) ? m = !0 : m = v(e.rValue)), d && m) {
1975
- l = Q({
1971
+ } else i.action == "showAndHideSet" ? Rt(i.config) : i.action == "timerSet" ? Et(i.config) : i.action == "performEvent" ? Ft(i.config, a) : i.action == "bindRefreshSet" ? Tt(i.config) : i.action == "delaySet" && At(i.config);
1972
+ }, qe = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", jt = (e) => {
1973
+ let a = !1, i, f, m = !1;
1974
+ g(e.lType) && (qe(e.lType) ? m = !0 : m = g(e.lValue));
1975
+ let h = !1;
1976
+ if (g(e.rType) && (qe(e.rType) ? h = !0 : h = g(e.rValue)), m && h) {
1977
+ i = Y({
1976
1978
  ds: e.lType,
1977
1979
  key: e.lValue
1978
- }), f = Q({
1980
+ }), f = Y({
1979
1981
  ds: e.rType,
1980
1982
  key: e.rValue
1981
1983
  });
1982
1984
  const M = e.opType;
1983
- [">", ">=", "<", "<=", "=="].includes(M) && (l = pe(l), f = pe(f)), fe[M] ? s = fe[M](l, f) : (s = !1, console.warn("useEventHandler Invalid operator: " + M));
1985
+ [">", ">=", "<", "<=", "=="].includes(M) && (i = de(i), f = de(f)), fe[M] ? a = fe[M](i, f) : (a = !1, console.warn("useEventHandler Invalid operator: " + M));
1984
1986
  } else
1985
1987
  console.warn("_judgeCondition warn: the condition config is error.");
1986
- return s;
1988
+ return a;
1987
1989
  }, ze = (e) => {
1988
- let s = !1;
1990
+ let a = !1;
1989
1991
  if (e.default)
1990
- s = !0;
1992
+ a = !0;
1991
1993
  else {
1992
- let l = e.condition || [];
1993
- if (l.length > 0) {
1994
+ let i = e.condition || [];
1995
+ if (i.length > 0) {
1994
1996
  let f = !0;
1995
- for (let d = 0; d < l.length; d++)
1996
- if (!Ft(l[d])) {
1997
+ for (let m = 0; m < i.length; m++)
1998
+ if (!jt(i[m])) {
1997
1999
  f = !1;
1998
2000
  break;
1999
2001
  }
2000
- f && (s = !0);
2002
+ f && (a = !0);
2001
2003
  } else
2002
- s = !0;
2004
+ a = !0;
2003
2005
  }
2004
- return s;
2005
- }, K = (e = []) => {
2006
- for (const s of e) {
2007
- let l = {};
2008
- if (l.eventIds = [s.id], s.default) {
2009
- we(s.actionList, l);
2006
+ return a;
2007
+ }, L = (e = []) => {
2008
+ for (const a of e) {
2009
+ let i = {};
2010
+ if (i.eventIds = [a.id], a.default) {
2011
+ Se(a.actionList, i);
2010
2012
  break;
2011
- } else ze(s) && we(s.actionList, l);
2013
+ } else ze(a) && Se(a.actionList, i);
2012
2014
  }
2013
- }, jt = (e) => {
2014
- u || (x && clearTimeout(x), x = setTimeout(() => {
2015
- if (t && t.hasOwnProperty("onMouseClick")) {
2015
+ }, Bt = (e) => {
2016
+ u || (w && clearTimeout(w), w = setTimeout(() => {
2017
+ if (n && n.hasOwnProperty("onMouseClick")) {
2016
2018
  if (e && e.target) {
2017
- const l = e.target.getBoundingClientRect();
2018
- Y("elementRect", l), Y("elementRectLeft", l.left), Y("elementRectTop", l.top);
2019
+ const i = e.target.getBoundingClientRect();
2020
+ X("elementRect", i), X("elementRectLeft", i.left), X("elementRectTop", i.top);
2019
2021
  }
2020
- let s = t.onMouseClick;
2021
- K(s);
2022
+ let a = n.onMouseClick;
2023
+ L(a);
2022
2024
  }
2023
- }, S));
2024
- }, Bt = (e) => {
2025
- if (!u && (x && clearTimeout(x), t && t.hasOwnProperty("onMouseDblClick"))) {
2025
+ }, x));
2026
+ }, Nt = (e) => {
2027
+ if (!u && (w && clearTimeout(w), n && n.hasOwnProperty("onMouseDblClick"))) {
2026
2028
  if (e && e.target) {
2027
- const l = e.target.getBoundingClientRect();
2028
- Y("elementRect", l), Y("elementRectLeft", l.left), Y("elementRectTop", l.top);
2029
+ const i = e.target.getBoundingClientRect();
2030
+ X("elementRect", i), X("elementRectLeft", i.left), X("elementRectTop", i.top);
2029
2031
  }
2030
- let s = t.onMouseDblClick;
2031
- K(s);
2032
+ let a = n.onMouseDblClick;
2033
+ L(a);
2032
2034
  }
2033
- }, Nt = (e, s) => {
2034
- if (!u && (Y("_selectMenuValue", s), t && t.hasOwnProperty("onContextMenu"))) {
2035
- let l = t.onContextMenu;
2036
- K(l);
2035
+ }, Kt = (e, a) => {
2036
+ if (!u && (X("_selectMenuValue", a), n && n.hasOwnProperty("onContextMenu"))) {
2037
+ let i = n.onContextMenu;
2038
+ L(i);
2037
2039
  }
2038
2040
  }, Ht = (e) => {
2039
- if (!u && (Y("_selectItemValue", e), t && t.hasOwnProperty("selectItem"))) {
2040
- let s = t.selectItem;
2041
- K(s);
2041
+ if (!u && (X("_selectItemValue", e), n && n.hasOwnProperty("selectItem"))) {
2042
+ let a = n.selectItem;
2043
+ L(a);
2042
2044
  }
2043
2045
  }, Lt = (e) => {
2044
- if (!u && (Y("_changeItemValue", e), t && t.hasOwnProperty("changeValue"))) {
2045
- let s = t.changeValue;
2046
- K(s);
2046
+ if (!u && (X("_changeItemValue", e), n && n.hasOwnProperty("changeValue"))) {
2047
+ let a = n.changeValue;
2048
+ L(a);
2047
2049
  }
2048
2050
  }, qt = () => {
2049
- if (!u && t && t.hasOwnProperty("keyEnter")) {
2050
- let e = t.keyEnter;
2051
- K(e);
2052
- }
2053
- }, Kt = () => {
2054
- if (!u && t && t.hasOwnProperty("onBeforeMount")) {
2055
- let e = t.onBeforeMount;
2056
- K(e);
2051
+ if (!u && n && n.hasOwnProperty("keyEnter")) {
2052
+ let e = n.keyEnter;
2053
+ L(e);
2057
2054
  }
2058
2055
  }, zt = () => {
2059
- if (!u && t && t.hasOwnProperty("onMounted")) {
2060
- let e = t.onMounted;
2061
- K(e);
2056
+ if (!u && n && n.hasOwnProperty("onBeforeMount")) {
2057
+ let e = n.onBeforeMount;
2058
+ L(e);
2062
2059
  }
2063
2060
  }, Ut = () => {
2064
- if (C && C.length > 0)
2065
- for (let e = 0; e < C.length; e++)
2061
+ if (!u && n && n.hasOwnProperty("onMounted")) {
2062
+ let e = n.onMounted;
2063
+ L(e);
2064
+ }
2065
+ }, Wt = () => {
2066
+ if (S && S.length > 0)
2067
+ for (let e = 0; e < S.length; e++)
2066
2068
  try {
2067
- clearInterval(C[e]);
2068
- } catch (s) {
2069
- console.error("cancel request error", s);
2069
+ clearInterval(S[e]);
2070
+ } catch (a) {
2071
+ console.error("cancel request error", a);
2070
2072
  }
2071
- }, Wt = () => {
2072
- N && N.size > 0 && (N.forEach((e, s, l) => {
2073
+ }, Jt = () => {
2074
+ N && N.size > 0 && (N.forEach((e, a, i) => {
2073
2075
  clearTimeout(e);
2074
2076
  }), N.clear());
2075
- }, Jt = () => {
2076
- if (Ut(), Wt(), !u) {
2077
- if (h && h.length > 0)
2078
- for (let e = 0; e < h.length; e++)
2077
+ }, Gt = () => {
2078
+ if (Wt(), Jt(), !u) {
2079
+ if (y && y.length > 0)
2080
+ for (let e = 0; e < y.length; e++)
2079
2081
  try {
2080
- h[e] && h[e]();
2081
- } catch (s) {
2082
- console.error("cancel request error", s);
2082
+ y[e] && y[e]();
2083
+ } catch (a) {
2084
+ console.error("cancel request error", a);
2083
2085
  }
2084
- if (t && t.hasOwnProperty("onBeforeUnmount")) {
2085
- let e = t.onBeforeUnmount;
2086
- K(e);
2086
+ if (n && n.hasOwnProperty("onBeforeUnmount")) {
2087
+ let e = n.onBeforeUnmount;
2088
+ L(e);
2087
2089
  }
2088
2090
  }
2089
- }, Gt = () => {
2090
- if (!u && t && t.hasOwnProperty("onUnmounted")) {
2091
- let e = t.onUnmounted;
2092
- K(e);
2091
+ }, $t = () => {
2092
+ if (!u && n && n.hasOwnProperty("onUnmounted")) {
2093
+ let e = n.onUnmounted;
2094
+ L(e);
2095
+ }
2096
+ }, Qt = () => {
2097
+ if (!u && (D = !1, n && n.hasOwnProperty("onActivated"))) {
2098
+ let e = n.onActivated;
2099
+ L(e);
2100
+ }
2101
+ }, Yt = () => {
2102
+ if (!u && (D = !0, n && n.hasOwnProperty("onDeactivated"))) {
2103
+ let e = n.onDeactivated;
2104
+ L(e);
2093
2105
  }
2094
2106
  }, Ue = () => {
2095
- if (!u && t && t.hasOwnProperty("timerTrigger")) {
2096
- let e = t.timerTrigger;
2097
- K(e);
2107
+ if (!u) {
2108
+ if (D) {
2109
+ $("DEBUG", "组件当前停用状态,不执行定时器触发操作");
2110
+ return;
2111
+ }
2112
+ if (n && n.hasOwnProperty("timerTrigger")) {
2113
+ let e = n.timerTrigger;
2114
+ L(e);
2115
+ }
2098
2116
  }
2099
- }, $t = (e) => {
2117
+ }, Xt = (e) => {
2100
2118
  if (!u) {
2101
- if (t && t.hasOwnProperty("delayTrigger")) {
2102
- let s = t.delayTrigger;
2103
- K(s);
2119
+ if (n && n.hasOwnProperty("delayTrigger")) {
2120
+ let a = n.delayTrigger;
2121
+ L(a);
2104
2122
  }
2105
2123
  N.has(e) && (clearTimeout(N.get(e)), N.delete(e));
2106
2124
  }
2107
- }, Qt = () => {
2108
- if (!u && t && t.hasOwnProperty("bindRefreshTrigger")) {
2109
- let e = t.bindRefreshTrigger;
2110
- K(e);
2125
+ }, Zt = () => {
2126
+ if (!u && n && n.hasOwnProperty("bindRefreshTrigger")) {
2127
+ let e = n.bindRefreshTrigger;
2128
+ L(e);
2111
2129
  }
2112
- }, Y = (e, s) => {
2113
- I.setParam(e, s);
2130
+ }, X = (e, a) => {
2131
+ I.setParam(e, a);
2114
2132
  };
2115
2133
  return {
2116
- handleClick: jt,
2117
- handleDblClick: Bt,
2118
- handleContextMenu: Nt,
2134
+ handleClick: Bt,
2135
+ handleDblClick: Nt,
2136
+ handleContextMenu: Kt,
2119
2137
  selectItem: Ht,
2120
2138
  changeValue: Lt,
2121
- beforeMount: Kt,
2122
- mounted: zt,
2123
- beforeUnmount: Jt,
2124
- unmounted: Gt,
2125
- setParam: Y,
2126
- keyEnter: qt
2139
+ beforeMount: zt,
2140
+ mounted: Ut,
2141
+ beforeUnmount: Gt,
2142
+ unmounted: $t,
2143
+ setParam: X,
2144
+ keyEnter: qt,
2145
+ activated: Qt,
2146
+ deactivated: Yt
2127
2147
  };
2128
2148
  }
2129
- function nt(n, o, r, t) {
2149
+ function nt(t, o, r, n) {
2130
2150
  return {
2131
- setPropValue: function(a, c) {
2132
- n.value[a] = c;
2151
+ setPropValue: function(s, c) {
2152
+ t.value[s] = c;
2133
2153
  },
2134
- getPropValue: function(a) {
2135
- return n.value[a];
2154
+ getPropValue: function(s) {
2155
+ return t.value[s];
2136
2156
  },
2137
- setStyleValue: function(a, c) {
2138
- o.value.style[a] = c;
2157
+ setStyleValue: function(s, c) {
2158
+ o.value.style[s] = c;
2139
2159
  },
2140
- getStyleValue: function(a) {
2141
- return o.value.style[a];
2160
+ getStyleValue: function(s) {
2161
+ return o.value.style[s];
2142
2162
  },
2143
- routerPush: function(a, c) {
2163
+ routerPush: function(s, c) {
2144
2164
  r && r.push({
2145
- name: a,
2165
+ name: s,
2146
2166
  params: c
2147
2167
  });
2148
2168
  },
2149
- routerPush2: function(a, c) {
2169
+ routerPush2: function(s, c) {
2150
2170
  r && r.push({
2151
- path: a,
2171
+ path: s,
2152
2172
  query: c
2153
2173
  });
2154
2174
  },
2155
- routerReplace: function(a) {
2175
+ routerReplace: function(s) {
2156
2176
  r && r.replace({
2157
- path: a
2177
+ path: s
2158
2178
  });
2159
2179
  }
2160
2180
  };
2161
2181
  }
2162
- const Qn = /* @__PURE__ */ Object.assign({
2182
+ const Zn = /* @__PURE__ */ Object.assign({
2163
2183
  name: "Group"
2164
2184
  }, {
2165
2185
  __name: "Component",
@@ -2180,44 +2200,44 @@ const Qn = /* @__PURE__ */ Object.assign({
2180
2200
  default: !1
2181
2201
  }
2182
2202
  },
2183
- setup(n, { expose: o }) {
2184
- const r = n, t = ye(), u = Fe(t), a = R(null), c = O(() => r.propValue || {}), p = O(() => r.element || {}), i = O(() => c.value.components || []), g = O(() => i.value.map((D) => {
2185
- let V = { ...D }, J = P(D.groupStyle);
2186
- return V.computedStyle = J, V.style && (V.style.width = V.computedStyle.width, V.style.height = V.computedStyle.height), V;
2187
- })), y = O(() => p.value.events || []), h = Qe(), _ = Ye(), w = nt(c, p, h);
2203
+ setup(t, { expose: o }) {
2204
+ const r = t, n = Ce(), u = je(n), s = T(null), c = V(() => r.propValue || {}), d = V(() => r.element || {}), l = V(() => c.value.components || []), p = V(() => l.value.map((D) => {
2205
+ let O = { ...D }, J = P(D.groupStyle);
2206
+ return O.computedStyle = J, O.style && (O.style.width = O.computedStyle.width, O.style.height = O.computedStyle.height), O;
2207
+ })), _ = V(() => d.value.events || []), y = Qe(), v = Ye(), C = nt(c, d, y);
2188
2208
  Je(() => {
2189
- a.value = tt(y.value, r.designStatus, w), a.value?.beforeMount();
2190
- }), Ce(() => {
2191
- a.value?.mounted();
2209
+ s.value = tt(_.value, r.designStatus, C), s.value?.beforeMount();
2210
+ }), Ve(() => {
2211
+ s.value?.mounted();
2192
2212
  }), Ge(() => {
2193
- a.value?.beforeUnmount();
2213
+ s.value?.beforeUnmount();
2194
2214
  }), $e(() => {
2195
- a.value?.unmounted();
2215
+ s.value?.unmounted();
2196
2216
  });
2197
- const x = (D) => {
2198
- a.value?.setParam(D);
2199
- }, S = (D) => {
2200
- a.value?.handleDblClick(D);
2217
+ const w = (D) => {
2218
+ s.value?.setParam(D);
2219
+ }, x = (D) => {
2220
+ s.value?.handleDblClick(D);
2201
2221
  }, P = (D) => {
2202
- if (!D || !p.value?.style) return {};
2203
- let V = { ...D }, J = p.value.style.width, z = p.value.style.height;
2204
- return V.width = Math.floor(parseFloat(V.width) / 100 * J), V.height = Math.floor(parseFloat(V.height) / 100 * z), V.top = Math.floor(parseFloat(V.top) / 100 * z), V.left = Math.floor(parseFloat(V.left) / 100 * J), V;
2205
- }, C = he({}), E = (D, V) => {
2206
- D ? C[`Ve${V}`] = D : delete C[`Ve${V}`];
2207
- }, k = (D) => C[`Ve${D}`], b = (D, V, J) => {
2208
- if (v(D) && v(V)) {
2222
+ if (!D || !d.value?.style) return {};
2223
+ let O = { ...D }, J = d.value.style.width, z = d.value.style.height;
2224
+ return O.width = Math.floor(parseFloat(O.width) / 100 * J), O.height = Math.floor(parseFloat(O.height) / 100 * z), O.top = Math.floor(parseFloat(O.top) / 100 * z), O.left = Math.floor(parseFloat(O.left) / 100 * J), O;
2225
+ }, S = pe({}), R = (D, O) => {
2226
+ D ? S[`Ve${O}`] = D : delete S[`Ve${O}`];
2227
+ }, k = (D) => S[`Ve${D}`], b = (D, O, J) => {
2228
+ if (g(D) && g(O)) {
2209
2229
  const z = k(D);
2210
- z && z[V] && (J ? z[V](J) : z[V]());
2230
+ z && z[O] && (J ? z[O](J) : z[O]());
2211
2231
  }
2212
2232
  };
2213
2233
  o({
2214
2234
  callGroupCompMethod: b
2215
2235
  });
2216
- const N = { props: r, dataCache: t, smartData: u, eventHandler: a, propValue: c, element: p, components: i, computedComponents: g, events: y, router: h, route: _, compContext: w, handleClick: x, handleDblClick: S, calcCompStyle: P, componentRefs: C, setComponentRef: E, getComponentRef: k, callGroupCompMethod: b, get useDataCacheStore() {
2217
- return ye;
2236
+ const N = { props: r, dataCache: n, smartData: u, eventHandler: s, propValue: c, element: d, components: l, computedComponents: p, events: _, router: y, route: v, compContext: C, handleClick: w, handleDblClick: x, calcCompStyle: P, componentRefs: S, setComponentRef: R, getComponentRef: k, callGroupCompMethod: b, get useDataCacheStore() {
2237
+ return Ce;
2218
2238
  }, get createSmartAccessor() {
2219
- return Fe;
2220
- }, ref: R, computed: O, onMounted: Ce, onBeforeMount: Je, onBeforeUnmount: Ge, onUnmounted: $e, watch: Me, reactive: he, get useEventHandler() {
2239
+ return je;
2240
+ }, ref: T, computed: V, onMounted: Ve, onBeforeMount: Je, onBeforeUnmount: Ge, onUnmounted: $e, watch: be, reactive: pe, get useEventHandler() {
2221
2241
  return tt;
2222
2242
  }, get useRoute() {
2223
2243
  return Ye;
@@ -2226,140 +2246,140 @@ const Qn = /* @__PURE__ */ Object.assign({
2226
2246
  }, get CreateCompContext() {
2227
2247
  return nt;
2228
2248
  }, get getStyle() {
2229
- return mt;
2249
+ return ht;
2230
2250
  }, get isNotEmpty() {
2231
- return v;
2251
+ return g;
2232
2252
  } };
2233
2253
  return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
2234
2254
  }
2235
2255
  });
2236
- function Yn(n, o, r, t, u, a) {
2256
+ function eo(t, o, r, n, u, s) {
2237
2257
  return A(), W("div", { class: "group" }, [
2238
- le("div", null, [
2239
- (A(!0), W(Ne, null, He(t.computedComponents, (c) => (A(), $(be(c.component), {
2258
+ re("div", null, [
2259
+ (A(!0), W(Ke, null, He(n.computedComponents, (c) => (A(), Q(Me(c.component), {
2240
2260
  id: "component" + c.id,
2241
2261
  ref_for: !0,
2242
- ref: (p) => t.setComponentRef(p, c.id),
2262
+ ref: (d) => n.setComponentRef(d, c.id),
2243
2263
  key: c.id,
2244
2264
  class: "component",
2245
- style: Se(t.getStyle(c.computedStyle)),
2265
+ style: Oe(n.getStyle(c.computedStyle)),
2246
2266
  "prop-value": c.propValue,
2247
2267
  element: c
2248
2268
  }, null, 8, ["id", "style", "prop-value", "element"]))), 128))
2249
2269
  ])
2250
2270
  ]);
2251
2271
  }
2252
- const Xn = /* @__PURE__ */ Z(Qn, [["render", Yn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), Zn = /* @__PURE__ */ Object.assign({
2272
+ const to = /* @__PURE__ */ Z(Zn, [["render", eo], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), no = /* @__PURE__ */ Object.assign({
2253
2273
  name: "VEDataCache"
2254
2274
  }, {
2255
2275
  __name: "index",
2256
- setup(n, { expose: o }) {
2276
+ setup(t, { expose: o }) {
2257
2277
  o();
2258
- const r = R(null), t = R(null), u = R([]), a = R(0), c = ye(), p = R(!1), i = R({
2278
+ const r = T(null), n = T(null), u = T([]), s = T(0), c = Ce(), d = T(!1), l = T({
2259
2279
  id: "",
2260
2280
  fuzzyQry: !1,
2261
2281
  pageNum: 1,
2262
2282
  pageSize: 15
2263
- }), g = () => {
2264
- i.value.pageNum = 1, h();
2283
+ }), p = () => {
2284
+ l.value.pageNum = 1, y();
2285
+ }, _ = () => {
2286
+ r.value?.resetFields(), p();
2265
2287
  }, y = () => {
2266
- r.value?.resetFields(), g();
2267
- }, h = () => {
2268
- if (!v(i.value.id)) {
2269
- a.value = 0, u.value = [];
2288
+ if (!g(l.value.id)) {
2289
+ s.value = 0, u.value = [];
2270
2290
  return;
2271
2291
  }
2272
- if (p.value = !0, c.data)
2273
- if (i.value.fuzzyQry) {
2274
- let x = Object.keys(c.data), S = [];
2275
- for (let P = 0; P < x.length; P++)
2276
- x[P].startsWith(i.value.id) && S.push(x[P]);
2277
- if (a.value = S.length, a.value > 0) {
2278
- let P = (i.value.pageNum - 1) * i.value.pageSize, C = P + i.value.pageSize;
2279
- if (P <= a.value) {
2280
- let E = [];
2281
- for (let k = P; k < C; k++)
2282
- if (k < a.value) {
2283
- let b = c.data[S[k]], N = re(b) ? xe(b) : b;
2284
- E.push({
2285
- key: S[k],
2292
+ if (d.value = !0, c.data)
2293
+ if (l.value.fuzzyQry) {
2294
+ let w = Object.keys(c.data), x = [];
2295
+ for (let P = 0; P < w.length; P++)
2296
+ w[P].startsWith(l.value.id) && x.push(w[P]);
2297
+ if (s.value = x.length, s.value > 0) {
2298
+ let P = (l.value.pageNum - 1) * l.value.pageSize, S = P + l.value.pageSize;
2299
+ if (P <= s.value) {
2300
+ let R = [];
2301
+ for (let k = P; k < S; k++)
2302
+ if (k < s.value) {
2303
+ let b = c.data[x[k]], N = ee(b) ? Pe(b) : b;
2304
+ R.push({
2305
+ key: x[k],
2286
2306
  value: N
2287
2307
  });
2288
2308
  }
2289
- u.value = E;
2309
+ u.value = R;
2290
2310
  } else
2291
2311
  u.value = [];
2292
2312
  } else
2293
2313
  u.value = [];
2294
2314
  } else {
2295
- let x = c.data[i.value.id];
2296
- if (Pe(x))
2297
- a.value = 0, u.value = [];
2315
+ let w = c.data[l.value.id];
2316
+ if (_e(w))
2317
+ s.value = 0, u.value = [];
2298
2318
  else {
2299
- a.value = 1;
2300
- let S = re(x) ? xe(x) : x;
2319
+ s.value = 1;
2320
+ let x = ee(w) ? Pe(w) : w;
2301
2321
  u.value = [{
2302
- key: i.value.id,
2303
- value: S
2322
+ key: l.value.id,
2323
+ value: x
2304
2324
  }];
2305
2325
  }
2306
2326
  }
2307
- p.value = !1;
2308
- }, w = { queryForm: r, resultTableRef: t, dataList: u, total: a, dataCache: c, loading: p, queryParams: i, handleQuery: g, resetQuery: y, getList: h, handleCopyData: (x) => {
2309
- x && Ee(x.value) && _e("success", "复制成功");
2310
- }, ref: R, get useDataCacheStore() {
2311
- return ye;
2327
+ d.value = !1;
2328
+ }, C = { queryForm: r, resultTableRef: n, dataList: u, total: s, dataCache: c, loading: d, queryParams: l, handleQuery: p, resetQuery: _, getList: y, handleCopyData: (w) => {
2329
+ w && Ae(w.value) && we("success", "复制成功");
2330
+ }, ref: T, get useDataCacheStore() {
2331
+ return Ce;
2312
2332
  }, get copyToClipboard() {
2313
- return Ee;
2333
+ return Ae;
2314
2334
  }, get isNotEmpty() {
2315
- return v;
2335
+ return g;
2316
2336
  }, get isNullOrUndefined() {
2317
- return Pe;
2337
+ return _e;
2318
2338
  }, get isObject() {
2319
- return re;
2339
+ return ee;
2320
2340
  }, get toJsonStr() {
2321
- return xe;
2341
+ return Pe;
2322
2342
  }, get showMessage() {
2323
- return _e;
2343
+ return we;
2324
2344
  } };
2325
- return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
2345
+ return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
2326
2346
  }
2327
2347
  });
2328
- function eo(n, o, r, t, u, a) {
2329
- const c = H("el-input"), p = H("el-form-item"), i = H("el-switch"), g = H("el-button"), y = H("el-form"), h = H("el-table-column"), _ = H("el-table"), w = H("pagination"), x = nn("loading");
2348
+ function oo(t, o, r, n, u, s) {
2349
+ const c = K("el-input"), d = K("el-form-item"), l = K("el-switch"), p = K("el-button"), _ = K("el-form"), y = K("el-table-column"), v = K("el-table"), C = K("pagination"), w = ln("loading");
2330
2350
  return A(), W("div", { class: "panel-area" }, [
2331
- le("div", { class: "panel-condition" }, [
2332
- T(y, {
2333
- model: t.queryParams,
2351
+ re("div", { class: "panel-condition" }, [
2352
+ E(_, {
2353
+ model: n.queryParams,
2334
2354
  ref: "queryForm",
2335
2355
  inline: !0
2336
2356
  }, {
2337
2357
  default: F(() => [
2338
- T(p, {
2358
+ E(d, {
2339
2359
  label: "缓存key",
2340
2360
  prop: "id"
2341
2361
  }, {
2342
2362
  default: F(() => [
2343
- T(c, {
2344
- modelValue: t.queryParams.id,
2345
- "onUpdate:modelValue": o[0] || (o[0] = (S) => t.queryParams.id = S),
2363
+ E(c, {
2364
+ modelValue: n.queryParams.id,
2365
+ "onUpdate:modelValue": o[0] || (o[0] = (x) => n.queryParams.id = x),
2346
2366
  placeholder: "请输入缓存key",
2347
2367
  clearable: "",
2348
2368
  style: { width: "240px" },
2349
- onKeyup: on(t.handleQuery, ["enter", "native"])
2369
+ onKeyup: sn(n.handleQuery, ["enter", "native"])
2350
2370
  }, null, 8, ["modelValue"])
2351
2371
  ]),
2352
2372
  _: 1
2353
2373
  }),
2354
2374
  j(),
2355
- T(p, {
2375
+ E(d, {
2356
2376
  label: "查询模式",
2357
2377
  prop: "name"
2358
2378
  }, {
2359
2379
  default: F(() => [
2360
- T(i, {
2361
- modelValue: t.queryParams.fuzzyQry,
2362
- "onUpdate:modelValue": o[1] || (o[1] = (S) => t.queryParams.fuzzyQry = S),
2380
+ E(l, {
2381
+ modelValue: n.queryParams.fuzzyQry,
2382
+ "onUpdate:modelValue": o[1] || (o[1] = (x) => n.queryParams.fuzzyQry = x),
2363
2383
  "active-text": "模糊",
2364
2384
  "inactive-text": "精确"
2365
2385
  }, null, 8, ["modelValue"])
@@ -2367,13 +2387,13 @@ function eo(n, o, r, t, u, a) {
2367
2387
  _: 1
2368
2388
  }),
2369
2389
  j(),
2370
- T(p, null, {
2390
+ E(d, null, {
2371
2391
  default: F(() => [
2372
- T(g, {
2392
+ E(p, {
2373
2393
  type: "primary",
2374
2394
  icon: "search",
2375
2395
  size: "small",
2376
- onClick: t.handleQuery
2396
+ onClick: n.handleQuery
2377
2397
  }, {
2378
2398
  default: F(() => [
2379
2399
  j("搜索")
@@ -2381,10 +2401,10 @@ function eo(n, o, r, t, u, a) {
2381
2401
  _: 1
2382
2402
  }),
2383
2403
  j(),
2384
- T(g, {
2404
+ E(p, {
2385
2405
  icon: "refresh",
2386
2406
  size: "small",
2387
- onClick: t.resetQuery
2407
+ onClick: n.resetQuery
2388
2408
  }, {
2389
2409
  default: F(() => [
2390
2410
  j("重置")
@@ -2399,25 +2419,25 @@ function eo(n, o, r, t, u, a) {
2399
2419
  }, 8, ["model"])
2400
2420
  ]),
2401
2421
  j(),
2402
- le("div", { class: "panel-table" }, [
2422
+ re("div", { class: "panel-table" }, [
2403
2423
  j(`\r
2404
2424
      \r
2405
2425
  `),
2406
- De((A(), $(_, {
2426
+ Te((A(), Q(v, {
2407
2427
  ref: "resultTableRef",
2408
- data: t.dataList,
2428
+ data: n.dataList,
2409
2429
  stripe: "",
2410
2430
  border: "",
2411
2431
  "highlight-current-row": ""
2412
2432
  }, {
2413
2433
  default: F(() => [
2414
- T(h, {
2434
+ E(y, {
2415
2435
  type: "index",
2416
2436
  align: "center",
2417
2437
  width: "60"
2418
2438
  }),
2419
2439
  j(),
2420
- T(h, {
2440
+ E(y, {
2421
2441
  label: "缓存Key",
2422
2442
  align: "center",
2423
2443
  property: "key",
@@ -2425,7 +2445,7 @@ function eo(n, o, r, t, u, a) {
2425
2445
  "min-width": "200"
2426
2446
  }),
2427
2447
  j(),
2428
- T(h, {
2448
+ E(y, {
2429
2449
  label: "缓存值",
2430
2450
  align: "left",
2431
2451
  property: "value",
@@ -2433,17 +2453,17 @@ function eo(n, o, r, t, u, a) {
2433
2453
  "min-width": "400"
2434
2454
  }),
2435
2455
  j(),
2436
- T(h, {
2456
+ E(y, {
2437
2457
  label: "操作",
2438
2458
  align: "center",
2439
2459
  "show-overflow-tooltip": !0,
2440
2460
  "min-width": "80"
2441
2461
  }, {
2442
- default: F((S) => [
2443
- T(g, {
2462
+ default: F((x) => [
2463
+ E(p, {
2444
2464
  link: "",
2445
2465
  icon: "document",
2446
- onClick: (P) => t.handleCopyData(S.row)
2466
+ onClick: (P) => n.handleCopyData(x.row)
2447
2467
  }, {
2448
2468
  default: F(() => [
2449
2469
  j(`复制数据\r
@@ -2457,46 +2477,73 @@ function eo(n, o, r, t, u, a) {
2457
2477
  ]),
2458
2478
  _: 1
2459
2479
  }, 8, ["data"])), [
2460
- [x, t.loading]
2480
+ [w, n.loading]
2461
2481
  ]),
2462
2482
  j(),
2463
- De(T(w, {
2464
- total: t.total,
2465
- page: t.queryParams.pageNum,
2466
- "onUpdate:page": o[2] || (o[2] = (S) => t.queryParams.pageNum = S),
2467
- limit: t.queryParams.pageSize,
2468
- "onUpdate:limit": o[3] || (o[3] = (S) => t.queryParams.pageSize = S),
2483
+ Te(E(C, {
2484
+ total: n.total,
2485
+ page: n.queryParams.pageNum,
2486
+ "onUpdate:page": o[2] || (o[2] = (x) => n.queryParams.pageNum = x),
2487
+ limit: n.queryParams.pageSize,
2488
+ "onUpdate:limit": o[3] || (o[3] = (x) => n.queryParams.pageSize = x),
2469
2489
  pageSizes: [15, 20, 30, 50],
2470
- onPagination: t.getList
2490
+ onPagination: n.getList
2471
2491
  }, null, 8, ["total", "page", "limit"]), [
2472
- [ot, t.total > 0]
2492
+ [ot, n.total > 0]
2473
2493
  ])
2474
2494
  ])
2475
2495
  ]);
2476
2496
  }
2477
- const to = /* @__PURE__ */ Z(Zn, [["render", eo], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]), no = [
2478
- Dn,
2479
- Fn,
2480
- qn,
2481
- to,
2497
+ const ro = /* @__PURE__ */ Z(no, [["render", oo], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]);
2498
+ function yo(t = {}, o, r) {
2499
+ const n = pe({
2500
+ dataColor: null,
2501
+ // 数据颜色
2502
+ backgroundColor: null,
2503
+ // 背景颜色
2504
+ lineColor: null,
2505
+ // 线颜色
2506
+ fillColor: null
2507
+ // 填充颜色
2508
+ }), u = o[t.colorCK], s = (l, p, _) => De(l, p) ? Ie(l, p) : _, c = (l, p) => g(p) && r ? r[p] ? r[p][l] : null : l, d = (l, p) => l === p ? !0 : l == null || p == null ? !1 : ve(l) && ve(p) ? l.trim() === p.trim() : l === p;
2509
+ return be(() => u?.value, (l) => {
2510
+ if (ee(l)) {
2511
+ if (!g(t.colorCK) || !t.dycFlag)
2512
+ return;
2513
+ let p;
2514
+ g(t.fColorKey) && (p = s(l, t.fColorKey, null), n.dataColor = c(p, t.fColorRule)), g(t.bgColorKey) && (p = s(l, t.bgColorKey, null), n.backgroundColor = c(p, t.bgColorRule)), g(t.lineColorKey) && (p = s(l, t.lineColorKey, null), n.lineColor = c(p, t.lineColorRule)), g(t.fillColorKey) && (p = s(l, t.fillColorKey, null), n.fillColor = c(p, t.fillColorRule));
2515
+ } else if (!_e(l)) {
2516
+ if (!g(t.colorCK) || !t.dycFlag)
2517
+ return;
2518
+ let p = String(l);
2519
+ g(t.fColorKey) && d(t.fColorKey, t.colorCK) && (n.dataColor = c(p, t.fColorRule)), g(t.bgColorKey) && d(t.bgColorKey, t.colorCK) && (n.backgroundColor = c(p, t.bgColorRule)), g(t.lineColorKey) && d(t.lineColorKey, t.colorCK) && (n.lineColor = c(p, t.lineColorRule)), g(t.fillColorKey) && d(t.fillColorKey, t.colorCK) && (n.fillColor = c(p, t.fillColorRule));
2520
+ }
2521
+ }, { immediate: !0 }), { dynamicColor: n };
2522
+ }
2523
+ const lo = [
2524
+ Tn,
2525
+ Nn,
2482
2526
  Un,
2483
- ht,
2527
+ ro,
2484
2528
  Gn,
2485
- Xn
2486
- ], Be = (n, o) => {
2487
- Be.installed || (Be.installed = !0, n.provide("hflvloader-api", o), no.forEach((r) => {
2488
- n.component(r.name, r);
2529
+ gt,
2530
+ Yn,
2531
+ to
2532
+ ], Ne = (t, o) => {
2533
+ Ne.installed || (Ne.installed = !0, t.provide("hflvloader-api", o), lo.forEach((r) => {
2534
+ t.component(r.name, r);
2489
2535
  }));
2490
- }, go = {
2491
- install: Be
2536
+ }, _o = {
2537
+ install: Ne
2492
2538
  };
2493
2539
  export {
2494
- uo as CommonUtils,
2540
+ mo as CommonUtils,
2495
2541
  nt as CreateCompContext,
2496
- po as MessageUtils,
2497
- Fe as createSmartAccessor,
2498
- go as default,
2499
- fo as reCalcCanvasSize,
2500
- ye as useDataCacheStore,
2542
+ go as MessageUtils,
2543
+ yo as createDynamicColor,
2544
+ je as createSmartAccessor,
2545
+ _o as default,
2546
+ ho as reCalcCanvasSize,
2547
+ Ce as useDataCacheStore,
2501
2548
  tt as useEventHandler
2502
2549
  };