mastra 0.10.3 → 0.10.4-alpha.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/dist/{chunk-LDPP24SN.js → chunk-OPWLTSCW.js} +2 -2
- package/dist/commands/create/create.js +1 -1
- package/dist/index.js +57 -57
- package/package.json +13 -12
- package/src/playground/dist/assets/{index-Bf3ui-Dh.js → index-BGbMrToA.js} +1 -1
- package/src/playground/dist/assets/index-C410HbRF.js +742 -0
- package/src/playground/dist/assets/{index-C8IECQ52.js → index-CGDS8Qzq.js} +1 -1
- package/src/playground/dist/assets/style-C8pQhOQV.css +1 -0
- package/src/playground/dist/index.html +2 -2
- package/src/playground/dist/assets/index-CbCG7uXZ.js +0 -756
- package/src/playground/dist/assets/style-DcUvDmZh.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as p from '@clack/prompts';
|
|
2
2
|
import color2 from 'picocolors';
|
|
3
|
-
import child_process from '
|
|
4
|
-
import util from '
|
|
3
|
+
import child_process from 'child_process';
|
|
4
|
+
import util from 'util';
|
|
5
5
|
import * as fs3 from 'fs';
|
|
6
6
|
import fs3__default, { existsSync } from 'fs';
|
|
7
7
|
import fs4 from 'fs/promises';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-OPWLTSCW.js';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
3
3
|
export { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
4
|
-
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-
|
|
5
|
-
export { create } from './chunk-
|
|
4
|
+
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-OPWLTSCW.js';
|
|
5
|
+
export { create } from './chunk-OPWLTSCW.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { config } from 'dotenv';
|
|
8
|
-
import { join
|
|
8
|
+
import { join, dirname } from 'path';
|
|
9
9
|
import { getServerOptions, FileService as FileService$2, getWatcherInputOptions, writeTelemetryConfig, createWatcher } from '@mastra/deployer/build';
|
|
10
10
|
import { Bundler } from '@mastra/deployer/bundler';
|
|
11
11
|
import { getDeployer, FileService as FileService$1 } from '@mastra/deployer';
|
|
12
|
-
import { join } from 'path';
|
|
13
12
|
import { isWebContainer } from '@webcontainer/env';
|
|
14
13
|
import { execa } from 'execa';
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
14
|
+
import getPort from 'get-port';
|
|
15
|
+
import { writeFile } from 'fs/promises';
|
|
16
|
+
import { fileURLToPath } from 'url';
|
|
17
17
|
import * as fsExtra from 'fs-extra';
|
|
18
18
|
import fs, { readFileSync } from 'fs';
|
|
19
19
|
import stripJsonComments from 'strip-json-comments';
|
|
@@ -101,13 +101,13 @@ var BuildBundler = class extends Bundler {
|
|
|
101
101
|
};
|
|
102
102
|
async function build({ dir: dir2, tools, root }) {
|
|
103
103
|
const rootDir = root || process.cwd();
|
|
104
|
-
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join
|
|
105
|
-
const outputDirectory = join
|
|
106
|
-
const defaultToolsPath = join
|
|
104
|
+
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(rootDir, dir2) : join(rootDir, "src", "mastra");
|
|
105
|
+
const outputDirectory = join(rootDir, ".mastra");
|
|
106
|
+
const defaultToolsPath = join(mastraDir, "tools/**/*");
|
|
107
107
|
const discoveredTools = [defaultToolsPath, ...tools ?? []];
|
|
108
108
|
try {
|
|
109
109
|
const fs2 = new FileService();
|
|
110
|
-
const mastraEntryFile = fs2.getFirstExistingFile([join
|
|
110
|
+
const mastraEntryFile = fs2.getFirstExistingFile([join(mastraDir, "index.ts"), join(mastraDir, "index.js")]);
|
|
111
111
|
const platformDeployer = await getDeployer(mastraEntryFile, outputDirectory);
|
|
112
112
|
if (!platformDeployer) {
|
|
113
113
|
const deployer = new BuildBundler();
|
|
@@ -181,8 +181,8 @@ var DevBundler = class extends Bundler {
|
|
|
181
181
|
await super.prepare(outputDirectory);
|
|
182
182
|
const __filename = fileURLToPath(import.meta.url);
|
|
183
183
|
const __dirname = dirname(__filename);
|
|
184
|
-
const playgroundServePath = join
|
|
185
|
-
await fsExtra.copy(join
|
|
184
|
+
const playgroundServePath = join(outputDirectory, this.outputDir, "playground");
|
|
185
|
+
await fsExtra.copy(join(dirname(__dirname), "src/playground/dist"), playgroundServePath, {
|
|
186
186
|
overwrite: true
|
|
187
187
|
});
|
|
188
188
|
}
|
|
@@ -194,9 +194,9 @@ var DevBundler = class extends Bundler {
|
|
|
194
194
|
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV || "development")
|
|
195
195
|
});
|
|
196
196
|
const toolsInputOptions = await this.getToolsInputOptions(toolsPaths);
|
|
197
|
-
await writeTelemetryConfig(entryFile, join
|
|
198
|
-
await this.writeInstrumentationFile(join
|
|
199
|
-
const outputDir = join
|
|
197
|
+
await writeTelemetryConfig(entryFile, join(outputDirectory, this.outputDir));
|
|
198
|
+
await this.writeInstrumentationFile(join(outputDirectory, this.outputDir));
|
|
199
|
+
const outputDir = join(outputDirectory, this.outputDir);
|
|
200
200
|
const copyPublic = this.copyPublic.bind(this);
|
|
201
201
|
const watcher = await createWatcher(
|
|
202
202
|
{
|
|
@@ -216,7 +216,7 @@ var DevBundler = class extends Bundler {
|
|
|
216
216
|
{
|
|
217
217
|
name: "public-dir-watcher",
|
|
218
218
|
buildStart() {
|
|
219
|
-
this.addWatchFile(join
|
|
219
|
+
this.addWatchFile(join(dirname(entryFile), "public"));
|
|
220
220
|
},
|
|
221
221
|
buildEnd() {
|
|
222
222
|
return copyPublic(dirname(entryFile), outputDirectory);
|
|
@@ -226,12 +226,12 @@ var DevBundler = class extends Bundler {
|
|
|
226
226
|
name: "tools-watcher",
|
|
227
227
|
async buildEnd() {
|
|
228
228
|
const toolsInputPaths = Array.from(Object.keys(toolsInputOptions || {})).filter((key) => key.startsWith("tools/")).map((key) => `./${key}.mjs`);
|
|
229
|
-
await writeFile(join
|
|
229
|
+
await writeFile(join(outputDir, "tools.mjs"), `export const tools = ${JSON.stringify(toolsInputPaths)};`);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
],
|
|
233
233
|
input: {
|
|
234
|
-
index: join
|
|
234
|
+
index: join(__dirname, "templates", "dev.entry.js"),
|
|
235
235
|
...toolsInputOptions
|
|
236
236
|
}
|
|
237
237
|
},
|
|
@@ -265,9 +265,9 @@ var DevBundler = class extends Bundler {
|
|
|
265
265
|
// src/commands/dev/dev.ts
|
|
266
266
|
var currentServerProcess;
|
|
267
267
|
var isRestarting = false;
|
|
268
|
-
var errorRestartCount = 0;
|
|
269
268
|
var ON_ERROR_MAX_RESTARTS = 3;
|
|
270
|
-
var startServer = async (dotMastraPath, port, env) => {
|
|
269
|
+
var startServer = async (dotMastraPath, port, env, errorRestartCount = 0) => {
|
|
270
|
+
let serverIsReady = false;
|
|
271
271
|
try {
|
|
272
272
|
logger.info("[Mastra Dev] - Starting server...");
|
|
273
273
|
const commands = [];
|
|
@@ -275,6 +275,15 @@ var startServer = async (dotMastraPath, port, env) => {
|
|
|
275
275
|
const instrumentation = import.meta.resolve("@opentelemetry/instrumentation/hook.mjs");
|
|
276
276
|
commands.push("--import=./instrumentation.mjs", `--import=${instrumentation}`);
|
|
277
277
|
}
|
|
278
|
+
let portToUse = port.toString() || process.env.PORT;
|
|
279
|
+
if (!portToUse || isNaN(Number(portToUse))) {
|
|
280
|
+
const portList = Array.from({ length: 21 }, (_, i) => 4111 + i);
|
|
281
|
+
portToUse = String(
|
|
282
|
+
await getPort({
|
|
283
|
+
port: portList
|
|
284
|
+
})
|
|
285
|
+
);
|
|
286
|
+
}
|
|
278
287
|
commands.push("index.mjs");
|
|
279
288
|
currentServerProcess = execa("node", commands, {
|
|
280
289
|
cwd: dotMastraPath,
|
|
@@ -282,22 +291,12 @@ var startServer = async (dotMastraPath, port, env) => {
|
|
|
282
291
|
NODE_ENV: "production",
|
|
283
292
|
...Object.fromEntries(env),
|
|
284
293
|
MASTRA_DEV: "true",
|
|
285
|
-
PORT:
|
|
294
|
+
PORT: portToUse.toString(),
|
|
286
295
|
MASTRA_DEFAULT_STORAGE_URL: `file:${join(dotMastraPath, "..", "mastra.db")}`
|
|
287
296
|
},
|
|
288
|
-
stdio: "inherit",
|
|
297
|
+
stdio: ["inherit", "inherit", "inherit", "ipc"],
|
|
289
298
|
reject: false
|
|
290
299
|
});
|
|
291
|
-
currentServerProcess.on("close", (code) => {
|
|
292
|
-
if (!code) {
|
|
293
|
-
logger.info("Server exited, restarting...");
|
|
294
|
-
setTimeout(() => {
|
|
295
|
-
if (!isRestarting) {
|
|
296
|
-
startServer(dotMastraPath, port, env);
|
|
297
|
-
}
|
|
298
|
-
}, 1e3);
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
300
|
if (currentServerProcess?.exitCode && currentServerProcess?.exitCode !== 0) {
|
|
302
301
|
if (!currentServerProcess) {
|
|
303
302
|
throw new Error(`Server failed to start`);
|
|
@@ -306,35 +305,37 @@ var startServer = async (dotMastraPath, port, env) => {
|
|
|
306
305
|
`Server failed to start with error: ${currentServerProcess.stderr || currentServerProcess.stdout}`
|
|
307
306
|
);
|
|
308
307
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
308
|
+
currentServerProcess.on("message", async (message) => {
|
|
309
|
+
if (message?.type === "server-ready") {
|
|
310
|
+
serverIsReady = true;
|
|
311
|
+
try {
|
|
312
|
+
await fetch(`http://localhost:${port}/__refresh`, {
|
|
313
|
+
method: "POST",
|
|
314
|
+
headers: {
|
|
315
|
+
"Content-Type": "application/json"
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
} catch {
|
|
319
|
+
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
320
|
+
try {
|
|
321
|
+
await fetch(`http://localhost:${port}/__refresh`, {
|
|
322
|
+
method: "POST",
|
|
323
|
+
headers: {
|
|
324
|
+
"Content-Type": "application/json"
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
} catch {
|
|
324
328
|
}
|
|
325
|
-
}
|
|
326
|
-
} catch {
|
|
329
|
+
}
|
|
327
330
|
}
|
|
328
|
-
}
|
|
329
|
-
if (currentServerProcess.exitCode !== null) {
|
|
330
|
-
throw new Error(
|
|
331
|
-
`Server failed to start with error: ${currentServerProcess.stderr || currentServerProcess.stdout}`
|
|
332
|
-
);
|
|
333
|
-
}
|
|
331
|
+
});
|
|
334
332
|
} catch (err) {
|
|
335
333
|
const execaError = err;
|
|
336
334
|
if (execaError.stderr) logger.error("Server error output:", { stderr: execaError.stderr });
|
|
337
335
|
if (execaError.stdout) logger.debug("Server output:", { stdout: execaError.stdout });
|
|
336
|
+
if (!serverIsReady) {
|
|
337
|
+
throw err;
|
|
338
|
+
}
|
|
338
339
|
setTimeout(() => {
|
|
339
340
|
if (!isRestarting) {
|
|
340
341
|
errorRestartCount++;
|
|
@@ -345,7 +346,7 @@ var startServer = async (dotMastraPath, port, env) => {
|
|
|
345
346
|
logger.error(
|
|
346
347
|
`Attempting to restart server after error... (Attempt ${errorRestartCount}/${ON_ERROR_MAX_RESTARTS})`
|
|
347
348
|
);
|
|
348
|
-
startServer(dotMastraPath, port, env);
|
|
349
|
+
startServer(dotMastraPath, port, env, errorRestartCount);
|
|
349
350
|
}
|
|
350
351
|
}, 1e3);
|
|
351
352
|
}
|
|
@@ -372,7 +373,6 @@ async function dev({
|
|
|
372
373
|
root,
|
|
373
374
|
tools
|
|
374
375
|
}) {
|
|
375
|
-
errorRestartCount = 0;
|
|
376
376
|
const rootDir = root || process.cwd();
|
|
377
377
|
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(process.cwd(), dir2) : join(process.cwd(), "src", "mastra");
|
|
378
378
|
const dotMastraPath = join(rootDir, ".mastra");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4-alpha.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
"@opentelemetry/instrumentation": "^0.57.2",
|
|
40
40
|
"@webcontainer/env": "^1.1.1",
|
|
41
41
|
"commander": "^12.1.0",
|
|
42
|
-
"dotenv": "^16.
|
|
42
|
+
"dotenv": "^16.5.0",
|
|
43
43
|
"execa": "^9.5.2",
|
|
44
44
|
"fs-extra": "^11.3.0",
|
|
45
|
+
"get-port": "^7.1.0",
|
|
45
46
|
"json-schema-to-zod": "^2.6.0",
|
|
46
47
|
"picocolors": "^1.1.1",
|
|
47
48
|
"posthog-node": "4.16.0",
|
|
@@ -56,30 +57,30 @@
|
|
|
56
57
|
"yocto-spinner": "^0.1.2",
|
|
57
58
|
"zod": "^3.24.3",
|
|
58
59
|
"zod-to-json-schema": "^3.24.5",
|
|
59
|
-
"@mastra/deployer": "^0.10.
|
|
60
|
+
"@mastra/deployer": "^0.10.4-alpha.0",
|
|
60
61
|
"@mastra/mcp": "^0.10.2",
|
|
61
|
-
"@mastra/loggers": "^0.10.
|
|
62
|
+
"@mastra/loggers": "^0.10.2-alpha.0"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
|
-
"@microsoft/api-extractor": "^7.52.
|
|
65
|
+
"@microsoft/api-extractor": "^7.52.8",
|
|
65
66
|
"@types/fs-extra": "^11.0.4",
|
|
66
|
-
"@types/node": "^20.17.
|
|
67
|
+
"@types/node": "^20.17.57",
|
|
67
68
|
"@types/prompt": "^1.1.9",
|
|
68
69
|
"@types/shell-quote": "^1.7.5",
|
|
69
70
|
"@types/tcp-port-used": "^1.0.4",
|
|
70
71
|
"cpy-cli": "^5.0.0",
|
|
71
|
-
"eslint": "^9.
|
|
72
|
+
"eslint": "^9.28.0",
|
|
72
73
|
"memfs": "^4.17.0",
|
|
73
74
|
"npm-run-all2": "^7.0.2",
|
|
74
|
-
"rollup": "^4.
|
|
75
|
-
"tsup": "^8.
|
|
75
|
+
"rollup": "^4.41.1",
|
|
76
|
+
"tsup": "^8.5.0",
|
|
76
77
|
"type-fest": "^4.37.0",
|
|
77
78
|
"typescript": "^5.8.2",
|
|
78
79
|
"vitest": "^3.1.2",
|
|
79
80
|
"@internal/lint": "0.0.10",
|
|
80
|
-
"@mastra/
|
|
81
|
-
"@mastra/playground-ui": "5.1.
|
|
82
|
-
"@mastra/
|
|
81
|
+
"@mastra/core": "0.10.4-alpha.0",
|
|
82
|
+
"@mastra/playground-ui": "5.1.4-alpha.0",
|
|
83
|
+
"@mastra/client-js": "0.10.3-alpha.0"
|
|
83
84
|
},
|
|
84
85
|
"peerDependencies": {
|
|
85
86
|
"@mastra/core": "^0.10.2-alpha.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ve,g as Lp}from"./index-CbCG7uXZ.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
1
|
+
import{d as ve,g as Lp}from"./index-C410HbRF.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
3
|
*
|
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|