@yeepay/fmc-material 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,136 +1,340 @@
1
- import { writeMaterialsVersion as ke } from "@yeepay/lowcode-shared";
2
- import { useSchema as et, useEvent as tt, request as fe, i18n as rt } from "@yeepay/lowcode-renderer";
3
- import { message as k } from "ant-design-vue";
4
- import { ref as C, watch as ee, onMounted as at, computed as te } from "@vue/composition-api";
5
- const nt = "@yeepay/fmc-material", it = "0.0.2", st = [
6
- "./dist/styles/*"
7
- ], ot = {
8
- ".": {
9
- types: "./types/index.d.ts",
10
- import: "./dist/index.js",
11
- require: "./dist/index.js"
1
+ import { isTruthy as rt, writeMaterialsVersion as it } from "@yeepay/lowcode-shared";
2
+ import { useEvent as Fe, useSchema as Ge, request as ve, i18n as nt } from "@yeepay/lowcode-renderer";
3
+ import { ref as A, computed as B, watch as k, onMounted as st } from "@vue/composition-api";
4
+ import { message as te } from "ant-design-vue";
5
+ const ot = {
6
+ name: "Location",
7
+ formItem: !0,
8
+ displayName: "地理位置",
9
+ description: "",
10
+ component: "fmc-location",
11
+ group: "federation",
12
+ category: "流程魔方",
13
+ handleConfig: {
14
+ className: "yee-form-item-wrapper"
12
15
  },
13
- "./dist/styles/*": {
14
- import: "./dist/styles/*",
15
- require: "./dist/styles/*"
16
+ properties: {
17
+ defaultValue: { type: "code", displayName: "默认值", placeholder: "", isExposedVariable: !0 },
18
+ visible: { type: "toggle", displayName: "默认显示", placeholder: "" },
19
+ disabled: { type: "toggle", displayName: "默认禁用" }
16
20
  },
17
- "./setters": {
18
- types: "./types/setters.d.ts",
19
- import: "./dist/setters.js",
20
- require: "./dist/setters.js"
21
+ styles: {
22
+ attrSize: {
23
+ type: "radio",
24
+ displayName: "尺寸",
25
+ align: "horizontal",
26
+ options: [
27
+ { value: "", label: "默认" },
28
+ { value: "small", label: "小" },
29
+ { value: "default", label: "中" },
30
+ { value: "large", label: "大" }
31
+ ]
32
+ },
33
+ form_span: {
34
+ type: "select",
35
+ displayName: "布局列数",
36
+ options: [
37
+ { value: "1", label: "1" },
38
+ { value: "2", label: "2" },
39
+ { value: "3", label: "3" },
40
+ { value: "4", label: "4" }
41
+ ]
42
+ },
43
+ labelAlign: {
44
+ type: "select",
45
+ displayName: "对齐方式",
46
+ options: [
47
+ { value: "right", label: "右对齐" },
48
+ { value: "left", label: "左对齐" },
49
+ { value: "hidden", label: "隐藏名称" },
50
+ { value: "vertical", label: "上下对齐" }
51
+ ]
52
+ },
53
+ labelWidth: {
54
+ type: "input",
55
+ displayName: "label 宽度",
56
+ placeholder: "最小宽度 85px",
57
+ suffix: "px"
58
+ },
59
+ space: {
60
+ type: "space",
61
+ custom: !0
62
+ },
63
+ size: {
64
+ type: "size",
65
+ custom: !0
66
+ },
67
+ background: {
68
+ type: "background",
69
+ displayName: "背景"
70
+ }
21
71
  },
22
- "./types/*": {
23
- types: "./types/*"
72
+ validation: {
73
+ required: { type: "toggle", displayName: "必填", validate: (e) => rt(e) }
74
+ },
75
+ events: {
76
+ onChange: { displayName: "On change" }
77
+ },
78
+ definition: {
79
+ properties: {
80
+ label: { value: "地理位置" },
81
+ visible: { value: "{{true}}" },
82
+ disabled: { value: "{{false}}" }
83
+ },
84
+ styles: {
85
+ attrSize: { value: "" },
86
+ labelAlign: { value: "" },
87
+ labelWidth: { value: "" },
88
+ form_span: { value: "1" },
89
+ space: {
90
+ value: {
91
+ paddingLeft: "16",
92
+ paddingRight: "16"
93
+ }
94
+ },
95
+ size: { value: {} },
96
+ background: {
97
+ value: {}
98
+ }
99
+ },
100
+ exposedVariables: {
101
+ defaultValue: "",
102
+ value: "",
103
+ isValid: !0,
104
+ validationError: null
105
+ },
106
+ validation: {
107
+ required: { value: !1, errorMessage: "" }
108
+ },
109
+ events: [],
110
+ others: {}
24
111
  }
25
- }, lt = "./dist/index.js", ut = "./types/index.d.ts", pt = [
26
- "dist",
27
- "types"
28
- ], ct = {
29
- dev: "vite",
30
- clean: "rimraf dist dist.zip",
31
- build: "nr clean && vite build --mode npm && nr build:cssfile",
32
- "build:fed": "nr clean && vite build --config ./vite.config.fed.ts --mode fed",
33
- "build:cssfile": "tsx ./scripts/build-cssfile.ts",
34
- "build:entry": "tsx ./scripts/build-entry.ts",
35
- prepublishOnly: "nr build",
36
- postpublish: "nr sync",
37
- release: "tsx scripts/release.ts",
38
- "release:fed": "tsx scripts/release-fed.ts",
39
- sync: "tsx scripts/cnpm-sync.ts",
40
- lint: "eslint .",
41
- "lint:fix": "eslint . --fix"
42
- }, dt = {
43
- "@vue/composition-api": ">= 1.4.9",
44
- "@yeepay/antd-materials": "2.*",
45
- "@yeepay/lowcode-renderer": "2.*",
46
- vue: ">= 2.5 < 2.7"
47
- }, ft = {
48
- "@yeepay/lowcode-shared": "2.*",
49
- "ant-design-vue": "^1.7.8",
50
- "lodash-es": "^4.17.21",
51
- nanoid: "^5.0.9"
52
- }, vt = {
53
- "@antfu/ni": "^0.21.12",
54
- "@iconify-json/mdi": "^1.1.66",
55
- "@originjs/vite-plugin-federation": "1.3.6",
56
- "@types/eslint": "^8.56.10",
57
- "@types/fs-extra": "^11.0.4",
58
- "@types/lodash-es": "^4.17.12",
59
- "@types/node": "^20.12.12",
60
- "@types/prompts": "^2.4.9",
61
- "@unocss/transformer-directives": "^0.58.7",
62
- "@vitest/coverage-v8": "^1.6.0",
63
- "@vitest/ui": "^1.6.0",
64
- "@vue/compiler-sfc": "^3.4.27",
65
- "@vue/runtime-core": "^3.5.12",
66
- "@vue/runtime-dom": "^3.4.27",
67
- "@vue/test-utils": "1.3.6",
68
- "@yeepay/eslint-config": "^2.0.1",
69
- "@yeepay/lowcode-engine": "^2.3.8",
70
- "@yeepay/server-utils": "^0.0.3",
71
- bumpp: "^9.4.1",
72
- "cnpm-sync": "^0.0.4",
73
- concurrently: "^8.2.2",
74
- esbuild: "^0.21.3",
75
- eslint: "^9.8.0",
76
- "eslint-plugin-format": "^0.1.1",
77
- execa: "9.1.0",
78
- "execa-commonjs": "npm:execa@5.1.1",
79
- "fs-extra": "^11.2.0",
80
- husky: "^9.0.11",
81
- jsdom: "^24.0.0",
82
- less: "3.13.1",
83
- picocolors: "^1.0.1",
84
- postcss: "^8.4.38",
85
- "postinstall-postinstall": "^2.1.0",
86
- prettier: "^3.2.5",
87
- prompts: "^2.4.2",
88
- rimraf: "^5.0.7",
89
- tsx: "^4.17.0",
90
- typescript: "^5.4.5",
91
- unocss: "^0.58.7",
92
- "unplugin-auto-import": "0.16.4",
93
- "unplugin-dev-proxy": "^1.0.2",
94
- "unplugin-vue2-script-setup": "^0.11.4",
95
- vite: "^5.2.11",
96
- "vite-plugin-top-level-await": "^1.4.2",
97
- "vite-plugin-vue2": "^2.0.3",
98
- vitest: "^1.6.0",
99
- "vue-template-compiler": "2.6.14",
100
- "vue-tsc": "^2.0.29",
101
- zx: "^8.1.0"
102
- }, gt = {
103
- access: "public"
104
- }, yt = {
105
- patchedDependencies: {
106
- "picomatch@2.3.1": "patches/picomatch@2.3.1.patch",
107
- "@originjs/vite-plugin-federation@1.3.6": "patches/@originjs__vite-plugin-federation@1.3.6.patch"
112
+ }, ce = {};
113
+ ce.props = {
114
+ id: {
115
+ key: "id",
116
+ required: !0,
117
+ type: String
118
+ },
119
+ properties: {
120
+ key: "properties",
121
+ required: !0,
122
+ type: null
123
+ },
124
+ styles: {
125
+ key: "styles",
126
+ required: !0,
127
+ type: null
128
+ },
129
+ validation: {
130
+ key: "validation",
131
+ required: !0,
132
+ type: null
133
+ },
134
+ exposedVariables: {
135
+ key: "exposedVariables",
136
+ required: !0,
137
+ type: null
138
+ }
139
+ };
140
+ ce.setup = (e, t) => {
141
+ const a = e, {
142
+ fireEvent: r
143
+ } = Fe({
144
+ id: a.id
145
+ }), {
146
+ setExposedVariable: n
147
+ } = Ge({
148
+ id: a.id
149
+ }), i = A(""), u = A(""), l = A(a.exposedVariables.defaultValue), o = A(!1), s = A(!1), v = A(null), d = A(null), f = B(() => a.exposedVariables.isValid), _ = B(() => a.exposedVariables.validationError);
150
+ k(() => l.value, () => {
151
+ n("value", l.value);
152
+ }, {
153
+ immediate: !0
154
+ });
155
+ function m() {
156
+ const $ = "XYibNR0iIfW0MqMnK31ffrGfiexpwlcm", h = document.createElement("script");
157
+ h.type = "text/javascript", h.src = `//api.map.baidu.com/api?type=webgl&v=1.0&ak=${$}&callback=init`, document.body.appendChild(h);
158
+ }
159
+ function c() {
160
+ v.value = new window.BMapGL.Map(d.value);
161
+ const $ = new window.BMapGL.Point(116.404, 39.915);
162
+ v.value.centerAndZoom($, 10);
163
+ }
164
+ function T() {
165
+ s.value = !0;
166
+ const $ = new window.BMapGL.Geolocation();
167
+ $.enableSDKLocation(), $.getCurrentPosition((h) => {
168
+ if ($.getStatus() === window.BMAP_STATUS_SUCCESS) {
169
+ v.value.centerAndZoom(h.point, 16);
170
+ const N = new window.BMapGL.Marker(h.point);
171
+ v.value.clearOverlays(), v.value.addOverlay(N), new window.BMapGL.Geocoder().getLocation(new window.BMapGL.Point(h.point.lng.toFixed(3), h.point.lat.toFixed(3)), (w) => {
172
+ let E = `${h.address.province}${h.address.city}${h.address.district}${h.address.street}${h.address.streetNumber}`;
173
+ w && w.address && (E = w.address, w.surroundingPois && w.surroundingPois.length > 0 && (E = w.surroundingPois[0].address)), i.value = E, u.value = "";
174
+ });
175
+ } else
176
+ i.value = "", u.value = "定位失败!";
177
+ s.value = !1;
178
+ });
179
+ }
180
+ function x() {
181
+ o.value = !0, v.value || (window.init = c, m());
182
+ }
183
+ function S() {
184
+ l.value = i.value, r("onChange"), o.value = !1;
108
185
  }
109
- }, ve = {
110
- name: nt,
111
- version: it,
112
- sideEffects: st,
113
- exports: ot,
114
- main: lt,
115
- types: ut,
116
- files: pt,
117
- scripts: ct,
118
- peerDependencies: dt,
119
- dependencies: ft,
120
- devDependencies: vt,
121
- publishConfig: gt,
122
- pnpm: yt
186
+ return {
187
+ modelValue: i,
188
+ locationMsg: u,
189
+ value: l,
190
+ visible: o,
191
+ locationing: s,
192
+ view: d,
193
+ isValid: f,
194
+ validationError: _,
195
+ getLocation: T,
196
+ showMap: x,
197
+ confirm: S
198
+ };
199
+ };
200
+ var lt = function() {
201
+ var e = this, t = e.$createElement, a = e._self._c || t;
202
+ return a("div", {
203
+ staticClass: "yee-upload-wrapper",
204
+ class: {
205
+ "has-error": !e.isValid
206
+ }
207
+ }, [e._v(" " + e._s(e.value) + " "), a("a-button", {
208
+ attrs: {
209
+ size: e.styles.attrSize || "default",
210
+ disabled: e.properties.disabled,
211
+ shape: "circle",
212
+ icon: "environment"
213
+ },
214
+ on: {
215
+ click: e.showMap
216
+ }
217
+ }), a("a-modal", {
218
+ attrs: {
219
+ title: "地图定位",
220
+ width: 800,
221
+ visible: e.visible
222
+ },
223
+ on: {
224
+ cancel: function(r) {
225
+ e.visible = !1;
226
+ }
227
+ }
228
+ }, [a("div", {
229
+ staticStyle: {
230
+ position: "relative",
231
+ "font-size": "12px"
232
+ }
233
+ }, [a("span", {
234
+ staticStyle: {
235
+ color: "red"
236
+ }
237
+ }, [e._v("请点击地图左下角定位图标获取当前位置。(定位前确保开启地理位置权限)")]), a("div", {
238
+ ref: "view",
239
+ staticStyle: {
240
+ height: "300px",
241
+ margin: "8px 0"
242
+ },
243
+ attrs: {
244
+ id: "baidu-map"
245
+ }
246
+ }), a("span", [e._v("当前位置:" + e._s(e.modelValue))]), a("br"), a("span", {
247
+ staticStyle: {
248
+ color: "red"
249
+ }
250
+ }, [e._v(e._s(e.locationMsg))]), a("a-button", {
251
+ staticStyle: {
252
+ position: "absolute",
253
+ right: "20px",
254
+ bottom: "40px",
255
+ "z-index": "99"
256
+ },
257
+ attrs: {
258
+ shape: "circle",
259
+ icon: "environment",
260
+ loading: e.locationing
261
+ },
262
+ on: {
263
+ click: e.getLocation
264
+ }
265
+ })], 1), a("div", {
266
+ staticStyle: {
267
+ "text-align": "right"
268
+ },
269
+ attrs: {
270
+ slot: "footer"
271
+ },
272
+ slot: "footer"
273
+ }, [a("a-button", {
274
+ attrs: {
275
+ type: "primary"
276
+ },
277
+ on: {
278
+ click: e.confirm
279
+ }
280
+ }, [e._v(" 确定 ")])], 1)]), a("div", {
281
+ directives: [{
282
+ name: "show",
283
+ rawName: "v-show",
284
+ value: !e.isValid,
285
+ expression: "!isValid"
286
+ }],
287
+ staticClass: "ant-form-explain"
288
+ }, [e._v(" " + e._s(e.validationError) + " ")])], 1);
289
+ }, ut = [];
290
+ function qe(e, t, a, r, n, i, u, l) {
291
+ var o = typeof e == "function" ? e.options : e;
292
+ t && (o.render = t, o.staticRenderFns = a, o._compiled = !0);
293
+ var s;
294
+ if (n && (s = n), s)
295
+ if (o.functional) {
296
+ o._injectStyles = s;
297
+ var v = o.render;
298
+ o.render = function(_, m) {
299
+ return s.call(m), v(_, m);
300
+ };
301
+ } else {
302
+ var d = o.beforeCreate;
303
+ o.beforeCreate = d ? [].concat(d, s) : [s];
304
+ }
305
+ return {
306
+ exports: e,
307
+ options: o
308
+ };
309
+ }
310
+ const ye = {};
311
+ var pt = /* @__PURE__ */ qe(
312
+ ce,
313
+ lt,
314
+ ut,
315
+ !1,
316
+ ct
317
+ );
318
+ function ct(e) {
319
+ for (let t in ye)
320
+ this[t] = ye[t];
321
+ }
322
+ const dt = /* @__PURE__ */ function() {
323
+ return pt.exports;
324
+ }(), ft = {
325
+ component: dt,
326
+ componentMeta: ot
123
327
  };
124
328
  async function ge(e) {
125
329
  return /.(jpg|jpeg|png|gif|bmp)$/i.test(e.url) ? new Promise((t) => {
126
- const r = new Image();
127
- r.onload = function() {
128
- const a = r.width, i = r.height;
129
- t({ width: a, height: i });
130
- }, r.src = e.url;
330
+ const a = new Image();
331
+ a.onload = function() {
332
+ const r = a.width, n = a.height;
333
+ t({ width: r, height: n });
334
+ }, a.src = e.url;
131
335
  }) : { width: 0, height: 0 };
132
336
  }
133
- const mt = {
337
+ const vt = {
134
338
  name: "FmcUpload",
135
339
  formItem: !0,
136
340
  displayName: "上传",
@@ -259,7 +463,7 @@ const mt = {
259
463
  displayName: "最大文件大小(MB)",
260
464
  defaultErrorMessage: "最大文件大小验证有误",
261
465
  regex: /^\d*$/,
262
- validate: (e, t) => e.every((r) => r.size / 1024 / 1024 <= Number(t)),
466
+ validate: (e, t) => e.every((a) => a.size / 1024 / 1024 <= Number(t)),
263
467
  placeholder: "请输入最大文件限制"
264
468
  }
265
469
  }
@@ -274,9 +478,9 @@ const mt = {
274
478
  defaultErrorMessage: "最大宽度验证有误",
275
479
  regex: /^\d*$/,
276
480
  validate: async (e, t) => {
277
- for await (const r of e) {
278
- const { width: a } = await ge(r);
279
- if (a > Number(t))
481
+ for await (const a of e) {
482
+ const { width: r } = await ge(a);
483
+ if (r > Number(t))
280
484
  return !1;
281
485
  }
282
486
  return !0;
@@ -289,9 +493,9 @@ const mt = {
289
493
  defaultErrorMessage: "最大高度验证有误",
290
494
  regex: /^\d*$/,
291
495
  validate: async (e, t) => {
292
- for await (const r of e) {
293
- const { height: a } = await ge(r);
294
- if (a > Number(t))
496
+ for await (const a of e) {
497
+ const { height: r } = await ge(a);
498
+ if (r > Number(t))
295
499
  return !1;
296
500
  }
297
501
  return !0;
@@ -309,7 +513,7 @@ const mt = {
309
513
  displayName: "文件名后缀验证",
310
514
  placeholder: "/(jpeg|pdf)$/",
311
515
  defaultErrorMessage: "文件名后缀验证有误",
312
- validate: (e, t) => (t.startsWith("/") && t.endsWith("/") && (t = t.slice(1, -1)), e.every((r) => new RegExp(t).test(r.name)))
516
+ validate: (e, t) => (t.startsWith("/") && t.endsWith("/") && (t = t.slice(1, -1)), e.every((a) => new RegExp(t).test(a.name)))
313
517
  }
314
518
  }
315
519
  }
@@ -369,187 +573,187 @@ const mt = {
369
573
  others: {}
370
574
  }
371
575
  };
372
- function q(e) {
576
+ function H(e) {
373
577
  var t = typeof e;
374
578
  return e != null && (t == "object" || t == "function");
375
579
  }
376
- var Fe = typeof global == "object" && global && global.Object === Object && global, ht = typeof self == "object" && self && self.Object === Object && self, S = Fe || ht || Function("return this")(), re = function() {
377
- return S.Date.now();
378
- }, bt = /\s/;
379
- function _t(e) {
380
- for (var t = e.length; t-- && bt.test(e.charAt(t)); )
580
+ var Be = typeof global == "object" && global && global.Object === Object && global, yt = typeof self == "object" && self && self.Object === Object && self, P = Be || yt || Function("return this")(), ae = function() {
581
+ return P.Date.now();
582
+ }, gt = /\s/;
583
+ function mt(e) {
584
+ for (var t = e.length; t-- && gt.test(e.charAt(t)); )
381
585
  ;
382
586
  return t;
383
587
  }
384
- var Tt = /^\s+/;
385
- function wt(e) {
386
- return e && e.slice(0, _t(e) + 1).replace(Tt, "");
588
+ var ht = /^\s+/;
589
+ function bt(e) {
590
+ return e && e.slice(0, mt(e) + 1).replace(ht, "");
387
591
  }
388
- var F = S.Symbol, Ve = Object.prototype, xt = Ve.hasOwnProperty, Ot = Ve.toString, H = F ? F.toStringTag : void 0;
389
- function At(e) {
390
- var t = xt.call(e, H), r = e[H];
592
+ var D = P.Symbol, Ue = Object.prototype, _t = Ue.hasOwnProperty, wt = Ue.toString, q = D ? D.toStringTag : void 0;
593
+ function xt(e) {
594
+ var t = _t.call(e, q), a = e[q];
391
595
  try {
392
- e[H] = void 0;
393
- var a = !0;
394
- } catch (n) {
596
+ e[q] = void 0;
597
+ var r = !0;
598
+ } catch (i) {
395
599
  }
396
- var i = Ot.call(e);
397
- return a && (t ? e[H] = r : delete e[H]), i;
600
+ var n = wt.call(e);
601
+ return r && (t ? e[q] = a : delete e[q]), n;
398
602
  }
399
- var jt = Object.prototype, St = jt.toString;
603
+ var Tt = Object.prototype, St = Tt.toString;
400
604
  function $t(e) {
401
605
  return St.call(e);
402
606
  }
403
- var It = "[object Null]", Et = "[object Undefined]", ye = F ? F.toStringTag : void 0;
404
- function z(e) {
405
- return e == null ? e === void 0 ? Et : It : ye && ye in Object(e) ? At(e) : $t(e);
607
+ var Ot = "[object Null]", At = "[object Undefined]", me = D ? D.toStringTag : void 0;
608
+ function F(e) {
609
+ return e == null ? e === void 0 ? At : Ot : me && me in Object(e) ? xt(e) : $t(e);
406
610
  }
407
- function V(e) {
611
+ function z(e) {
408
612
  return e != null && typeof e == "object";
409
613
  }
410
- var Nt = "[object Symbol]";
411
- function Pt(e) {
412
- return typeof e == "symbol" || V(e) && z(e) == Nt;
614
+ var jt = "[object Symbol]";
615
+ function Nt(e) {
616
+ return typeof e == "symbol" || z(e) && F(e) == jt;
413
617
  }
414
- var me = NaN, Ct = /^[-+]0x[0-9a-f]+$/i, Mt = /^0b[01]+$/i, Lt = /^0o[0-7]+$/i, Dt = parseInt;
415
- function he(e) {
618
+ var he = NaN, Et = /^[-+]0x[0-9a-f]+$/i, Pt = /^0b[01]+$/i, It = /^0o[0-7]+$/i, Ct = parseInt;
619
+ function be(e) {
416
620
  if (typeof e == "number")
417
621
  return e;
418
- if (Pt(e))
419
- return me;
420
- if (q(e)) {
622
+ if (Nt(e))
623
+ return he;
624
+ if (H(e)) {
421
625
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
422
- e = q(t) ? t + "" : t;
626
+ e = H(t) ? t + "" : t;
423
627
  }
424
628
  if (typeof e != "string")
425
629
  return e === 0 ? e : +e;
426
- e = wt(e);
427
- var r = Mt.test(e);
428
- return r || Lt.test(e) ? Dt(e.slice(2), r ? 2 : 8) : Ct.test(e) ? me : +e;
630
+ e = bt(e);
631
+ var a = Pt.test(e);
632
+ return a || It.test(e) ? Ct(e.slice(2), a ? 2 : 8) : Et.test(e) ? he : +e;
429
633
  }
430
- var Rt = "Expected a function", Ft = Math.max, Vt = Math.min;
431
- function zt(e, t, r) {
432
- var a, i, n, p, u, l, s = 0, h = !1, v = !1, d = !0;
634
+ var Mt = "Expected a function", Lt = Math.max, Vt = Math.min;
635
+ function Rt(e, t, a) {
636
+ var r, n, i, u, l, o, s = 0, v = !1, d = !1, f = !0;
433
637
  if (typeof e != "function")
434
- throw new TypeError(Rt);
435
- t = he(t) || 0, q(r) && (h = !!r.leading, v = "maxWait" in r, n = v ? Ft(he(r.maxWait) || 0, t) : n, d = "trailing" in r ? !!r.trailing : d);
436
- function b(y) {
437
- var j = a, P = i;
438
- return a = i = void 0, s = y, p = e.apply(P, j), p;
638
+ throw new TypeError(Mt);
639
+ t = be(t) || 0, H(a) && (v = !!a.leading, d = "maxWait" in a, i = d ? Lt(be(a.maxWait) || 0, t) : i, f = "trailing" in a ? !!a.trailing : f);
640
+ function _(b) {
641
+ var w = r, E = n;
642
+ return r = n = void 0, s = b, u = e.apply(E, w), u;
439
643
  }
440
- function m(y) {
441
- return s = y, u = setTimeout(_, t), h ? b(y) : p;
644
+ function m(b) {
645
+ return s = b, l = setTimeout(x, t), v ? _(b) : u;
442
646
  }
443
- function c(y) {
444
- var j = y - l, P = y - s, K = t - j;
445
- return v ? Vt(K, n - P) : K;
647
+ function c(b) {
648
+ var w = b - o, E = b - s, X = t - w;
649
+ return d ? Vt(X, i - E) : X;
446
650
  }
447
- function w(y) {
448
- var j = y - l, P = y - s;
449
- return l === void 0 || j >= t || j < 0 || v && P >= n;
651
+ function T(b) {
652
+ var w = b - o, E = b - s;
653
+ return o === void 0 || w >= t || w < 0 || d && E >= i;
450
654
  }
451
- function _() {
452
- var y = re();
453
- if (w(y))
454
- return O(y);
455
- u = setTimeout(_, c(y));
655
+ function x() {
656
+ var b = ae();
657
+ if (T(b))
658
+ return S(b);
659
+ l = setTimeout(x, c(b));
456
660
  }
457
- function O(y) {
458
- return u = void 0, d && a ? b(y) : (a = i = void 0, p);
661
+ function S(b) {
662
+ return l = void 0, f && r ? _(b) : (r = n = void 0, u);
459
663
  }
460
- function R() {
461
- u !== void 0 && clearTimeout(u), s = 0, a = l = i = u = void 0;
664
+ function $() {
665
+ l !== void 0 && clearTimeout(l), s = 0, r = o = n = l = void 0;
462
666
  }
463
- function I() {
464
- return u === void 0 ? p : O(re());
667
+ function h() {
668
+ return l === void 0 ? u : S(ae());
465
669
  }
466
- function A() {
467
- var y = re(), j = w(y);
468
- if (a = arguments, i = this, l = y, j) {
469
- if (u === void 0)
470
- return m(l);
471
- if (v)
472
- return clearTimeout(u), u = setTimeout(_, t), b(l);
670
+ function N() {
671
+ var b = ae(), w = T(b);
672
+ if (r = arguments, n = this, o = b, w) {
673
+ if (l === void 0)
674
+ return m(o);
675
+ if (d)
676
+ return clearTimeout(l), l = setTimeout(x, t), _(o);
473
677
  }
474
- return u === void 0 && (u = setTimeout(_, t)), p;
678
+ return l === void 0 && (l = setTimeout(x, t)), u;
475
679
  }
476
- return A.cancel = R, A.flush = I, A;
680
+ return N.cancel = $, N.flush = h, N;
477
681
  }
478
- function Ut() {
682
+ function Dt() {
479
683
  this.__data__ = [], this.size = 0;
480
684
  }
481
- function ze(e, t) {
685
+ function He(e, t) {
482
686
  return e === t || e !== e && t !== t;
483
687
  }
484
- function Z(e, t) {
485
- for (var r = e.length; r--; )
486
- if (ze(e[r][0], t))
487
- return r;
688
+ function Q(e, t) {
689
+ for (var a = e.length; a--; )
690
+ if (He(e[a][0], t))
691
+ return a;
488
692
  return -1;
489
693
  }
490
- var Ht = Array.prototype, Bt = Ht.splice;
491
- function qt(e) {
492
- var t = this.__data__, r = Z(t, e);
493
- if (r < 0)
694
+ var zt = Array.prototype, Ft = zt.splice;
695
+ function Gt(e) {
696
+ var t = this.__data__, a = Q(t, e);
697
+ if (a < 0)
494
698
  return !1;
495
- var a = t.length - 1;
496
- return r == a ? t.pop() : Bt.call(t, r, 1), --this.size, !0;
699
+ var r = t.length - 1;
700
+ return a == r ? t.pop() : Ft.call(t, a, 1), --this.size, !0;
497
701
  }
498
- function Gt(e) {
499
- var t = this.__data__, r = Z(t, e);
500
- return r < 0 ? void 0 : t[r][1];
702
+ function qt(e) {
703
+ var t = this.__data__, a = Q(t, e);
704
+ return a < 0 ? void 0 : t[a][1];
501
705
  }
502
- function Wt(e) {
503
- return Z(this.__data__, e) > -1;
706
+ function Bt(e) {
707
+ return Q(this.__data__, e) > -1;
504
708
  }
505
- function Kt(e, t) {
506
- var r = this.__data__, a = Z(r, e);
507
- return a < 0 ? (++this.size, r.push([e, t])) : r[a][1] = t, this;
709
+ function Ut(e, t) {
710
+ var a = this.__data__, r = Q(a, e);
711
+ return r < 0 ? (++this.size, a.push([e, t])) : a[r][1] = t, this;
508
712
  }
509
- function $(e) {
510
- var t = -1, r = e == null ? 0 : e.length;
511
- for (this.clear(); ++t < r; ) {
512
- var a = e[t];
513
- this.set(a[0], a[1]);
713
+ function I(e) {
714
+ var t = -1, a = e == null ? 0 : e.length;
715
+ for (this.clear(); ++t < a; ) {
716
+ var r = e[t];
717
+ this.set(r[0], r[1]);
514
718
  }
515
719
  }
516
- $.prototype.clear = Ut;
517
- $.prototype.delete = qt;
518
- $.prototype.get = Gt;
519
- $.prototype.has = Wt;
520
- $.prototype.set = Kt;
521
- function Xt() {
522
- this.__data__ = new $(), this.size = 0;
720
+ I.prototype.clear = Dt;
721
+ I.prototype.delete = Gt;
722
+ I.prototype.get = qt;
723
+ I.prototype.has = Bt;
724
+ I.prototype.set = Ut;
725
+ function Ht() {
726
+ this.__data__ = new I(), this.size = 0;
523
727
  }
524
- function Jt(e) {
525
- var t = this.__data__, r = t.delete(e);
526
- return this.size = t.size, r;
728
+ function Wt(e) {
729
+ var t = this.__data__, a = t.delete(e);
730
+ return this.size = t.size, a;
527
731
  }
528
- function Yt(e) {
732
+ function Kt(e) {
529
733
  return this.__data__.get(e);
530
734
  }
531
- function Zt(e) {
735
+ function Xt(e) {
532
736
  return this.__data__.has(e);
533
737
  }
534
- var Qt = "[object AsyncFunction]", kt = "[object Function]", er = "[object GeneratorFunction]", tr = "[object Proxy]";
535
- function Ue(e) {
536
- if (!q(e))
738
+ var Zt = "[object AsyncFunction]", kt = "[object Function]", Jt = "[object GeneratorFunction]", Yt = "[object Proxy]";
739
+ function We(e) {
740
+ if (!H(e))
537
741
  return !1;
538
- var t = z(e);
539
- return t == kt || t == er || t == Qt || t == tr;
742
+ var t = F(e);
743
+ return t == kt || t == Jt || t == Zt || t == Yt;
540
744
  }
541
- var ae = S["__core-js_shared__"], be = function() {
542
- var e = /[^.]+$/.exec(ae && ae.keys && ae.keys.IE_PROTO || "");
745
+ var re = P["__core-js_shared__"], _e = function() {
746
+ var e = /[^.]+$/.exec(re && re.keys && re.keys.IE_PROTO || "");
543
747
  return e ? "Symbol(src)_1." + e : "";
544
748
  }();
545
- function rr(e) {
546
- return !!be && be in e;
749
+ function Qt(e) {
750
+ return !!_e && _e in e;
547
751
  }
548
- var ar = Function.prototype, nr = ar.toString;
549
- function L(e) {
752
+ var ea = Function.prototype, ta = ea.toString;
753
+ function V(e) {
550
754
  if (e != null) {
551
755
  try {
552
- return nr.call(e);
756
+ return ta.call(e);
553
757
  } catch (t) {
554
758
  }
555
759
  try {
@@ -559,420 +763,420 @@ function L(e) {
559
763
  }
560
764
  return "";
561
765
  }
562
- var ir = /[\\^$.*+?()[\]{}|]/g, sr = /^\[object .+?Constructor\]$/, or = Function.prototype, lr = Object.prototype, ur = or.toString, pr = lr.hasOwnProperty, cr = RegExp(
563
- "^" + ur.call(pr).replace(ir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
766
+ var aa = /[\\^$.*+?()[\]{}|]/g, ra = /^\[object .+?Constructor\]$/, ia = Function.prototype, na = Object.prototype, sa = ia.toString, oa = na.hasOwnProperty, la = RegExp(
767
+ "^" + sa.call(oa).replace(aa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
564
768
  );
565
- function dr(e) {
566
- if (!q(e) || rr(e))
769
+ function ua(e) {
770
+ if (!H(e) || Qt(e))
567
771
  return !1;
568
- var t = Ue(e) ? cr : sr;
569
- return t.test(L(e));
772
+ var t = We(e) ? la : ra;
773
+ return t.test(V(e));
570
774
  }
571
- function fr(e, t) {
775
+ function pa(e, t) {
572
776
  return e == null ? void 0 : e[t];
573
777
  }
574
- function U(e, t) {
575
- var r = fr(e, t);
576
- return dr(r) ? r : void 0;
778
+ function G(e, t) {
779
+ var a = pa(e, t);
780
+ return ua(a) ? a : void 0;
577
781
  }
578
- var G = U(S, "Map"), W = U(Object, "create");
579
- function vr() {
580
- this.__data__ = W ? W(null) : {}, this.size = 0;
782
+ var W = G(P, "Map"), K = G(Object, "create");
783
+ function ca() {
784
+ this.__data__ = K ? K(null) : {}, this.size = 0;
581
785
  }
582
- function gr(e) {
786
+ function da(e) {
583
787
  var t = this.has(e) && delete this.__data__[e];
584
788
  return this.size -= t ? 1 : 0, t;
585
789
  }
586
- var yr = "__lodash_hash_undefined__", mr = Object.prototype, hr = mr.hasOwnProperty;
587
- function br(e) {
790
+ var fa = "__lodash_hash_undefined__", va = Object.prototype, ya = va.hasOwnProperty;
791
+ function ga(e) {
588
792
  var t = this.__data__;
589
- if (W) {
590
- var r = t[e];
591
- return r === yr ? void 0 : r;
793
+ if (K) {
794
+ var a = t[e];
795
+ return a === fa ? void 0 : a;
592
796
  }
593
- return hr.call(t, e) ? t[e] : void 0;
797
+ return ya.call(t, e) ? t[e] : void 0;
594
798
  }
595
- var _r = Object.prototype, Tr = _r.hasOwnProperty;
596
- function wr(e) {
799
+ var ma = Object.prototype, ha = ma.hasOwnProperty;
800
+ function ba(e) {
597
801
  var t = this.__data__;
598
- return W ? t[e] !== void 0 : Tr.call(t, e);
802
+ return K ? t[e] !== void 0 : ha.call(t, e);
599
803
  }
600
- var xr = "__lodash_hash_undefined__";
601
- function Or(e, t) {
602
- var r = this.__data__;
603
- return this.size += this.has(e) ? 0 : 1, r[e] = W && t === void 0 ? xr : t, this;
804
+ var _a = "__lodash_hash_undefined__";
805
+ function wa(e, t) {
806
+ var a = this.__data__;
807
+ return this.size += this.has(e) ? 0 : 1, a[e] = K && t === void 0 ? _a : t, this;
604
808
  }
605
- function M(e) {
606
- var t = -1, r = e == null ? 0 : e.length;
607
- for (this.clear(); ++t < r; ) {
608
- var a = e[t];
609
- this.set(a[0], a[1]);
809
+ function L(e) {
810
+ var t = -1, a = e == null ? 0 : e.length;
811
+ for (this.clear(); ++t < a; ) {
812
+ var r = e[t];
813
+ this.set(r[0], r[1]);
610
814
  }
611
815
  }
612
- M.prototype.clear = vr;
613
- M.prototype.delete = gr;
614
- M.prototype.get = br;
615
- M.prototype.has = wr;
616
- M.prototype.set = Or;
617
- function Ar() {
816
+ L.prototype.clear = ca;
817
+ L.prototype.delete = da;
818
+ L.prototype.get = ga;
819
+ L.prototype.has = ba;
820
+ L.prototype.set = wa;
821
+ function xa() {
618
822
  this.size = 0, this.__data__ = {
619
- hash: new M(),
620
- map: new (G || $)(),
621
- string: new M()
823
+ hash: new L(),
824
+ map: new (W || I)(),
825
+ string: new L()
622
826
  };
623
827
  }
624
- function jr(e) {
828
+ function Ta(e) {
625
829
  var t = typeof e;
626
830
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
627
831
  }
628
- function Q(e, t) {
629
- var r = e.__data__;
630
- return jr(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
832
+ function ee(e, t) {
833
+ var a = e.__data__;
834
+ return Ta(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
631
835
  }
632
- function Sr(e) {
633
- var t = Q(this, e).delete(e);
836
+ function Sa(e) {
837
+ var t = ee(this, e).delete(e);
634
838
  return this.size -= t ? 1 : 0, t;
635
839
  }
636
- function $r(e) {
637
- return Q(this, e).get(e);
840
+ function $a(e) {
841
+ return ee(this, e).get(e);
638
842
  }
639
- function Ir(e) {
640
- return Q(this, e).has(e);
843
+ function Oa(e) {
844
+ return ee(this, e).has(e);
641
845
  }
642
- function Er(e, t) {
643
- var r = Q(this, e), a = r.size;
644
- return r.set(e, t), this.size += r.size == a ? 0 : 1, this;
846
+ function Aa(e, t) {
847
+ var a = ee(this, e), r = a.size;
848
+ return a.set(e, t), this.size += a.size == r ? 0 : 1, this;
645
849
  }
646
- function D(e) {
647
- var t = -1, r = e == null ? 0 : e.length;
648
- for (this.clear(); ++t < r; ) {
649
- var a = e[t];
650
- this.set(a[0], a[1]);
850
+ function R(e) {
851
+ var t = -1, a = e == null ? 0 : e.length;
852
+ for (this.clear(); ++t < a; ) {
853
+ var r = e[t];
854
+ this.set(r[0], r[1]);
651
855
  }
652
856
  }
653
- D.prototype.clear = Ar;
654
- D.prototype.delete = Sr;
655
- D.prototype.get = $r;
656
- D.prototype.has = Ir;
657
- D.prototype.set = Er;
658
- var Nr = 200;
659
- function Pr(e, t) {
660
- var r = this.__data__;
661
- if (r instanceof $) {
662
- var a = r.__data__;
663
- if (!G || a.length < Nr - 1)
664
- return a.push([e, t]), this.size = ++r.size, this;
665
- r = this.__data__ = new D(a);
857
+ R.prototype.clear = xa;
858
+ R.prototype.delete = Sa;
859
+ R.prototype.get = $a;
860
+ R.prototype.has = Oa;
861
+ R.prototype.set = Aa;
862
+ var ja = 200;
863
+ function Na(e, t) {
864
+ var a = this.__data__;
865
+ if (a instanceof I) {
866
+ var r = a.__data__;
867
+ if (!W || r.length < ja - 1)
868
+ return r.push([e, t]), this.size = ++a.size, this;
869
+ a = this.__data__ = new R(r);
666
870
  }
667
- return r.set(e, t), this.size = r.size, this;
871
+ return a.set(e, t), this.size = a.size, this;
668
872
  }
669
- function N(e) {
670
- var t = this.__data__ = new $(e);
873
+ function M(e) {
874
+ var t = this.__data__ = new I(e);
671
875
  this.size = t.size;
672
876
  }
673
- N.prototype.clear = Xt;
674
- N.prototype.delete = Jt;
675
- N.prototype.get = Yt;
676
- N.prototype.has = Zt;
677
- N.prototype.set = Pr;
678
- var Cr = "__lodash_hash_undefined__";
679
- function Mr(e) {
680
- return this.__data__.set(e, Cr), this;
877
+ M.prototype.clear = Ht;
878
+ M.prototype.delete = Wt;
879
+ M.prototype.get = Kt;
880
+ M.prototype.has = Xt;
881
+ M.prototype.set = Na;
882
+ var Ea = "__lodash_hash_undefined__";
883
+ function Pa(e) {
884
+ return this.__data__.set(e, Ea), this;
681
885
  }
682
- function Lr(e) {
886
+ function Ia(e) {
683
887
  return this.__data__.has(e);
684
888
  }
685
889
  function J(e) {
686
- var t = -1, r = e == null ? 0 : e.length;
687
- for (this.__data__ = new D(); ++t < r; )
890
+ var t = -1, a = e == null ? 0 : e.length;
891
+ for (this.__data__ = new R(); ++t < a; )
688
892
  this.add(e[t]);
689
893
  }
690
- J.prototype.add = J.prototype.push = Mr;
691
- J.prototype.has = Lr;
692
- function Dr(e, t) {
693
- for (var r = -1, a = e == null ? 0 : e.length; ++r < a; )
694
- if (t(e[r], r, e))
894
+ J.prototype.add = J.prototype.push = Pa;
895
+ J.prototype.has = Ia;
896
+ function Ca(e, t) {
897
+ for (var a = -1, r = e == null ? 0 : e.length; ++a < r; )
898
+ if (t(e[a], a, e))
695
899
  return !0;
696
900
  return !1;
697
901
  }
698
- function Rr(e, t) {
902
+ function Ma(e, t) {
699
903
  return e.has(t);
700
904
  }
701
- var Fr = 1, Vr = 2;
702
- function He(e, t, r, a, i, n) {
703
- var p = r & Fr, u = e.length, l = t.length;
704
- if (u != l && !(p && l > u))
905
+ var La = 1, Va = 2;
906
+ function Ke(e, t, a, r, n, i) {
907
+ var u = a & La, l = e.length, o = t.length;
908
+ if (l != o && !(u && o > l))
705
909
  return !1;
706
- var s = n.get(e), h = n.get(t);
707
- if (s && h)
708
- return s == t && h == e;
709
- var v = -1, d = !0, b = r & Vr ? new J() : void 0;
710
- for (n.set(e, t), n.set(t, e); ++v < u; ) {
711
- var m = e[v], c = t[v];
712
- if (a)
713
- var w = p ? a(c, m, v, t, e, n) : a(m, c, v, e, t, n);
714
- if (w !== void 0) {
715
- if (w)
910
+ var s = i.get(e), v = i.get(t);
911
+ if (s && v)
912
+ return s == t && v == e;
913
+ var d = -1, f = !0, _ = a & Va ? new J() : void 0;
914
+ for (i.set(e, t), i.set(t, e); ++d < l; ) {
915
+ var m = e[d], c = t[d];
916
+ if (r)
917
+ var T = u ? r(c, m, d, t, e, i) : r(m, c, d, e, t, i);
918
+ if (T !== void 0) {
919
+ if (T)
716
920
  continue;
717
- d = !1;
921
+ f = !1;
718
922
  break;
719
923
  }
720
- if (b) {
721
- if (!Dr(t, function(_, O) {
722
- if (!Rr(b, O) && (m === _ || i(m, _, r, a, n)))
723
- return b.push(O);
924
+ if (_) {
925
+ if (!Ca(t, function(x, S) {
926
+ if (!Ma(_, S) && (m === x || n(m, x, a, r, i)))
927
+ return _.push(S);
724
928
  })) {
725
- d = !1;
929
+ f = !1;
726
930
  break;
727
931
  }
728
- } else if (!(m === c || i(m, c, r, a, n))) {
729
- d = !1;
932
+ } else if (!(m === c || n(m, c, a, r, i))) {
933
+ f = !1;
730
934
  break;
731
935
  }
732
936
  }
733
- return n.delete(e), n.delete(t), d;
734
- }
735
- var _e = S.Uint8Array;
736
- function zr(e) {
737
- var t = -1, r = Array(e.size);
738
- return e.forEach(function(a, i) {
739
- r[++t] = [i, a];
740
- }), r;
741
- }
742
- function Ur(e) {
743
- var t = -1, r = Array(e.size);
744
- return e.forEach(function(a) {
745
- r[++t] = a;
746
- }), r;
747
- }
748
- var Hr = 1, Br = 2, qr = "[object Boolean]", Gr = "[object Date]", Wr = "[object Error]", Kr = "[object Map]", Xr = "[object Number]", Jr = "[object RegExp]", Yr = "[object Set]", Zr = "[object String]", Qr = "[object Symbol]", kr = "[object ArrayBuffer]", ea = "[object DataView]", Te = F ? F.prototype : void 0, ne = Te ? Te.valueOf : void 0;
749
- function ta(e, t, r, a, i, n, p) {
750
- switch (r) {
751
- case ea:
937
+ return i.delete(e), i.delete(t), f;
938
+ }
939
+ var we = P.Uint8Array;
940
+ function Ra(e) {
941
+ var t = -1, a = Array(e.size);
942
+ return e.forEach(function(r, n) {
943
+ a[++t] = [n, r];
944
+ }), a;
945
+ }
946
+ function Da(e) {
947
+ var t = -1, a = Array(e.size);
948
+ return e.forEach(function(r) {
949
+ a[++t] = r;
950
+ }), a;
951
+ }
952
+ var za = 1, Fa = 2, Ga = "[object Boolean]", qa = "[object Date]", Ba = "[object Error]", Ua = "[object Map]", Ha = "[object Number]", Wa = "[object RegExp]", Ka = "[object Set]", Xa = "[object String]", Za = "[object Symbol]", ka = "[object ArrayBuffer]", Ja = "[object DataView]", xe = D ? D.prototype : void 0, ie = xe ? xe.valueOf : void 0;
953
+ function Ya(e, t, a, r, n, i, u) {
954
+ switch (a) {
955
+ case Ja:
752
956
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
753
957
  return !1;
754
958
  e = e.buffer, t = t.buffer;
755
- case kr:
756
- return !(e.byteLength != t.byteLength || !n(new _e(e), new _e(t)));
757
- case qr:
758
- case Gr:
759
- case Xr:
760
- return ze(+e, +t);
761
- case Wr:
959
+ case ka:
960
+ return !(e.byteLength != t.byteLength || !i(new we(e), new we(t)));
961
+ case Ga:
962
+ case qa:
963
+ case Ha:
964
+ return He(+e, +t);
965
+ case Ba:
762
966
  return e.name == t.name && e.message == t.message;
763
- case Jr:
764
- case Zr:
967
+ case Wa:
968
+ case Xa:
765
969
  return e == t + "";
766
- case Kr:
767
- var u = zr;
768
- case Yr:
769
- var l = a & Hr;
770
- if (u || (u = Ur), e.size != t.size && !l)
970
+ case Ua:
971
+ var l = Ra;
972
+ case Ka:
973
+ var o = r & za;
974
+ if (l || (l = Da), e.size != t.size && !o)
771
975
  return !1;
772
- var s = p.get(e);
976
+ var s = u.get(e);
773
977
  if (s)
774
978
  return s == t;
775
- a |= Br, p.set(e, t);
776
- var h = He(u(e), u(t), a, i, n, p);
777
- return p.delete(e), h;
778
- case Qr:
779
- if (ne)
780
- return ne.call(e) == ne.call(t);
979
+ r |= Fa, u.set(e, t);
980
+ var v = Ke(l(e), l(t), r, n, i, u);
981
+ return u.delete(e), v;
982
+ case Za:
983
+ if (ie)
984
+ return ie.call(e) == ie.call(t);
781
985
  }
782
986
  return !1;
783
987
  }
784
- function ra(e, t) {
785
- for (var r = -1, a = t.length, i = e.length; ++r < a; )
786
- e[i + r] = t[r];
988
+ function Qa(e, t) {
989
+ for (var a = -1, r = t.length, n = e.length; ++a < r; )
990
+ e[n + a] = t[a];
787
991
  return e;
788
992
  }
789
993
  var Y = Array.isArray;
790
- function aa(e, t, r) {
791
- var a = t(e);
792
- return Y(e) ? a : ra(a, r(e));
793
- }
794
- function na(e, t) {
795
- for (var r = -1, a = e == null ? 0 : e.length, i = 0, n = []; ++r < a; ) {
796
- var p = e[r];
797
- t(p, r, e) && (n[i++] = p);
994
+ function er(e, t, a) {
995
+ var r = t(e);
996
+ return Y(e) ? r : Qa(r, a(e));
997
+ }
998
+ function tr(e, t) {
999
+ for (var a = -1, r = e == null ? 0 : e.length, n = 0, i = []; ++a < r; ) {
1000
+ var u = e[a];
1001
+ t(u, a, e) && (i[n++] = u);
798
1002
  }
799
- return n;
1003
+ return i;
800
1004
  }
801
- function ia() {
1005
+ function ar() {
802
1006
  return [];
803
1007
  }
804
- var sa = Object.prototype, oa = sa.propertyIsEnumerable, we = Object.getOwnPropertySymbols, la = we ? function(e) {
805
- return e == null ? [] : (e = Object(e), na(we(e), function(t) {
806
- return oa.call(e, t);
1008
+ var rr = Object.prototype, ir = rr.propertyIsEnumerable, Te = Object.getOwnPropertySymbols, nr = Te ? function(e) {
1009
+ return e == null ? [] : (e = Object(e), tr(Te(e), function(t) {
1010
+ return ir.call(e, t);
807
1011
  }));
808
- } : ia;
809
- function ua(e, t) {
810
- for (var r = -1, a = Array(e); ++r < e; )
811
- a[r] = t(r);
812
- return a;
1012
+ } : ar;
1013
+ function sr(e, t) {
1014
+ for (var a = -1, r = Array(e); ++a < e; )
1015
+ r[a] = t(a);
1016
+ return r;
813
1017
  }
814
- var pa = "[object Arguments]";
815
- function xe(e) {
816
- return V(e) && z(e) == pa;
1018
+ var or = "[object Arguments]";
1019
+ function Se(e) {
1020
+ return z(e) && F(e) == or;
817
1021
  }
818
- var Be = Object.prototype, ca = Be.hasOwnProperty, da = Be.propertyIsEnumerable, fa = xe(/* @__PURE__ */ function() {
1022
+ var Xe = Object.prototype, lr = Xe.hasOwnProperty, ur = Xe.propertyIsEnumerable, pr = Se(/* @__PURE__ */ function() {
819
1023
  return arguments;
820
- }()) ? xe : function(e) {
821
- return V(e) && ca.call(e, "callee") && !da.call(e, "callee");
1024
+ }()) ? Se : function(e) {
1025
+ return z(e) && lr.call(e, "callee") && !ur.call(e, "callee");
822
1026
  };
823
- function va() {
1027
+ function cr() {
824
1028
  return !1;
825
1029
  }
826
- var qe = typeof exports == "object" && exports && !exports.nodeType && exports, Oe = qe && typeof module == "object" && module && !module.nodeType && module, ga = Oe && Oe.exports === qe, Ae = ga ? S.Buffer : void 0, ya = Ae ? Ae.isBuffer : void 0, se = ya || va, ma = 9007199254740991, ha = /^(?:0|[1-9]\d*)$/;
827
- function ba(e, t) {
828
- var r = typeof e;
829
- return t = t == null ? ma : t, !!t && (r == "number" || r != "symbol" && ha.test(e)) && e > -1 && e % 1 == 0 && e < t;
1030
+ var Ze = typeof exports == "object" && exports && !exports.nodeType && exports, $e = Ze && typeof module == "object" && module && !module.nodeType && module, dr = $e && $e.exports === Ze, Oe = dr ? P.Buffer : void 0, fr = Oe ? Oe.isBuffer : void 0, se = fr || cr, vr = 9007199254740991, yr = /^(?:0|[1-9]\d*)$/;
1031
+ function gr(e, t) {
1032
+ var a = typeof e;
1033
+ return t = t == null ? vr : t, !!t && (a == "number" || a != "symbol" && yr.test(e)) && e > -1 && e % 1 == 0 && e < t;
830
1034
  }
831
- var _a = 9007199254740991;
832
- function Ge(e) {
833
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= _a;
1035
+ var mr = 9007199254740991;
1036
+ function ke(e) {
1037
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= mr;
834
1038
  }
835
- var Ta = "[object Arguments]", wa = "[object Array]", xa = "[object Boolean]", Oa = "[object Date]", Aa = "[object Error]", ja = "[object Function]", Sa = "[object Map]", $a = "[object Number]", Ia = "[object Object]", Ea = "[object RegExp]", Na = "[object Set]", Pa = "[object String]", Ca = "[object WeakMap]", Ma = "[object ArrayBuffer]", La = "[object DataView]", Da = "[object Float32Array]", Ra = "[object Float64Array]", Fa = "[object Int8Array]", Va = "[object Int16Array]", za = "[object Int32Array]", Ua = "[object Uint8Array]", Ha = "[object Uint8ClampedArray]", Ba = "[object Uint16Array]", qa = "[object Uint32Array]", f = {};
836
- f[Da] = f[Ra] = f[Fa] = f[Va] = f[za] = f[Ua] = f[Ha] = f[Ba] = f[qa] = !0;
837
- f[Ta] = f[wa] = f[Ma] = f[xa] = f[La] = f[Oa] = f[Aa] = f[ja] = f[Sa] = f[$a] = f[Ia] = f[Ea] = f[Na] = f[Pa] = f[Ca] = !1;
838
- function Ga(e) {
839
- return V(e) && Ge(e.length) && !!f[z(e)];
1039
+ var hr = "[object Arguments]", br = "[object Array]", _r = "[object Boolean]", wr = "[object Date]", xr = "[object Error]", Tr = "[object Function]", Sr = "[object Map]", $r = "[object Number]", Or = "[object Object]", Ar = "[object RegExp]", jr = "[object Set]", Nr = "[object String]", Er = "[object WeakMap]", Pr = "[object ArrayBuffer]", Ir = "[object DataView]", Cr = "[object Float32Array]", Mr = "[object Float64Array]", Lr = "[object Int8Array]", Vr = "[object Int16Array]", Rr = "[object Int32Array]", Dr = "[object Uint8Array]", zr = "[object Uint8ClampedArray]", Fr = "[object Uint16Array]", Gr = "[object Uint32Array]", y = {};
1040
+ y[Cr] = y[Mr] = y[Lr] = y[Vr] = y[Rr] = y[Dr] = y[zr] = y[Fr] = y[Gr] = !0;
1041
+ y[hr] = y[br] = y[Pr] = y[_r] = y[Ir] = y[wr] = y[xr] = y[Tr] = y[Sr] = y[$r] = y[Or] = y[Ar] = y[jr] = y[Nr] = y[Er] = !1;
1042
+ function qr(e) {
1043
+ return z(e) && ke(e.length) && !!y[F(e)];
840
1044
  }
841
- function Wa(e) {
1045
+ function Br(e) {
842
1046
  return function(t) {
843
1047
  return e(t);
844
1048
  };
845
1049
  }
846
- var We = typeof exports == "object" && exports && !exports.nodeType && exports, B = We && typeof module == "object" && module && !module.nodeType && module, Ka = B && B.exports === We, ie = Ka && Fe.process, je = function() {
1050
+ var Je = typeof exports == "object" && exports && !exports.nodeType && exports, U = Je && typeof module == "object" && module && !module.nodeType && module, Ur = U && U.exports === Je, ne = Ur && Be.process, Ae = function() {
847
1051
  try {
848
- var e = B && B.require && B.require("util").types;
849
- return e || ie && ie.binding && ie.binding("util");
1052
+ var e = U && U.require && U.require("util").types;
1053
+ return e || ne && ne.binding && ne.binding("util");
850
1054
  } catch (t) {
851
1055
  }
852
- }(), Se = je && je.isTypedArray, Ke = Se ? Wa(Se) : Ga, Xa = Object.prototype, Ja = Xa.hasOwnProperty;
853
- function Ya(e, t) {
854
- var r = Y(e), a = !r && fa(e), i = !r && !a && se(e), n = !r && !a && !i && Ke(e), p = r || a || i || n, u = p ? ua(e.length, String) : [], l = u.length;
1056
+ }(), je = Ae && Ae.isTypedArray, Ye = je ? Br(je) : qr, Hr = Object.prototype, Wr = Hr.hasOwnProperty;
1057
+ function Kr(e, t) {
1058
+ var a = Y(e), r = !a && pr(e), n = !a && !r && se(e), i = !a && !r && !n && Ye(e), u = a || r || n || i, l = u ? sr(e.length, String) : [], o = l.length;
855
1059
  for (var s in e)
856
- Ja.call(e, s) && !(p && // Safari 9 has enumerable `arguments.length` in strict mode.
1060
+ Wr.call(e, s) && !(u && // Safari 9 has enumerable `arguments.length` in strict mode.
857
1061
  (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
858
- i && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
859
- n && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
860
- ba(s, l))) && u.push(s);
861
- return u;
862
- }
863
- var Za = Object.prototype;
864
- function Qa(e) {
865
- var t = e && e.constructor, r = typeof t == "function" && t.prototype || Za;
866
- return e === r;
867
- }
868
- function ka(e, t) {
869
- return function(r) {
870
- return e(t(r));
1062
+ n && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1063
+ i && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
1064
+ gr(s, o))) && l.push(s);
1065
+ return l;
1066
+ }
1067
+ var Xr = Object.prototype;
1068
+ function Zr(e) {
1069
+ var t = e && e.constructor, a = typeof t == "function" && t.prototype || Xr;
1070
+ return e === a;
1071
+ }
1072
+ function kr(e, t) {
1073
+ return function(a) {
1074
+ return e(t(a));
871
1075
  };
872
1076
  }
873
- var en = ka(Object.keys, Object), tn = Object.prototype, rn = tn.hasOwnProperty;
874
- function an(e) {
875
- if (!Qa(e))
876
- return en(e);
1077
+ var Jr = kr(Object.keys, Object), Yr = Object.prototype, Qr = Yr.hasOwnProperty;
1078
+ function ei(e) {
1079
+ if (!Zr(e))
1080
+ return Jr(e);
877
1081
  var t = [];
878
- for (var r in Object(e))
879
- rn.call(e, r) && r != "constructor" && t.push(r);
1082
+ for (var a in Object(e))
1083
+ Qr.call(e, a) && a != "constructor" && t.push(a);
880
1084
  return t;
881
1085
  }
882
- function nn(e) {
883
- return e != null && Ge(e.length) && !Ue(e);
1086
+ function ti(e) {
1087
+ return e != null && ke(e.length) && !We(e);
884
1088
  }
885
- function sn(e) {
886
- return nn(e) ? Ya(e) : an(e);
1089
+ function ai(e) {
1090
+ return ti(e) ? Kr(e) : ei(e);
887
1091
  }
888
- function $e(e) {
889
- return aa(e, sn, la);
1092
+ function Ne(e) {
1093
+ return er(e, ai, nr);
890
1094
  }
891
- var on = 1, ln = Object.prototype, un = ln.hasOwnProperty;
892
- function pn(e, t, r, a, i, n) {
893
- var p = r & on, u = $e(e), l = u.length, s = $e(t), h = s.length;
894
- if (l != h && !p)
1095
+ var ri = 1, ii = Object.prototype, ni = ii.hasOwnProperty;
1096
+ function si(e, t, a, r, n, i) {
1097
+ var u = a & ri, l = Ne(e), o = l.length, s = Ne(t), v = s.length;
1098
+ if (o != v && !u)
895
1099
  return !1;
896
- for (var v = l; v--; ) {
897
- var d = u[v];
898
- if (!(p ? d in t : un.call(t, d)))
1100
+ for (var d = o; d--; ) {
1101
+ var f = l[d];
1102
+ if (!(u ? f in t : ni.call(t, f)))
899
1103
  return !1;
900
1104
  }
901
- var b = n.get(e), m = n.get(t);
902
- if (b && m)
903
- return b == t && m == e;
1105
+ var _ = i.get(e), m = i.get(t);
1106
+ if (_ && m)
1107
+ return _ == t && m == e;
904
1108
  var c = !0;
905
- n.set(e, t), n.set(t, e);
906
- for (var w = p; ++v < l; ) {
907
- d = u[v];
908
- var _ = e[d], O = t[d];
909
- if (a)
910
- var R = p ? a(O, _, d, t, e, n) : a(_, O, d, e, t, n);
911
- if (!(R === void 0 ? _ === O || i(_, O, r, a, n) : R)) {
1109
+ i.set(e, t), i.set(t, e);
1110
+ for (var T = u; ++d < o; ) {
1111
+ f = l[d];
1112
+ var x = e[f], S = t[f];
1113
+ if (r)
1114
+ var $ = u ? r(S, x, f, t, e, i) : r(x, S, f, e, t, i);
1115
+ if (!($ === void 0 ? x === S || n(x, S, a, r, i) : $)) {
912
1116
  c = !1;
913
1117
  break;
914
1118
  }
915
- w || (w = d == "constructor");
1119
+ T || (T = f == "constructor");
916
1120
  }
917
- if (c && !w) {
918
- var I = e.constructor, A = t.constructor;
919
- I != A && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof A == "function" && A instanceof A) && (c = !1);
1121
+ if (c && !T) {
1122
+ var h = e.constructor, N = t.constructor;
1123
+ h != N && "constructor" in e && "constructor" in t && !(typeof h == "function" && h instanceof h && typeof N == "function" && N instanceof N) && (c = !1);
920
1124
  }
921
- return n.delete(e), n.delete(t), c;
922
- }
923
- var oe = U(S, "DataView"), le = U(S, "Promise"), ue = U(S, "Set"), pe = U(S, "WeakMap"), Ie = "[object Map]", cn = "[object Object]", Ee = "[object Promise]", Ne = "[object Set]", Pe = "[object WeakMap]", Ce = "[object DataView]", dn = L(oe), fn = L(G), vn = L(le), gn = L(ue), yn = L(pe), E = z;
924
- (oe && E(new oe(new ArrayBuffer(1))) != Ce || G && E(new G()) != Ie || le && E(le.resolve()) != Ee || ue && E(new ue()) != Ne || pe && E(new pe()) != Pe) && (E = function(e) {
925
- var t = z(e), r = t == cn ? e.constructor : void 0, a = r ? L(r) : "";
926
- if (a)
927
- switch (a) {
928
- case dn:
929
- return Ce;
930
- case fn:
931
- return Ie;
932
- case vn:
1125
+ return i.delete(e), i.delete(t), c;
1126
+ }
1127
+ var oe = G(P, "DataView"), le = G(P, "Promise"), ue = G(P, "Set"), pe = G(P, "WeakMap"), Ee = "[object Map]", oi = "[object Object]", Pe = "[object Promise]", Ie = "[object Set]", Ce = "[object WeakMap]", Me = "[object DataView]", li = V(oe), ui = V(W), pi = V(le), ci = V(ue), di = V(pe), C = F;
1128
+ (oe && C(new oe(new ArrayBuffer(1))) != Me || W && C(new W()) != Ee || le && C(le.resolve()) != Pe || ue && C(new ue()) != Ie || pe && C(new pe()) != Ce) && (C = function(e) {
1129
+ var t = F(e), a = t == oi ? e.constructor : void 0, r = a ? V(a) : "";
1130
+ if (r)
1131
+ switch (r) {
1132
+ case li:
1133
+ return Me;
1134
+ case ui:
933
1135
  return Ee;
934
- case gn:
935
- return Ne;
936
- case yn:
1136
+ case pi:
937
1137
  return Pe;
1138
+ case ci:
1139
+ return Ie;
1140
+ case di:
1141
+ return Ce;
938
1142
  }
939
1143
  return t;
940
1144
  });
941
- var mn = 1, Me = "[object Arguments]", Le = "[object Array]", X = "[object Object]", hn = Object.prototype, De = hn.hasOwnProperty;
942
- function bn(e, t, r, a, i, n) {
943
- var p = Y(e), u = Y(t), l = p ? Le : E(e), s = u ? Le : E(t);
944
- l = l == Me ? X : l, s = s == Me ? X : s;
945
- var h = l == X, v = s == X, d = l == s;
946
- if (d && se(e)) {
1145
+ var fi = 1, Le = "[object Arguments]", Ve = "[object Array]", Z = "[object Object]", vi = Object.prototype, Re = vi.hasOwnProperty;
1146
+ function yi(e, t, a, r, n, i) {
1147
+ var u = Y(e), l = Y(t), o = u ? Ve : C(e), s = l ? Ve : C(t);
1148
+ o = o == Le ? Z : o, s = s == Le ? Z : s;
1149
+ var v = o == Z, d = s == Z, f = o == s;
1150
+ if (f && se(e)) {
947
1151
  if (!se(t))
948
1152
  return !1;
949
- p = !0, h = !1;
1153
+ u = !0, v = !1;
950
1154
  }
951
- if (d && !h)
952
- return n || (n = new N()), p || Ke(e) ? He(e, t, r, a, i, n) : ta(e, t, l, r, a, i, n);
953
- if (!(r & mn)) {
954
- var b = h && De.call(e, "__wrapped__"), m = v && De.call(t, "__wrapped__");
955
- if (b || m) {
956
- var c = b ? e.value() : e, w = m ? t.value() : t;
957
- return n || (n = new N()), i(c, w, r, a, n);
1155
+ if (f && !v)
1156
+ return i || (i = new M()), u || Ye(e) ? Ke(e, t, a, r, n, i) : Ya(e, t, o, a, r, n, i);
1157
+ if (!(a & fi)) {
1158
+ var _ = v && Re.call(e, "__wrapped__"), m = d && Re.call(t, "__wrapped__");
1159
+ if (_ || m) {
1160
+ var c = _ ? e.value() : e, T = m ? t.value() : t;
1161
+ return i || (i = new M()), n(c, T, a, r, i);
958
1162
  }
959
1163
  }
960
- return d ? (n || (n = new N()), pn(e, t, r, a, i, n)) : !1;
1164
+ return f ? (i || (i = new M()), si(e, t, a, r, n, i)) : !1;
961
1165
  }
962
- function Xe(e, t, r, a, i) {
963
- return e === t ? !0 : e == null || t == null || !V(e) && !V(t) ? e !== e && t !== t : bn(e, t, r, a, Xe, i);
1166
+ function Qe(e, t, a, r, n) {
1167
+ return e === t ? !0 : e == null || t == null || !z(e) && !z(t) ? e !== e && t !== t : yi(e, t, a, r, Qe, n);
964
1168
  }
965
- function _n(e, t) {
966
- return Xe(e, t);
1169
+ function gi(e, t) {
1170
+ return Qe(e, t);
967
1171
  }
968
- let Tn = (e, t = 21) => (r = t) => {
969
- let a = "", i = r | 0;
970
- for (; i--; )
971
- a += e[Math.random() * e.length | 0];
972
- return a;
1172
+ let mi = (e, t = 21) => (a = t) => {
1173
+ let r = "", n = a | 0;
1174
+ for (; n--; )
1175
+ r += e[Math.random() * e.length | 0];
1176
+ return r;
973
1177
  };
974
- const ce = {};
975
- ce.props = {
1178
+ const de = {};
1179
+ de.props = {
976
1180
  id: {
977
1181
  key: "id",
978
1182
  required: !0,
@@ -1005,81 +1209,81 @@ ce.props = {
1005
1209
  type: null
1006
1210
  }
1007
1211
  };
1008
- ce.setup = (e, t) => {
1009
- const r = e, a = Tn("1234567890abcdef", 4), {
1010
- setExposedVariable: i,
1011
- findComponent: n
1012
- } = et({
1013
- id: r.id
1212
+ de.setup = (e, t) => {
1213
+ const a = e, r = mi("1234567890abcdef", 4), {
1214
+ setExposedVariable: n,
1215
+ findComponent: i
1216
+ } = Ge({
1217
+ id: a.id
1014
1218
  }), {
1015
- fireEvent: p
1016
- } = tt({
1017
- id: r.id
1018
- }), u = C(void 0), l = n(r.id).validation, s = C(!1), h = C(!1), v = C(""), d = C(""), b = C(a());
1219
+ fireEvent: u
1220
+ } = Fe({
1221
+ id: a.id
1222
+ }), l = A(void 0), o = i(a.id).validation, s = A(!1), v = A(!1), d = A(""), f = A(""), _ = A(r());
1019
1223
  try {
1020
- b.value = window.route.query.id;
1021
- } catch (o) {
1022
- console.log("获取绑定route参数错误", o);
1224
+ _.value = window.route.query.id;
1225
+ } catch (p) {
1226
+ console.log("获取绑定route参数错误", p);
1023
1227
  }
1024
- const m = localStorage.getItem("yuiassotoken"), c = C([]);
1025
- async function w(o) {
1026
- const T = [];
1027
- for (const g of o)
1028
- T.push({
1029
- uid: g.uid || a(),
1228
+ const m = localStorage.getItem("yuiassotoken"), c = A([]);
1229
+ async function T(p) {
1230
+ const O = [];
1231
+ for (const g of p)
1232
+ O.push({
1233
+ uid: g.uid || r(),
1030
1234
  url: g.url,
1031
1235
  name: g.name || g.url.split("/").pop()
1032
1236
  });
1033
- c.value = T;
1237
+ c.value = O;
1034
1238
  }
1035
- w(r.exposedVariables.defaultValue), ee(() => c.value, () => {
1036
- i("value", c.value);
1239
+ T(a.exposedVariables.defaultValue), k(() => c.value, () => {
1240
+ n("value", c.value);
1037
1241
  }, {
1038
1242
  immediate: !0
1039
- }), ee(() => r.exposedVariables.value, (o) => {
1040
- const T = o.map((g) => {
1243
+ }), k(() => a.exposedVariables.value, (p) => {
1244
+ const O = p.map((g) => {
1041
1245
  if (g instanceof File)
1042
1246
  return g;
1043
1247
  {
1044
- const x = typeof g == "string" ? JSON.parse(g) : g;
1045
- return x.uid = x.uid || a(), x;
1248
+ const j = typeof g == "string" ? JSON.parse(g) : g;
1249
+ return j.uid = j.uid || r(), j;
1046
1250
  }
1047
1251
  });
1048
- _n(c.value, T) || (c.value = T);
1049
- }), at(() => {
1050
- ee(() => c.value, zt(() => {
1051
- u.value !== void 0 && (u.value ? p("onChange") : p("onRemove"));
1252
+ gi(c.value, O) || (c.value = O);
1253
+ }), st(() => {
1254
+ k(() => c.value, Rt(() => {
1255
+ l.value !== void 0 && (l.value ? u("onChange") : u("onRemove"));
1052
1256
  }, 200));
1053
1257
  });
1054
- const _ = te(() => r.exposedVariables.isValid), O = te(() => r.exposedVariables.validationError), R = te(() => r.properties.uploadListVisible);
1055
- function I(o) {
1056
- r.properties.multiple !== "true" && (c.value = []);
1057
- const T = new FormData();
1058
- return T.append("id", b.value), T.append("file", o), fe.value({
1258
+ const x = B(() => a.exposedVariables.isValid), S = B(() => a.exposedVariables.validationError), $ = B(() => a.properties.uploadListVisible);
1259
+ function h(p) {
1260
+ a.properties.multiple !== "true" && (c.value = []);
1261
+ const O = new FormData();
1262
+ return O.append("id", _.value), O.append("file", p), ve.value({
1059
1263
  headers: {
1060
1264
  yuiassotoken: m
1061
1265
  },
1062
- url: `/fmc-boss/file/upload/${b.value}`,
1266
+ url: `/fmc-boss/file/upload/${_.value}`,
1063
1267
  method: "post",
1064
- data: T
1268
+ data: O
1065
1269
  }).then((g) => {
1066
1270
  if (g.data.code === 200) {
1067
- const x = {
1068
- uid: a(),
1069
- name: o.name,
1271
+ const j = {
1272
+ uid: r(),
1273
+ name: p.name,
1070
1274
  url: g.data.data
1071
1275
  };
1072
- r.properties.multiple === "true" ? c.value.push(x) : c.value = [x], r.properties.isOcr && A(g.data.data);
1276
+ a.properties.multiple === "true" ? c.value.push(j) : c.value = [j], a.properties.isOcr && N(g.data.data);
1073
1277
  } else
1074
- k.error(g.data.message);
1278
+ te.error(g.data.message);
1075
1279
  }), !1;
1076
1280
  }
1077
- function A(o) {
1281
+ function N(p) {
1078
1282
  const {
1079
- parserTemplateCode: T,
1283
+ parserTemplateCode: O,
1080
1284
  ocrType: g
1081
- } = r.properties;
1082
- g === "IDENTIFIER_LIST" && !T || (h.value = !0, fe.value({
1285
+ } = a.properties;
1286
+ g === "IDENTIFIER_LIST" && !O || (v.value = !0, ve.value({
1083
1287
  headers: {
1084
1288
  yuiassotoken: m
1085
1289
  },
@@ -1088,75 +1292,72 @@ ce.setup = (e, t) => {
1088
1292
  data: {
1089
1293
  requestSystem: "fmc-boss",
1090
1294
  ocrType: g,
1091
- parserTemplateCode: T,
1092
- imageUrl: o
1295
+ parserTemplateCode: O,
1296
+ imageUrl: p
1093
1297
  }
1094
- }).then((x) => {
1095
- x.data.code === 200 ? (i("ocrData", null), i("ocrData", x.data.data), p("ocrSuccess")) : k.error(x.data.message);
1298
+ }).then((j) => {
1299
+ j.data.code === 200 ? (n("ocrData", null), n("ocrData", j.data.data), u("ocrSuccess")) : te.error(j.data.message);
1096
1300
  }).finally(() => {
1097
- h.value = !1;
1301
+ v.value = !1;
1098
1302
  }));
1099
1303
  }
1100
- function y(o) {
1101
- return (o == null ? void 0 : o.slice(0, 5)) === "image";
1102
- }
1103
- function j({
1104
- file: o,
1105
- _fileList: T
1304
+ function b({
1305
+ file: p,
1306
+ _fileList: O
1106
1307
  }) {
1107
- o.status === "removed" && (c.value = c.value.filter((x) => x.uid !== o.uid));
1308
+ p.status === "removed" && (c.value = c.value.filter((j) => j.uid !== p.uid));
1108
1309
  }
1109
- function P(o) {
1110
- k.error(rt.value.t("upload.formatError"));
1310
+ function w(p) {
1311
+ te.error(nt.value.t("upload.formatError"));
1111
1312
  }
1112
- function K(o) {
1113
- if (o) {
1114
- let g = o.substring(o.indexOf("(") + 1, o.indexOf(")$/")).split("|");
1115
- return g = g.map((Qe) => `.${Qe}`), g.join(",");
1313
+ function E(p) {
1314
+ if (p) {
1315
+ let g = p.substring(p.indexOf("(") + 1, p.indexOf(")$/")).split("|");
1316
+ return g = g.map((at) => `.${at}`), g.join(",");
1116
1317
  }
1117
1318
  return "";
1118
1319
  }
1119
- function Je(o) {
1120
- return `${window.location.origin}/fmc-boss/file/cloud-storage${o.replace(/http.*\.yeepay\.com/, "")}?yuiassotoken=${localStorage.getItem("yuiassotoken")}`;
1320
+ function X(p) {
1321
+ return `${window.location.origin}/fmc-boss/file/cloud-storage${p.replace(/http.*\.yeepay\.com/, "")}?yuiassotoken=${localStorage.getItem("yuiassotoken")}`;
1121
1322
  }
1122
- function de(o) {
1123
- return window.location.host === "fmc.yeepay.com" ? o.startsWith("http://staticres.yeepay.com") && (o = o.replace("http:", "https:")) : o = Je(o), o;
1323
+ function fe(p) {
1324
+ return window.location.host === "fmc.yeepay.com" ? p.startsWith("http://staticres.yeepay.com") && (p = p.replace("http:", "https:")) : p = X(p), p;
1124
1325
  }
1125
- async function Ye(o) {
1126
- v.value = de(o.url), d.value = o.name, s.value = !0;
1326
+ async function et(p) {
1327
+ d.value = fe(p.url), f.value = p.name, s.value = !0;
1127
1328
  }
1128
- async function Ze(o) {
1129
- if (y(o.type)) {
1130
- Ye(o);
1329
+ async function tt(p) {
1330
+ if (/\.(jpg|jpeg|png|gif|bmp)$/i.test(p.url)) {
1331
+ et(p);
1131
1332
  return;
1132
1333
  }
1133
- window.open(de(o.url), "_blank");
1334
+ window.open(fe(p.url), "_blank");
1134
1335
  }
1135
1336
  return {
1136
- validationProps: l,
1337
+ validationProps: o,
1137
1338
  previewVisible: s,
1138
- ocrLoading: h,
1139
- previewImage: v,
1140
- previewImageName: d,
1339
+ ocrLoading: v,
1340
+ previewImage: d,
1341
+ previewImageName: f,
1141
1342
  value: c,
1142
- isValid: _,
1143
- validationError: O,
1144
- uploadListVisible: R,
1145
- beforeUpload: I,
1146
- handleChange: j,
1147
- rejectDragFile: P,
1148
- changeFileRegex: K,
1149
- handlePreview: Ze
1343
+ isValid: x,
1344
+ validationError: S,
1345
+ uploadListVisible: $,
1346
+ beforeUpload: h,
1347
+ handleChange: b,
1348
+ rejectDragFile: w,
1349
+ changeFileRegex: E,
1350
+ handlePreview: tt
1150
1351
  };
1151
1352
  };
1152
- var wn = function() {
1153
- var e = this, t = e.$createElement, r = e._self._c || t;
1154
- return r("div", {
1353
+ var hi = function() {
1354
+ var e = this, t = e.$createElement, a = e._self._c || t;
1355
+ return a("div", {
1155
1356
  staticClass: "yee-upload-wrapper",
1156
1357
  class: {
1157
1358
  "has-error": !e.isValid
1158
1359
  }
1159
- }, [e.properties.type === "2" ? r("a-upload-dragger", {
1360
+ }, [e.properties.type === "2" ? a("a-upload-dragger", {
1160
1361
  attrs: {
1161
1362
  name: "file",
1162
1363
  accept: e.changeFileRegex(e.validationProps.fileRegex.value),
@@ -1170,17 +1371,17 @@ var wn = function() {
1170
1371
  change: e.handleChange,
1171
1372
  reject: e.rejectDragFile
1172
1373
  }
1173
- }, [r("p", {
1374
+ }, [a("p", {
1174
1375
  staticClass: "ant-upload-drag-icon"
1175
- }, [r("a-icon", {
1376
+ }, [a("a-icon", {
1176
1377
  attrs: {
1177
1378
  type: "inbox"
1178
1379
  }
1179
- })], 1), r("p", {
1380
+ })], 1), a("p", {
1180
1381
  staticClass: "ant-upload-text"
1181
- }, [e._v(" " + e._s(e.properties.draggerTypeTitle || "单击或拖动文件到此区域上传") + " ")]), r("p", {
1382
+ }, [e._v(" " + e._s(e.properties.draggerTypeTitle || "单击或拖动文件到此区域上传") + " ")]), a("p", {
1182
1383
  staticClass: "ant-upload-hint px-4"
1183
- }, [e._v(" " + e._s(e.properties.draggerTypeHint || "") + " ")])]) : [e.properties.type === "1" ? r("a-upload", {
1384
+ }, [e._v(" " + e._s(e.properties.draggerTypeHint || "") + " ")])]) : [e.properties.type === "1" ? a("a-upload", {
1184
1385
  attrs: {
1185
1386
  name: "file",
1186
1387
  accept: e.changeFileRegex(e.validationProps.fileRegex.value),
@@ -1193,11 +1394,11 @@ var wn = function() {
1193
1394
  on: {
1194
1395
  change: e.handleChange
1195
1396
  }
1196
- }, [r("a-button", {
1397
+ }, [a("a-button", {
1197
1398
  attrs: {
1198
1399
  disabled: e.properties.disabled
1199
1400
  }
1200
- }, [e._v(" " + e._s(e.properties.buttonName) + " ")])], 1) : e._e(), e.properties.type === "3" ? r("a-upload", {
1401
+ }, [e._v(" " + e._s(e.properties.buttonName) + " ")])], 1) : e._e(), e.properties.type === "3" ? a("a-upload", {
1201
1402
  attrs: {
1202
1403
  "list-type": "picture-card",
1203
1404
  name: "file",
@@ -1212,24 +1413,24 @@ var wn = function() {
1212
1413
  preview: e.handlePreview,
1213
1414
  change: e.handleChange
1214
1415
  }
1215
- }, [e.value.length < e.validationProps.maxNumber.value ? r("div", [r("a-icon", {
1416
+ }, [e.value.length < e.validationProps.maxNumber.value ? a("div", [a("a-icon", {
1216
1417
  attrs: {
1217
1418
  type: "plus"
1218
1419
  }
1219
- })], 1) : e._e()]) : e._e(), r("a-modal", {
1420
+ })], 1) : e._e()]) : e._e(), a("a-modal", {
1220
1421
  attrs: {
1221
1422
  visible: e.previewVisible,
1222
1423
  footer: null
1223
1424
  },
1224
1425
  on: {
1225
- cancel: function(a) {
1426
+ cancel: function(r) {
1226
1427
  e.previewVisible = !1;
1227
1428
  }
1228
1429
  },
1229
1430
  scopedSlots: e._u([{
1230
1431
  key: "title",
1231
1432
  fn: function() {
1232
- return [r("div", {
1433
+ return [a("div", {
1233
1434
  staticClass: "w-4/5",
1234
1435
  attrs: {
1235
1436
  truncate: ""
@@ -1238,7 +1439,7 @@ var wn = function() {
1238
1439
  },
1239
1440
  proxy: !0
1240
1441
  }])
1241
- }, [r("img", {
1442
+ }, [a("img", {
1242
1443
  staticStyle: {
1243
1444
  width: "100%"
1244
1445
  },
@@ -1246,7 +1447,7 @@ var wn = function() {
1246
1447
  alt: "example",
1247
1448
  src: e.previewImage
1248
1449
  }
1249
- })])], r("div", {
1450
+ })])], a("div", {
1250
1451
  directives: [{
1251
1452
  name: "show",
1252
1453
  rawName: "v-show",
@@ -1254,63 +1455,162 @@ var wn = function() {
1254
1455
  expression: "!isValid"
1255
1456
  }],
1256
1457
  staticClass: "ant-form-explain"
1257
- }, [e._v(" " + e._s(e.validationError) + " ")]), r("div", {
1458
+ }, [e._v(" " + e._s(e.validationError) + " ")]), a("div", {
1258
1459
  directives: [{
1259
1460
  name: "show",
1260
1461
  rawName: "v-show",
1261
1462
  value: e.ocrLoading,
1262
1463
  expression: "ocrLoading"
1263
1464
  }]
1264
- }, [e._v("识别中"), r("a-icon", {
1465
+ }, [e._v("识别中"), a("a-icon", {
1265
1466
  attrs: {
1266
1467
  type: "sync",
1267
1468
  spin: ""
1268
1469
  }
1269
1470
  })], 1)], 2);
1270
- }, xn = [];
1271
- function On(e, t, r, a, i, n, p, u) {
1272
- var l = typeof e == "function" ? e.options : e;
1273
- t && (l.render = t, l.staticRenderFns = r, l._compiled = !0);
1274
- var s;
1275
- if (i && (s = i), s)
1276
- if (l.functional) {
1277
- l._injectStyles = s;
1278
- var h = l.render;
1279
- l.render = function(b, m) {
1280
- return s.call(m), h(b, m);
1281
- };
1282
- } else {
1283
- var v = l.beforeCreate;
1284
- l.beforeCreate = v ? [].concat(v, s) : [s];
1285
- }
1286
- return {
1287
- exports: e,
1288
- options: l
1289
- };
1290
- }
1291
- const Re = {};
1292
- var An = /* @__PURE__ */ On(
1293
- ce,
1294
- wn,
1295
- xn,
1471
+ }, bi = [];
1472
+ const De = {};
1473
+ var _i = /* @__PURE__ */ qe(
1474
+ de,
1475
+ hi,
1476
+ bi,
1296
1477
  !1,
1297
- jn
1478
+ wi
1298
1479
  );
1299
- function jn(e) {
1300
- for (let t in Re)
1301
- this[t] = Re[t];
1302
- }
1303
- const Sn = /* @__PURE__ */ function() {
1304
- return An.exports;
1305
- }(), $n = {
1306
- component: Sn,
1307
- componentMeta: mt
1308
- }, In = [
1309
- $n
1310
- ], Mn = {
1311
- materials: In
1480
+ function wi(e) {
1481
+ for (let t in De)
1482
+ this[t] = De[t];
1483
+ }
1484
+ const xi = /* @__PURE__ */ function() {
1485
+ return _i.exports;
1486
+ }(), Ti = {
1487
+ component: xi,
1488
+ componentMeta: vt
1489
+ }, Si = [
1490
+ ft,
1491
+ Ti
1492
+ ], $i = "@yeepay/fmc-material", Oi = "0.0.4", Ai = [
1493
+ "./dist/styles/*"
1494
+ ], ji = {
1495
+ ".": {
1496
+ types: "./types/index.d.ts",
1497
+ import: "./dist/index.js",
1498
+ require: "./dist/index.js"
1499
+ },
1500
+ "./dist/styles/*": {
1501
+ import: "./dist/styles/*",
1502
+ require: "./dist/styles/*"
1503
+ },
1504
+ "./setters": {
1505
+ types: "./types/setters.d.ts",
1506
+ import: "./dist/setters.js",
1507
+ require: "./dist/setters.js"
1508
+ },
1509
+ "./types/*": {
1510
+ types: "./types/*"
1511
+ }
1512
+ }, Ni = "./dist/index.js", Ei = "./types/index.d.ts", Pi = [
1513
+ "dist",
1514
+ "types"
1515
+ ], Ii = {
1516
+ dev: "vite",
1517
+ clean: "rimraf dist dist.zip",
1518
+ build: "nr clean && vite build --mode npm && nr build:cssfile",
1519
+ "build:fed": "nr clean && vite build --config ./vite.config.fed.ts --mode fed",
1520
+ "build:cssfile": "tsx ./scripts/build-cssfile.ts",
1521
+ "build:entry": "tsx ./scripts/build-entry.ts",
1522
+ prepublishOnly: "nr build",
1523
+ postpublish: "nr sync",
1524
+ release: "tsx scripts/release.ts",
1525
+ "release:fed": "tsx scripts/release-fed.ts",
1526
+ sync: "tsx scripts/cnpm-sync.ts",
1527
+ lint: "eslint .",
1528
+ "lint:fix": "eslint . --fix"
1529
+ }, Ci = {
1530
+ "@vue/composition-api": ">= 1.4.9",
1531
+ "@yeepay/antd-materials": "2.*",
1532
+ "@yeepay/lowcode-renderer": "2.*",
1533
+ vue: ">= 2.5 < 2.7"
1534
+ }, Mi = {
1535
+ "@yeepay/lowcode-shared": "2.*",
1536
+ "ant-design-vue": "^1.7.8",
1537
+ "lodash-es": "^4.17.21",
1538
+ nanoid: "^5.0.9"
1539
+ }, Li = {
1540
+ "@antfu/ni": "^0.21.12",
1541
+ "@iconify-json/mdi": "^1.1.66",
1542
+ "@originjs/vite-plugin-federation": "1.3.6",
1543
+ "@types/eslint": "^8.56.10",
1544
+ "@types/fs-extra": "^11.0.4",
1545
+ "@types/lodash-es": "^4.17.12",
1546
+ "@types/node": "^20.12.12",
1547
+ "@types/prompts": "^2.4.9",
1548
+ "@unocss/transformer-directives": "^0.58.7",
1549
+ "@vitest/coverage-v8": "^1.6.0",
1550
+ "@vitest/ui": "^1.6.0",
1551
+ "@vue/compiler-sfc": "^3.4.27",
1552
+ "@vue/runtime-core": "^3.5.12",
1553
+ "@vue/runtime-dom": "^3.4.27",
1554
+ "@vue/test-utils": "1.3.6",
1555
+ "@yeepay/eslint-config": "^2.0.1",
1556
+ "@yeepay/lowcode-engine": "^2.3.8",
1557
+ "@yeepay/server-utils": "^0.0.3",
1558
+ bumpp: "^9.4.1",
1559
+ "cnpm-sync": "^0.0.4",
1560
+ concurrently: "^8.2.2",
1561
+ esbuild: "^0.21.3",
1562
+ eslint: "^9.8.0",
1563
+ "eslint-plugin-format": "^0.1.1",
1564
+ execa: "9.1.0",
1565
+ "execa-commonjs": "npm:execa@5.1.1",
1566
+ "fs-extra": "^11.2.0",
1567
+ husky: "^9.0.11",
1568
+ jsdom: "^24.0.0",
1569
+ less: "3.13.1",
1570
+ picocolors: "^1.0.1",
1571
+ postcss: "^8.4.38",
1572
+ "postinstall-postinstall": "^2.1.0",
1573
+ prettier: "^3.2.5",
1574
+ prompts: "^2.4.2",
1575
+ rimraf: "^5.0.7",
1576
+ tsx: "^4.17.0",
1577
+ typescript: "^5.4.5",
1578
+ unocss: "^0.58.7",
1579
+ "unplugin-auto-import": "0.16.4",
1580
+ "unplugin-dev-proxy": "^1.0.2",
1581
+ "unplugin-vue2-script-setup": "^0.11.4",
1582
+ vite: "^5.2.11",
1583
+ "vite-plugin-top-level-await": "^1.4.2",
1584
+ "vite-plugin-vue2": "^2.0.3",
1585
+ vitest: "^1.6.0",
1586
+ "vue-template-compiler": "2.6.14",
1587
+ "vue-tsc": "^2.0.29",
1588
+ zx: "^8.1.0"
1589
+ }, Vi = {
1590
+ access: "public"
1591
+ }, Ri = {
1592
+ patchedDependencies: {
1593
+ "picomatch@2.3.1": "patches/picomatch@2.3.1.patch",
1594
+ "@originjs/vite-plugin-federation@1.3.6": "patches/@originjs__vite-plugin-federation@1.3.6.patch"
1595
+ }
1596
+ }, ze = {
1597
+ name: $i,
1598
+ version: Oi,
1599
+ sideEffects: Ai,
1600
+ exports: ji,
1601
+ main: Ni,
1602
+ types: Ei,
1603
+ files: Pi,
1604
+ scripts: Ii,
1605
+ peerDependencies: Ci,
1606
+ dependencies: Mi,
1607
+ devDependencies: Li,
1608
+ publishConfig: Vi,
1609
+ pnpm: Ri
1610
+ }, qi = {
1611
+ materials: Si
1312
1612
  };
1313
- ke(ve.name, ve.version);
1613
+ it(ze.name, ze.version);
1314
1614
  export {
1315
- Mn as material
1615
+ qi as material
1316
1616
  };