@deot/docs-client 1.1.9 → 1.2.0

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 (87) hide show
  1. package/README.md +6 -4
  2. package/dist/{chunks/chunk-rhk8Qtmk-CUgXtmq_.js → bundle/chunk-rhk8Qtmk-CbLEbM7n.js} +0 -1
  3. package/dist/{chunks/compile-BHlM2G35-gLGYT56A.js → bundle/compile-D33div4Y-CVbeyITp.js} +21848 -21852
  4. package/dist/{chunks/compiler-sfc.esm-browser-5dA1IWMJ.js → bundle/compiler-sfc.esm-browser-DmhYZRPB.js} +1374 -1378
  5. package/dist/bundle/css-sV_dM9Hl-BpgypWsW.js +18927 -0
  6. package/dist/{chunks/echarts-BBzcOaek.js → bundle/echarts-BWkcVFuU.js} +1 -2
  7. package/dist/bundle/index.js +103578 -0
  8. package/dist/{eval → bundle}/index.style.css +1 -1
  9. package/dist/{chunks/jsx-CwMPlI4_-CBhlIHLh.js → bundle/jsx-CwMPlI4_-D02C9U5w.js} +9057 -9061
  10. package/dist/{chunks/photoswipe.esm-D52MAtDT.js → bundle/photoswipe.esm-CvVKUjTj.js} +114 -116
  11. package/dist/{chunks/rolldown-runtime-Ce3zPWPd.js → bundle/rolldown-runtime-DArdT4gl.js} +0 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/index.js +6839 -103273
  14. package/dist/index.style.css +1 -1
  15. package/package.json +10 -9
  16. package/dist/chunks/browser-Cmwcvs-d.js +0 -505
  17. package/dist/chunks/css-C25yWQa_-B6uwKgDA.js +0 -15160
  18. package/dist/chunks/dayjs.min-B3g34Qcz.js +0 -300
  19. package/dist/chunks/dist-0ySyXNpo.js +0 -415
  20. package/dist/chunks/dist-B44jICwZ.js +0 -22
  21. package/dist/chunks/dist-BUw25nXJ.js +0 -65
  22. package/dist/chunks/dist-BeOE8qTX.js +0 -345
  23. package/dist/chunks/dist-C3V7reR4.js +0 -197
  24. package/dist/chunks/dist-CI9Lp9Cj.js +0 -247
  25. package/dist/chunks/dist-CQir6D4y.js +0 -244
  26. package/dist/chunks/dist-Cxf7_ocf.js +0 -44
  27. package/dist/chunks/dist-DF4kisl2.js +0 -43
  28. package/dist/chunks/dist-DHJhaOSs.js +0 -426
  29. package/dist/chunks/dist-DLj8yJdm.js +0 -38
  30. package/dist/chunks/dist-DSypl37f.js +0 -58
  31. package/dist/chunks/dist-DWn6r6un.js +0 -76
  32. package/dist/chunks/dist-DWqBe2Ah.js +0 -132
  33. package/dist/chunks/dist-D_Uqh6m9.js +0 -80
  34. package/dist/chunks/dist-DcIU51zW.js +0 -166
  35. package/dist/chunks/dist-Wm6vE6kM.js +0 -17
  36. package/dist/chunks/dist-kiZUqqzR.js +0 -27
  37. package/dist/chunks/dist-oZ12SGqg.js +0 -6
  38. package/dist/chunks/dist-va7FmnW4.js +0 -156
  39. package/dist/chunks/html2canvas-DoKTvaOT.js +0 -4012
  40. package/dist/chunks/index.es-wVPQxEPP.js +0 -5752
  41. package/dist/chunks/jspdf.es.min-Zm27YeAg.js +0 -17900
  42. package/dist/chunks/jszip.min-Da8UgalE.js +0 -3044
  43. package/dist/chunks/lodash-CYyW02I7.js +0 -5157
  44. package/dist/chunks/purify.es-DhHsvqCe.js +0 -845
  45. package/dist/chunks/vue-router-LT2FR3OX.js +0 -1208
  46. package/dist/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4851
  47. package/dist/eval/chunks/browser-Cmwcvs-d.js +0 -4
  48. package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +0 -4
  49. package/dist/eval/chunks/compile-BHlM2G35-gLGYT56A.js +0 -7
  50. package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +0 -4
  51. package/dist/eval/chunks/css-C25yWQa_-B6uwKgDA.js +0 -8
  52. package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +0 -4
  53. package/dist/eval/chunks/dist-0ySyXNpo.js +0 -4
  54. package/dist/eval/chunks/dist-B44jICwZ.js +0 -5
  55. package/dist/eval/chunks/dist-BUw25nXJ.js +0 -6
  56. package/dist/eval/chunks/dist-BeOE8qTX.js +0 -4
  57. package/dist/eval/chunks/dist-C3V7reR4.js +0 -4
  58. package/dist/eval/chunks/dist-CI9Lp9Cj.js +0 -4
  59. package/dist/eval/chunks/dist-CQir6D4y.js +0 -5
  60. package/dist/eval/chunks/dist-Cxf7_ocf.js +0 -4
  61. package/dist/eval/chunks/dist-DF4kisl2.js +0 -5
  62. package/dist/eval/chunks/dist-DHJhaOSs.js +0 -5
  63. package/dist/eval/chunks/dist-DLj8yJdm.js +0 -4
  64. package/dist/eval/chunks/dist-DSypl37f.js +0 -5
  65. package/dist/eval/chunks/dist-DWn6r6un.js +0 -4
  66. package/dist/eval/chunks/dist-DWqBe2Ah.js +0 -6
  67. package/dist/eval/chunks/dist-D_Uqh6m9.js +0 -4
  68. package/dist/eval/chunks/dist-DcIU51zW.js +0 -4
  69. package/dist/eval/chunks/dist-Wm6vE6kM.js +0 -1
  70. package/dist/eval/chunks/dist-kiZUqqzR.js +0 -4
  71. package/dist/eval/chunks/dist-oZ12SGqg.js +0 -4
  72. package/dist/eval/chunks/dist-va7FmnW4.js +0 -4
  73. package/dist/eval/chunks/echarts-BBzcOaek.js +0 -4
  74. package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +0 -1
  75. package/dist/eval/chunks/html2canvas-DoKTvaOT.js +0 -4
  76. package/dist/eval/chunks/index.es-wVPQxEPP.js +0 -5
  77. package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +0 -78
  78. package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +0 -4
  79. package/dist/eval/chunks/jszip.min-Da8UgalE.js +0 -4
  80. package/dist/eval/chunks/lodash-CYyW02I7.js +0 -4
  81. package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +0 -4
  82. package/dist/eval/chunks/purify.es-DhHsvqCe.js +0 -4
  83. package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +0 -4
  84. package/dist/eval/chunks/vue-router-LT2FR3OX.js +0 -5
  85. package/dist/eval/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4
  86. package/dist/eval/index.js +0 -24
  87. package/dist/index.cjs +0 -23
