@gsc-basic/components 1.0.1
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/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/es/index.js +35 -0
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1371 -0
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +838 -0
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +38 -0
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +300 -0
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +48 -0
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +399 -0
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +497 -0
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +216 -0
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +51 -0
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1299 -0
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +649 -0
- package/dist/es/node_modules/@codemirror/search/dist/index.js +872 -0
- package/dist/es/node_modules/@codemirror/state/dist/index.js +2639 -0
- package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +132 -0
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7280 -0
- package/dist/es/node_modules/@lezer/common/dist/index.js +1430 -0
- package/dist/es/node_modules/@lezer/highlight/dist/index.js +637 -0
- package/dist/es/node_modules/@lezer/java/dist/index.js +62 -0
- package/dist/es/node_modules/@lezer/javascript/dist/index.js +161 -0
- package/dist/es/node_modules/@lezer/json/dist/index.js +34 -0
- package/dist/es/node_modules/@lezer/lr/dist/index.js +1307 -0
- package/dist/es/node_modules/@lezer/python/dist/index.js +221 -0
- package/dist/es/node_modules/@lezer/xml/dist/index.js +100 -0
- package/dist/es/node_modules/@lezer/yaml/dist/index.js +274 -0
- package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +69 -0
- package/dist/es/node_modules/@vueuse/core/dist/index.js +125 -0
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +55 -0
- package/dist/es/node_modules/codemirror/dist/index.js +40 -0
- package/dist/es/node_modules/crelt/index.js +27 -0
- package/dist/es/node_modules/lodash-es/_Hash.js +20 -0
- package/dist/es/node_modules/lodash-es/_ListCache.js +20 -0
- package/dist/es/node_modules/lodash-es/_Map.js +6 -0
- package/dist/es/node_modules/lodash-es/_MapCache.js +20 -0
- package/dist/es/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/es/node_modules/lodash-es/_arrayMap.js +8 -0
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +11 -0
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/dist/es/node_modules/lodash-es/_baseToString.js +18 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/es/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/es/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/es/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/es/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/es/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/es/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/es/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/es/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/es/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/es/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +12 -0
- package/dist/es/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/es/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/es/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/es/node_modules/lodash-es/_root.js +5 -0
- package/dist/es/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/es/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/es/node_modules/lodash-es/_toSource.js +17 -0
- package/dist/es/node_modules/lodash-es/eq.js +6 -0
- package/dist/es/node_modules/lodash-es/get.js +8 -0
- package/dist/es/node_modules/lodash-es/isArray.js +4 -0
- package/dist/es/node_modules/lodash-es/isFunction.js +12 -0
- package/dist/es/node_modules/lodash-es/isNil.js +6 -0
- package/dist/es/node_modules/lodash-es/isObject.js +7 -0
- package/dist/es/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/es/node_modules/lodash-es/isString.js +10 -0
- package/dist/es/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/es/node_modules/lodash-es/memoize.js +18 -0
- package/dist/es/node_modules/lodash-es/toString.js +7 -0
- package/dist/es/node_modules/style-mod/src/style-mod.js +109 -0
- package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +132 -0
- package/dist/es/node_modules/w3c-keyname/index.js +93 -0
- package/dist/es/src/CodeEditor/index.js +6 -0
- package/dist/es/src/CodeEditor/src/index.css +1 -0
- package/dist/es/src/CodeEditor/src/index.vue.js +128 -0
- package/dist/es/src/CodeEditor/src/index2.css +1 -0
- package/dist/es/src/ConfigProvider/index.js +7 -0
- package/dist/es/src/ConfigProvider/src/configProvider.js +14 -0
- package/dist/es/src/ConfigProvider/src/configProviderProps.js +22 -0
- package/dist/es/src/ConfigProvider/src/constants.js +9 -0
- package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +45 -0
- package/dist/es/src/ScaleScreen/index.js +6 -0
- package/dist/es/src/ScaleScreen/src/index.css +1 -0
- package/dist/es/src/ScaleScreen/src/index.vue.js +115 -0
- package/dist/es/src/ScaleScreen/src/index2.css +1 -0
- package/dist/es/src/VideoBackground/index.js +6 -0
- package/dist/es/src/VideoBackground/src/helper.js +29 -0
- package/dist/es/src/VideoBackground/src/index.css +1 -0
- package/dist/es/src/VideoBackground/src/index.vue.js +108 -0
- package/dist/es/src/VideoBackground/src/index2.css +1 -0
- package/dist/es/src/VideoBackground/src/index3.css +1 -0
- package/dist/es/src/VideoBackground/src/videoBackground.js +31 -0
- package/dist/es/src/hooks/useLocale.js +24 -0
- package/dist/es/src/hooks/useNamespace.js +8 -0
- package/dist/es/src/index.js +28 -0
- package/dist/es/src/locale/lang/en-US.js +32 -0
- package/dist/es/src/locale/lang/ja-JP.js +32 -0
- package/dist/es/src/locale/lang/zh-CN.js +32 -0
- package/dist/es/src/styles/tokens.css +1 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +13 -0
- package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +3 -0
- package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +2 -0
- package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/lint/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +2 -0
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +5 -0
- package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +1 -0
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +5 -0
- package/dist/lib/node_modules/@lezer/common/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/highlight/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/java/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/javascript/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/json/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/python/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/xml/dist/index.js +1 -0
- package/dist/lib/node_modules/@lezer/yaml/dist/index.js +1 -0
- package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +1 -0
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +1 -0
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +1 -0
- package/dist/lib/node_modules/codemirror/dist/index.js +1 -0
- package/dist/lib/node_modules/crelt/index.js +1 -0
- package/dist/lib/node_modules/lodash-es/_Hash.js +1 -0
- package/dist/lib/node_modules/lodash-es/_ListCache.js +1 -0
- package/dist/lib/node_modules/lodash-es/_Map.js +1 -0
- package/dist/lib/node_modules/lodash-es/_MapCache.js +1 -0
- package/dist/lib/node_modules/lodash-es/_Symbol.js +1 -0
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +1 -0
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +1 -0
- package/dist/lib/node_modules/lodash-es/_baseToString.js +1 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +1 -0
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +1 -0
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getMapData.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getNative.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +1 -0
- package/dist/lib/node_modules/lodash-es/_getValue.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashClear.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashHas.js +1 -0
- package/dist/lib/node_modules/lodash-es/_hashSet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +1 -0
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +1 -0
- package/dist/lib/node_modules/lodash-es/_isMasked.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +1 -0
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +1 -0
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +1 -0
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +1 -0
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +1 -0
- package/dist/lib/node_modules/lodash-es/_objectToString.js +1 -0
- package/dist/lib/node_modules/lodash-es/_root.js +1 -0
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +1 -0
- package/dist/lib/node_modules/lodash-es/_toKey.js +1 -0
- package/dist/lib/node_modules/lodash-es/_toSource.js +1 -0
- package/dist/lib/node_modules/lodash-es/eq.js +1 -0
- package/dist/lib/node_modules/lodash-es/get.js +1 -0
- package/dist/lib/node_modules/lodash-es/isArray.js +1 -0
- package/dist/lib/node_modules/lodash-es/isFunction.js +1 -0
- package/dist/lib/node_modules/lodash-es/isNil.js +1 -0
- package/dist/lib/node_modules/lodash-es/isObject.js +1 -0
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +1 -0
- package/dist/lib/node_modules/lodash-es/isString.js +1 -0
- package/dist/lib/node_modules/lodash-es/isSymbol.js +1 -0
- package/dist/lib/node_modules/lodash-es/memoize.js +1 -0
- package/dist/lib/node_modules/lodash-es/toString.js +1 -0
- package/dist/lib/node_modules/style-mod/src/style-mod.js +3 -0
- package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +1 -0
- package/dist/lib/node_modules/w3c-keyname/index.js +1 -0
- package/dist/lib/src/CodeEditor/index.js +1 -0
- package/dist/lib/src/CodeEditor/src/index.css +1 -0
- package/dist/lib/src/CodeEditor/src/index.vue.js +1 -0
- package/dist/lib/src/CodeEditor/src/index2.css +1 -0
- package/dist/lib/src/ConfigProvider/index.js +1 -0
- package/dist/lib/src/ConfigProvider/src/configProvider.js +1 -0
- package/dist/lib/src/ConfigProvider/src/configProviderProps.js +1 -0
- package/dist/lib/src/ConfigProvider/src/constants.js +1 -0
- package/dist/lib/src/ConfigProvider/src/useGlobalConfig.js +1 -0
- package/dist/lib/src/ScaleScreen/index.js +1 -0
- package/dist/lib/src/ScaleScreen/src/index.css +1 -0
- package/dist/lib/src/ScaleScreen/src/index.vue.js +1 -0
- package/dist/lib/src/ScaleScreen/src/index2.css +1 -0
- package/dist/lib/src/VideoBackground/index.js +1 -0
- package/dist/lib/src/VideoBackground/src/helper.js +1 -0
- package/dist/lib/src/VideoBackground/src/index.css +1 -0
- package/dist/lib/src/VideoBackground/src/index.vue.js +1 -0
- package/dist/lib/src/VideoBackground/src/index2.css +1 -0
- package/dist/lib/src/VideoBackground/src/index3.css +1 -0
- package/dist/lib/src/VideoBackground/src/videoBackground.js +1 -0
- package/dist/lib/src/hooks/useLocale.js +1 -0
- package/dist/lib/src/hooks/useNamespace.js +1 -0
- package/dist/lib/src/index.js +1 -0
- package/dist/lib/src/locale/lang/en-US.js +1 -0
- package/dist/lib/src/locale/lang/ja-JP.js +1 -0
- package/dist/lib/src/locale/lang/zh-CN.js +1 -0
- package/dist/lib/src/styles/tokens.css +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { LRParser as V, ExternalTokenizer as k, ContextTracker as C } from "../../lr/dist/index.js";
|
|
2
|
+
import { styleTags as _, tags as r } from "../../highlight/dist/index.js";
|
|
3
|
+
const f = 63, D = 64, Z = 1, w = 2, U = 3, B = 4, W = 5, E = 6, L = 7, Y = 65, M = 66, j = 8, A = 9, H = 10, N = 11, I = 12, y = 13, K = 19, F = 20, J = 29, u = 33, OO = 34, eO = 47, aO = 0, T = 1, x = 2, R = 3, i = 4;
|
|
4
|
+
class n {
|
|
5
|
+
constructor(e, a, Q) {
|
|
6
|
+
this.parent = e, this.depth = a, this.type = Q, this.hash = (e ? e.hash + e.hash << 8 : 0) + a + (a << 4) + Q;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
n.top = new n(null, -1, aO);
|
|
10
|
+
function X(O, e) {
|
|
11
|
+
for (let a = 0, Q = e - O.pos - 1; ; Q--, a++) {
|
|
12
|
+
let t = O.peek(Q);
|
|
13
|
+
if (s(t) || t == -1) return a;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function g(O) {
|
|
17
|
+
return O == 32 || O == 9;
|
|
18
|
+
}
|
|
19
|
+
function s(O) {
|
|
20
|
+
return O == 10 || O == 13;
|
|
21
|
+
}
|
|
22
|
+
function p(O) {
|
|
23
|
+
return g(O) || s(O);
|
|
24
|
+
}
|
|
25
|
+
function c(O) {
|
|
26
|
+
return O < 0 || p(O);
|
|
27
|
+
}
|
|
28
|
+
const QO = new C({
|
|
29
|
+
start: n.top,
|
|
30
|
+
reduce(O, e) {
|
|
31
|
+
return O.type == R && (e == F || e == OO) ? O.parent : O;
|
|
32
|
+
},
|
|
33
|
+
shift(O, e, a, Q) {
|
|
34
|
+
if (e == U)
|
|
35
|
+
return new n(O, X(Q, Q.pos), T);
|
|
36
|
+
if (e == Y || e == W)
|
|
37
|
+
return new n(O, X(Q, Q.pos), x);
|
|
38
|
+
if (e == f)
|
|
39
|
+
return O.parent;
|
|
40
|
+
if (e == K || e == u)
|
|
41
|
+
return new n(O, 0, R);
|
|
42
|
+
if (e == y && O.type == i)
|
|
43
|
+
return O.parent;
|
|
44
|
+
if (e == eO) {
|
|
45
|
+
let t = /[1-9]/.exec(Q.read(Q.pos, a.pos));
|
|
46
|
+
if (t) return new n(O, O.depth + +t[0], i);
|
|
47
|
+
}
|
|
48
|
+
return O;
|
|
49
|
+
},
|
|
50
|
+
hash(O) {
|
|
51
|
+
return O.hash;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
function l(O, e, a = 0) {
|
|
55
|
+
return O.peek(a) == e && O.peek(a + 1) == e && O.peek(a + 2) == e && c(O.peek(a + 3));
|
|
56
|
+
}
|
|
57
|
+
const PO = new k((O, e) => {
|
|
58
|
+
if (O.next == -1 && e.canShift(D))
|
|
59
|
+
return O.acceptToken(D);
|
|
60
|
+
let a = O.peek(-1);
|
|
61
|
+
if ((s(a) || a < 0) && e.context.type != R) {
|
|
62
|
+
if (l(
|
|
63
|
+
O,
|
|
64
|
+
45
|
|
65
|
+
/* '-' */
|
|
66
|
+
))
|
|
67
|
+
if (e.canShift(f)) O.acceptToken(f);
|
|
68
|
+
else return O.acceptToken(Z, 3);
|
|
69
|
+
if (l(
|
|
70
|
+
O,
|
|
71
|
+
46
|
|
72
|
+
/* '.' */
|
|
73
|
+
))
|
|
74
|
+
if (e.canShift(f)) O.acceptToken(f);
|
|
75
|
+
else return O.acceptToken(w, 3);
|
|
76
|
+
let Q = 0;
|
|
77
|
+
for (; O.next == 32; )
|
|
78
|
+
Q++, O.advance();
|
|
79
|
+
(Q < e.context.depth || Q == e.context.depth && e.context.type == T && (O.next != 45 || !c(O.peek(1)))) && // Not blank
|
|
80
|
+
O.next != -1 && !s(O.next) && O.next != 35 && O.acceptToken(f, -Q);
|
|
81
|
+
}
|
|
82
|
+
}, { contextual: !0 }), rO = new k((O, e) => {
|
|
83
|
+
if (e.context.type == R) {
|
|
84
|
+
O.next == 63 && (O.advance(), c(O.next) && O.acceptToken(L));
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (O.next == 45)
|
|
88
|
+
O.advance(), c(O.next) && O.acceptToken(e.context.type == T && e.context.depth == X(O, O.pos - 1) ? B : U);
|
|
89
|
+
else if (O.next == 63)
|
|
90
|
+
O.advance(), c(O.next) && O.acceptToken(e.context.type == x && e.context.depth == X(O, O.pos - 1) ? E : W);
|
|
91
|
+
else {
|
|
92
|
+
let a = O.pos;
|
|
93
|
+
for (; ; )
|
|
94
|
+
if (g(O.next)) {
|
|
95
|
+
if (O.pos == a) return;
|
|
96
|
+
O.advance();
|
|
97
|
+
} else if (O.next == 33)
|
|
98
|
+
z(O);
|
|
99
|
+
else if (O.next == 38)
|
|
100
|
+
$(O);
|
|
101
|
+
else if (O.next == 42) {
|
|
102
|
+
$(O);
|
|
103
|
+
break;
|
|
104
|
+
} else if (O.next == 39 || O.next == 34) {
|
|
105
|
+
if (h(O, !0)) break;
|
|
106
|
+
return;
|
|
107
|
+
} else if (O.next == 91 || O.next == 123) {
|
|
108
|
+
if (!sO(O)) return;
|
|
109
|
+
break;
|
|
110
|
+
} else {
|
|
111
|
+
G(O, !0, !1, 0);
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
for (; g(O.next); ) O.advance();
|
|
115
|
+
if (O.next == 58) {
|
|
116
|
+
if (O.pos == a && e.canShift(J)) return;
|
|
117
|
+
let Q = O.peek(1);
|
|
118
|
+
c(Q) && O.acceptTokenTo(e.context.type == x && e.context.depth == X(O, a) ? M : Y, a);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}, { contextual: !0 });
|
|
122
|
+
function tO(O) {
|
|
123
|
+
return O > 32 && O < 127 && O != 34 && O != 37 && O != 44 && O != 60 && O != 62 && O != 92 && O != 94 && O != 96 && O != 123 && O != 124 && O != 125;
|
|
124
|
+
}
|
|
125
|
+
function q(O) {
|
|
126
|
+
return O >= 48 && O <= 57 || O >= 97 && O <= 102 || O >= 65 && O <= 70;
|
|
127
|
+
}
|
|
128
|
+
function m(O, e) {
|
|
129
|
+
return O.next == 37 ? (O.advance(), q(O.next) && O.advance(), q(O.next) && O.advance(), !0) : tO(O.next) || e && O.next == 44 ? (O.advance(), !0) : !1;
|
|
130
|
+
}
|
|
131
|
+
function z(O) {
|
|
132
|
+
if (O.advance(), O.next == 60) {
|
|
133
|
+
for (O.advance(); ; )
|
|
134
|
+
if (!m(O, !0)) {
|
|
135
|
+
O.next == 62 && O.advance();
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
} else
|
|
139
|
+
for (; m(O, !1); )
|
|
140
|
+
;
|
|
141
|
+
}
|
|
142
|
+
function $(O) {
|
|
143
|
+
for (O.advance(); !c(O.next) && S(O.tag) != "f"; ) O.advance();
|
|
144
|
+
}
|
|
145
|
+
function h(O, e) {
|
|
146
|
+
let a = O.next, Q = !1, t = O.pos;
|
|
147
|
+
for (O.advance(); ; ) {
|
|
148
|
+
let P = O.next;
|
|
149
|
+
if (P < 0) break;
|
|
150
|
+
if (O.advance(), P == a)
|
|
151
|
+
if (P == 39)
|
|
152
|
+
if (O.next == 39) O.advance();
|
|
153
|
+
else break;
|
|
154
|
+
else
|
|
155
|
+
break;
|
|
156
|
+
else if (P == 92 && a == 34)
|
|
157
|
+
O.next >= 0 && O.advance();
|
|
158
|
+
else if (s(P)) {
|
|
159
|
+
if (e) return !1;
|
|
160
|
+
Q = !0;
|
|
161
|
+
} else if (e && O.pos >= t + 1024)
|
|
162
|
+
return !1;
|
|
163
|
+
}
|
|
164
|
+
return !Q;
|
|
165
|
+
}
|
|
166
|
+
function sO(O) {
|
|
167
|
+
for (let e = [], a = O.pos + 1024; ; )
|
|
168
|
+
if (O.next == 91 || O.next == 123)
|
|
169
|
+
e.push(O.next), O.advance();
|
|
170
|
+
else if (O.next == 39 || O.next == 34) {
|
|
171
|
+
if (!h(O, !0)) return !1;
|
|
172
|
+
} else if (O.next == 93 || O.next == 125) {
|
|
173
|
+
if (e[e.length - 1] != O.next - 2) return !1;
|
|
174
|
+
if (e.pop(), O.advance(), !e.length) return !0;
|
|
175
|
+
} else {
|
|
176
|
+
if (O.next < 0 || O.pos > a || s(O.next))
|
|
177
|
+
return !1;
|
|
178
|
+
O.advance();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
const oO = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";
|
|
182
|
+
function S(O) {
|
|
183
|
+
return O < 33 ? "u" : O > 125 ? "s" : oO[O - 33];
|
|
184
|
+
}
|
|
185
|
+
function b(O, e) {
|
|
186
|
+
let a = S(O);
|
|
187
|
+
return a != "u" && !(e && a == "f");
|
|
188
|
+
}
|
|
189
|
+
function G(O, e, a, Q) {
|
|
190
|
+
if (S(O.next) == "s" || (O.next == 63 || O.next == 58 || O.next == 45) && b(O.peek(1), a))
|
|
191
|
+
O.advance();
|
|
192
|
+
else
|
|
193
|
+
return !1;
|
|
194
|
+
let t = O.pos;
|
|
195
|
+
for (; ; ) {
|
|
196
|
+
let P = O.next, o = 0, d = Q + 1;
|
|
197
|
+
for (; p(P); ) {
|
|
198
|
+
if (s(P)) {
|
|
199
|
+
if (e) return !1;
|
|
200
|
+
d = 0;
|
|
201
|
+
} else
|
|
202
|
+
d++;
|
|
203
|
+
P = O.peek(++o);
|
|
204
|
+
}
|
|
205
|
+
if (!(P >= 0 && (P == 58 ? b(O.peek(o + 1), a) : P == 35 ? O.peek(o - 1) != 32 : b(P, a))) || !a && d <= Q || d == 0 && !a && (l(O, 45, o) || l(O, 46, o)))
|
|
206
|
+
break;
|
|
207
|
+
if (e && S(P) == "f") return !1;
|
|
208
|
+
for (let v = o; v >= 0; v--) O.advance();
|
|
209
|
+
if (e && O.pos > t + 1024) return !1;
|
|
210
|
+
}
|
|
211
|
+
return !0;
|
|
212
|
+
}
|
|
213
|
+
const nO = new k((O, e) => {
|
|
214
|
+
if (O.next == 33)
|
|
215
|
+
z(O), O.acceptToken(I);
|
|
216
|
+
else if (O.next == 38 || O.next == 42) {
|
|
217
|
+
let a = O.next == 38 ? H : N;
|
|
218
|
+
$(O), O.acceptToken(a);
|
|
219
|
+
} else O.next == 39 || O.next == 34 ? (h(O, !1), O.acceptToken(A)) : G(O, !1, e.context.type == R, e.context.depth) && O.acceptToken(j);
|
|
220
|
+
}), cO = new k((O, e) => {
|
|
221
|
+
let a = e.context.type == i ? e.context.depth : -1, Q = O.pos;
|
|
222
|
+
O: for (; ; ) {
|
|
223
|
+
let t = 0, P = O.next;
|
|
224
|
+
for (; P == 32; ) P = O.peek(++t);
|
|
225
|
+
if (!t && (l(O, 45, t) || l(O, 46, t)) || !s(P) && (a < 0 && (a = Math.max(e.context.depth + 1, t)), t < a))
|
|
226
|
+
break;
|
|
227
|
+
for (; ; ) {
|
|
228
|
+
if (O.next < 0) break O;
|
|
229
|
+
let o = s(O.next);
|
|
230
|
+
if (O.advance(), o) continue O;
|
|
231
|
+
Q = O.pos;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
O.acceptTokenTo(y, Q);
|
|
235
|
+
}), fO = _({
|
|
236
|
+
DirectiveName: r.keyword,
|
|
237
|
+
DirectiveContent: r.attributeValue,
|
|
238
|
+
"DirectiveEnd DocEnd": r.meta,
|
|
239
|
+
QuotedLiteral: r.string,
|
|
240
|
+
BlockLiteralHeader: r.special(r.string),
|
|
241
|
+
BlockLiteralContent: r.content,
|
|
242
|
+
Literal: r.content,
|
|
243
|
+
"Key/Literal Key/QuotedLiteral": r.definition(r.propertyName),
|
|
244
|
+
"Anchor Alias": r.labelName,
|
|
245
|
+
Tag: r.typeName,
|
|
246
|
+
Comment: r.lineComment,
|
|
247
|
+
": , -": r.separator,
|
|
248
|
+
"?": r.punctuation,
|
|
249
|
+
"[ ]": r.squareBracket,
|
|
250
|
+
"{ }": r.brace
|
|
251
|
+
}), dO = V.deserialize({
|
|
252
|
+
version: 14,
|
|
253
|
+
states: "5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_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[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",
|
|
256
|
+
nodeNames: "⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",
|
|
257
|
+
maxTerm: 74,
|
|
258
|
+
context: QO,
|
|
259
|
+
nodeProps: [
|
|
260
|
+
["isolate", -3, 8, 9, 14, ""],
|
|
261
|
+
["openedBy", 18, "[", 32, "{"],
|
|
262
|
+
["closedBy", 19, "]", 33, "}"]
|
|
263
|
+
],
|
|
264
|
+
propSources: [fO],
|
|
265
|
+
skippedNodes: [0],
|
|
266
|
+
repeatNodeCount: 6,
|
|
267
|
+
tokenData: "-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#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1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
|
|
4
|
+
for (let e = 0, n = 0; e < t.length; e++)
|
|
5
|
+
(e % 2 ? d : a).push(n = n + t[e]);
|
|
6
|
+
})();
|
|
7
|
+
function h(t) {
|
|
8
|
+
if (t < 768) return !1;
|
|
9
|
+
for (let e = 0, n = a.length; ; ) {
|
|
10
|
+
let r = e + n >> 1;
|
|
11
|
+
if (t < a[r]) n = r;
|
|
12
|
+
else if (t >= d[r]) e = r + 1;
|
|
13
|
+
else return !0;
|
|
14
|
+
if (e == n) return !1;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function c(t) {
|
|
18
|
+
return t >= 127462 && t <= 127487;
|
|
19
|
+
}
|
|
20
|
+
const g = 8205;
|
|
21
|
+
function w(t, e, n = !0, r = !0) {
|
|
22
|
+
return (n ? b : k)(t, e, r);
|
|
23
|
+
}
|
|
24
|
+
function b(t, e, n) {
|
|
25
|
+
if (e == t.length) return e;
|
|
26
|
+
e && o(t.charCodeAt(e)) && m(t.charCodeAt(e - 1)) && e--;
|
|
27
|
+
let r = f(t, e);
|
|
28
|
+
for (e += x(r); e < t.length; ) {
|
|
29
|
+
let i = f(t, e);
|
|
30
|
+
if (r == g || i == g || n && h(i))
|
|
31
|
+
e += x(i), r = i;
|
|
32
|
+
else if (c(i)) {
|
|
33
|
+
let l = 0, u = e - 2;
|
|
34
|
+
for (; u >= 0 && c(f(t, u)); )
|
|
35
|
+
l++, u -= 2;
|
|
36
|
+
if (l % 2 == 0) break;
|
|
37
|
+
e += 2;
|
|
38
|
+
} else
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
function k(t, e, n) {
|
|
44
|
+
for (; e > 0; ) {
|
|
45
|
+
let r = b(t, e - 2, n);
|
|
46
|
+
if (r < e) return r;
|
|
47
|
+
e--;
|
|
48
|
+
}
|
|
49
|
+
return 0;
|
|
50
|
+
}
|
|
51
|
+
function f(t, e) {
|
|
52
|
+
let n = t.charCodeAt(e);
|
|
53
|
+
if (!m(n) || e + 1 == t.length) return n;
|
|
54
|
+
let r = t.charCodeAt(e + 1);
|
|
55
|
+
return o(r) ? (n - 55296 << 10) + (r - 56320) + 65536 : n;
|
|
56
|
+
}
|
|
57
|
+
function o(t) {
|
|
58
|
+
return t >= 56320 && t < 57344;
|
|
59
|
+
}
|
|
60
|
+
function m(t) {
|
|
61
|
+
return t >= 55296 && t < 56320;
|
|
62
|
+
}
|
|
63
|
+
function x(t) {
|
|
64
|
+
return t < 65536 ? 1 : 2;
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
w as findClusterBreak,
|
|
68
|
+
h as isExtendingChar
|
|
69
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { useTimeoutFn as w, isClient as T, toArray as h, watchImmediate as q, createSingletonPromise as I, isObject as O } from "../../shared/dist/index.js";
|
|
2
|
+
import { tryOnScopeDispose as J } from "../../shared/dist/index.js";
|
|
3
|
+
import { computed as b, shallowRef as y, toValue as m, readonly as x, getCurrentInstance as W, onMounted as j, unref as B, toRaw as F } from "vue";
|
|
4
|
+
const N = T ? window : void 0, E = T ? window.navigator : void 0;
|
|
5
|
+
function V(e) {
|
|
6
|
+
var i;
|
|
7
|
+
const l = m(e);
|
|
8
|
+
return (i = l?.$el) !== null && i !== void 0 ? i : l;
|
|
9
|
+
}
|
|
10
|
+
function M(...e) {
|
|
11
|
+
const i = (t, o, n, r) => (t.addEventListener(o, n, r), () => t.removeEventListener(o, n, r)), l = b(() => {
|
|
12
|
+
const t = h(m(e[0])).filter((o) => o != null);
|
|
13
|
+
return t.every((o) => typeof o != "string") ? t : void 0;
|
|
14
|
+
});
|
|
15
|
+
return q(() => {
|
|
16
|
+
var t, o;
|
|
17
|
+
return [
|
|
18
|
+
(t = (o = l.value) === null || o === void 0 ? void 0 : o.map((n) => V(n))) !== null && t !== void 0 ? t : [N].filter((n) => n != null),
|
|
19
|
+
h(m(l.value ? e[1] : e[0])),
|
|
20
|
+
h(B(l.value ? e[2] : e[1])),
|
|
21
|
+
m(l.value ? e[3] : e[2])
|
|
22
|
+
];
|
|
23
|
+
}, ([t, o, n, r], p, f) => {
|
|
24
|
+
if (!t?.length || !o?.length || !n?.length) return;
|
|
25
|
+
const d = O(r) ? { ...r } : r, c = t.flatMap((s) => o.flatMap((g) => n.map((S) => i(s, g, S, d))));
|
|
26
|
+
f(() => {
|
|
27
|
+
c.forEach((s) => s());
|
|
28
|
+
});
|
|
29
|
+
}, { flush: "post" });
|
|
30
|
+
}
|
|
31
|
+
// @__NO_SIDE_EFFECTS__
|
|
32
|
+
function _() {
|
|
33
|
+
const e = y(!1), i = W();
|
|
34
|
+
return i && j(() => {
|
|
35
|
+
e.value = !0;
|
|
36
|
+
}, i), e;
|
|
37
|
+
}
|
|
38
|
+
// @__NO_SIDE_EFFECTS__
|
|
39
|
+
function L(e) {
|
|
40
|
+
const i = /* @__PURE__ */ _();
|
|
41
|
+
return b(() => (i.value, !!e()));
|
|
42
|
+
}
|
|
43
|
+
// @__NO_SIDE_EFFECTS__
|
|
44
|
+
function C(e, i = {}) {
|
|
45
|
+
const { controls: l = !1, navigator: t = E } = i, o = /* @__PURE__ */ L(() => t && "permissions" in t), n = y(), r = typeof e == "string" ? { name: e } : e, p = y(), f = () => {
|
|
46
|
+
var c, s;
|
|
47
|
+
p.value = (c = (s = n.value) === null || s === void 0 ? void 0 : s.state) !== null && c !== void 0 ? c : "prompt";
|
|
48
|
+
};
|
|
49
|
+
M(n, "change", f, { passive: !0 });
|
|
50
|
+
const d = I(async () => {
|
|
51
|
+
if (o.value) {
|
|
52
|
+
if (!n.value) try {
|
|
53
|
+
n.value = await t.permissions.query(r);
|
|
54
|
+
} catch {
|
|
55
|
+
n.value = void 0;
|
|
56
|
+
} finally {
|
|
57
|
+
f();
|
|
58
|
+
}
|
|
59
|
+
if (l) return F(n.value);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
return d(), l ? {
|
|
63
|
+
state: p,
|
|
64
|
+
isSupported: o,
|
|
65
|
+
query: d
|
|
66
|
+
} : p;
|
|
67
|
+
}
|
|
68
|
+
function D(e = {}) {
|
|
69
|
+
const { navigator: i = E, read: l = !1, source: t, copiedDuring: o = 1500, legacy: n = !1 } = e, r = /* @__PURE__ */ L(() => i && "clipboard" in i), p = /* @__PURE__ */ C("clipboard-read"), f = /* @__PURE__ */ C("clipboard-write"), d = b(() => r.value || n), c = y(""), s = y(!1), g = w(() => s.value = !1, o, { immediate: !1 });
|
|
70
|
+
async function S() {
|
|
71
|
+
let u = !(r.value && $(p.value));
|
|
72
|
+
if (!u) try {
|
|
73
|
+
c.value = await i.clipboard.readText();
|
|
74
|
+
} catch {
|
|
75
|
+
u = !0;
|
|
76
|
+
}
|
|
77
|
+
u && (c.value = R());
|
|
78
|
+
}
|
|
79
|
+
d.value && l && M(["copy", "cut"], S, { passive: !0 });
|
|
80
|
+
async function P(u = m(t)) {
|
|
81
|
+
if (d.value && u != null) {
|
|
82
|
+
let a = !(r.value && $(f.value));
|
|
83
|
+
if (!a) try {
|
|
84
|
+
await i.clipboard.writeText(u);
|
|
85
|
+
} catch {
|
|
86
|
+
a = !0;
|
|
87
|
+
}
|
|
88
|
+
a && A(u), c.value = u, s.value = !0, g.start();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function A(u) {
|
|
92
|
+
const a = document.createElement("textarea");
|
|
93
|
+
a.value = u, a.style.position = "absolute", a.style.opacity = "0", a.setAttribute("readonly", ""), document.body.appendChild(a), a.select(), document.execCommand("copy"), a.remove();
|
|
94
|
+
}
|
|
95
|
+
function R() {
|
|
96
|
+
var u, a, v;
|
|
97
|
+
return (u = (a = document) === null || a === void 0 || (v = a.getSelection) === null || v === void 0 || (v = v.call(a)) === null || v === void 0 ? void 0 : v.toString()) !== null && u !== void 0 ? u : "";
|
|
98
|
+
}
|
|
99
|
+
function $(u) {
|
|
100
|
+
return u === "granted" || u === "prompt";
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
isSupported: d,
|
|
104
|
+
text: x(c),
|
|
105
|
+
copied: x(s),
|
|
106
|
+
copy: P
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
I as createSingletonPromise,
|
|
111
|
+
E as defaultNavigator,
|
|
112
|
+
N as defaultWindow,
|
|
113
|
+
T as isClient,
|
|
114
|
+
O as isObject,
|
|
115
|
+
h as toArray,
|
|
116
|
+
J as tryOnScopeDispose,
|
|
117
|
+
V as unrefElement,
|
|
118
|
+
D as useClipboard,
|
|
119
|
+
M as useEventListener,
|
|
120
|
+
_ as useMounted,
|
|
121
|
+
C as usePermission,
|
|
122
|
+
L as useSupported,
|
|
123
|
+
w as useTimeoutFn,
|
|
124
|
+
q as watchImmediate
|
|
125
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { shallowRef as l, shallowReadonly as p, toValue as d, getCurrentScope as m, onScopeDispose as y, watch as w } from "vue";
|
|
2
|
+
function S(e, t) {
|
|
3
|
+
return m() ? (y(e, t), !0) : !1;
|
|
4
|
+
}
|
|
5
|
+
const b = typeof window < "u" && typeof document < "u";
|
|
6
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
|
+
const g = Object.prototype.toString, h = (e) => g.call(e) === "[object Object]";
|
|
8
|
+
function j(e) {
|
|
9
|
+
let t;
|
|
10
|
+
function o() {
|
|
11
|
+
return t || (t = e()), t;
|
|
12
|
+
}
|
|
13
|
+
return o.reset = async () => {
|
|
14
|
+
const r = t;
|
|
15
|
+
t = void 0, r && await r;
|
|
16
|
+
}, o;
|
|
17
|
+
}
|
|
18
|
+
function O(e) {
|
|
19
|
+
return Array.isArray(e) ? e : [e];
|
|
20
|
+
}
|
|
21
|
+
function T(e, t, o = {}) {
|
|
22
|
+
const { immediate: r = !0, immediateCallback: s = !1 } = o, n = l(!1);
|
|
23
|
+
let i;
|
|
24
|
+
function a() {
|
|
25
|
+
i && (clearTimeout(i), i = void 0);
|
|
26
|
+
}
|
|
27
|
+
function c() {
|
|
28
|
+
n.value = !1, a();
|
|
29
|
+
}
|
|
30
|
+
function u(...f) {
|
|
31
|
+
s && e(), a(), n.value = !0, i = setTimeout(() => {
|
|
32
|
+
n.value = !1, i = void 0, e(...f);
|
|
33
|
+
}, d(t));
|
|
34
|
+
}
|
|
35
|
+
return r && (n.value = !0, b && u()), S(c), {
|
|
36
|
+
isPending: p(n),
|
|
37
|
+
start: u,
|
|
38
|
+
stop: c
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function k(e, t, o) {
|
|
42
|
+
return w(e, t, {
|
|
43
|
+
...o,
|
|
44
|
+
immediate: !0
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
j as createSingletonPromise,
|
|
49
|
+
b as isClient,
|
|
50
|
+
h as isObject,
|
|
51
|
+
O as toArray,
|
|
52
|
+
S as tryOnScopeDispose,
|
|
53
|
+
T as useTimeoutFn,
|
|
54
|
+
k as watchImmediate
|
|
55
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { lineNumbers as t, highlightActiveLineGutter as e, highlightSpecialChars as i, drawSelection as o, dropCursor as r, rectangularSelection as a, crosshairCursor as l, highlightActiveLine as m, keymap as p } from "../../@codemirror/view/dist/index.js";
|
|
2
|
+
import { EditorView as V } from "../../@codemirror/view/dist/index.js";
|
|
3
|
+
import { EditorState as h } from "../../@codemirror/state/dist/index.js";
|
|
4
|
+
import { foldGutter as c, indentOnInput as n, syntaxHighlighting as s, bracketMatching as f, defaultHighlightStyle as g, foldKeymap as u } from "../../@codemirror/language/dist/index.js";
|
|
5
|
+
import { history as y, defaultKeymap as d, historyKeymap as S } from "../../@codemirror/commands/dist/index.js";
|
|
6
|
+
import { highlightSelectionMatches as K, searchKeymap as k } from "../../@codemirror/search/dist/index.js";
|
|
7
|
+
import { closeBrackets as b, autocompletion as w, closeBracketsKeymap as x, completionKeymap as C } from "../../@codemirror/autocomplete/dist/index.js";
|
|
8
|
+
import { lintKeymap as M } from "../../@codemirror/lint/dist/index.js";
|
|
9
|
+
const I = [
|
|
10
|
+
t(),
|
|
11
|
+
e(),
|
|
12
|
+
i(),
|
|
13
|
+
y(),
|
|
14
|
+
c(),
|
|
15
|
+
o(),
|
|
16
|
+
r(),
|
|
17
|
+
h.allowMultipleSelections.of(!0),
|
|
18
|
+
n(),
|
|
19
|
+
s(g, { fallback: !0 }),
|
|
20
|
+
f(),
|
|
21
|
+
b(),
|
|
22
|
+
w(),
|
|
23
|
+
a(),
|
|
24
|
+
l(),
|
|
25
|
+
m(),
|
|
26
|
+
K(),
|
|
27
|
+
p.of([
|
|
28
|
+
...x,
|
|
29
|
+
...d,
|
|
30
|
+
...k,
|
|
31
|
+
...S,
|
|
32
|
+
...u,
|
|
33
|
+
...C,
|
|
34
|
+
...M
|
|
35
|
+
])
|
|
36
|
+
];
|
|
37
|
+
export {
|
|
38
|
+
V as EditorView,
|
|
39
|
+
I as basicSetup
|
|
40
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function s() {
|
|
2
|
+
var r = arguments[0];
|
|
3
|
+
typeof r == "string" && (r = document.createElement(r));
|
|
4
|
+
var e = 1, t = arguments[1];
|
|
5
|
+
if (t && typeof t == "object" && t.nodeType == null && !Array.isArray(t)) {
|
|
6
|
+
for (var n in t) if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
7
|
+
var o = t[n];
|
|
8
|
+
typeof o == "string" ? r.setAttribute(n, o) : o != null && (r[n] = o);
|
|
9
|
+
}
|
|
10
|
+
e++;
|
|
11
|
+
}
|
|
12
|
+
for (; e < arguments.length; e++) f(r, arguments[e]);
|
|
13
|
+
return r;
|
|
14
|
+
}
|
|
15
|
+
function f(r, e) {
|
|
16
|
+
if (typeof e == "string")
|
|
17
|
+
r.appendChild(document.createTextNode(e));
|
|
18
|
+
else if (e != null) if (e.nodeType != null)
|
|
19
|
+
r.appendChild(e);
|
|
20
|
+
else if (Array.isArray(e))
|
|
21
|
+
for (var t = 0; t < e.length; t++) f(r, e[t]);
|
|
22
|
+
else
|
|
23
|
+
throw new RangeError("Unsupported child node: " + e);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
s as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import p from "./_hashClear.js";
|
|
2
|
+
import a from "./_hashDelete.js";
|
|
3
|
+
import l from "./_hashGet.js";
|
|
4
|
+
import s from "./_hashHas.js";
|
|
5
|
+
import m from "./_hashSet.js";
|
|
6
|
+
function t(o) {
|
|
7
|
+
var e = -1, h = o == null ? 0 : o.length;
|
|
8
|
+
for (this.clear(); ++e < h; ) {
|
|
9
|
+
var r = o[e];
|
|
10
|
+
this.set(r[0], r[1]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
t.prototype.clear = p;
|
|
14
|
+
t.prototype.delete = a;
|
|
15
|
+
t.prototype.get = l;
|
|
16
|
+
t.prototype.has = s;
|
|
17
|
+
t.prototype.set = m;
|
|
18
|
+
export {
|
|
19
|
+
t as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import p from "./_listCacheClear.js";
|
|
2
|
+
import a from "./_listCacheDelete.js";
|
|
3
|
+
import i from "./_listCacheGet.js";
|
|
4
|
+
import h from "./_listCacheHas.js";
|
|
5
|
+
import s from "./_listCacheSet.js";
|
|
6
|
+
function t(e) {
|
|
7
|
+
var o = -1, l = e == null ? 0 : e.length;
|
|
8
|
+
for (this.clear(); ++o < l; ) {
|
|
9
|
+
var r = e[o];
|
|
10
|
+
this.set(r[0], r[1]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
t.prototype.clear = p;
|
|
14
|
+
t.prototype.delete = a;
|
|
15
|
+
t.prototype.get = i;
|
|
16
|
+
t.prototype.has = h;
|
|
17
|
+
t.prototype.set = s;
|
|
18
|
+
export {
|
|
19
|
+
t as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import r from "./_mapCacheClear.js";
|
|
2
|
+
import m from "./_mapCacheDelete.js";
|
|
3
|
+
import h from "./_mapCacheGet.js";
|
|
4
|
+
import l from "./_mapCacheHas.js";
|
|
5
|
+
import c from "./_mapCacheSet.js";
|
|
6
|
+
function e(t) {
|
|
7
|
+
var o = -1, a = t == null ? 0 : t.length;
|
|
8
|
+
for (this.clear(); ++o < a; ) {
|
|
9
|
+
var p = t[o];
|
|
10
|
+
this.set(p[0], p[1]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
e.prototype.clear = r;
|
|
14
|
+
e.prototype.delete = m;
|
|
15
|
+
e.prototype.get = h;
|
|
16
|
+
e.prototype.has = l;
|
|
17
|
+
e.prototype.set = c;
|
|
18
|
+
export {
|
|
19
|
+
e as default
|
|
20
|
+
};
|