@deot/docs-client 1.1.5 → 1.1.6

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 (74) hide show
  1. package/dist/chunks/{compile-BHD98Ttf-BJaenUUQ.js → compile-CM_OyqYN-Bd7bk_OB.js} +634 -1734
  2. package/dist/chunks/{compiler-sfc.esm-browser-B4_kBkG5.js → compiler-sfc.esm-browser-5dA1IWMJ.js} +185 -305
  3. package/dist/chunks/{script-DjUf9uWK-Cu5Kla_E.js → css-DleINdoA-FdeEznDX.js} +2716 -2641
  4. package/dist/chunks/{dist-COjpr4FU.js → dist-DHJhaOSs.js} +2 -2
  5. package/dist/chunks/{dist-C8z9l0mA.js → dist-DSypl37f.js} +1 -1
  6. package/dist/chunks/{dist-BQyOK8Qy.js → dist-Wm6vE6kM.js} +2 -2
  7. package/dist/chunks/{echarts-Dk-pu7GM.js → echarts-BBzcOaek.js} +1075 -1290
  8. package/dist/chunks/{html2canvas-Deo0mM5K.js → html2canvas-DoKTvaOT.js} +3 -13
  9. package/dist/chunks/{index.es-UlJ0gfdF.js → index.es-wVPQxEPP.js} +32 -37
  10. package/dist/chunks/{jspdf.es.min-CJc40v7q.js → jspdf.es.min-Zm27YeAg.js} +1080 -1053
  11. package/dist/chunks/{jsx-CwMPlI4_-CAiik-V7.js → jsx-CwMPlI4_-CBhlIHLh.js} +8002 -8541
  12. package/dist/chunks/{jszip.min-BbVwZKYP.js → jszip.min-Da8UgalE.js} +5 -5
  13. package/dist/chunks/{lodash-Cxf6dD_I.js → lodash-CYyW02I7.js} +10 -14
  14. package/dist/chunks/{photoswipe.esm-B0V-xGTB.js → photoswipe.esm-D52MAtDT.js} +11 -38
  15. package/dist/chunks/{purify.es-BiqY1C6m.js → purify.es-DhHsvqCe.js} +1 -23
  16. package/dist/chunks/{vue-router-C0mj8Ot5.js → vue-router-DZ-KfC9f.js} +373 -361
  17. package/dist/chunks/{vue.runtime.esm-bundler-XxHGOLq2.js → vue.runtime.esm-bundler-zZTAiuf6.js} +10 -38
  18. package/dist/eval/chunks/browser-Cmwcvs-d.js +4 -0
  19. package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +4 -0
  20. package/dist/eval/chunks/compile-CM_OyqYN-Bd7bk_OB.js +7 -0
  21. package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +4 -0
  22. package/dist/eval/chunks/css-DleINdoA-FdeEznDX.js +8 -0
  23. package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +4 -0
  24. package/dist/eval/chunks/dist-0ySyXNpo.js +4 -0
  25. package/dist/eval/chunks/dist-B44jICwZ.js +5 -0
  26. package/dist/eval/chunks/dist-BUw25nXJ.js +6 -0
  27. package/dist/eval/chunks/dist-BeOE8qTX.js +4 -0
  28. package/dist/eval/chunks/dist-C3V7reR4.js +4 -0
  29. package/dist/eval/chunks/dist-CI9Lp9Cj.js +4 -0
  30. package/dist/eval/chunks/dist-CQir6D4y.js +5 -0
  31. package/dist/eval/chunks/dist-Cxf7_ocf.js +4 -0
  32. package/dist/eval/chunks/dist-DF4kisl2.js +5 -0
  33. package/dist/eval/chunks/dist-DHJhaOSs.js +5 -0
  34. package/dist/eval/chunks/dist-DLj8yJdm.js +4 -0
  35. package/dist/eval/chunks/dist-DSypl37f.js +5 -0
  36. package/dist/eval/chunks/dist-DWn6r6un.js +4 -0
  37. package/dist/eval/chunks/dist-DWqBe2Ah.js +6 -0
  38. package/dist/eval/chunks/dist-D_Uqh6m9.js +4 -0
  39. package/dist/eval/chunks/dist-DcIU51zW.js +4 -0
  40. package/dist/eval/chunks/dist-Wm6vE6kM.js +1 -0
  41. package/dist/eval/chunks/dist-kiZUqqzR.js +4 -0
  42. package/dist/eval/chunks/dist-oZ12SGqg.js +4 -0
  43. package/dist/eval/chunks/dist-va7FmnW4.js +4 -0
  44. package/dist/eval/chunks/echarts-BBzcOaek.js +4 -0
  45. package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +1 -0
  46. package/dist/eval/chunks/html2canvas-DoKTvaOT.js +4 -0
  47. package/dist/eval/chunks/index.es-wVPQxEPP.js +5 -0
  48. package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +78 -0
  49. package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +4 -0
  50. package/dist/eval/chunks/jszip.min-Da8UgalE.js +4 -0
  51. package/dist/eval/chunks/lodash-CYyW02I7.js +4 -0
  52. package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +4 -0
  53. package/dist/eval/chunks/purify.es-DhHsvqCe.js +4 -0
  54. package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +4 -0
  55. package/dist/eval/chunks/vue-router-DZ-KfC9f.js +5 -0
  56. package/dist/eval/chunks/vue.runtime.esm-bundler-zZTAiuf6.js +4 -0
  57. package/dist/eval/index.js +24 -0
  58. package/dist/eval/index.style.css +21 -0
  59. package/dist/index.cjs +7 -3
  60. package/dist/index.js +79026 -36843
  61. package/dist/index.style.css +3 -3
  62. package/package.json +11 -11
  63. package/dist/chunks/cdn-DQoETju_-DS-873Vi.js +0 -38
  64. package/dist/chunks/dist-9UPCn_ag.js +0 -24601
  65. package/dist/chunks/dist-uXnwGrO3.js +0 -76
  66. package/dist/chunks/files-BqucFldk-B-hTQ-ip.js +0 -148
  67. package/dist/chunks/linker-xqjVl0X0-CWWI367H.js +0 -118
  68. package/dist/chunks/local-sandbox-DvcgaBOa-CzJxrdVx.js +0 -298
  69. package/dist/chunks/modules-BGzPcoRR-C9BWX8hC.js +0 -154
  70. package/dist/chunks/pinia-pDJilYOg.js +0 -326
  71. package/dist/chunks/remote-mq4zvrI1-Bib9tTkb.js +0 -104
  72. package/dist/chunks/store-BOyC8F2y-CbodPye0.js +0 -17037
  73. package/dist/chunks/vc-components-C7ruefOT.js +0 -6
  74. package/dist/chunks/vc-components-m3l_xrd8.js +0 -6