@@ -1,132 +0,0 @@
1
- globalThis.process;
2
- import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
- import { i as t, n, r, t as i } from "./dist-BeOE8qTX.js";
4
- import { n as a, r as o } from "./dist-BUw25nXJ.js";
5
- //#region node_modules/.pnpm/@deot+http-client@1.1.10/node_modules/@deot/http-client/dist/index.js
6
- var s = /* @__PURE__ */ e({
7
- Network: () => h,
8
- createInstance: () => m
9
- }), c = {
10
- age: !0,
11
- authorization: !0,
12
- "content-length": !0,
13
- "content-type": !0,
14
- etag: !0,
15
- expires: !0,
16
- from: !0,
17
- host: !0,
18
- "if-modified-since": !0,
19
- "if-unmodified-since": !0,
20
- "last-modified": !0,
21
- location: !0,
22
- "max-forwards": !0,
23
- "proxy-authorization": !0,
24
- referer: !0,
25
- "retry-after": !0,
26
- "user-agent": !0
27
- }, l = (e) => {
28
- let t = {}, n, r, i;
29
- return e && e.split("\n").forEach((e) => {
30
- /* istanbul ignore next -- @preserve */
31
- i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && c[n]) &&
32
- /* istanbul ignore next -- @preserve */
33
- (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
34
- }), t;
35
- }, u = (e, n) => new Promise((a, o) => {
36
- let { onDownloadProgress: s, onUploadProgress: c, responseType: u, timeout: d, credentials: f, body: p, headers: m, method: h, url: g, async: _ = !0 } = e, v = new XMLHttpRequest(), y = () => ({
37
- status: v.status,
38
- headers: new r(l(v.getAllResponseHeaders()))
39
- }), b = (e, n) => {
40
- o(t.error(e, {
41
- ...y(),
42
- body: n
43
- }));
44
- }, x = (e) => {
45
- a(new t({
46
- ...y(),
47
- body: e
48
- }));
49
- }, S = (e, t, n) => {
50
- n ||= v, t && n.addEventListener(e, t);
51
- };
52
- S("readystatechange", () => {
53
- if (v.readyState === 4 && v.status !== 0) {
54
- if (v.status >= 200 && v.status < 300) {
55
- let e = v.responseType ? v.response : v.responseText;
56
- v.responseType && e === null ? b(i.HTTP_RESPONSE_PARSING_FAILED) : x(e);
57
- } else b(i.HTTP_STATUS_ERROR);
58
- }
59
- }), S("abort", (e) => b(i.HTTP_CANCEL, e)), S(
60
- "error",
61
- /* istanbul ignore next */
62
- (e) => b(i.HTTP_STATUS_ERROR, e)
63
- ), S("timeout", (e) => b(i.HTTP_REQUEST_TIMEOUT, e)), S("progress", s), S("progress", c, v.upload), v.open(h, g, _), v.withCredentials = f !== "omit" && !!f, d && (v.timeout = d), u && (v.responseType = u);
64
- for (let e in m.toJSON()) v.setRequestHeader(e, m[e]);
65
- v.send(p);
66
- let C = n.cancel;
67
- n.cancel = async () => {
68
- v.abort(), await C();
69
- }, n.server = v;
70
- }), d = (e, n) => new Promise((a, o) => {
71
- let { url: s, headers: c, body: l, credentials: u, method: d, timeout: f, responseType: p, ...m } = e, h = new AbortController(), g = f ? setTimeout(() => {
72
- h.abort(i.HTTP_REQUEST_TIMEOUT), y(i.HTTP_REQUEST_TIMEOUT);
73
- }, f) : null, _, v = () => {
74
- let e = new r();
75
- return _ && _.headers.forEach((t, n) => e.set(n, t, !0)), {
76
- status: _?.status,
77
- headers: e
78
- };
79
- }, y = (e, n) => {
80
- [i.HTTP_CANCEL, i.HTTP_REQUEST_TIMEOUT].includes(h.signal.reason) && (e = h.signal.reason), o(t.error(e, {
81
- ...v(),
82
- body: n
83
- })), g && clearTimeout(g), g = null;
84
- }, b = (e) => {
85
- a(new t({
86
- ...v(),
87
- body: e
88
- })), g && clearTimeout(g), g = null;
89
- }, x = fetch(s, {
90
- headers: c.toJSON(),
91
- body: l,
92
- credentials: u,
93
- method: d,
94
- signal: h.signal,
95
- ...m
96
- }).then((e) => {
97
- if (_ = e, e.status >= 200 && e.status < 300) {
98
- let t = e[p || "text"];
99
- if (!t) return b(e);
100
- t.call(e).then((e) => {
101
- b(e);
102
- }).catch((e) => {
103
- y(i.HTTP_RESPONSE_PARSING_FAILED, e);
104
- });
105
- } else y(i.HTTP_STATUS_ERROR, e);
106
- return e;
107
- }).catch((e) => {
108
- y(i.HTTP_STATUS_ERROR, e);
109
- }), S = n.cancel;
110
- n.cancel = async () => {
111
- h.abort(i.HTTP_CANCEL), await S();
112
- }, n.server = x;
113
- }), f = (e) => new Promise((n, r) => {
114
- let { jsonp: a, url: o } = e;
115
- if (typeof a != "string" || window[a]) {
116
- r(t.error(i.HTTP_CODE_ILLEGAL));
117
- return;
118
- }
119
- Object.defineProperty(window, a, { value: (e) => n(new t({ body: e })) });
120
- let s = document.createElement("script"), c = document.getElementsByTagName("head")[0];
121
- s.src = o, c.appendChild(s);
122
- }), p = (e, t) => e.jsonp ? f(e) : e.useXHR || !window?.fetch ? u(e, t) : d(e, t), m = (e = {}) => {
123
- let t = Array.isArray(e.onRequest) ? e.onRequest : e.onRequest ? [e.onRequest] : [], r = Array.isArray(e.onResponse) ? e.onResponse : e.onResponse ? [e.onResponse] : [];
124
- return new n({
125
- ...e,
126
- onRequest: t.concat([a]),
127
- onResponse: [o].concat(r),
128
- provider: p
129
- });
130
- }, h = m({});
131
- //#endregion
132
- export { m as n, s as r, h as t };
@@ -1,80 +0,0 @@
1
- globalThis.process;
2
- import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
- //#region node_modules/.pnpm/@deot+helper-load@1.1.3/node_modules/@deot/helper-load/dist/index.js
4
- var t = /* @__PURE__ */ e({
5
- image: () => s,
6
- link: () => o,
7
- removeStyle: () => a,
8
- script: () => r,
9
- style: () => i
10
- }), n = typeof window > "u", r = (e, t) => {
11
- if (n) return;
12
- if (r.cache.has(e)) return r.cache.get(e);
13
- let i = new Promise((n, i) => {
14
- let a = document.createElement("script"), o = t?.async === !1;
15
- if (!o) a.src = e, a.onload = () => n(1), a.onerror = (t) => {
16
- r.cache.delete(e), i(t);
17
- };
18
- else {
19
- let t = new XMLHttpRequest();
20
- t.open("GET", e, !1), t.send(), a.innerHTML = t.responseText;
21
- }
22
- document.getElementsByTagName("head")[0].appendChild(a), o && n(1);
23
- });
24
- return r.cache.set(e, i), i;
25
- };
26
- r.cache = /* @__PURE__ */ new Map();
27
- var i = (e, t) => {
28
- if (n) return;
29
- if (t?.id) {
30
- let n = typeof t.id == "string" ? document.getElementById(t.id) : t.id;
31
- if (n) {
32
- n.innerHTML = e;
33
- return;
34
- }
35
- }
36
- if (i.cache.has(e)) return;
37
- i.cache.add(e);
38
- let r = document.createElement("style");
39
- t?.id && typeof t.id == "string" && r.setAttribute("id", t.id), r.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(r);
40
- }, a = (e) => {
41
- if (!n && e) {
42
- let t = typeof e == "string" ? document.getElementById(e) : e;
43
- if (!t) return;
44
- let n = t.innerHTML;
45
- document.getElementsByTagName("head")[0].removeChild(t), i.cache.has(n) && i.cache.delete(n);
46
- }
47
- };
48
- i.cache = /* @__PURE__ */ new Set();
49
- var o = (e) => {
50
- if (n) return;
51
- if (o.cache.has(e)) return o.cache.get(e);
52
- let t = new Promise((t, n) => {
53
- let r = document.createElement("link");
54
- r.type = "text/css", r.rel = "linksheet", r.href = e, r.onload = () => t(1), r.onerror = (t) => {
55
- o.cache.delete(e), n(t);
56
- }, document.getElementsByTagName("head")[0].appendChild(r);
57
- });
58
- return o.cache.set(e, t), t;
59
- };
60
- o.cache = /* @__PURE__ */ new Map();
61
- var s = (e) => {
62
- if (n) return;
63
- if (s.cache.has(e)) return s.cache.get(e);
64
- let t = new Promise((t, n) => {
65
- let r = new Image();
66
- r.src = e, r.onload = () => {
67
- t({
68
- source: e,
69
- width: r.naturalWidth,
70
- height: r.naturalHeight
71
- });
72
- }, r.onerror = (t) => {
73
- s.cache.delete(e), n(t);
74
- };
75
- });
76
- return s.cache.set(e, t), t;
77
- };
78
- s.placeholder = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQYV2P48OP/fwAJqgPnYfITggAAAABJRU5ErkJggg==", s.cache = /* @__PURE__ */ new Map();
79
- //#endregion
80
- export { a as n, i as r, t };
@@ -1,166 +0,0 @@
1
- globalThis.process;
2
- import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
- //#region node_modules/.pnpm/@deot+helper-validator@1.1.4/node_modules/@deot/helper-validator/dist/index.js
4
- var t = /* @__PURE__ */ e({
5
- RegExps: () => r,
6
- RuleHelper: () => a,
7
- Validator: () => i
8
- }), n = /^-?\d+(\.\d+)?$/, r = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty({
9
- __proto__: null,
10
- dataURL: /^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i,
11
- date: /^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/,
12
- email: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
13
- identity: /(^[0-9a-zA-Z]{6,}$)/,
14
- integer: /^[1-9]\d*$/,
15
- mobile: /^(1[3-9])\d{9}$/,
16
- name: /^[A-Za-z0-9\u4e00-\u9fa5_-]{1,}$/,
17
- number: n,
18
- number4: /^\d{4}$/,
19
- number6: /^\d{6}$/,
20
- price: /^([1-9][\d]{0,10}|0)([.]?[\d]{1,2})?$/,
21
- tel: /^0[1-9][0-9]{1,2}-[2-8][0-9]{6,7}$/,
22
- time: /\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}/,
23
- url: /[a-zA-z]+:\/\/[^\s]*/,
24
- wechat: /^[a-zA-Z\d_-]{5,}$/
25
- }, Symbol.toStringTag, { value: "Module" })), i = class e {
26
- static falsy = [
27
- void 0,
28
- null,
29
- ""
30
- ];
31
- rules = {};
32
- paths;
33
- original;
34
- constructor(e, t, n) {
35
- this.updateRules(e), this.paths = t || [], this.original = n;
36
- }
37
- updateRules(t) {
38
- t && Object.keys(t).forEach((n) => {
39
- let r = t[n];
40
- this.rules[n] = (Array.isArray(r) ? r : [r]).map((t) => {
41
- if (typeof t == "function") return { validate: t };
42
- (typeof t == "string" || t instanceof RegExp) && (t = { pattern: t }), typeof t == "boolean" && (t = { required: t });
43
- let { validate: n, pattern: r, required: i, enum: a = [] } = t;
44
- if (n && t.fields && (t.fields = void 0), !n && r) {
45
- let e = typeof r == "string" ? new RegExp(r) : r;
46
- return {
47
- ...t,
48
- validate: (t) => e.test(t)
49
- };
50
- }
51
- return !n && i ? {
52
- ...t,
53
- validate: (t) => Array.isArray(t) ? !!t.length && t.every((t) => e.falsy.every((e) => t !== e)) : e.falsy.every((e) => t !== e)
54
- } : !n && a.length ? {
55
- ...t,
56
- validate: (e) => a.some((t) => e === t)
57
- } : t;
58
- });
59
- });
60
- }
61
- async validate(t, n) {
62
- if (n ||= {}, !Object.keys(this.rules).length) return;
63
- let r = n.fields || Object.keys(this.rules), i = [];
64
- for (let a = 0; a < r.length; a++) {
65
- let o = r[a], s = this.rules[o], c = t[o], l = this.original;
66
- for (let r = 0; r < s.length; r++) {
67
- let a = s[r], { validate: u = () => {}, transform: d = (e) => e, fields: f } = a, p = [...this.paths, o];
68
- n._index !== void 0 && p.splice(p.length - 1, 0, n._index);
69
- let m = d(c, {
70
- field: o,
71
- source: t,
72
- paths: p,
73
- original: l
74
- });
75
- if (f) {
76
- let t = Array.isArray(m), r = t ? m : [m];
77
- if (r.every((e) => e && typeof e == "object")) {
78
- let a = new e(f, p);
79
- for (let e = 0; e < r.length; e++) try {
80
- await a.validate(r[e], {
81
- _index: t ? e : void 0,
82
- first: n.first,
83
- original: l
84
- });
85
- } catch (e) {
86
- if (i.push(...e), e.length && n.first) break;
87
- }
88
- continue;
89
- }
90
- }
91
- let h = u(m, {
92
- field: o,
93
- source: t,
94
- paths: p,
95
- original: l
96
- }), g = "";
97
- if (h instanceof Promise) try {
98
- await h;
99
- } catch (e) {
100
- h = !1, g = e.message || e;
101
- }
102
- else typeof h == "string" && (g = h, h = !1);
103
- if (h === !1 && (i.push({
104
- paths: p,
105
- message: g || a.message || "",
106
- field: o,
107
- value: m
108
- }), n.first)) break;
109
- }
110
- if (i.length && n.first) break;
111
- }
112
- if (i.length) {
113
- let e = i.map((e) => {
114
- let { message: t, ...n } = e;
115
- return e.message = typeof t == "function" ? t(n) : t, e;
116
- });
117
- return Promise.reject(e);
118
- }
119
- }
120
- }, a = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty({
121
- __proto__: null,
122
- create: (e) => {
123
- e = {
124
- name: "值",
125
- ...e
126
- };
127
- let { name: t, range: r = [], maxlength: a } = e;
128
- e.messages = {
129
- required: `${t} 必填`,
130
- pattern: `请输入正确的 ${t}`,
131
- type: `${t} 类型错误`,
132
- range: `${t} 取值范围: ${r[0] || "*"}~${r[1] || "*"}`,
133
- maxlength: `${t} 长度不超过 ${a}`,
134
- ...e.messages
135
- };
136
- let { messages: o, type: s, pattern: c, required: l } = e, u = (e) => !l && i.falsy.includes(e), d = [];
137
- return l && d.push({
138
- message: o.required,
139
- required: l
140
- }), (c || s === "number") && d.push({
141
- message: o.pattern,
142
- validate: (e) => u(e) ? !0 : (c || n).test(e)
143
- }), s && d.push({
144
- message: o.type,
145
- validate: (e) => u(e) ? !0 : s === "string" ? typeof e == "string" : s === "number" ? typeof e == "number" :
146
- /* istanbul ignore else -- @preserve */
147
- s !== "array" || Array.isArray(e)
148
- }), (r[0] !== void 0 || r[1] !== void 0) && d.push({
149
- message: o.range,
150
- validate: (e) => {
151
- if (u(e)) return !0;
152
- let t = !0, n = !0;
153
- return r[0] !== void 0 && (t = Array.isArray(e) ? e.length >= r[0] : e >= r[0]), r[1] !== void 0 && (n = Array.isArray(e) ? e.length <= r[1] : e <= r[1]), t && n;
154
- }
155
- }), a !== void 0 && d.push({
156
- message: o.maxlength,
157
- validate: (e) => u(e) || typeof e != "string" ? !0 : e.length <= a
158
- }), d;
159
- },
160
- required: (e) => [{
161
- message: e,
162
- required: !0
163
- }]
164
- }, Symbol.toStringTag, { value: "Module" }));
165
- //#endregion
166
- export { r as i, t as n, a as r, i as t };
@@ -1,17 +0,0 @@
1
- globalThis.process;
2
- import { r as e } from "./dist-C3V7reR4.js";
3
- import { i as t } from "./dist-va7FmnW4.js";
4
- import { t as n } from "./dist-DWn6r6un.js";
5
- import { t as r } from "./dist-CI9Lp9Cj.js";
6
- import { t as i } from "./dist-D_Uqh6m9.js";
7
- import { i as a, r as o, t as s } from "./dist-DcIU51zW.js";
8
- import { t as c } from "./dist-Cxf7_ocf.js";
9
- import { i as l, n as u, r as d, t as f } from "./dist-DHJhaOSs.js";
10
- import { t as p } from "./dist-DSypl37f.js";
11
- import { i as m, n as h, r as g, t as _ } from "./dist-CQir6D4y.js";
12
- import { o as v } from "./dist-DLj8yJdm.js";
13
- import { n as y } from "./dist-B44jICwZ.js";
14
- import { Device as b } from "./dist-kiZUqqzR.js";
15
- import { t as x } from "./dist-DF4kisl2.js";
16
- import { t as S } from "./dist-oZ12SGqg.js";
17
- export { t as $, _ as Cookie, b as Device, c as Emitter, l as FP, h as IndexedDB, g as IndexedDBStore, p as Interrupter, v as Is, f as Job, i as Load, u as Parallel, a as RegExps, n as Resize, x as Route, o as RuleHelper, S as Shared, m as Storage, d as Task, y as Unicode, e as Utils, s as Validator, r as Wheel };
@@ -1,27 +0,0 @@
1
- globalThis.process;
2
- //#region node_modules/.pnpm/@deot+helper-device@1.1.3/node_modules/@deot/helper-device/dist/index.js
3
- var e = (e) => {
4
- e ||= typeof window > "u" ? "" : navigator.userAgent;
5
- let t = e.match(/(Android);?[\s\/]+([\d.]+)?/), n = e.match(/(iPad).*OS\s([\d_]+)/), r = e.match(/(iPod)(.*OS\s([\d_]+))/), i = !r && !n && e.match(/(iPhone\sOS)\s([\d_]+)/), a = e.toLowerCase().indexOf("chrome") >= 0, o = !!(i || n || r), s = t ? "android" : o ? "ios" : "", c = t ? t[2] : i && !r ? i[2].replace(/_/g, ".") : n ? n[2].replace(/_/g, ".") : r ? r[3] && r[3].replace(/_/g, ".") : "", l = o && e.match(/.*AppleWebKit(?!.*Safari)/i), u = /MicroMessenger/i.test(e), d = (e.match(/MicroMessenger\/([\d\.]+)/i) || [])[1] || "", f = /wechatdevtools/.test(e), p = !!(t || o || e && "ontouchend" in document), m = e.toLowerCase().indexOf("firefox") > -1;
6
- return {
7
- android: !!t,
8
- ipad: !!n,
9
- ipod: !!r,
10
- iphone: !!i,
11
- androidChrome: a,
12
- ios: o,
13
- os: s,
14
- osVersion: c,
15
- webView: l,
16
- wechat: u,
17
- wechatVersion: d,
18
- wechatDevTools: f,
19
- touch: p,
20
- firefox: m
21
- };
22
- }, t = {
23
- parse: e,
24
- ...e()
25
- };
26
- //#endregion
27
- export { t as Device };
@@ -1,6 +0,0 @@
1
- globalThis.process;
2
- import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
- //#region node_modules/.pnpm/@deot+helper-shared@1.1.3/node_modules/@deot/helper-shared/dist/index.js
4
- var t = /* @__PURE__ */ e({ IS_SERVER: () => n }), n = typeof window > "u";
5
- //#endregion
6
- export { n as IS_SERVER, t };
@@ -1,156 +0,0 @@
1
- globalThis.process;
2
- import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
- //#region node_modules/.pnpm/@deot+helper-dom@1.1.5/node_modules/@deot/helper-dom/dist/index.js
4
- var t = /* @__PURE__ */ e({
5
- addClass: () => i,
6
- composedPath: () => a,
7
- contains: () => o,
8
- el: () => s,
9
- getScroller: () => u,
10
- getStyle: () => c,
11
- hasClass: () => r,
12
- isScroller: () => l,
13
- off: () => d,
14
- on: () => f,
15
- once: () => p,
16
- prefixStyle: () => g,
17
- removeClass: () => _,
18
- scrollIntoView: () => v,
19
- setStyle: () => y
20
- }), n = typeof window > "u", r = (e, t) => {
21
- if (n || !t) return !1;
22
- if (t.includes(" ")) throw Error("[@deot/helper-dom]: 类名不应该包含空格");
23
- return e.classList ? e.classList.contains(t) : (" " + e.className + " ").indexOf(" " + t + " ") > -1;
24
- }, i = (e, t) => {
25
- if (n || !t) return;
26
- let i = e.className, a = t.split(" ");
27
- for (let t = 0, n = a.length; t < n; t++) {
28
- let n = a[t];
29
- n && (e.classList ? e.classList.add(n) : r(e, n) || (i += " " + n));
30
- }
31
- e.classList || (e.className = i);
32
- }, a = (e) => {
33
- let t = e.composedPath && e.composedPath() || [];
34
- if (t.length) return t;
35
- let n = e.target?.parentNode;
36
- /* istanbul ignore next -- @preserve */
37
- for (; n;) t.push(n), n = n.parentNode;
38
- return t;
39
- }, o = (e, t) => {
40
- if (n || !t) return !1;
41
- let r = t.getBoundingClientRect(), i;
42
- return i = !e || [
43
- window,
44
- document,
45
- document.documentElement
46
- ].includes(e) ? {
47
- top: 0,
48
- right: window.innerWidth,
49
- bottom: window.innerHeight,
50
- left: 0
51
- } : e.getBoundingClientRect(), r.top < i.bottom && r.bottom > i.top && r.right > i.left && r.left < i.right;
52
- }, s = (e) => {
53
- if (n) return null;
54
- let t;
55
- if (t = typeof e == "object" ? e : document.querySelector(e), !t) throw Error("[@deot/helper-dom]: el缺失");
56
- return t;
57
- }, c = (e, t) => {
58
- if (n || !t) return "";
59
- t === "float" && (t = "cssFloat");
60
- try {
61
- let n = document.defaultView.getComputedStyle(e, "");
62
- return e.style[t] || n?.[t] || "";
63
- } catch {
64
- /* istanbul ignore next -- @preserve */
65
- return e.style[t] || "";
66
- }
67
- }, l = (e, t) => {
68
- if (n || !e) return !1;
69
- let { className: r, direction: i } = t || {}, a = i ? c(e, `overflow-${i}`) : "";
70
- return (!a || a === "visible") && (a = c(e, "overflow")), !!(a.match(/(scroll|auto)/) || r?.test(e.className));
71
- }, u = (e, t) => {
72
- if (n || !e) return null;
73
- let r = e;
74
- for (; r;) {
75
- if ([
76
- window,
77
- document,
78
- document.documentElement
79
- ].includes(r)) return window;
80
- if (l(r, t)) return r;
81
- r = r?.parentNode;
82
- }
83
- return r;
84
- }, d = (e, t, r, i) => {
85
- n || e.removeEventListener(t, r, i || !1);
86
- }, f = (e, t, r, i) => n ? () => {} : (e.addEventListener(t, r, i || !1), () => {
87
- e.removeEventListener(t, r, i || !1);
88
- }), p = (e, t, r, i) => {
89
- if (n) return () => {};
90
- let a = f(e, t, function(...e) {
91
- r && r.apply(this, e), a();
92
- }, i);
93
- return a;
94
- }, m = n ? {} : document.createElement("div").style, h = (() => {
95
- let e = {
96
- webkit: "webkitTransform",
97
- Moz: "MozTransform",
98
- O: "OTransform",
99
- ms: "msTransform",
100
- standard: "transform"
101
- }, t = {
102
- webkit: "-webkit-",
103
- Moz: "-moz-",
104
- O: "-o-",
105
- ms: "-ms-",
106
- standard: ""
107
- };
108
- for (let n in e) if (m[e[n]] !== void 0) return {
109
- camel: n,
110
- kebab: t[n]
111
- };
112
- return !1;
113
- })(), g = (e) => n || h === !1 ? {
114
- camel: e,
115
- kebab: e
116
- } : {
117
- camel: h.camel + e.charAt(0).toUpperCase() + e.substr(1),
118
- kebab: h.kebab + e
119
- }, _ = (e, t) => {
120
- if (n || !t) return;
121
- let i = t.split(" "), a = " " + e.className + " ";
122
- for (let t = 0, n = i.length; t < n; t++) {
123
- let n = i[t];
124
- if (n) {
125
- if (e.classList) {
126
- e.classList.remove(n);
127
- continue;
128
- }
129
- /* istanbul ignore next -- @preserve */
130
- r(e, n) && (a = a.replace(" " + n + " ", " "));
131
- }
132
- }
133
- e.classList || (e.className = a.trim());
134
- }, v = async (e, t) => {
135
- if (n) return;
136
- let { from: r = 0, to: i = 0, duration: a = 300 } = t || {}, o = Math.abs(r - i), s = Math.ceil(o / a * 50), c, l = new Promise((e) => {
137
- c = e;
138
- }), u = (t, n) => {
139
- if (t === n) {
140
- c();
141
- return;
142
- }
143
- let r = t + s > n ? n : t + s;
144
- t > n && (r = t - s < n ? n : t - s), e === window ? window.scrollTo(r, r) : e.scrollTop = r, window.requestAnimationFrame(() => u(r, n));
145
- };
146
- return u(r, i), l;
147
- }, y = (e, t, r) => {
148
- if (!n && t) {
149
- if (typeof t == "object") for (let n in t)
150
- /* istanbul ignore if -- @preserve */
151
- Object.hasOwnProperty.call(t, n) && y(e, n, t[n]);
152
- else e.style[t] = r;
153
- }
154
- };
155
- //#endregion
156
- export { s as a, d as c, _ as d, v as f, t as i, f as l, a as n, u as o, o as r, c as s, i as t, g as u };