@yugenlab/vaayu 0.1.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/LICENSE +21 -0
- package/README.md +365 -0
- package/chunks/chunk-E5A3SCDJ.js +246 -0
- package/chunks/chunk-G5VYCA6O.js +69 -0
- package/chunks/chunk-H76V36OF.js +1029 -0
- package/chunks/chunk-HAPVUJ6A.js +238 -0
- package/chunks/chunk-IEKAYVA3.js +137 -0
- package/chunks/chunk-IGKYKEKT.js +43 -0
- package/chunks/chunk-IIET2K6D.js +7728 -0
- package/chunks/chunk-ITIVYGUG.js +347 -0
- package/chunks/chunk-JAWZ7ANC.js +208 -0
- package/chunks/chunk-JZU37VQ5.js +714 -0
- package/chunks/chunk-KC6NRZ7U.js +198 -0
- package/chunks/chunk-KDRROLVN.js +433 -0
- package/chunks/chunk-L7JICQBW.js +1006 -0
- package/chunks/chunk-MINFB5LT.js +1479 -0
- package/chunks/chunk-MJ74G5RB.js +5816 -0
- package/chunks/chunk-S4TBVCL2.js +2158 -0
- package/chunks/chunk-SMVJRPAH.js +2753 -0
- package/chunks/chunk-U6OLJ36B.js +438 -0
- package/chunks/chunk-URGEODS5.js +752 -0
- package/chunks/chunk-YSU3BWV6.js +123 -0
- package/chunks/consolidation-indexer-TOTTDZXW.js +21 -0
- package/chunks/day-consolidation-NKO63HZQ.js +24 -0
- package/chunks/graphrag-ZI2FSU7S.js +13 -0
- package/chunks/hierarchical-temporal-search-ZD46UMKR.js +8 -0
- package/chunks/hybrid-search-ZVLZVGFS.js +19 -0
- package/chunks/memory-store-KNJPMBLQ.js +17 -0
- package/chunks/periodic-consolidation-BPKOZDGB.js +10 -0
- package/chunks/postgres-3ZXBYTPC.js +8 -0
- package/chunks/recall-GMVHWQWW.js +20 -0
- package/chunks/search-7HZETVMZ.js +18 -0
- package/chunks/session-store-XKPGKXUS.js +44 -0
- package/chunks/sqlite-JPF5TICX.js +152 -0
- package/chunks/src-6GVZTUH6.js +12 -0
- package/chunks/src-QAXOD5SB.js +273 -0
- package/chunks/suncalc-NOHGYHDU.js +186 -0
- package/chunks/tree-RSHKDTCR.js +10 -0
- package/gateway.js +61944 -0
- package/package.json +51 -0
- package/pair-cli.js +133 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import {
|
|
2
|
+
blobToVector,
|
|
3
|
+
vectorToBlob
|
|
4
|
+
} from "./chunk-JZU37VQ5.js";
|
|
5
|
+
import {
|
|
6
|
+
EmbeddingService,
|
|
7
|
+
cosineSimilarity,
|
|
8
|
+
fallbackEmbedding
|
|
9
|
+
} from "./chunk-JAWZ7ANC.js";
|
|
10
|
+
import {
|
|
11
|
+
DatabaseManager,
|
|
12
|
+
initVectorsSchema
|
|
13
|
+
} from "./chunk-U6OLJ36B.js";
|
|
14
|
+
|
|
15
|
+
// ../chitragupta/packages/smriti/src/consolidation-indexer.ts
|
|
16
|
+
var _embeddingService = null;
|
|
17
|
+
function getEmbeddingService() {
|
|
18
|
+
if (!_embeddingService) {
|
|
19
|
+
_embeddingService = new EmbeddingService();
|
|
20
|
+
}
|
|
21
|
+
return _embeddingService;
|
|
22
|
+
}
|
|
23
|
+
var _vectorsDbInit = false;
|
|
24
|
+
function getVectorsDb() {
|
|
25
|
+
const dbm = DatabaseManager.instance();
|
|
26
|
+
if (!_vectorsDbInit) {
|
|
27
|
+
initVectorsSchema(dbm);
|
|
28
|
+
_vectorsDbInit = true;
|
|
29
|
+
}
|
|
30
|
+
return dbm.get("vectors");
|
|
31
|
+
}
|
|
32
|
+
function _resetConsolidationIndexer() {
|
|
33
|
+
_vectorsDbInit = false;
|
|
34
|
+
_embeddingService = null;
|
|
35
|
+
}
|
|
36
|
+
function buildEmbeddingId(level, period, project) {
|
|
37
|
+
const suffix = project ? `-${fnvHash4(project)}` : "";
|
|
38
|
+
return `${level}_summary:${period}${suffix}`;
|
|
39
|
+
}
|
|
40
|
+
function fnvHash4(s) {
|
|
41
|
+
let h = 2166136261;
|
|
42
|
+
for (let i = 0; i < s.length; i++) {
|
|
43
|
+
h ^= s.charCodeAt(i);
|
|
44
|
+
h = h * 16777619 >>> 0;
|
|
45
|
+
}
|
|
46
|
+
return (h >>> 0).toString(16).slice(0, 4);
|
|
47
|
+
}
|
|
48
|
+
function extractSummaryText(markdown, level) {
|
|
49
|
+
const lines = markdown.split("\n");
|
|
50
|
+
const parts = [];
|
|
51
|
+
if (level === "daily") {
|
|
52
|
+
for (const line of lines) {
|
|
53
|
+
const trimmed = line.trim();
|
|
54
|
+
const stripped = trimmed.replace(/^-\s*/, "");
|
|
55
|
+
if (trimmed.startsWith("# ") || trimmed.startsWith("## ")) {
|
|
56
|
+
parts.push(trimmed.replace(/^#+\s*/, ""));
|
|
57
|
+
} else if (stripped.startsWith("**Fact**:") || stripped.startsWith("**Decision**:") || stripped.startsWith("**Pref**:") || stripped.startsWith("**Error**:") || stripped.startsWith("**Topic**:") || stripped.startsWith("**Q**:")) {
|
|
58
|
+
parts.push(stripped.replace(/\*\*/g, ""));
|
|
59
|
+
} else if (trimmed.startsWith("- [") && trimmed.includes("]")) {
|
|
60
|
+
parts.push(stripped);
|
|
61
|
+
} else if (trimmed.startsWith("**Topics**:")) {
|
|
62
|
+
parts.push(trimmed.replace(/\*\*/g, ""));
|
|
63
|
+
} else if (trimmed.startsWith(">") && !trimmed.includes("sessions |")) {
|
|
64
|
+
parts.push(trimmed.replace(/^>\s*/, ""));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
} else if (level === "monthly") {
|
|
68
|
+
let inRecommendations = false;
|
|
69
|
+
let inVasanas = false;
|
|
70
|
+
for (const line of lines) {
|
|
71
|
+
const trimmed = line.trim();
|
|
72
|
+
if (trimmed.startsWith("# ")) {
|
|
73
|
+
parts.push(trimmed.replace(/^#+\s*/, ""));
|
|
74
|
+
} else if (trimmed.startsWith("- **Sessions**:") || trimmed.startsWith("- **Turns**:") || trimmed.startsWith("- **Estimated Cost**:")) {
|
|
75
|
+
parts.push(trimmed.replace(/^-\s*/, "").replace(/\*\*/g, ""));
|
|
76
|
+
}
|
|
77
|
+
if (trimmed === "## Recommendations") inRecommendations = true;
|
|
78
|
+
else if (trimmed.startsWith("## ") && inRecommendations) inRecommendations = false;
|
|
79
|
+
if (inRecommendations && trimmed.startsWith("- ")) {
|
|
80
|
+
parts.push(trimmed.replace(/^-\s*/, ""));
|
|
81
|
+
}
|
|
82
|
+
if (trimmed === "## Vasanas Crystallized") inVasanas = true;
|
|
83
|
+
else if (trimmed.startsWith("## ") && trimmed !== "## Vasanas Crystallized") inVasanas = false;
|
|
84
|
+
if (inVasanas && trimmed.startsWith("|") && !trimmed.startsWith("|--") && !trimmed.startsWith("| Tendency")) {
|
|
85
|
+
const cells = trimmed.split("|").filter(Boolean).map((c) => c.trim());
|
|
86
|
+
if (cells[0]) parts.push(`Vasana: ${cells[0]}`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
} else {
|
|
90
|
+
let inTrends = false;
|
|
91
|
+
for (const line of lines) {
|
|
92
|
+
const trimmed = line.trim();
|
|
93
|
+
if (trimmed.startsWith("# ") || trimmed.startsWith("## Annual Summary")) {
|
|
94
|
+
parts.push(trimmed.replace(/^#+\s*/, ""));
|
|
95
|
+
} else if (trimmed.startsWith("- **Sessions**:") || trimmed.startsWith("- **Vasanas Crystallized**:")) {
|
|
96
|
+
parts.push(trimmed.replace(/^-\s*/, "").replace(/\*\*/g, ""));
|
|
97
|
+
}
|
|
98
|
+
if (trimmed === "## Trends") inTrends = true;
|
|
99
|
+
else if (trimmed.startsWith("## ") && trimmed !== "## Trends") inTrends = false;
|
|
100
|
+
if (inTrends && trimmed.startsWith("- ")) {
|
|
101
|
+
parts.push(trimmed.replace(/^-\s*/, ""));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return parts.join(" ").slice(0, 2e3);
|
|
106
|
+
}
|
|
107
|
+
async function indexConsolidationSummary(level, period, markdown, project) {
|
|
108
|
+
const summaryText = extractSummaryText(markdown, level);
|
|
109
|
+
if (!summaryText || summaryText.length < 10) return;
|
|
110
|
+
let embedding;
|
|
111
|
+
try {
|
|
112
|
+
const svc = getEmbeddingService();
|
|
113
|
+
embedding = await svc.getEmbedding(summaryText);
|
|
114
|
+
} catch {
|
|
115
|
+
embedding = fallbackEmbedding(summaryText);
|
|
116
|
+
}
|
|
117
|
+
const id = buildEmbeddingId(level, period, project);
|
|
118
|
+
const sourceType = `${level}_summary`;
|
|
119
|
+
const sourceId = project ? `${period}-${fnvHash4(project)}` : period;
|
|
120
|
+
try {
|
|
121
|
+
const db = getVectorsDb();
|
|
122
|
+
db.prepare(`
|
|
123
|
+
INSERT OR REPLACE INTO embeddings (id, vector, text, source_type, source_id, dimensions, metadata, created_at)
|
|
124
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
|
125
|
+
`).run(
|
|
126
|
+
id,
|
|
127
|
+
vectorToBlob(embedding),
|
|
128
|
+
summaryText.slice(0, 5e3),
|
|
129
|
+
sourceType,
|
|
130
|
+
sourceId,
|
|
131
|
+
embedding.length,
|
|
132
|
+
JSON.stringify({ level, period, project: project ?? null }),
|
|
133
|
+
Date.now()
|
|
134
|
+
);
|
|
135
|
+
} catch {
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
async function searchConsolidationSummaries(query, level, options) {
|
|
139
|
+
const limit = options?.limit ?? 5;
|
|
140
|
+
let queryEmbedding;
|
|
141
|
+
try {
|
|
142
|
+
const svc = getEmbeddingService();
|
|
143
|
+
queryEmbedding = await svc.getEmbedding(query);
|
|
144
|
+
} catch {
|
|
145
|
+
queryEmbedding = fallbackEmbedding(query);
|
|
146
|
+
}
|
|
147
|
+
const sourceType = `${level}_summary`;
|
|
148
|
+
try {
|
|
149
|
+
const db = getVectorsDb();
|
|
150
|
+
const rows = db.prepare(
|
|
151
|
+
`SELECT id, vector, text, source_type, source_id, metadata
|
|
152
|
+
FROM embeddings WHERE source_type = ?`
|
|
153
|
+
).all(sourceType);
|
|
154
|
+
const scored = [];
|
|
155
|
+
for (const row of rows) {
|
|
156
|
+
let meta = {};
|
|
157
|
+
try {
|
|
158
|
+
meta = JSON.parse(row.metadata ?? "{}");
|
|
159
|
+
} catch {
|
|
160
|
+
}
|
|
161
|
+
if (options?.project && meta.project && meta.project !== options.project) continue;
|
|
162
|
+
const vector = blobToVector(row.vector);
|
|
163
|
+
const score = cosineSimilarity(queryEmbedding, vector);
|
|
164
|
+
if (score > 0.1) {
|
|
165
|
+
scored.push({
|
|
166
|
+
period: meta.period ?? row.source_id,
|
|
167
|
+
score,
|
|
168
|
+
snippet: row.text.slice(0, 300),
|
|
169
|
+
project: meta.project ?? void 0
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
scored.sort((a, b) => b.score - a.score);
|
|
174
|
+
return scored.slice(0, limit);
|
|
175
|
+
} catch {
|
|
176
|
+
return [];
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
async function backfillConsolidationIndices() {
|
|
180
|
+
const counts = { daily: 0, monthly: 0, yearly: 0 };
|
|
181
|
+
try {
|
|
182
|
+
const db = getVectorsDb();
|
|
183
|
+
const existing = new Set(
|
|
184
|
+
db.prepare("SELECT id FROM embeddings WHERE source_type IN ('daily_summary', 'monthly_summary', 'yearly_summary')").all().map((r) => r.id)
|
|
185
|
+
);
|
|
186
|
+
try {
|
|
187
|
+
const { listDayFiles, readDayFile } = await import("./day-consolidation-NKO63HZQ.js");
|
|
188
|
+
const dayFiles = listDayFiles();
|
|
189
|
+
for (const date of dayFiles) {
|
|
190
|
+
const id = buildEmbeddingId("daily", date);
|
|
191
|
+
if (existing.has(id)) continue;
|
|
192
|
+
const content = readDayFile(date);
|
|
193
|
+
if (content && content.length > 20) {
|
|
194
|
+
await indexConsolidationSummary("daily", date, content);
|
|
195
|
+
counts.daily++;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
} catch {
|
|
199
|
+
}
|
|
200
|
+
try {
|
|
201
|
+
const { PeriodicConsolidation } = await import("./periodic-consolidation-BPKOZDGB.js");
|
|
202
|
+
const { listSessionProjects } = await import("./session-store-XKPGKXUS.js");
|
|
203
|
+
const projectEntries = listSessionProjects();
|
|
204
|
+
for (const entry of projectEntries) {
|
|
205
|
+
const project = entry.project;
|
|
206
|
+
const pc = new PeriodicConsolidation({ project });
|
|
207
|
+
const reports = pc.listReports();
|
|
208
|
+
for (const report of reports) {
|
|
209
|
+
const level = report.type === "monthly" ? "monthly" : "yearly";
|
|
210
|
+
const id = buildEmbeddingId(level, report.period, project);
|
|
211
|
+
if (existing.has(id)) continue;
|
|
212
|
+
try {
|
|
213
|
+
const fs = await import("node:fs");
|
|
214
|
+
const content = fs.readFileSync(report.path, "utf-8");
|
|
215
|
+
if (content && content.length > 20) {
|
|
216
|
+
await indexConsolidationSummary(level, report.period, content, project);
|
|
217
|
+
if (level === "monthly") counts.monthly++;
|
|
218
|
+
else counts.yearly++;
|
|
219
|
+
}
|
|
220
|
+
} catch {
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
} catch {
|
|
225
|
+
}
|
|
226
|
+
} catch {
|
|
227
|
+
}
|
|
228
|
+
return counts;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export {
|
|
232
|
+
_resetConsolidationIndexer,
|
|
233
|
+
extractSummaryText,
|
|
234
|
+
indexConsolidationSummary,
|
|
235
|
+
searchConsolidationSummaries,
|
|
236
|
+
backfillConsolidationIndices
|
|
237
|
+
};
|
|
238
|
+
//# sourceMappingURL=chunk-HAPVUJ6A.js.map
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// packages/sandbox/src/index.ts
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
async function runProcess(params) {
|
|
6
|
+
const start = Date.now();
|
|
7
|
+
return await new Promise((resolve) => {
|
|
8
|
+
const child = spawn(params.command, params.args, {
|
|
9
|
+
cwd: params.cwd,
|
|
10
|
+
env: params.env,
|
|
11
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
12
|
+
});
|
|
13
|
+
let stdout = "";
|
|
14
|
+
let stderr = "";
|
|
15
|
+
const timeout = params.timeoutMs && params.timeoutMs > 0 ? setTimeout(() => {
|
|
16
|
+
child.kill("SIGKILL");
|
|
17
|
+
resolve({
|
|
18
|
+
code: null,
|
|
19
|
+
stdout,
|
|
20
|
+
stderr: `${stderr}
|
|
21
|
+
[sandbox timeout]`.trim(),
|
|
22
|
+
durationMs: Date.now() - start
|
|
23
|
+
});
|
|
24
|
+
}, params.timeoutMs) : null;
|
|
25
|
+
child.stdout.on("data", (chunk) => stdout += chunk.toString());
|
|
26
|
+
child.stderr.on("data", (chunk) => stderr += chunk.toString());
|
|
27
|
+
child.on("error", (error) => {
|
|
28
|
+
if (timeout) clearTimeout(timeout);
|
|
29
|
+
resolve({
|
|
30
|
+
code: 1,
|
|
31
|
+
stdout,
|
|
32
|
+
stderr: `${stderr}
|
|
33
|
+
${error instanceof Error ? error.message : String(error)}`.trim(),
|
|
34
|
+
durationMs: Date.now() - start
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
child.on("close", (code) => {
|
|
38
|
+
if (timeout) clearTimeout(timeout);
|
|
39
|
+
resolve({
|
|
40
|
+
code: typeof code === "number" ? code : null,
|
|
41
|
+
stdout,
|
|
42
|
+
stderr,
|
|
43
|
+
durationMs: Date.now() - start
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function buildMinimalEnv(overrides) {
|
|
49
|
+
const base = {};
|
|
50
|
+
if (process.env.PATH) base.PATH = process.env.PATH;
|
|
51
|
+
if (process.env.LANG) base.LANG = process.env.LANG;
|
|
52
|
+
if (process.env.TMPDIR) base.TMPDIR = process.env.TMPDIR;
|
|
53
|
+
return { ...base, ...overrides ?? {} };
|
|
54
|
+
}
|
|
55
|
+
function inferDockerImage(request) {
|
|
56
|
+
if (request.image) return request.image;
|
|
57
|
+
const cmd = request.command.toLowerCase();
|
|
58
|
+
if (cmd.includes("python")) return "python:3.11-slim";
|
|
59
|
+
if (cmd.includes("node") || cmd.includes("npm") || cmd.includes("pnpm")) {
|
|
60
|
+
return "node:22-bookworm-slim";
|
|
61
|
+
}
|
|
62
|
+
return "ubuntu:24.04";
|
|
63
|
+
}
|
|
64
|
+
var LocalSandboxRunner = class {
|
|
65
|
+
name = "local";
|
|
66
|
+
async run(request) {
|
|
67
|
+
return await runProcess({
|
|
68
|
+
command: request.command,
|
|
69
|
+
args: request.args ?? [],
|
|
70
|
+
cwd: request.cwd,
|
|
71
|
+
env: buildMinimalEnv(request.env),
|
|
72
|
+
timeoutMs: request.timeoutMs
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var DockerSandboxRunner = class {
|
|
77
|
+
name = "docker";
|
|
78
|
+
async run(request) {
|
|
79
|
+
const image = inferDockerImage(request);
|
|
80
|
+
const cwd = request.cwd ? path.resolve(request.cwd) : process.cwd();
|
|
81
|
+
const workdir = request.workdir ?? "/workspace";
|
|
82
|
+
const args = [
|
|
83
|
+
"run",
|
|
84
|
+
"--rm",
|
|
85
|
+
"--init",
|
|
86
|
+
"--read-only",
|
|
87
|
+
"--tmpfs",
|
|
88
|
+
"/tmp",
|
|
89
|
+
"--tmpfs",
|
|
90
|
+
"/var/tmp",
|
|
91
|
+
"--workdir",
|
|
92
|
+
workdir
|
|
93
|
+
];
|
|
94
|
+
const networkMode = request.network ?? "none";
|
|
95
|
+
if (networkMode === "none") {
|
|
96
|
+
args.push("--network", "none");
|
|
97
|
+
}
|
|
98
|
+
if (typeof request.cpuLimit === "number" && Number.isFinite(request.cpuLimit)) {
|
|
99
|
+
args.push("--cpus", String(request.cpuLimit));
|
|
100
|
+
}
|
|
101
|
+
if (typeof request.memoryMb === "number" && Number.isFinite(request.memoryMb)) {
|
|
102
|
+
args.push("--memory", `${Math.floor(request.memoryMb)}m`);
|
|
103
|
+
}
|
|
104
|
+
if (fs.existsSync(cwd)) {
|
|
105
|
+
args.push("-v", `${cwd}:${workdir}:ro`);
|
|
106
|
+
}
|
|
107
|
+
const env = buildMinimalEnv(request.env);
|
|
108
|
+
for (const [key, value] of Object.entries(env)) {
|
|
109
|
+
if (!key) continue;
|
|
110
|
+
args.push("-e", `${key}=${value}`);
|
|
111
|
+
}
|
|
112
|
+
args.push("--user", "65534:65534");
|
|
113
|
+
args.push(image);
|
|
114
|
+
args.push(request.command);
|
|
115
|
+
args.push(...request.args ?? []);
|
|
116
|
+
return await runProcess({
|
|
117
|
+
command: "docker",
|
|
118
|
+
args,
|
|
119
|
+
cwd: void 0,
|
|
120
|
+
env: buildMinimalEnv(),
|
|
121
|
+
timeoutMs: request.timeoutMs ?? 12e4
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
function createSandboxRunner(driver) {
|
|
126
|
+
if (driver === "docker") {
|
|
127
|
+
return new DockerSandboxRunner();
|
|
128
|
+
}
|
|
129
|
+
return new LocalSandboxRunner();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export {
|
|
133
|
+
LocalSandboxRunner,
|
|
134
|
+
DockerSandboxRunner,
|
|
135
|
+
createSandboxRunner
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=chunk-IEKAYVA3.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
+
};
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
__require,
|
|
39
|
+
__commonJS,
|
|
40
|
+
__export,
|
|
41
|
+
__toESM
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=chunk-IGKYKEKT.js.map
|