@@ -1,154 +0,0 @@
1
- globalThis.process;
2
- import { i as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
- import { a as t, c as n } from "./cdn-DQoETju_-DS-873Vi.js";
4
- //#region packages/playground/dist/modules-BGzPcoRR.js
5
- var r = {
6
- vue: () => import("./vue.runtime.esm-bundler-XxHGOLq2.js").then((e) => e.t),
7
- "vue-router": () => import("./vue-router-C0mj8Ot5.js").then((e) => e.o),
8
- pinia: () => import("./pinia-pDJilYOg.js"),
9
- "@deot/helper": () => import("./dist-BQyOK8Qy.js"),
10
- "@deot/helper-cache": () => import("./dist-CQir6D4y.js").then((e) => e.a),
11
- "@deot/helper-device": () => import("./dist-kiZUqqzR.js"),
12
- "@deot/helper-dom": () => import("./dist-va7FmnW4.js").then((e) => e.i),
13
- "@deot/helper-emitter": () => import("./dist-Cxf7_ocf.js").then((e) => e.n),
14
- "@deot/helper-fp": () => import("./dist-COjpr4FU.js").then((e) => e.i),
15
- "@deot/helper-is": () => import("./dist-DLj8yJdm.js").then((e) => e.o),
16
- "@deot/helper-load": () => import("./dist-D_Uqh6m9.js").then((e) => e.t),
17
- "@deot/helper-resize": () => import("./dist-DWn6r6un.js").then((e) => e.n),
18
- "@deot/helper-route": () => import("./dist-DF4kisl2.js"),
19
- "@deot/helper-scheduler": () => import("./dist-C8z9l0mA.js").then((e) => e.n),
20
- "@deot/helper-shared": () => import("./dist-oZ12SGqg.js"),
21
- "@deot/helper-unicode": () => import("./dist-B44jICwZ.js").then((e) => e.n),
22
- "@deot/helper-utils": () => import("./dist-C3V7reR4.js").then((e) => e.r),
23
- "@deot/helper-validator": () => import("./dist-DcIU51zW.js").then((e) => e.n),
24
- "@deot/helper-wheel": () => import("./dist-CI9Lp9Cj.js").then((e) => e.n),
25
- "@deot/http-client": () => import("./dist-DWqBe2Ah.js").then((e) => e.r),
26
- "@deot/http-core": () => import("./dist-BeOE8qTX.js").then((e) => e.a),
27
- "@deot/http-hooks": () => import("./dist-BUw25nXJ.js").then((e) => e.t),
28
- "@deot/http": () => import("../index.js").then((e) => e.t),
29
- "@deot/vc": () => import("../index.js").then((e) => e.n),
30
- "@deot/vc-components": () => import("./dist-9UPCn_ag.js").then((e) => e.ai),
31
- "@deot/vc-hooks": () => import("./dist-uXnwGrO3.js").then((e) => e.t),
32
- "@deot/vc-locale": () => import("./dist-0ySyXNpo.js").then((e) => e.t),
33
- "lodash-es": () => import("./lodash-Cxf6dD_I.js").then((e) => e.t),
34
- echarts: () => import("./echarts-Dk-pu7GM.js"),
35
- photoswipe: () => import("./photoswipe.esm-B0V-xGTB.js"),
36
- jszip: () => import("./jszip.min-BbVwZKYP.js").then((t) => /* @__PURE__ */ e(t.default)),
37
- jspdf: () => import("./jspdf.es.min-CJc40v7q.js").then((e) => e.t),
38
- dayjs: async () => (await import("./dayjs.min-B3g34Qcz.js").then((t) => /* @__PURE__ */ e(t.default))).default
39
- }, i = /* @__PURE__ */ new Map(), a = new Set(Object.keys(r)), o = (e) => {
40
- let t = r[e];
41
- if (!t) return Promise.reject(/* @__PURE__ */ Error(`[Playground] 没有本地模块 "${e}"`));
42
- let n = i.get(e);
43
- return n || (n = t(), i.set(e, n)), n;
44
- }, s = /* @__PURE__ */ new Set([
45
- "prototype",
46
- "caller",
47
- "arguments"
48
- ]), c = (e) => {
49
- if (e == null || typeof e != "object" && typeof e != "function") return {
50
- __esModule: !0,
51
- default: e
52
- };
53
- let t = e, n = { __esModule: !0 }, r = (e) => {
54
- if (!(s.has(e) || e === "__esModule")) try {
55
- n[e] = t[e];
56
- } catch {}
57
- };
58
- try {
59
- Object.keys(t).forEach(r);
60
- } catch {}
61
- try {
62
- Object.getOwnPropertyNames(t).forEach(r);
63
- } catch {}
64
- return (!("default" in n) || n.default === void 0) && (n.default = t.default === void 0 ? t : t.default), n;
65
- }, l = (e, t) => Object.prototype.hasOwnProperty.call(t, e) ? c(t[e]) : null, u = (e, t) => {
66
- if (!t) return;
67
- let n = t.split("/").filter(Boolean), r = e;
68
- for (let e of n) {
69
- if (r == null || typeof r != "object" && typeof r != "function") return;
70
- let t = r;
71
- if (!(e in t)) return;
72
- r = t[e];
73
- }
74
- return r;
75
- }, d = (e, t) => {
76
- let n = l(e, t);
77
- if (n) return n;
78
- let r = e;
79
- for (;;) {
80
- let n = r.lastIndexOf("/");
81
- if (n <= 0) break;
82
- let i = r.slice(0, n), a = e.slice(i.length + 1), o = l(i, t);
83
- if (o) {
84
- let e = u(o, a);
85
- if (e !== void 0) return c(e);
86
- }
87
- r = i;
88
- }
89
- return null;
90
- }, f = /* @__PURE__ */ new Set(["vue", "vue/server-renderer"]), p = (e) => e instanceof Error ? e.message : String(e), m = (e, t) => {
91
- if (t[e]) return e;
92
- let n = e;
93
- for (;;) {
94
- let e = n.lastIndexOf("/");
95
- if (e <= 0) return null;
96
- let r = n.slice(0, e);
97
- if (t[r]) return r;
98
- n = r;
99
- }
100
- }, h = (e, n, r) => {
101
- if (!a.has(e) && !f.has(e)) return !1;
102
- let i = n[e];
103
- return !i || i === t(r)[e];
104
- }, g = async (e, t, r, i, a) => {
105
- let s = {
106
- vue: r.vue,
107
- "vue-router": r.vueRouter
108
- }, c = [], l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
109
- e.forEach((e) => {
110
- let r = !1;
111
- if (h(e, t, a)) u.add(e);
112
- else {
113
- let n = e;
114
- for (;;) {
115
- let e = n.lastIndexOf("/");
116
- if (e <= 0) break;
117
- let i = n.slice(0, e);
118
- if (h(i, t, a)) {
119
- u.add(i), r = !0;
120
- break;
121
- }
122
- n = i;
123
- }
124
- }
125
- if (e === "vue-router") {
126
- t["vue-router"] && l.add("vue-router");
127
- return;
128
- }
129
- let i = m(e, t);
130
- i && h(i, t, a) ? u.add(i) : i ? l.add(i) : !r && !u.has(e) && (t[e] = n(e), l.add(e));
131
- }), await Promise.all([...u].map(async (e) => {
132
- if (e !== "vue" && e !== "vue-router") {
133
- if (e === "vue/server-renderer") {
134
- s[e] = r.vue;
135
- return;
136
- }
137
- s[e] = await o(e);
138
- }
139
- }));
140
- for (let e of l) {
141
- let n = t[e];
142
- if (n && !h(e, t, a)) try {
143
- s[e] = await i(n);
144
- } catch (t) {
145
- c.push(`[Playground] 无法加载模块 "${e}" (${n}): ${p(t)}`);
146
- }
147
- }
148
- return {
149
- modules: s,
150
- errors: c
151
- };
152
- };
153
- //#endregion
154
- export { g as loadLocalModules, a as n, h as prefersLocalBuiltin, d as resolveHostModule, m as resolveImportTarget, o as t, c as toHostModule };
@@ -1,326 +0,0 @@
1
- globalThis.process;
2
- import { $ as e, E as t, Q as n, T as r, Z as i, at as a, ct as o, et as s, f as c, k as l, lt as u, nt as d, q as f, rt as p, tt as m, ut as h } from "./vue.runtime.esm-bundler-XxHGOLq2.js";
3
- //#region node_modules/.pnpm/pinia@4.0.3_@vue+devtools-api@8.2.1_typescript@6.0.3_vue@3.5.43_typescript@6.0.3_/node_modules/pinia/dist/pinia.js
4
- var g = typeof window < "u", _, v = (e) => _ = e, y = () => r() && t(b) || _, b = Symbol();
5
- function x(e) {
6
- return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
7
- }
8
- var S = /* @__PURE__ */ function(e) {
9
- return e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function", e;
10
- }({}), C = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
11
- function w(e, { autoBom: t = !1 } = {}) {
12
- return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["", e], { type: e.type }) : e;
13
- }
14
- function T(e, t, n) {
15
- let r = new XMLHttpRequest();
16
- r.open("GET", e), r.responseType = "blob", r.onload = function() {
17
- A(r.response, t, n);
18
- }, r.onerror = function() {
19
- console.error("could not download file");
20
- }, r.send();
21
- }
22
- function E(e) {
23
- let t = new XMLHttpRequest();
24
- t.open("HEAD", e, !1);
25
- try {
26
- t.send();
27
- } catch {}
28
- return t.status >= 200 && t.status <= 299;
29
- }
30
- function D(e) {
31
- try {
32
- e.dispatchEvent(new MouseEvent("click"));
33
- } catch {
34
- let t = new MouseEvent("click", {
35
- bubbles: !0,
36
- cancelable: !0,
37
- view: window,
38
- detail: 0,
39
- screenX: 80,
40
- screenY: 20,
41
- clientX: 80,
42
- clientY: 20,
43
- ctrlKey: !1,
44
- altKey: !1,
45
- shiftKey: !1,
46
- metaKey: !1,
47
- button: 0,
48
- relatedTarget: null
49
- });
50
- e.dispatchEvent(t);
51
- }
52
- }
53
- var O = typeof navigator == "object" ? navigator : { userAgent: "" }, k = /Macintosh/.test(O.userAgent) && /AppleWebKit/.test(O.userAgent) && !/Safari/.test(O.userAgent), A = g ? typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !k ? j : "msSaveOrOpenBlob" in O ? M : N : () => {};
54
- function j(e, t = "download", n) {
55
- let r = document.createElement("a");
56
- r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin === location.origin ? D(r) : E(r.href) ? T(e, t, n) : (r.target = "_blank", D(r))) : (r.href = URL.createObjectURL(e), setTimeout(function() {
57
- URL.revokeObjectURL(r.href);
58
- }, 4e4), setTimeout(function() {
59
- D(r);
60
- }, 0));
61
- }
62
- function M(e, t = "download", n) {
63
- if (typeof e == "string") {
64
- if (E(e)) T(e, t, n);
65
- else {
66
- let t = document.createElement("a");
67
- t.href = e, t.target = "_blank", setTimeout(function() {
68
- D(t);
69
- });
70
- }
71
- } else navigator.msSaveOrOpenBlob(w(e, n), t);
72
- }
73
- function N(e, t, n, r) {
74
- if (r ||= open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof e == "string") return T(e, t, n);
75
- let i = e.type === "application/octet-stream", a = /constructor/i.test(String(C.HTMLElement)) || "safari" in C, o = /CriOS\/[\d]+/.test(navigator.userAgent);
76
- if ((o || i && a || k) && typeof FileReader < "u") {
77
- let t = new FileReader();
78
- t.onloadend = function() {
79
- let e = t.result;
80
- if (typeof e != "string") throw r = null, Error("Wrong reader.result type");
81
- e = o ? e : e.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = e : location.assign(e), r = null;
82
- }, t.readAsDataURL(e);
83
- } else {
84
- let t = URL.createObjectURL(e);
85
- r ? r.location.assign(t) : location.href = t, r = null, setTimeout(function() {
86
- URL.revokeObjectURL(t);
87
- }, 4e4);
88
- }
89
- }
90
- var { assign: ee } = Object;
91
- function P() {
92
- let e = i(!0), t = e.run(() => a({})), n = [], r = [], o = m({
93
- install(e) {
94
- v(o), o._a = e, e.provide(b, o), e.config.globalProperties.$pinia = o, r.forEach((e) => n.push(e)), r = [];
95
- },
96
- use(e) {
97
- return this._a ? n.push(e) : r.push(e), this;
98
- },
99
- _p: n,
100
- _a: null,
101
- _e: e,
102
- _s: /* @__PURE__ */ new Map(),
103
- state: t
104
- });
105
- return o;
106
- }
107
- function F(e) {
108
- e._e.stop(), e._s.clear(), e._p.splice(0), e.state.value = {}, e._a = null;
109
- }
110
- function I(e, t) {
111
- return () => {};
112
- }
113
- var L = () => {};
114
- function R(e, t, r, i = L) {
115
- e.add(t);
116
- let a = () => {
117
- e.delete(t) && i();
118
- };
119
- return !r && n() && d(a), a;
120
- }
121
- function z(e, ...t) {
122
- e.forEach((e) => {
123
- e(...t);
124
- });
125
- }
126
- var B = (e) => e(), V = Symbol(), H = Symbol();
127
- function U(t, n) {
128
- t instanceof Map && n instanceof Map ? n.forEach((e, n) => t.set(n, e)) : t instanceof Set && n instanceof Set && n.forEach(t.add, t);
129
- for (let r in n) {
130
- if (!Object.hasOwn(n, r)) continue;
131
- let i = n[r], a = t[r];
132
- t[r] = x(a) && x(i) && Object.hasOwn(t, r) && !s(i) && !e(i) ? U(a, i) : i;
133
- }
134
- return t;
135
- }
136
- var W = Symbol();
137
- function G(e) {
138
- return Object.defineProperty(e, W, {});
139
- }
140
- function K(e) {
141
- return !e || typeof e != "object" || !Object.hasOwn(e, W);
142
- }
143
- var { assign: q } = Object;
144
- function J(e) {
145
- return !!(s(e) && e.effect);
146
- }
147
- function Y(e, t, n, r) {
148
- let { state: i, actions: a, getters: o } = t, s = n.state.value[e], l;
149
- function u() {
150
- return s ||
151
- /* istanbul ignore if */
152
- (n.state.value[e] = i ? i() : {}), q(h(n.state.value[e]), a, Object.keys(o || {}).reduce((t, r) => (t[r] = m(c(() => {
153
- v(n);
154
- let t = n._s.get(e);
155
- return o[r].call(t, t);
156
- })), t), {}));
157
- }
158
- return l = X(e, u, t, n, r, !0), l;
159
- }
160
- function X(t, n, r = {}, a, c, u) {
161
- let d, m = q({ actions: {} }, r), h = { deep: !0 }, g, _, y = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), x, S = a.state.value[t];
162
- !u && !S &&
163
- /* istanbul ignore if */
164
- (a.state.value[t] = {});
165
- let C;
166
- function w(e) {
167
- let n;
168
- g = _ = !1, typeof e == "function" ? (e(a.state.value[t]), n = {
169
- type: "patch function",
170
- storeId: t,
171
- events: x
172
- }) : (U(a.state.value[t], e), n = {
173
- type: "patch object",
174
- payload: e,
175
- storeId: t,
176
- events: x
177
- });
178
- let r = C = Symbol();
179
- l().then(() => {
180
- C === r && (g = !0);
181
- }), _ = !0, z(y, n, a.state.value[t]);
182
- }
183
- let T = u ? function() {
184
- let { state: e } = r, t = e ? e() : {};
185
- this.$patch((e) => {
186
- q(e, t);
187
- });
188
- } : L;
189
- function E() {
190
- d.stop(), y.clear(), b.clear(), a._s.delete(t);
191
- }
192
- let D = (e, n = "") => {
193
- if (V in e) return e[H] = n, e;
194
- let r = function() {
195
- v(a);
196
- let n = Array.from(arguments), i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
197
- function s(e) {
198
- i.add(e);
199
- }
200
- function c(e) {
201
- o.add(e);
202
- }
203
- z(b, {
204
- args: n,
205
- name: r[H],
206
- store: k,
207
- after: s,
208
- onError: c
209
- });
210
- let l;
211
- try {
212
- l = e.apply(this && this.$id === t ? this : k, n);
213
- } catch (e) {
214
- throw z(o, e), e;
215
- }
216
- return l instanceof Promise ? l.then((e) => (z(i, e), e)).catch((e) => (z(o, e), Promise.reject(e))) : (z(i, l), l);
217
- };
218
- return r[V] = !0, r[H] = n, r;
219
- }, O = {
220
- _p: a,
221
- $id: t,
222
- $onAction: R.bind(null, b),
223
- $patch: w,
224
- $reset: T,
225
- $subscribe(e, n = {}) {
226
- if (y.has(e)) return L;
227
- let r = R(y, e, n.detached, () => i()), i = d.run(() => f(() => a.state.value[t], (r) => {
228
- (n.flush === "sync" ? _ : g) && e({
229
- storeId: t,
230
- type: "direct",
231
- events: x
232
- }, r);
233
- }, q({}, h, n)));
234
- return r;
235
- },
236
- $dispose: E
237
- }, k = p(O);
238
- a._s.set(t, k);
239
- let A = (a._a && a._a.runWithContext || B)(() => a._e.run(() => (d = i()).run(() => n({ action: D }))));
240
- for (let n in A) {
241
- let r = A[n];
242
- s(r) && !J(r) || e(r) ? u || (S && K(r) && (s(r) ? r.value = S[n] : ((r instanceof Set || r instanceof Map) && r.clear(), U(r, S[n]))), a.state.value[t][n] = r) : typeof r == "function" && (A[n] = D(r, n), m.actions[n] = r);
243
- }
244
- return q(k, A), q(o(k), A), Object.defineProperty(k, "$state", {
245
- get: () => a.state.value[t],
246
- set: (e) => {
247
- w((t) => {
248
- q(t, e);
249
- });
250
- }
251
- }), a._p.forEach((e) => {
252
- let t = d.run(() => e({
253
- store: k,
254
- app: a._a,
255
- pinia: a,
256
- options: m
257
- }));
258
- q(k, t);
259
- }), S && u && r.hydrate && r.hydrate(k.$state, S), g = !0, _ = !0, k;
260
- }
261
- function Z(e, n, i) {
262
- let a, o = typeof n == "function";
263
- a = o ? i : n;
264
- function s(i, s) {
265
- let c = r();
266
- return i ||= c ? t(b, null) : null, i && v(i), i = _, i._s.has(e) || (o ? X(e, n, a, i) : Y(e, a, i)), i._s.get(e);
267
- }
268
- return s.$id = e, s;
269
- }
270
- var Q = "Store";
271
- function te(e) {
272
- Q = e;
273
- }
274
- function ne(...e) {
275
- return e.reduce((e, t) => (e[t.$id + Q] = function() {
276
- return t(this.$pinia);
277
- }, e), {});
278
- }
279
- function $(e, t) {
280
- return Array.isArray(t) ? t.reduce((t, n) => (t[n] = function() {
281
- return e(this.$pinia)[n];
282
- }, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = function() {
283
- let n = e(this.$pinia), i = t[r];
284
- return typeof i == "function" ? i.call(this, n) : n[i];
285
- }, n), {});
286
- }
287
- var re = $;
288
- function ie(e, t) {
289
- return Array.isArray(t) ? t.reduce((t, n) => (t[n] = function(...t) {
290
- return e(this.$pinia)[n](...t);
291
- }, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = function(...n) {
292
- return e(this.$pinia)[t[r]](...n);
293
- }, n), {});
294
- }
295
- function ae(e, t) {
296
- return Array.isArray(t) ? t.reduce((t, n) => (t[n] = {
297
- get() {
298
- return e(this.$pinia)[n];
299
- },
300
- set(t) {
301
- return e(this.$pinia)[n] = t;
302
- }
303
- }, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = {
304
- get() {
305
- return e(this.$pinia)[t[r]];
306
- },
307
- set(n) {
308
- return e(this.$pinia)[t[r]] = n;
309
- }
310
- }, n), {});
311
- }
312
- function oe(t) {
313
- let n = o(t), r = {};
314
- for (let i in n) {
315
- let a = n[i];
316
- a?.effect ? r[i] = c({
317
- get: () => t[i],
318
- set(e) {
319
- t[i] = e;
320
- }
321
- }) : (s(a) || e(a)) && (r[i] = u(t, i));
322
- }
323
- return r;
324
- }
325
- //#endregion
326
- export { S as MutationType, I as acceptHMRUpdate, P as createPinia, Z as defineStore, F as disposePinia, y as getActivePinia, ie as mapActions, re as mapGetters, $ as mapState, ne as mapStores, ae as mapWritableState, b as piniaSymbol, v as setActivePinia, te as setMapStoreSuffix, K as shouldHydrate, G as skipHydrate, oe as storeToRefs };
@@ -1,104 +0,0 @@
1
- globalThis.process;
2
- import { i as e, o as t, r as n, t as r } from "./script-DjUf9uWK-Cu5Kla_E.js";
3
- import { u as i } from "./files-BqucFldk-B-hTQ-ip.js";
4
- import { c as a } from "./cdn-DQoETju_-DS-873Vi.js";
5
- import { n as o, prefersLocalBuiltin as s, resolveHostModule as c, resolveImportTarget as l, t as u, toHostModule as d } from "./modules-BGzPcoRR-C9BWX8hC.js";
6
- //#region packages/playground/dist/remote-mq4zvrI1.js
7
- var f = /* @__PURE__ */ new Set(["vue", "vue/server-renderer"]), p = (p, m, h, g = (e) => import(
8
- /* @vite-ignore */
9
- e
10
- )) => {
11
- let _ = {
12
- vue: m.vue,
13
- "vue-router": m.vueRouter
14
- }, v = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Map(), C = (e) => {
15
- let t = S.get(e);
16
- return t || (t = g(e).then((t) => {
17
- let n = d(t);
18
- return b.set(e, n), n;
19
- }), S.set(e, t)), t;
20
- }, w = (e) => {
21
- if (p[e] && !s(e, p, h)) return null;
22
- if (s(e, p, h)) return e;
23
- let t = e;
24
- for (;;) {
25
- let e = t.lastIndexOf("/");
26
- if (e <= 0) return null;
27
- let n = t.slice(0, e);
28
- if (s(n, p, h)) return n;
29
- t = n;
30
- }
31
- }, T = (e, t) => {
32
- if (i(t) || /^https?:\/\//.test(t)) return new URL(t, e).href;
33
- if (p[t] && !s(t, p, h)) return p[t];
34
- if (f.has(t) && s(t, p, h)) return null;
35
- let n = t;
36
- for (; n;) {
37
- if (o.has(n) && s(n, p, h)) return v.add(n), null;
38
- let e = n.lastIndexOf("/");
39
- if (e <= 0) break;
40
- n = n.slice(0, e);
41
- }
42
- let r = p[t] ? t : l(t, p);
43
- return r ? p[r] : (p[t] = a(t), p[t]);
44
- }, E = async (n) => {
45
- if (/\/\+esm(?:[?#]|$)/.test(n)) {
46
- await C(n);
47
- return;
48
- }
49
- if (x.has(n)) return;
50
- x.add(n);
51
- let r = await fetch(n);
52
- if (!r.ok) throw Error(`${r.status} ${n}`);
53
- let i = await r.text();
54
- await e;
55
- let [a] = t(i), o = i;
56
- for (let e of [...a].reverse()) e.d >= 0 && (o = o.slice(0, e.ss) + "__import" + o.slice(e.ss + 6));
57
- y.set(n, o), await Promise.all(a.filter((e) => e.d === -1).map(async (e) => {
58
- let t = T(n, e.n);
59
- t && await E(t);
60
- }));
61
- }, D = (e) => (t) => {
62
- if (f.has(t) && s(t, p, h)) return d(m.vue);
63
- let n = w(t);
64
- if (n) return d(_[n]);
65
- if (i(t) || /^https?:\/\//.test(t)) return O(new URL(t, e).href);
66
- let r = p[t] ? t : l(t, p);
67
- if (!r || !p[r]) throw Error(`[Playground] 未注册的模块 "${t}"`);
68
- let a = O(p[r]);
69
- if (r === t) return a;
70
- if (!c(t, { [r]: a }))
71
- /* istanbul ignore next -- 父包没有对应导出时才拒绝 */
72
- throw Error(`[Playground] 未注册的模块 "${t}"`);
73
- return a;
74
- }, O = (e) => {
75
- if (b.has(e)) return b.get(e);
76
- let t = y.get(e);
77
- if (t == null) throw Error(`[Playground] 远程模块尚未下载: ${e}`);
78
- let i = n(r(t, e), {
79
- transforms: ["imports"],
80
- disableESTransforms: !0,
81
- production: !0,
82
- filePath: e
83
- }).code, a = { exports: {} };
84
- return b.set(e, a.exports), Function("require", "module", "exports", "__import", i)(D(e), a, a.exports, async (t) => {
85
- let n = T(e, t);
86
- if (n) await A(n);
87
- else {
88
- let e = w(t);
89
- e && !(e in _) && (_[e] = await u(e));
90
- }
91
- return D(e)(t);
92
- }), b.set(e, a.exports), a.exports;
93
- }, k = /* @__PURE__ */ new Map(), A = (e) => {
94
- let t = k.get(e);
95
- if (t) return t;
96
- let n = (async () => (await E(e), await Promise.all([...v].map(async (e) => {
97
- e !== "vue" && e !== "vue-router" && (_[e] = await u(e));
98
- })), O(e)))();
99
- return k.set(e, n), n;
100
- };
101
- return { load: A };
102
- };
103
- //#endregion
104
- export { p as createRemoteLoader };