@likec4/language-server 1.48.0 → 1.50.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.
- package/browser/package.json +2 -2
- package/browser-worker/package.json +2 -2
- package/dist/THIRD-PARTY-LICENSES.md +178 -0
- package/dist/_chunks/ConfigurableLayouter.mjs +1 -1956
- package/dist/_chunks/LikeC4FileSystem.mjs +3 -0
- package/dist/_chunks/WithMCPServer.mjs +1154 -0
- package/dist/_chunks/libs/@msgpack/msgpack.mjs +1 -805
- package/dist/_chunks/libs/eventemitter3.mjs +1 -243
- package/dist/_chunks/libs/fast-equals.mjs +1 -446
- package/dist/_chunks/libs/p-queue.mjs +1 -449
- package/dist/_chunks/libs/parse-ms.mjs +1 -36
- package/dist/_chunks/libs/picomatch.mjs +1 -1673
- package/dist/_chunks/libs/pretty-ms.mjs +1 -80
- package/dist/_chunks/libs/remeda.mjs +2 -482
- package/dist/_chunks/libs/strip-indent.mjs +1 -15
- package/dist/_chunks/libs/ufo.mjs +1 -166
- package/dist/_chunks/likec4lib.mjs +2 -9
- package/dist/_chunks/{LikeC4LanguageServices.d.mts → module.d.mts} +2101 -732
- package/dist/_chunks/module.mjs +34 -28
- package/dist/_chunks/noop.mjs +1 -0
- package/dist/_chunks/protocol.d.mts +6 -2
- package/dist/_chunks/rolldown-runtime.mjs +1 -42
- package/dist/_chunks/utils.mjs +1 -0
- package/dist/_chunks/workspace.mjs +1 -0
- package/dist/browser/index.d.mts +15 -0
- package/dist/browser/index.mjs +1 -0
- package/dist/browser/worker.mjs +1 -0
- package/dist/bundled.d.mts +1 -2
- package/dist/bundled.mjs +1 -51
- package/dist/filesystem/index.d.mts +2 -3
- package/dist/filesystem/index.mjs +1 -3
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -48
- package/dist/likec4lib.d.mts +10 -3
- package/dist/likec4lib.mjs +1 -4
- package/dist/mcp/index.d.mts +2 -3
- package/dist/mcp/index.mjs +1 -3
- package/dist/module.d.mts +2 -3
- package/dist/module.mjs +1 -3
- package/dist/protocol.mjs +1 -3
- package/filesystem/package.json +4 -0
- package/mcp/package.json +4 -0
- package/module/package.json +4 -0
- package/package.json +79 -56
- package/LICENSE +0 -21
- package/dist/LikeC4LanguageServices.d.mts +0 -4
- package/dist/LikeC4LanguageServices.mjs +0 -3
- package/dist/_chunks/LikeC4LanguageServices.mjs +0 -725
- package/dist/_chunks/ast.d.mts +0 -1444
- package/dist/_chunks/ast.mjs +0 -2375
- package/dist/_chunks/ast2.mjs +0 -176
- package/dist/_chunks/filesystem.mjs +0 -58
- package/dist/_chunks/grammar.mjs +0 -8
- package/dist/_chunks/icons.mjs +0 -5211
- package/dist/_chunks/libs/@hono/node-server.mjs +0 -436
- package/dist/_chunks/libs/hono.mjs +0 -1829
- package/dist/_chunks/mcp.mjs +0 -33
- package/dist/_chunks/module2.mjs +0 -6576
- package/dist/_chunks/protocol.mjs +0 -78
- package/dist/ast.d.mts +0 -4
- package/dist/ast.mjs +0 -4
- package/dist/browser-worker.mjs +0 -6
- package/dist/browser.d.mts +0 -11
- package/dist/browser.mjs +0 -27
- package/dist/common-exports.d.mts +0 -4
- package/dist/common-exports.mjs +0 -5
- package/dist/generated/ast.d.mts +0 -2
- package/dist/generated/ast.mjs +0 -3
- package/dist/generated/grammar.d.mts +0 -6
- package/dist/generated/grammar.mjs +0 -3
- package/dist/generated/module.d.mts +0 -14
- package/dist/generated/module.mjs +0 -3
- package/dist/generated-lib/icons.d.mts +0 -4
- package/dist/generated-lib/icons.mjs +0 -3
- /package/dist/{browser-worker.d.mts → browser/worker.d.mts} +0 -0
|
@@ -1,80 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
|
|
4
|
-
const isZero = (value) => value === 0 || value === 0n;
|
|
5
|
-
const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
|
|
6
|
-
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
7
|
-
const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
|
|
8
|
-
function prettyMilliseconds(milliseconds, options) {
|
|
9
|
-
const isBigInt = typeof milliseconds === "bigint";
|
|
10
|
-
if (!isBigInt && !Number.isFinite(milliseconds)) throw new TypeError("Expected a finite number or bigint");
|
|
11
|
-
options = { ...options };
|
|
12
|
-
const sign = milliseconds < 0 ? "-" : "";
|
|
13
|
-
milliseconds = milliseconds < 0 ? -milliseconds : milliseconds;
|
|
14
|
-
if (options.colonNotation) {
|
|
15
|
-
options.compact = false;
|
|
16
|
-
options.formatSubMilliseconds = false;
|
|
17
|
-
options.separateMilliseconds = false;
|
|
18
|
-
options.verbose = false;
|
|
19
|
-
}
|
|
20
|
-
if (options.compact) {
|
|
21
|
-
options.unitCount = 1;
|
|
22
|
-
options.secondsDecimalDigits = 0;
|
|
23
|
-
options.millisecondsDecimalDigits = 0;
|
|
24
|
-
}
|
|
25
|
-
let result = [];
|
|
26
|
-
const floorDecimals = (value, decimalDigits) => {
|
|
27
|
-
const flooredInterimValue = Math.floor(value * 10 ** decimalDigits + SECOND_ROUNDING_EPSILON);
|
|
28
|
-
return (Math.round(flooredInterimValue) / 10 ** decimalDigits).toFixed(decimalDigits);
|
|
29
|
-
};
|
|
30
|
-
const add = (value, long, short, valueString) => {
|
|
31
|
-
if ((result.length === 0 || !options.colonNotation) && isZero(value) && !(options.colonNotation && short === "m")) return;
|
|
32
|
-
valueString ??= String(value);
|
|
33
|
-
if (options.colonNotation) {
|
|
34
|
-
const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
|
|
35
|
-
const minLength = result.length > 0 ? 2 : 1;
|
|
36
|
-
valueString = "0".repeat(Math.max(0, minLength - wholeDigits)) + valueString;
|
|
37
|
-
} else valueString += options.verbose ? " " + pluralize(long, value) : short;
|
|
38
|
-
result.push(valueString);
|
|
39
|
-
};
|
|
40
|
-
const parsed = parseMilliseconds(milliseconds);
|
|
41
|
-
const days = BigInt(parsed.days);
|
|
42
|
-
if (options.hideYearAndDays) add(BigInt(days) * 24n + BigInt(parsed.hours), "hour", "h");
|
|
43
|
-
else {
|
|
44
|
-
if (options.hideYear) add(days, "day", "d");
|
|
45
|
-
else {
|
|
46
|
-
add(days / 365n, "year", "y");
|
|
47
|
-
add(days % 365n, "day", "d");
|
|
48
|
-
}
|
|
49
|
-
add(Number(parsed.hours), "hour", "h");
|
|
50
|
-
}
|
|
51
|
-
add(Number(parsed.minutes), "minute", "m");
|
|
52
|
-
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
|
|
53
|
-
const seconds = Number(parsed.seconds);
|
|
54
|
-
const milliseconds = Number(parsed.milliseconds);
|
|
55
|
-
const microseconds = Number(parsed.microseconds);
|
|
56
|
-
const nanoseconds = Number(parsed.nanoseconds);
|
|
57
|
-
add(seconds, "second", "s");
|
|
58
|
-
if (options.formatSubMilliseconds) {
|
|
59
|
-
add(milliseconds, "millisecond", "ms");
|
|
60
|
-
add(microseconds, "microsecond", "µs");
|
|
61
|
-
add(nanoseconds, "nanosecond", "ns");
|
|
62
|
-
} else {
|
|
63
|
-
const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
|
|
64
|
-
const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
|
|
65
|
-
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
|
|
66
|
-
add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
|
|
67
|
-
}
|
|
68
|
-
} else {
|
|
69
|
-
const secondsFixed = floorDecimals((isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds) / 1e3 % 60, typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1);
|
|
70
|
-
const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
|
|
71
|
-
add(Number.parseFloat(secondsString), "second", "s", secondsString);
|
|
72
|
-
}
|
|
73
|
-
if (result.length === 0) return sign + "0" + (options.verbose ? " milliseconds" : "ms");
|
|
74
|
-
const separator = options.colonNotation ? ":" : " ";
|
|
75
|
-
if (typeof options.unitCount === "number") result = result.slice(0, Math.max(options.unitCount, 1));
|
|
76
|
-
return sign + result.join(separator);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
//#endregion
|
|
80
|
-
export { prettyMilliseconds as t };
|
|
1
|
+
import{t as e}from"./parse-ms.mjs";const isZero=e=>e===0||e===0n,pluralize=(e,t)=>t===1||t===1n?e:`${e}s`,t=24n*60n*60n*1000n;function prettyMilliseconds(n,r){let i=typeof n==`bigint`;if(!i&&!Number.isFinite(n))throw TypeError(`Expected a finite number or bigint`);r={...r};let a=n<0?`-`:``;n=n<0?-n:n,r.colonNotation&&(r.compact=!1,r.formatSubMilliseconds=!1,r.separateMilliseconds=!1,r.verbose=!1),r.compact&&(r.unitCount=1,r.secondsDecimalDigits=0,r.millisecondsDecimalDigits=0);let o=[],floorDecimals=(e,t)=>{let n=Math.floor(e*10**t+1e-7);return(Math.round(n)/10**t).toFixed(t)},add=(e,t,n,i)=>{if(!((o.length===0||!r.colonNotation)&&isZero(e)&&!(r.colonNotation&&n===`m`))){if(i??=String(e),r.colonNotation){let e=i.includes(`.`)?i.split(`.`)[0].length:i.length,t=o.length>0?2:1;i=`0`.repeat(Math.max(0,t-e))+i}else i+=r.verbose?` `+pluralize(t,e):n;o.push(i)}},s=e(n),c=BigInt(s.days);if(r.hideYearAndDays?add(BigInt(c)*24n+BigInt(s.hours),`hour`,`h`):(r.hideYear?add(c,`day`,`d`):(add(c/365n,`year`,`y`),add(c%365n,`day`,`d`)),add(Number(s.hours),`hour`,`h`)),add(Number(s.minutes),`minute`,`m`),!r.hideSeconds)if(r.separateMilliseconds||r.formatSubMilliseconds||!r.colonNotation&&n<1e3&&!r.subSecondsAsDecimals){let e=Number(s.seconds),t=Number(s.milliseconds),n=Number(s.microseconds),i=Number(s.nanoseconds);if(add(e,`second`,`s`),r.formatSubMilliseconds)add(t,`millisecond`,`ms`),add(n,`microsecond`,`µs`),add(i,`nanosecond`,`ns`);else{let e=t+n/1e3+i/1e6,a=typeof r.millisecondsDecimalDigits==`number`?r.millisecondsDecimalDigits:0,o=a?e.toFixed(a):e>=1?Math.round(e):Math.ceil(e);add(Number.parseFloat(o),`millisecond`,`ms`,o)}}else{let e=floorDecimals((i?Number(n%t):n)/1e3%60,typeof r.secondsDecimalDigits==`number`?r.secondsDecimalDigits:1),a=r.keepDecimalsOnWholeSeconds?e:e.replace(/\.0+$/,``);add(Number.parseFloat(a),`second`,`s`,a)}if(o.length===0)return a+`0`+(r.verbose?` milliseconds`:`ms`);let l=r.colonNotation?`:`:` `;return typeof r.unitCount==`number`&&(o=o.slice(0,Math.max(r.unitCount,1))),a+o.join(l)}export{prettyMilliseconds as t};
|
|
@@ -1,482 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
function e$
|
|
3
|
-
let r = (n) => e(n, ...t);
|
|
4
|
-
return n === void 0 ? r : Object.assign(r, {
|
|
5
|
-
lazy: n,
|
|
6
|
-
lazyArgs: t
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
12
|
-
function t$24(t, n, r) {
|
|
13
|
-
let i = t.length - n.length;
|
|
14
|
-
if (i === 0) return t(...n);
|
|
15
|
-
if (i === 1) return e$14(t, n, r);
|
|
16
|
-
throw Error(`Wrong number of arguments`);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/anyPass-C9yFxHyK.js
|
|
21
|
-
function t$23(...t) {
|
|
22
|
-
return t$24(n$22, t);
|
|
23
|
-
}
|
|
24
|
-
const n$22 = (e, t) => t.some((t) => t(e));
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/clamp-DSPiOOFS.js
|
|
28
|
-
function t$22(...t) {
|
|
29
|
-
return t$24(n$21, t);
|
|
30
|
-
}
|
|
31
|
-
const n$21 = (e, { min: t, max: n }) => t !== void 0 && e < t ? t : n !== void 0 && e > n ? n : e;
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/utilityEvaluators-DORpnx39.js
|
|
35
|
-
const e$13 = {
|
|
36
|
-
done: !0,
|
|
37
|
-
hasNext: !1
|
|
38
|
-
}, t$21 = {
|
|
39
|
-
done: !1,
|
|
40
|
-
hasNext: !1
|
|
41
|
-
}, n$20 = () => e$13, r$9 = (e) => ({
|
|
42
|
-
hasNext: !0,
|
|
43
|
-
next: e,
|
|
44
|
-
done: !1
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pipe-jLehR9-P.js
|
|
49
|
-
function t$20(e, ...t) {
|
|
50
|
-
let a = e, o = t.map((e) => `lazy` in e ? r$8(e) : void 0), s = 0;
|
|
51
|
-
for (; s < t.length;) {
|
|
52
|
-
if (o[s] === void 0 || !i$3(a)) {
|
|
53
|
-
let e = t[s];
|
|
54
|
-
a = e(a), s += 1;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
let e = [];
|
|
58
|
-
for (let n = s; n < t.length; n++) {
|
|
59
|
-
let t = o[n];
|
|
60
|
-
if (t === void 0 || (e.push(t), t.isSingle)) break;
|
|
61
|
-
}
|
|
62
|
-
let r = [];
|
|
63
|
-
for (let t of a) if (n$19(t, r, e)) break;
|
|
64
|
-
let { isSingle: c } = e.at(-1);
|
|
65
|
-
a = c ? r[0] : r, s += e.length;
|
|
66
|
-
}
|
|
67
|
-
return a;
|
|
68
|
-
}
|
|
69
|
-
function n$19(t, r, i) {
|
|
70
|
-
if (i.length === 0) return r.push(t), !1;
|
|
71
|
-
let a = t, o = t$21, s = !1;
|
|
72
|
-
for (let [e, t] of i.entries()) {
|
|
73
|
-
let { index: c, items: l } = t;
|
|
74
|
-
if (l.push(a), o = t(a, c, l), t.index += 1, o.hasNext) {
|
|
75
|
-
if (o.hasMany ?? !1) {
|
|
76
|
-
for (let t of o.next) if (n$19(t, r, i.slice(e + 1))) return !0;
|
|
77
|
-
return s;
|
|
78
|
-
}
|
|
79
|
-
a = o.next;
|
|
80
|
-
}
|
|
81
|
-
if (!o.hasNext) break;
|
|
82
|
-
o.done && (s = !0);
|
|
83
|
-
}
|
|
84
|
-
return o.hasNext && r.push(a), s;
|
|
85
|
-
}
|
|
86
|
-
function r$8(e) {
|
|
87
|
-
let { lazy: t, lazyArgs: n } = e, r = t(...n);
|
|
88
|
-
return Object.assign(r, {
|
|
89
|
-
isSingle: t.single ?? !1,
|
|
90
|
-
index: 0,
|
|
91
|
-
items: []
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function i$3(e) {
|
|
95
|
-
return typeof e == `string` || typeof e == `object` && !!e && Symbol.iterator in e;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purryFromLazy-3oywCNIb.js
|
|
100
|
-
function t$19(t, n) {
|
|
101
|
-
let r = n.length - t.length;
|
|
102
|
-
if (r === 1) {
|
|
103
|
-
let [r, ...i] = n;
|
|
104
|
-
return t$20(r, {
|
|
105
|
-
lazy: t,
|
|
106
|
-
lazyArgs: i
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
if (r === 0) {
|
|
110
|
-
let r = {
|
|
111
|
-
lazy: t,
|
|
112
|
-
lazyArgs: n
|
|
113
|
-
};
|
|
114
|
-
return Object.assign((t) => t$20(t, r), r);
|
|
115
|
-
}
|
|
116
|
-
throw Error(`Wrong number of arguments`);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js
|
|
121
|
-
function t$18(...t) {
|
|
122
|
-
return t$24(n$18, t);
|
|
123
|
-
}
|
|
124
|
-
const n$18 = (e, t) => e.length >= t;
|
|
125
|
-
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/entries-IutXYNeS.js
|
|
128
|
-
function t$17(...t) {
|
|
129
|
-
return t$24(Object.entries, t);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/filter-BiMaBet0.js
|
|
134
|
-
function n$17(...t) {
|
|
135
|
-
return t$24(r$7, t, i$2);
|
|
136
|
-
}
|
|
137
|
-
const r$7 = (e, t) => e.filter(t), i$2 = (e) => (n, r, i) => e(n, r, i) ? {
|
|
138
|
-
done: !1,
|
|
139
|
-
hasNext: !0,
|
|
140
|
-
next: n
|
|
141
|
-
} : t$21;
|
|
142
|
-
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/toSingle-Bfpp5_i-.js
|
|
145
|
-
const e$12 = (e) => Object.assign(e, { single: !0 });
|
|
146
|
-
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/find-iUA4Ke5f.js
|
|
149
|
-
function r$6(...t) {
|
|
150
|
-
return t$24(i$1, t, e$12(a$1));
|
|
151
|
-
}
|
|
152
|
-
const i$1 = (e, t) => e.find(t), a$1 = (e) => (n, r, i) => e(n, r, i) ? {
|
|
153
|
-
done: !0,
|
|
154
|
-
hasNext: !0,
|
|
155
|
-
next: n
|
|
156
|
-
} : t$21;
|
|
157
|
-
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/findLast-4m16uIkT.js
|
|
160
|
-
function t$16(...t) {
|
|
161
|
-
return t$24(n$16, t);
|
|
162
|
-
}
|
|
163
|
-
const n$16 = (e, t) => {
|
|
164
|
-
for (let n = e.length - 1; n >= 0; n--) {
|
|
165
|
-
let r = e[n];
|
|
166
|
-
if (t(r, n, e)) return r;
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/first-1mSmk2BJ.js
|
|
172
|
-
function n$15(...n) {
|
|
173
|
-
return t$24(r$5, n, e$12(i));
|
|
174
|
-
}
|
|
175
|
-
const r$5 = ([e]) => e, i = () => a, a = (e) => ({
|
|
176
|
-
hasNext: !0,
|
|
177
|
-
next: e,
|
|
178
|
-
done: !0
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/flatMap-Cw4Hh6bl.js
|
|
183
|
-
function t$15(...t) {
|
|
184
|
-
return t$24(n$14, t, r$4);
|
|
185
|
-
}
|
|
186
|
-
const n$14 = (e, t) => e.flatMap(t), r$4 = (e) => (t, n, r) => {
|
|
187
|
-
let i = e(t, n, r);
|
|
188
|
-
return Array.isArray(i) ? {
|
|
189
|
-
done: !1,
|
|
190
|
-
hasNext: !0,
|
|
191
|
-
hasMany: !0,
|
|
192
|
-
next: i
|
|
193
|
-
} : {
|
|
194
|
-
done: !1,
|
|
195
|
-
hasNext: !0,
|
|
196
|
-
next: i
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/forEach-y9rIgINo.js
|
|
202
|
-
function t$14(...t) {
|
|
203
|
-
return t$24(n$13, t, r$3);
|
|
204
|
-
}
|
|
205
|
-
function n$13(e, t) {
|
|
206
|
-
return e.forEach(t), e;
|
|
207
|
-
}
|
|
208
|
-
const r$3 = (e) => (t, n, r) => (e(t, n, r), {
|
|
209
|
-
done: !1,
|
|
210
|
-
hasNext: !0,
|
|
211
|
-
next: t
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/forEachObj-t8MUyUxS.js
|
|
216
|
-
function t$13(...t) {
|
|
217
|
-
return t$24(n$12, t);
|
|
218
|
-
}
|
|
219
|
-
function n$12(e, t) {
|
|
220
|
-
for (let [n, r] of Object.entries(e)) t(r, n, e);
|
|
221
|
-
return e;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
//#endregion
|
|
225
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/funnel-yqgBeZ-Z.js
|
|
226
|
-
const e$11 = Symbol(`funnel/voidReducer`), t$12 = () => e$11;
|
|
227
|
-
function n$11(n, { triggerAt: r = `end`, minQuietPeriodMs: i, maxBurstDurationMs: a, minGapMs: o, reducer: s = t$12 }) {
|
|
228
|
-
let c, l, u, d, f = () => {
|
|
229
|
-
let t = u;
|
|
230
|
-
t !== void 0 && (u = void 0, t === e$11 ? n() : n(t), o !== void 0 && (l = setTimeout(p, o)));
|
|
231
|
-
}, p = () => {
|
|
232
|
-
clearTimeout(l), l = void 0, c === void 0 && f();
|
|
233
|
-
}, m = () => {
|
|
234
|
-
clearTimeout(c), c = void 0, d = void 0, l === void 0 && f();
|
|
235
|
-
};
|
|
236
|
-
return {
|
|
237
|
-
call: (...e) => {
|
|
238
|
-
let t = c === void 0 && l === void 0;
|
|
239
|
-
if ((r !== `start` || t) && (u = s(u, ...e)), !(c === void 0 && !t)) {
|
|
240
|
-
if (i !== void 0 || a !== void 0 || o === void 0) {
|
|
241
|
-
clearTimeout(c);
|
|
242
|
-
let e = Date.now();
|
|
243
|
-
d ??= e;
|
|
244
|
-
let t = a === void 0 ? i ?? 0 : Math.min(i ?? a, a - (e - d));
|
|
245
|
-
c = setTimeout(m, t);
|
|
246
|
-
}
|
|
247
|
-
r !== `end` && t && f();
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
cancel: () => {
|
|
251
|
-
clearTimeout(c), c = void 0, d = void 0, clearTimeout(l), l = void 0, u = void 0;
|
|
252
|
-
},
|
|
253
|
-
flush: () => {
|
|
254
|
-
m(), p();
|
|
255
|
-
},
|
|
256
|
-
get isIdle() {
|
|
257
|
-
return c === void 0 && l === void 0;
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/groupBy-DG3Piv-t.js
|
|
264
|
-
function t$11(...t) {
|
|
265
|
-
return t$24(n$10, t);
|
|
266
|
-
}
|
|
267
|
-
const n$10 = (e, t) => {
|
|
268
|
-
let n = Object.create(null);
|
|
269
|
-
for (let r = 0; r < e.length; r++) {
|
|
270
|
-
let i = e[r], a = t(i, r, e);
|
|
271
|
-
if (a !== void 0) {
|
|
272
|
-
let e = n[a];
|
|
273
|
-
e === void 0 ? n[a] = [i] : e.push(i);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return Object.setPrototypeOf(n, Object.prototype), n;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
//#endregion
|
|
280
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/indexBy-BwSvEDkk.js
|
|
281
|
-
function t$10(...t) {
|
|
282
|
-
return t$24(n$9, t);
|
|
283
|
-
}
|
|
284
|
-
function n$9(e, t) {
|
|
285
|
-
let n = {};
|
|
286
|
-
for (let [r, i] of e.entries()) {
|
|
287
|
-
let a = t(i, r, e);
|
|
288
|
-
n[a] = i;
|
|
289
|
-
}
|
|
290
|
-
return n;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
//#endregion
|
|
294
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isArray-C3HaRgzz.js
|
|
295
|
-
function e$10(e) {
|
|
296
|
-
return Array.isArray(e);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isBoolean-rUPD1MTE.js
|
|
301
|
-
function e$9(e) {
|
|
302
|
-
return typeof e == `boolean`;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isDefined-D96LKBI6.js
|
|
307
|
-
function e$8(e) {
|
|
308
|
-
return e !== void 0;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
//#endregion
|
|
312
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isEmpty-B6r3tkJ8.js
|
|
313
|
-
function e$7(e) {
|
|
314
|
-
return e === `` || e === void 0 ? !0 : Array.isArray(e) ? e.length === 0 : Object.keys(e).length === 0;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNonNullish-C9wd575s.js
|
|
319
|
-
function e$6(e) {
|
|
320
|
-
return e != null;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
//#endregion
|
|
324
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNullish-Mu0-VITK.js
|
|
325
|
-
function e$5(e) {
|
|
326
|
-
return e == null;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
//#endregion
|
|
330
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isNumber-ccMQhOVD.js
|
|
331
|
-
function e$4(e) {
|
|
332
|
-
return typeof e == `number` && !Number.isNaN(e);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
//#endregion
|
|
336
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isPromise-APPd_fLV.js
|
|
337
|
-
function e$3(e) {
|
|
338
|
-
return e instanceof Promise;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isString-BPlksnnG.js
|
|
343
|
-
function e$2(e) {
|
|
344
|
-
return typeof e == `string`;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
//#endregion
|
|
348
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/isTruthy-LnBlxhiF.js
|
|
349
|
-
function e$1(e) {
|
|
350
|
-
return !!e;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
//#endregion
|
|
354
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/keys-CT72t2DB.js
|
|
355
|
-
function t$9(...t) {
|
|
356
|
-
return t$24(Object.keys, t);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
//#endregion
|
|
360
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/last-BaD4Geh6.js
|
|
361
|
-
function t$8(...t) {
|
|
362
|
-
return t$24(n$8, t);
|
|
363
|
-
}
|
|
364
|
-
const n$8 = (e) => e.at(-1);
|
|
365
|
-
|
|
366
|
-
//#endregion
|
|
367
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/map-B0uTZUd8.js
|
|
368
|
-
function t$7(...t) {
|
|
369
|
-
return t$24(n$7, t, r$2);
|
|
370
|
-
}
|
|
371
|
-
const n$7 = (e, t) => e.map(t), r$2 = (e) => (t, n, r) => ({
|
|
372
|
-
done: !1,
|
|
373
|
-
hasNext: !0,
|
|
374
|
-
next: e(t, n, r)
|
|
375
|
-
});
|
|
376
|
-
|
|
377
|
-
//#endregion
|
|
378
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/mapToObj-8STtUbFK.js
|
|
379
|
-
function t$6(...t) {
|
|
380
|
-
return t$24(n$6, t);
|
|
381
|
-
}
|
|
382
|
-
function n$6(e, t) {
|
|
383
|
-
let n = {};
|
|
384
|
-
for (let [r, i] of e.entries()) {
|
|
385
|
-
let [a, o] = t(i, r, e);
|
|
386
|
-
n[a] = o;
|
|
387
|
-
}
|
|
388
|
-
return n;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
//#endregion
|
|
392
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/mapValues-D8ywfrE_.js
|
|
393
|
-
function t$5(...t) {
|
|
394
|
-
return t$24(n$5, t);
|
|
395
|
-
}
|
|
396
|
-
function n$5(e, t) {
|
|
397
|
-
let n = {};
|
|
398
|
-
for (let [r, i] of Object.entries(e)) n[r] = t(i, r, e);
|
|
399
|
-
return n;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
//#endregion
|
|
403
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/omitBy-CgV9CAW2.js
|
|
404
|
-
function t$4(...t) {
|
|
405
|
-
return t$24(n$4, t);
|
|
406
|
-
}
|
|
407
|
-
function n$4(e, t) {
|
|
408
|
-
let n = { ...e };
|
|
409
|
-
for (let [r, i] of Object.entries(n)) t(i, r, e) && delete n[r];
|
|
410
|
-
return n;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
//#endregion
|
|
414
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/prop-Cv_AVBuA.js
|
|
415
|
-
function e(e, ...n) {
|
|
416
|
-
return typeof e == `string` || typeof e == `number` || typeof e == `symbol` ? (r) => t$3(r, e, ...n) : t$3(e, ...n);
|
|
417
|
-
}
|
|
418
|
-
function t$3(e, ...t) {
|
|
419
|
-
let n = e;
|
|
420
|
-
for (let e of t) {
|
|
421
|
-
if (n == null) return;
|
|
422
|
-
n = n[e];
|
|
423
|
-
}
|
|
424
|
-
return n;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
//#endregion
|
|
428
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/reduce-Cu1bxvtw.js
|
|
429
|
-
function t$2(...t) {
|
|
430
|
-
return t$24(n$3, t);
|
|
431
|
-
}
|
|
432
|
-
const n$3 = (e, t, n) => e.reduce(t, n);
|
|
433
|
-
|
|
434
|
-
//#endregion
|
|
435
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/sort-DJMgrJTX.js
|
|
436
|
-
function t$1(...t) {
|
|
437
|
-
return t$24(n$2, t);
|
|
438
|
-
}
|
|
439
|
-
function n$2(e, t) {
|
|
440
|
-
let n = [...e];
|
|
441
|
-
return n.sort(t), n;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
//#endregion
|
|
445
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/unique-10P7QXxd.js
|
|
446
|
-
function n$1(...e) {
|
|
447
|
-
return t$19(r$1, e);
|
|
448
|
-
}
|
|
449
|
-
function r$1() {
|
|
450
|
-
let t = /* @__PURE__ */ new Set();
|
|
451
|
-
return (n) => t.has(n) ? t$21 : (t.add(n), {
|
|
452
|
-
done: !1,
|
|
453
|
-
hasNext: !0,
|
|
454
|
-
next: n
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
//#endregion
|
|
459
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/uniqueBy-C_PxkF_D.js
|
|
460
|
-
function n(...e) {
|
|
461
|
-
return t$19(r, e);
|
|
462
|
-
}
|
|
463
|
-
function r(t) {
|
|
464
|
-
let n = t, r = /* @__PURE__ */ new Set();
|
|
465
|
-
return (t, i, a) => {
|
|
466
|
-
let o = n(t, i, a);
|
|
467
|
-
return r.has(o) ? t$21 : (r.add(o), {
|
|
468
|
-
done: !1,
|
|
469
|
-
hasNext: !0,
|
|
470
|
-
next: t
|
|
471
|
-
});
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
//#endregion
|
|
476
|
-
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/values-CpYo8vbR.js
|
|
477
|
-
function t(...t) {
|
|
478
|
-
return t$24(Object.values, t);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
//#endregion
|
|
482
|
-
export { t$16 as A, t$10 as C, t$14 as D, t$13 as E, t$20 as F, t$22 as I, t$23 as L, n$17 as M, t$17 as N, t$15 as O, t$18 as P, e$10 as S, n$11 as T, e$5 as _, t$2 as a, e$8 as b, t$5 as c, t$8 as d, t$9 as f, e$4 as g, e$3 as h, t$1 as i, r$6 as j, n$15 as k, t$6 as l, e$2 as m, n, e as o, e$1 as p, n$1 as r, t$4 as s, t, t$7 as u, e$6 as v, t$11 as w, e$9 as x, e$7 as y };
|
|
1
|
+
function e$18(e,o,s){let r=s=>e(s,...o);return s===void 0?r:Object.assign(r,{lazy:s,lazyArgs:o})}function t$28(e,o,s){let c=e.length-o.length;if(c===0)return e(...o);if(c===1)return e$18(e,o,s);throw Error(`Wrong number of arguments`)}function t$27(...e){return t$28(n$23,e)}const n$23=(e,o)=>o.some(o=>o(e));function t$26(...e){return t$28(n$22,e)}const n$22=(e,{min:o,max:s})=>o!==void 0&&e<o?o:s!==void 0&&e>s?s:e,e={done:!1,hasNext:!1};function t$24(e,...o){let s=e,c=o.map(e=>`lazy`in e?r$8(e):void 0),l=0;for(;l<o.length;){if(c[l]===void 0||!i$3(s)){let e=o[l];s=e(s),l+=1;continue}let e=[];for(let s=l;s<o.length;s++){let o=c[s];if(o===void 0||(e.push(o),o.isSingle))break}let u=[];for(let o of s)if(n$20(o,u,e))break;let{isSingle:d}=e.at(-1);s=d?u[0]:u,l+=e.length}return s}function n$20(o,s,c){if(c.length===0)return s.push(o),!1;let l=o,u=e,d=!1;for(let[e,o]of c.entries()){let{index:h,items:g}=o;if(g.push(l),u=o(l,h,g),o.index+=1,u.hasNext){if(u.hasMany??!1){for(let o of u.next)if(n$20(o,s,c.slice(e+1)))return!0;return d}l=u.next}if(!u.hasNext)break;u.done&&(d=!0)}return u.hasNext&&s.push(l),d}function r$8(e){let{lazy:o,lazyArgs:s}=e,c=o(...s);return Object.assign(c,{isSingle:o.single??!1,index:0,items:[]})}function i$3(e){return typeof e==`string`||typeof e==`object`&&!!e&&Symbol.iterator in e}function t$23(e,o){let s=o.length-e.length;if(s===1){let[s,...c]=o;return t$24(s,{lazy:e,lazyArgs:c})}if(s===0){let s={lazy:e,lazyArgs:o};return Object.assign(e=>t$24(e,s),s)}throw Error(`Wrong number of arguments`)}function t$22(...e){return t$28(n$19,e)}const n$19=(e,o)=>e.length>=o;function t$21(...e){return t$28(Object.entries,e)}function n$18(...e){return t$28(r$7,e,i$2)}const r$7=(e,o)=>e.filter(o),i$2=o=>(s,c,l)=>o(s,c,l)?{done:!1,hasNext:!0,next:s}:e,e$16=e=>Object.assign(e,{single:!0});function r$6(...e){return t$28(i$1,e,e$16(a$1))}const i$1=(e,o)=>e.find(o),a$1=o=>(s,c,l)=>o(s,c,l)?{done:!0,hasNext:!0,next:s}:e;function t$20(...e){return t$28(n$17,e)}const n$17=(e,o)=>{for(let s=e.length-1;s>=0;s--){let c=e[s];if(o(c,s,e))return c}};function n$16(...e){return t$28(r$5,e,e$16(i))}const r$5=([e])=>e,i=()=>a,a=e=>({hasNext:!0,next:e,done:!0});function t$19(...e){return t$28(n$15,e,r$4)}const n$15=(e,o)=>e.flatMap(o),r$4=e=>(o,s,c)=>{let l=e(o,s,c);return Array.isArray(l)?{done:!1,hasNext:!0,hasMany:!0,next:l}:{done:!1,hasNext:!0,next:l}};function t$18(...e){return t$28(n$14,e,r$3)}function n$14(e,o){return e.forEach(o),e}const r$3=e=>(o,s,c)=>(e(o,s,c),{done:!1,hasNext:!0,next:o});function t$17(...e){return t$28(n$13,e)}function n$13(e,o){for(let[s,c]of Object.entries(e))o(c,s,e);return e}const o=Symbol(`funnel/voidReducer`),t$16=()=>o;function n$12(e,{triggerAt:s=`end`,minQuietPeriodMs:c,maxBurstDurationMs:l,minGapMs:u,reducer:d=t$16}){let h,g,_,v,f=()=>{let s=_;s!==void 0&&(_=void 0,s===o?e():e(s),u!==void 0&&(g=setTimeout(p,u)))},p=()=>{clearTimeout(g),g=void 0,h===void 0&&f()},m=()=>{clearTimeout(h),h=void 0,v=void 0,g===void 0&&f()};return{call:(...e)=>{let o=h===void 0&&g===void 0;if((s!==`start`||o)&&(_=d(_,...e)),!(h===void 0&&!o)){if(c!==void 0||l!==void 0||u===void 0){clearTimeout(h);let e=Date.now();v??=e;let o=l===void 0?c??0:Math.min(c??l,Math.max(0,l-(e-v)));h=setTimeout(m,o)}s!==`end`&&o&&f()}},cancel:()=>{clearTimeout(h),h=void 0,v=void 0,clearTimeout(g),g=void 0,_=void 0},flush:()=>{m(),p()},get isIdle(){return h===void 0&&g===void 0}}}function t$15(...e){return t$28(n$11,e)}const n$11=(e,o)=>{let s=Object.create(null);for(let c=0;c<e.length;c++){let l=e[c],u=o(l,c,e);if(u!==void 0){let e=s[u];e===void 0?s[u]=[l]:e.push(l)}}return Object.setPrototypeOf(s,Object.prototype),s};function e$14(){return t$14}const t$14=e=>e;function t$13(...e){return t$28(n$10,e)}function n$10(e,o){let s={};for(let[c,l]of e.entries()){let u=o(l,c,e);s[u]=l}return s}function e$13(e){return Array.isArray(e)}function e$12(e){return typeof e==`boolean`}function e$11(e){return e!==void 0}function e$10(e){return e===``||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function e$9(e){if(e==null||e===``)return!0;if(typeof e!=`object`)return!1;if(`length`in e&&typeof e.length==`number`)return e.length===0;if(`size`in e&&typeof e.size==`number`)return e.size===0;for(let o in e)return!1;return Object.getOwnPropertySymbols(e).length===0}function e$8(e){return e!=null}function e$7(e){return e==null}function e$6(e){return typeof e==`number`&&!Number.isNaN(e)}function e$5(e){return e instanceof Promise}function e$4(e){return typeof e==`string`}function e$3(e){return!!e}function t$12(...e){return t$28(Object.keys,e)}function t$11(...e){return t$28(n$9,e)}const n$9=e=>e.at(-1);function t$10(...e){return t$28(n$8,e,r$2)}const n$8=(e,o)=>e.map(o),r$2=e=>(o,s,c)=>({done:!1,hasNext:!0,next:e(o,s,c)});function t$9(...e){return t$28(n$7,e)}function n$7(e,o){let s={};for(let[c,l]of e.entries()){let[u,d]=o(l,c,e);s[u]=d}return s}function t$8(...e){return t$28(n$6,e)}function n$6(e,o){let s={};for(let[c,l]of Object.entries(e))s[c]=o(l,c,e);return s}function t$7(...e){return t$28(n$5,e)}function n$5(e,o){let s={...e};for(let[c,l]of Object.entries(s))o(l,c,e)&&delete s[c];return s}function e$2(e){let o=!1,s;return()=>(o||=(s=e(),!0),s)}function t$6(...e){return t$28(n$4,e)}const n$4=e=>e.length===1?e[0]:void 0;function t$5(...e){return o=>t$24(o,...e)}function e$1(e,...o){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`?s=>t$4(s,e,...o):t$4(e,...o)}function t$4(e,...o){let s=e;for(let e of o){if(s==null)return;s=s[e]}return s}function t$3(...e){return t$28(n$3,e)}const n$3=(e,o,s)=>e.reduce(o,s);function t$2(...e){return t$28(n$2,e)}function n$2(e,o){let s=[...e];return s.sort(o),s}new Set([`-`,`_`,...` .
|
|
2
|
+
.\v.\f.\r. .
.\xA0. . . . . . . . . . . . .\u2028.\u2029. . . .`.split(`.`)]);function n$1(...e){return t$23(r$1,e)}function r$1(){let o=new Set;return s=>o.has(s)?e:(o.add(s),{done:!1,hasNext:!0,next:s})}function n(...e){return t$23(r,e)}function r(o){let s=o,c=new Set;return(o,l,u)=>{let d=s(o,l,u);return c.has(d)?e:(c.add(d),{done:!1,hasNext:!0,next:o})}}function t(...e){return t$28(Object.values,e)}export{n$12 as A,t$24 as B,e$10 as C,t$13 as D,e$13 as E,t$20 as F,t$27 as H,r$6 as I,n$18 as L,t$18 as M,t$19 as N,e$14 as O,n$16 as P,t$21 as R,e$9 as S,e$12 as T,t$28 as U,t$26 as V,e$4 as _,t$3 as a,e$7 as b,t$6 as c,t$8 as d,t$9 as f,e$3 as g,t$12 as h,t$2 as i,t$17 as j,t$15 as k,e$2 as l,t$11 as m,n,e$1 as o,t$10 as p,n$1 as r,t$5 as s,t,t$7 as u,e$5 as v,e$11 as w,e$8 as x,e$6 as y,t$22 as z};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function stripIndent(string) {
|
|
3
|
-
const match = string.match(/^[ \t]*(?=\S)/gm);
|
|
4
|
-
if (!match) return string;
|
|
5
|
-
let minIndent = Number.POSITIVE_INFINITY;
|
|
6
|
-
for (const indent of match) minIndent = Math.min(minIndent, indent.length);
|
|
7
|
-
if (minIndent === 0 || minIndent === Number.POSITIVE_INFINITY) return string;
|
|
8
|
-
return string.replace(new RegExp(`^[ \\t]{${minIndent}}`, "gm"), "");
|
|
9
|
-
}
|
|
10
|
-
function dedent(string) {
|
|
11
|
-
return stripIndent(string.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g, ""));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export { dedent as t };
|
|
1
|
+
function stripIndent(e){let t=e.match(/^[ \t]*(?=\S)/gm);if(!t)return e;let n=1/0;for(let e of t)n=Math.min(n,e.length);return n===0||n===1/0?e:e.replace(RegExp(`^[ \\t]{${n}}`,`gm`),``)}function dedent(e){return stripIndent(e.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g,``))}export{dedent as t};
|