@nuxt/devtools 3.4.0 → 3.4.2
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/chunks/module-main.mjs +32 -32
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-m8zc7gto.js +1 -0
- package/dist/client/_nuxt/analyze-build-jwi76dz3.js +1 -0
- package/dist/client/_nuxt/assets-cpph6v46.js +6 -0
- package/dist/client/_nuxt/auth-required-panel-pb5dyado.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/4881c231-9888-448f-8cc1-afa9e4e8d161.json +1 -0
- package/dist/client/_nuxt/{client-eh4ejzq8.js → client-jl5q3rle.js} +1 -1
- package/dist/client/_nuxt/client-kw9rd8gy.js +2 -0
- package/dist/client/_nuxt/code-diff-icy7s1zb.js +8 -0
- package/dist/client/_nuxt/code-snippets-iyqjogm4.js +1 -0
- package/dist/client/_nuxt/components-wm13ypb1.js +1 -0
- package/dist/client/_nuxt/composable-item-1gg3w2nv.js +1 -0
- package/dist/client/_nuxt/composables-hpsx8udx.js +1 -0
- package/dist/client/_nuxt/custom-_name_-yd1nhb2d.js +1 -0
- package/dist/client/_nuxt/data-schema-button-gmxlrj4u.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-htftrpm4.js +2 -0
- package/dist/client/_nuxt/debug-esphaczf.js +1 -0
- package/dist/client/_nuxt/default-l4jud1s1.js +1 -0
- package/dist/client/_nuxt/dist-das2ggjj.js +1 -0
- package/dist/client/_nuxt/dist-ekw95yvx.js +1 -0
- package/dist/client/_nuxt/dist-f9baaez8.js +1 -0
- package/dist/client/_nuxt/dist-mpe1u0aj.js +1 -0
- package/dist/client/_nuxt/duration-display-i95mp3xf.js +1 -0
- package/dist/client/_nuxt/editor-gio3gzf5.js +1 -0
- package/dist/client/_nuxt/entry.css-du3mqati.css +1 -0
- package/dist/client/_nuxt/error-404-e9k252nl.js +1 -0
- package/dist/client/_nuxt/error-404.css-ndkb77p4.css +1 -0
- package/dist/client/_nuxt/error-500-l00l2o83.js +1 -0
- package/dist/client/_nuxt/error-500.css-iay0iq8l.css +1 -0
- package/dist/client/_nuxt/error-dtx3jz5a.js +9 -0
- package/dist/client/_nuxt/filepath-item-n14cgzrq.js +1 -0
- package/dist/client/_nuxt/full-e41d06vk.js +1 -0
- package/dist/client/_nuxt/fuse-blwyun20.js +1 -0
- package/dist/client/_nuxt/help-fab-bxbzpji6.js +1 -0
- package/dist/client/_nuxt/hooks-b2zozecc.js +1 -0
- package/dist/client/_nuxt/imports-chkhxfjf.js +1 -0
- package/dist/client/_nuxt/launch-page-4gmg3dre.js +1 -0
- package/dist/client/_nuxt/modules-d4yrgxt0.js +1 -0
- package/dist/client/_nuxt/nbadge-gxsw3trl.js +1 -0
- package/dist/client/_nuxt/nbutton-n4jak7c4.js +1 -0
- package/dist/client/_nuxt/ncard-nwvxjytu.js +1 -0
- package/dist/client/_nuxt/ncheckbox-g0h4v30t.js +1 -0
- package/dist/client/_nuxt/ncode-block-pepewqmk.js +2 -0
- package/dist/client/_nuxt/{ncode-block.css-o2ixs97j.css → ncode-block.css-ivoxtfjk.css} +1 -1
- package/dist/client/_nuxt/ndark-toggle-hg693j9b.js +1 -0
- package/dist/client/_nuxt/ndialog-d7onas5p.js +3 -0
- package/dist/client/_nuxt/ndrawer-rf7qwkr7.js +1 -0
- package/dist/client/_nuxt/ndropdown-hei8kmpv.js +1 -0
- package/dist/client/_nuxt/nicon-oi9zv8qe.js +1 -0
- package/dist/client/_nuxt/nicon-title-ckh1far6.js +1 -0
- package/dist/client/_nuxt/nlink-euky3zj2.js +1 -0
- package/dist/client/_nuxt/nloading-cxkye5sp.js +1 -0
- package/dist/client/_nuxt/nmarkdown-k6ubrkxy.js +1 -0
- package/dist/client/_nuxt/nnavbar-dxs3xl8m.js +1 -0
- package/dist/client/_nuxt/none-bqbddrhm.js +1 -0
- package/dist/client/_nuxt/npanel-grids-l34v8x7x.js +1 -0
- package/dist/client/_nuxt/npm-bs3acmpx.js +1 -0
- package/dist/client/_nuxt/nsection-block-deo3d5ca.js +1 -0
- package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +1 -0
- package/dist/client/_nuxt/nselect-bihfcl5d.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-e2nrw9h1.js +1 -0
- package/dist/client/_nuxt/nsplit-pane-c8b9c6ro.js +1 -0
- package/dist/client/_nuxt/nsplit-pane.css-o64elxn9.css +1 -0
- package/dist/client/_nuxt/nswitch-omy4wnlb.js +1 -0
- package/dist/client/_nuxt/ntext-input-m2w61kr5.js +1 -0
- package/dist/client/_nuxt/ntip-lla1rr8h.js +1 -0
- package/dist/client/_nuxt/nuxt-hhee6z5x.js +1 -0
- package/dist/client/_nuxt/nuxt-link-k77anppn.js +1 -0
- package/dist/client/_nuxt/nuxt-logo-fsli1c7y.js +1 -0
- package/dist/client/_nuxt/ooe3njda.js +2 -0
- package/dist/client/_nuxt/open-graph-djofx8ns.js +3 -0
- package/dist/client/_nuxt/overview-k2estfbu.js +1 -0
- package/dist/client/_nuxt/pages-inv9i4ar.js +1 -0
- package/dist/client/_nuxt/pages-mgwvumc9.js +1 -0
- package/dist/client/_nuxt/payload-c3lf06v2.js +1 -0
- package/dist/client/_nuxt/pinia-pdgcbxdt.js +1 -0
- package/dist/client/_nuxt/plugins-kv2qt5pc.js +1 -0
- package/dist/client/_nuxt/ready-j6igpruf.js +1 -0
- package/dist/client/_nuxt/render-tree-ok5eju7s.js +1 -0
- package/dist/client/_nuxt/rolldown-runtime-f96lzs6p.js +1 -0
- package/dist/client/_nuxt/runtime-configs-nrru3mzu.js +1 -0
- package/dist/client/_nuxt/server-discovery-b5y0tq1d.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-8c4zt2y4.js +1 -0
- package/dist/client/_nuxt/server-routes-jrdh3byh.js +7 -0
- package/dist/client/_nuxt/server-tasks-i1wtl0e8.js +1 -0
- package/dist/client/_nuxt/settings-id2aeyhn.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-mx9jtxx1.js +1 -0
- package/dist/client/_nuxt/state-components-dngh0clc.js +1 -0
- package/dist/client/_nuxt/state-editor-kg5k3jvy.js +1 -0
- package/dist/client/_nuxt/state-modules-gz46qq7c.js +1 -0
- package/dist/client/_nuxt/state-routes-ckw7s1pq.js +1 -0
- package/dist/client/_nuxt/state-schema-dl4a0tzs.js +1 -0
- package/dist/client/_nuxt/state-subprocess-omk907f9.js +1 -0
- package/dist/client/_nuxt/state-tabs-fe58vmvu.js +1 -0
- package/dist/client/_nuxt/storage-gflmc532.js +1 -0
- package/dist/client/_nuxt/storage-options-h4ted7ut.js +1 -0
- package/dist/client/_nuxt/storage-zf5nkzhm.js +1 -0
- package/dist/client/_nuxt/tab-icon-errppxip.js +1 -0
- package/dist/client/_nuxt/telemetry-pbqlai15.js +1 -0
- package/dist/client/_nuxt/terminals-lx3nbgm4.js +1 -0
- package/dist/client/_nuxt/timeline-ozwer8h0.js +31 -0
- package/dist/client/_nuxt/unhead.dgx-hwv-uc-b7trhqv8.js +1 -0
- package/dist/client/_nuxt/{unocss-runtime-hldtyz3c.js → unocss-runtime-ys3yvxrm.js} +1 -1
- package/dist/client/_nuxt/utils-gsui1utc.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-ajxjng9j.js +3870 -0
- package/dist/client/_nuxt/vendor/markdown-it-hplpr18t.js +14 -0
- package/dist/client/_nuxt/vendor/quicktype-core-m8x9xlg1.js +929 -0
- package/dist/client/_nuxt/vendor/shiki-k3jqtxcz.js +293 -0
- package/dist/client/_nuxt/vendor/unocss-j0l832tn.js +3 -0
- package/dist/client/_nuxt/vendor/unocss.css-flyrgbwp.css +1 -0
- package/dist/client/_nuxt/vendor/vis-kujfrgx6.js +26 -0
- package/dist/client/_nuxt/vendor/xterm-ilcgri3k.js +18 -0
- package/dist/client/_nuxt/vendor/{xterm.css-jqmddlol.css → xterm.css-j9zpjwmg.css} +1 -1
- package/dist/client/_nuxt/virtual-files-dkyeb46c.js +1 -0
- package/dist/client/_nuxt/vue-devtools-imrq5lm7.js +4 -0
- package/dist/client/discovery/index.html +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/shared/{devtools.Soe0SAC8.mjs → devtools.DFpGUHRZ.mjs} +1 -1
- package/dist/webcomponents/index.mjs +93 -69
- package/package.json +52 -50
- package/dist/client/_nuxt/__blank-o2muls23.js +0 -1
- package/dist/client/_nuxt/analyze-build-kjyk398o.js +0 -1
- package/dist/client/_nuxt/assets-ecwtrmuk.js +0 -6
- package/dist/client/_nuxt/builds/meta/04180599-af74-454c-91e0-3d5527eae2fc.json +0 -1
- package/dist/client/_nuxt/code-diff-el8puwy4.js +0 -8
- package/dist/client/_nuxt/code-snippets-i5i2u9zz.js +0 -1
- package/dist/client/_nuxt/components-iwfpkbz3.js +0 -1
- package/dist/client/_nuxt/composable-item-e8kv7080.js +0 -1
- package/dist/client/_nuxt/custom-_name_-ft6dg0e3.js +0 -1
- package/dist/client/_nuxt/data-schema-button-hx1dia1u.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-iw791a0n.js +0 -2
- package/dist/client/_nuxt/debug-f1y4ok7e.js +0 -1
- package/dist/client/_nuxt/default-i5dr248x.js +0 -1
- package/dist/client/_nuxt/dist-hjee3mrt.js +0 -1
- package/dist/client/_nuxt/dist-ibflnriz.js +0 -1
- package/dist/client/_nuxt/duration-display-ce789vbq.js +0 -1
- package/dist/client/_nuxt/entry.css-ceee1hqk.css +0 -1
- package/dist/client/_nuxt/error-404-hwu9ougr.js +0 -1
- package/dist/client/_nuxt/error-404.css-cwq14vxz.css +0 -1
- package/dist/client/_nuxt/error-500-gbqjpcce.js +0 -1
- package/dist/client/_nuxt/error-500.css-hftlqubg.css +0 -1
- package/dist/client/_nuxt/error-g08v33x2.js +0 -9
- package/dist/client/_nuxt/filepath-item-cfknf7u4.js +0 -1
- package/dist/client/_nuxt/full-fv9atfrx.js +0 -1
- package/dist/client/_nuxt/help-fab-kzusjvzh.js +0 -1
- package/dist/client/_nuxt/hooks-m7w83qkt.js +0 -1
- package/dist/client/_nuxt/imports-m5e06d1m.js +0 -1
- package/dist/client/_nuxt/launch-page-k1jy2olz.js +0 -1
- package/dist/client/_nuxt/mitt.es-is6qb9uo.js +0 -1
- package/dist/client/_nuxt/modules-ocni0pmc.js +0 -1
- package/dist/client/_nuxt/nbadge-dq091bml.js +0 -1
- package/dist/client/_nuxt/ncheckbox-oaojay1f.js +0 -1
- package/dist/client/_nuxt/ncode-block-jmq04laj.js +0 -2
- package/dist/client/_nuxt/ndrawer-iq9tsfcb.js +0 -1
- package/dist/client/_nuxt/ndropdown-bzq1eo9l.js +0 -1
- package/dist/client/_nuxt/nicon-title-kclz18f2.js +0 -1
- package/dist/client/_nuxt/nlink-oovljifl.js +0 -1
- package/dist/client/_nuxt/nmarkdown-mnforar7.js +0 -1
- package/dist/client/_nuxt/nnavbar-dy6zssbb.js +0 -1
- package/dist/client/_nuxt/none-hmdczuga.js +0 -1
- package/dist/client/_nuxt/nsection-block-mm2ln8au.js +0 -1
- package/dist/client/_nuxt/nsection-block.css-h05mpq8x.css +0 -1
- package/dist/client/_nuxt/nselect-cvj6vn8t.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-bnxyj6c3.js +0 -1
- package/dist/client/_nuxt/nswitch-nii7reuz.js +0 -1
- package/dist/client/_nuxt/open-graph-e5ujlf0w.js +0 -3
- package/dist/client/_nuxt/overview-k1lqhpdx.js +0 -1
- package/dist/client/_nuxt/owz5kq17.js +0 -4
- package/dist/client/_nuxt/pages-e8109ruk.js +0 -1
- package/dist/client/_nuxt/pages-ja4oy9os.js +0 -1
- package/dist/client/_nuxt/payload-evlvpptz.js +0 -1
- package/dist/client/_nuxt/pinia-eb8q0lb7.js +0 -1
- package/dist/client/_nuxt/plugins-n65vqkm5.js +0 -1
- package/dist/client/_nuxt/render-tree-lcd73hdy.js +0 -1
- package/dist/client/_nuxt/rolldown-runtime-ga5ujxqr.js +0 -1
- package/dist/client/_nuxt/runtime-configs-novpfnwf.js +0 -1
- package/dist/client/_nuxt/server-discovery-e129227e.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-jyu03h3d.js +0 -1
- package/dist/client/_nuxt/server-routes-cuzpq3e6.js +0 -7
- package/dist/client/_nuxt/server-tasks-k13zuqrk.js +0 -1
- package/dist/client/_nuxt/settings-e3yeoaaw.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-n2oy2o29.js +0 -1
- package/dist/client/_nuxt/state-components-kbt6b53p.js +0 -1
- package/dist/client/_nuxt/state-editor-d3ywfwuf.js +0 -1
- package/dist/client/_nuxt/state-modules-g1xroclg.js +0 -1
- package/dist/client/_nuxt/storage-bsevx2m8.js +0 -1
- package/dist/client/_nuxt/terminals-om2sdbvh.js +0 -1
- package/dist/client/_nuxt/timeline-fl3dqhun.js +0 -31
- package/dist/client/_nuxt/vendor/json-editor-vue-k2rpz34q.js +0 -3869
- package/dist/client/_nuxt/vendor/markdown-it-ic0av7un.js +0 -14
- package/dist/client/_nuxt/vendor/quicktype-core-781ta3pq.js +0 -929
- package/dist/client/_nuxt/vendor/shiki-nsxcfb7q.js +0 -153
- package/dist/client/_nuxt/vendor/unocss-c4v2jnrn.js +0 -3
- package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +0 -1
- package/dist/client/_nuxt/vendor/vis-fsrg25ku.js +0 -26
- package/dist/client/_nuxt/vendor/xterm-cys6o1g8.js +0 -36
- package/dist/client/_nuxt/virtual-files-irp1xg65.js +0 -1
- package/dist/client/_nuxt/vue-devtools-ixjb5uzw.js +0 -4
- /package/dist/client/_nuxt/{_plugin-vue_export-helper-e0bby96w.js → _plugin-vue_export-helper-d9irwgla.js} +0 -0
- /package/dist/client/_nuxt/{color-nuuzg844.js → color-abaog8vc.js} +0 -0
- /package/dist/client/_nuxt/{composables-dhks1pao.js → composables-ioamscf4.js} +0 -0
- /package/dist/client/_nuxt/{constants-dict8wns.js → constants-g2z8m4rs.js} +0 -0
|
@@ -6,7 +6,7 @@ import { colors } from 'consola/utils';
|
|
|
6
6
|
import { join, dirname as dirname$1, resolve, isAbsolute } from 'pathe';
|
|
7
7
|
import sirv from 'sirv';
|
|
8
8
|
import { searchForWorkspaceRoot } from 'vite';
|
|
9
|
-
import { d as defaultAllowedExtensions, a as defaultTabOptions, W as WS_EVENT_NAME } from '../shared/devtools.
|
|
9
|
+
import { d as defaultAllowedExtensions, a as defaultTabOptions, W as WS_EVENT_NAME } from '../shared/devtools.DFpGUHRZ.mjs';
|
|
10
10
|
import path, { dirname, join as join$1, relative, parse } from 'node:path';
|
|
11
11
|
import { hash } from 'ohash';
|
|
12
12
|
import { runtimeDir, clientDir, packageDir, isGlobalInstall } from '../dirs.mjs';
|
|
@@ -34,7 +34,7 @@ import { detectPackageManager } from 'nypm';
|
|
|
34
34
|
import semver from 'semver';
|
|
35
35
|
import { normalizeBaseKey, normalizeKey } from 'unstorage';
|
|
36
36
|
|
|
37
|
-
const version$1 = "3.4.
|
|
37
|
+
const version$1 = "3.4.2";
|
|
38
38
|
|
|
39
39
|
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
40
40
|
function randomStr(size = 16, dict = urlAlphabet) {
|
|
@@ -1338,10 +1338,10 @@ var pp$8 = Parser.prototype;
|
|
|
1338
1338
|
// to its body instead of creating a new node.
|
|
1339
1339
|
|
|
1340
1340
|
pp$8.parseTopLevel = function(node) {
|
|
1341
|
-
var exports
|
|
1341
|
+
var exports = Object.create(null);
|
|
1342
1342
|
if (!node.body) { node.body = []; }
|
|
1343
1343
|
while (this.type !== types$1.eof) {
|
|
1344
|
-
var stmt = this.parseStatement(null, true, exports
|
|
1344
|
+
var stmt = this.parseStatement(null, true, exports);
|
|
1345
1345
|
node.body.push(stmt);
|
|
1346
1346
|
}
|
|
1347
1347
|
if (this.inModule)
|
|
@@ -1449,7 +1449,7 @@ pp$8.isUsing = function(isFor) {
|
|
|
1449
1449
|
// `if (foo) /blah/.exec(foo)`, where looking at the previous token
|
|
1450
1450
|
// does not help.
|
|
1451
1451
|
|
|
1452
|
-
pp$8.parseStatement = function(context, topLevel, exports
|
|
1452
|
+
pp$8.parseStatement = function(context, topLevel, exports) {
|
|
1453
1453
|
var starttype = this.type, node = this.startNode(), kind;
|
|
1454
1454
|
|
|
1455
1455
|
if (this.isLet(context)) {
|
|
@@ -1504,7 +1504,7 @@ pp$8.parseStatement = function(context, topLevel, exports$1) {
|
|
|
1504
1504
|
if (!this.inModule)
|
|
1505
1505
|
{ this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); }
|
|
1506
1506
|
}
|
|
1507
|
-
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports
|
|
1507
|
+
return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
|
|
1508
1508
|
|
|
1509
1509
|
// If the statement does not start with a statement keyword or a
|
|
1510
1510
|
// brace, it's an ExpressionStatement or LabeledStatement. We
|
|
@@ -2265,11 +2265,11 @@ function checkKeyName(node, name) {
|
|
|
2265
2265
|
|
|
2266
2266
|
// Parses module export declaration.
|
|
2267
2267
|
|
|
2268
|
-
pp$8.parseExportAllDeclaration = function(node, exports
|
|
2268
|
+
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
2269
2269
|
if (this.options.ecmaVersion >= 11) {
|
|
2270
2270
|
if (this.eatContextual("as")) {
|
|
2271
2271
|
node.exported = this.parseModuleExportName();
|
|
2272
|
-
this.checkExport(exports
|
|
2272
|
+
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
2273
2273
|
} else {
|
|
2274
2274
|
node.exported = null;
|
|
2275
2275
|
}
|
|
@@ -2283,14 +2283,14 @@ pp$8.parseExportAllDeclaration = function(node, exports$1) {
|
|
|
2283
2283
|
return this.finishNode(node, "ExportAllDeclaration")
|
|
2284
2284
|
};
|
|
2285
2285
|
|
|
2286
|
-
pp$8.parseExport = function(node, exports
|
|
2286
|
+
pp$8.parseExport = function(node, exports) {
|
|
2287
2287
|
this.next();
|
|
2288
2288
|
// export * from '...'
|
|
2289
2289
|
if (this.eat(types$1.star)) {
|
|
2290
|
-
return this.parseExportAllDeclaration(node, exports
|
|
2290
|
+
return this.parseExportAllDeclaration(node, exports)
|
|
2291
2291
|
}
|
|
2292
2292
|
if (this.eat(types$1._default)) { // export default ...
|
|
2293
|
-
this.checkExport(exports
|
|
2293
|
+
this.checkExport(exports, "default", this.lastTokStart);
|
|
2294
2294
|
node.declaration = this.parseExportDefaultDeclaration();
|
|
2295
2295
|
return this.finishNode(node, "ExportDefaultDeclaration")
|
|
2296
2296
|
}
|
|
@@ -2298,16 +2298,16 @@ pp$8.parseExport = function(node, exports$1) {
|
|
|
2298
2298
|
if (this.shouldParseExportStatement()) {
|
|
2299
2299
|
node.declaration = this.parseExportDeclaration(node);
|
|
2300
2300
|
if (node.declaration.type === "VariableDeclaration")
|
|
2301
|
-
{ this.checkVariableExport(exports
|
|
2301
|
+
{ this.checkVariableExport(exports, node.declaration.declarations); }
|
|
2302
2302
|
else
|
|
2303
|
-
{ this.checkExport(exports
|
|
2303
|
+
{ this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
|
|
2304
2304
|
node.specifiers = [];
|
|
2305
2305
|
node.source = null;
|
|
2306
2306
|
if (this.options.ecmaVersion >= 16)
|
|
2307
2307
|
{ node.attributes = []; }
|
|
2308
2308
|
} else { // export { x, y as z } [from '...']
|
|
2309
2309
|
node.declaration = null;
|
|
2310
|
-
node.specifiers = this.parseExportSpecifiers(exports
|
|
2310
|
+
node.specifiers = this.parseExportSpecifiers(exports);
|
|
2311
2311
|
if (this.eatContextual("from")) {
|
|
2312
2312
|
if (this.type !== types$1.string) { this.unexpected(); }
|
|
2313
2313
|
node.source = this.parseExprAtom();
|
|
@@ -2357,47 +2357,47 @@ pp$8.parseExportDefaultDeclaration = function() {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
};
|
|
2359
2359
|
|
|
2360
|
-
pp$8.checkExport = function(exports
|
|
2361
|
-
if (!exports
|
|
2360
|
+
pp$8.checkExport = function(exports, name, pos) {
|
|
2361
|
+
if (!exports) { return }
|
|
2362
2362
|
if (typeof name !== "string")
|
|
2363
2363
|
{ name = name.type === "Identifier" ? name.name : name.value; }
|
|
2364
|
-
if (hasOwn(exports
|
|
2364
|
+
if (hasOwn(exports, name))
|
|
2365
2365
|
{ this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
|
|
2366
|
-
exports
|
|
2366
|
+
exports[name] = true;
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
|
-
pp$8.checkPatternExport = function(exports
|
|
2369
|
+
pp$8.checkPatternExport = function(exports, pat) {
|
|
2370
2370
|
var type = pat.type;
|
|
2371
2371
|
if (type === "Identifier")
|
|
2372
|
-
{ this.checkExport(exports
|
|
2372
|
+
{ this.checkExport(exports, pat, pat.start); }
|
|
2373
2373
|
else if (type === "ObjectPattern")
|
|
2374
2374
|
{ for (var i = 0, list = pat.properties; i < list.length; i += 1)
|
|
2375
2375
|
{
|
|
2376
2376
|
var prop = list[i];
|
|
2377
2377
|
|
|
2378
|
-
this.checkPatternExport(exports
|
|
2378
|
+
this.checkPatternExport(exports, prop);
|
|
2379
2379
|
} }
|
|
2380
2380
|
else if (type === "ArrayPattern")
|
|
2381
2381
|
{ for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
|
|
2382
2382
|
var elt = list$1[i$1];
|
|
2383
2383
|
|
|
2384
|
-
if (elt) { this.checkPatternExport(exports
|
|
2384
|
+
if (elt) { this.checkPatternExport(exports, elt); }
|
|
2385
2385
|
} }
|
|
2386
2386
|
else if (type === "Property")
|
|
2387
|
-
{ this.checkPatternExport(exports
|
|
2387
|
+
{ this.checkPatternExport(exports, pat.value); }
|
|
2388
2388
|
else if (type === "AssignmentPattern")
|
|
2389
|
-
{ this.checkPatternExport(exports
|
|
2389
|
+
{ this.checkPatternExport(exports, pat.left); }
|
|
2390
2390
|
else if (type === "RestElement")
|
|
2391
|
-
{ this.checkPatternExport(exports
|
|
2391
|
+
{ this.checkPatternExport(exports, pat.argument); }
|
|
2392
2392
|
};
|
|
2393
2393
|
|
|
2394
|
-
pp$8.checkVariableExport = function(exports
|
|
2395
|
-
if (!exports
|
|
2394
|
+
pp$8.checkVariableExport = function(exports, decls) {
|
|
2395
|
+
if (!exports) { return }
|
|
2396
2396
|
for (var i = 0, list = decls; i < list.length; i += 1)
|
|
2397
2397
|
{
|
|
2398
2398
|
var decl = list[i];
|
|
2399
2399
|
|
|
2400
|
-
this.checkPatternExport(exports
|
|
2400
|
+
this.checkPatternExport(exports, decl.id);
|
|
2401
2401
|
}
|
|
2402
2402
|
};
|
|
2403
2403
|
|
|
@@ -2412,13 +2412,13 @@ pp$8.shouldParseExportStatement = function() {
|
|
|
2412
2412
|
|
|
2413
2413
|
// Parses a comma-separated list of module exports.
|
|
2414
2414
|
|
|
2415
|
-
pp$8.parseExportSpecifier = function(exports
|
|
2415
|
+
pp$8.parseExportSpecifier = function(exports) {
|
|
2416
2416
|
var node = this.startNode();
|
|
2417
2417
|
node.local = this.parseModuleExportName();
|
|
2418
2418
|
|
|
2419
2419
|
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
2420
2420
|
this.checkExport(
|
|
2421
|
-
exports
|
|
2421
|
+
exports,
|
|
2422
2422
|
node.exported,
|
|
2423
2423
|
node.exported.start
|
|
2424
2424
|
);
|
|
@@ -2426,7 +2426,7 @@ pp$8.parseExportSpecifier = function(exports$1) {
|
|
|
2426
2426
|
return this.finishNode(node, "ExportSpecifier")
|
|
2427
2427
|
};
|
|
2428
2428
|
|
|
2429
|
-
pp$8.parseExportSpecifiers = function(exports
|
|
2429
|
+
pp$8.parseExportSpecifiers = function(exports) {
|
|
2430
2430
|
var nodes = [], first = true;
|
|
2431
2431
|
// export { x, y as z } [from '...']
|
|
2432
2432
|
this.expect(types$1.braceL);
|
|
@@ -2436,7 +2436,7 @@ pp$8.parseExportSpecifiers = function(exports$1) {
|
|
|
2436
2436
|
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
2437
2437
|
} else { first = false; }
|
|
2438
2438
|
|
|
2439
|
-
nodes.push(this.parseExportSpecifier(exports
|
|
2439
|
+
nodes.push(this.parseExportSpecifier(exports));
|
|
2440
2440
|
}
|
|
2441
2441
|
return nodes
|
|
2442
2442
|
};
|
package/dist/chunks/vscode.mjs
CHANGED
package/dist/client/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/ooe3njda.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-du3mqati.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-flyrgbwp.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane.css-o64elxn9.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ooe3njda.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-hhee6z5x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-ajxjng9j.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-f96lzs6p.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-j6igpruf.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-ekw95yvx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-gsui1utc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-f9baaez8.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-kw9rd8gy.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-k3jqtxcz.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unhead.dgx-hwv-uc-b7trhqv8.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/composables-hpsx8udx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-mpe1u0aj.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-k77anppn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-gflmc532.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npm-bs3acmpx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-h4ted7ut.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-j0l832tn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nloading-cxkye5sp.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-oi9zv8qe.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-n4jak7c4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndark-toggle-hg693j9b.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntip-lla1rr8h.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-nwvxjytu.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndialog-d7onas5p.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-pbqlai15.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/editor-gio3gzf5.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-ckw7s1pq.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/tab-icon-errppxip.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-fe58vmvu.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npanel-grids-l34v8x7x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane-c8b9c6ro.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-m2w61kr5.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/fuse-blwyun20.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-subprocess-omk907f9.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/auth-required-panel-pb5dyado.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-logo-fsli1c7y.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-schema-dl4a0tzs.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/ooe3njda.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-hplpr18t.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-l4jud1s1.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-e41d06vk.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-bqbddrhm.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-htftrpm4.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect-bihfcl5d.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch-omy4wnlb.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown-hei8kmpv.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block-pepewqmk.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-jl5q3rle.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer-rf7qwkr7.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-m8x9xlg1.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-ys3yvxrm.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-ndkb77p4.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-e9k252nl.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-iay0iq8l.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-l00l2o83.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"4881c231-9888-448f-8cc1-afa9e4e8d161",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1787439170991,false]</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/ooe3njda.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-du3mqati.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-flyrgbwp.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane.css-o64elxn9.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ooe3njda.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-hhee6z5x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-ajxjng9j.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-f96lzs6p.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-j6igpruf.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-ekw95yvx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-gsui1utc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-f9baaez8.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-kw9rd8gy.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-k3jqtxcz.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unhead.dgx-hwv-uc-b7trhqv8.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/composables-hpsx8udx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-mpe1u0aj.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-k77anppn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-gflmc532.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npm-bs3acmpx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-h4ted7ut.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-j0l832tn.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nloading-cxkye5sp.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-oi9zv8qe.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-n4jak7c4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndark-toggle-hg693j9b.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntip-lla1rr8h.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-nwvxjytu.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndialog-d7onas5p.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-pbqlai15.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/editor-gio3gzf5.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-ckw7s1pq.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/tab-icon-errppxip.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-fe58vmvu.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npanel-grids-l34v8x7x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane-c8b9c6ro.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-m2w61kr5.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/fuse-blwyun20.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-subprocess-omk907f9.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/auth-required-panel-pb5dyado.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-logo-fsli1c7y.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-schema-dl4a0tzs.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/ooe3njda.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-hplpr18t.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-l4jud1s1.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-e41d06vk.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-bqbddrhm.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-htftrpm4.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect-bihfcl5d.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch-omy4wnlb.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown-hei8kmpv.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block-pepewqmk.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-jl5q3rle.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer-rf7qwkr7.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-m8x9xlg1.js"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-ys3yvxrm.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-ndkb77p4.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-e9k252nl.js"><link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-iay0iq8l.css"><link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-l00l2o83.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"4881c231-9888-448f-8cc1-afa9e4e8d161",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1787439170995,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as e,W as t,_ as n}from"./vendor/json-editor-vue-ajxjng9j.js";import{t as r}from"./composables-ioamscf4.js";var i={"h-screen":``,"w-screen":``,"bg-black":``},a=e({__name:`__blank`,setup(e){return r({layout:`none`}),(e,r)=>(t(),n(`div`,i))}});export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./nuxt-hhee6z5x.js";import{C as t,Ct as n,Mt as r,Qt as i,S as a,T as o,W as s,Y as c,_ as l,dt as u,ft as d,g as f,h as p,m,p as h,s as g,tn as _}from"./vendor/json-editor-vue-ajxjng9j.js";import{at as v,xt as y}from"./ready-j6igpruf.js";import{_ as b,g as x}from"./utils-gsui1utc.js";import{A as S,h as C,k as w,l as T}from"./client-kw9rd8gy.js";import{t as E}from"./npm-bs3acmpx.js";import{t as D}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as O}from"./nbutton-n4jak7c4.js";import{t as k}from"./ntip-lla1rr8h.js";import{t as A}from"./ndialog-d7onas5p.js";import{r as j}from"./state-routes-ckw7s1pq.js";import{t as M}from"./telemetry-pbqlai15.js";import{t as N}from"./npanel-grids-l34v8x7x.js";import{t as P}from"./nsplit-pane-c8b9c6ro.js";import{t as F}from"./ntext-input-m2w61kr5.js";import{r as I,t as L}from"./state-subprocess-omk907f9.js";import{t as R}from"./ncode-block-pepewqmk.js";import{t as z}from"./composables-ioamscf4.js";import{t as B}from"./ncheckbox-g0h4v30t.js";import{t as V}from"./filepath-item-n14cgzrq.js";import{t as H}from"./help-fab-bxbzpji6.js";var U={"h-full":``,grid:`~ rows-[max-content_1fr]`},W={flex:`~ wrap`,"w-full":``},G=[`onClick`],K={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},q={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},J=`/__nuxt_devtools__/client`,Y=Object.assign(o({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(o){let p=o,v=`${e().app.baseURL.replace(J,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),b=h(()=>{let e=[{name:`Overview`,id:`overview`}];return p.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),p.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),p.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),x=n(b.value[0]);function w(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function E(e){return e<1024?`${e}B`:e<1048576?`${(e/1024).toFixed(1)}KB`:e<1073741824?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function D(e){return C.clearAnalyzeBuilds(await T(),[e])}return(e,n)=>{let p=V,h=O;return s(),l(`div`,U,[m(`div`,W,[(s(!0),l(g,null,c(b.value,(e,t)=>(s(),l(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e.id===x.value?.id?``:`border-b`),onClick:t=>x.value=e},[m(`div`,{class:i(e.id===x.value?.id?``:`op30`)},_(e.name),3)],10,G))),128)),n[1]||=m(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?.id===`overview`?(s(),l(`div`,K,[n[15]||=m(`div`,{"flex-auto":``},null,-1),m(`div`,q,[n[10]||=m(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),m(`div`,null,[n[2]||=m(`div`,{"text-sm":``,op50:``},` Name `,-1),m(`div`,null,_(o.current.name),1)]),n[11]||=m(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),m(`div`,null,[n[3]||=m(`div`,{"text-sm":``,op50:``},` Build duration `,-1),m(`div`,null,_(w(o.current)),1)]),o.current.size?.clientBundle?(s(),l(g,{key:0},[n[5]||=m(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),m(`div`,null,[n[4]||=m(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),m(`div`,null,_(E(o.current.size.clientBundle)),1)])],64)):f(``,!0),o.current.size?.nitroBundle?(s(),l(g,{key:1},[n[7]||=m(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),m(`div`,null,[n[6]||=m(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),m(`div`,null,_(E(o.current.size.nitroBundle)),1)])],64)):f(``,!0),n[12]||=m(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),m(`div`,null,[n[8]||=m(`div`,{"text-sm":``,op50:``},` Built `,-1),m(`div`,null,_(r(S)(new Date(o.current.endTime))),1)]),n[13]||=m(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),m(`div`,null,[n[9]||=m(`div`,{"text-sm":``,op50:``},` Report Path `,-1),t(p,{filepath:o.current.analyzeDir},null,8,[`filepath`])])]),n[16]||=m(`div`,{"flex-auto":``},null,-1),t(h,{n:`rose`,icon:`carbon-delete`,onClick:n[0]||=e=>D(o.current.name)},{default:u(()=>[...n[14]||=[a(` Delete this report `,-1)]]),_:1})])):f(``,!0),n._lazyshow1||x.value?.id===`bundle-client`?(n._lazyshow1=!0,s(),l(g,null,[d(m(`iframe`,{src:`${r(v)}${o.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[y,x.value?.id===`bundle-client`]])],64)):f(`v-show-if`,!0),n._lazyshow2||x.value?.id===`bundle-nitro`?(n._lazyshow2=!0,s(),l(g,null,[d(m(`iframe`,{src:`${r(v)}${o.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[y,x.value?.id===`bundle-nitro`]])],64)):f(`v-show-if`,!0),n._lazyshow3||x.value?.id===`vite-inspect`?(n._lazyshow3=!0,s(),l(g,null,[d(m(`iframe`,{src:`${r(v)}${o.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[y,x.value?.id===`vite-inspect`]])],64)):f(`v-show-if`,!0)])}}}),{__name:`BuildAnalyzeDetails`}),X={},Z={class:`markdown-body`};function Q(e,t){return s(),l(`div`,Z,[...t[0]||=[m(`template`,null,[m(`div`,{class:`markdown-body`},[m(`h1`,null,`Build Analyze`),m(`p`,null,[a(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),m(`code`,{"v-pre":``},`nuxt build --analyze`),a(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var $=D(X,[[`render`,Q]]),ee={flex:`~ col`},te=[`onClick`],ne={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},re={flex:`~ items-center justify-center wrap`,p4:``},ie={flex:`~ col gap-1`,"w-250":``,p4:``},ae={flex:`~ gap-3`,mt2:``,"justify-end":``},oe=o({__name:`analyze-build`,setup(e){z({icon:`carbon-edge-node`,title:`Build Analyze`,layout:`full`,category:`analyze`,show(){return E(`^3.5.0`)}});let o=w(),d=b(),y=v(),D=x(`analyze-build:slug`,``),V=h(()=>d.value?.builds.find(e=>e.slug===D.value)??d.value?.builds[0]),U=n(!1),W=n(``),G=h(()=>d.value?.builds.some(e=>e.name===W.value.trim()));async function K(){W.value=await C.generateAnalyzeBuildName(),await o.start()&&(M(`analyze-build:start`),L.value={name:W.value,processId:await C.startAnalyzeBuild(await T(),W.value)},U.value&&X())}let q=j();function J(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function X(){L.value?.processId&&(q.value=L.value.processId,y.push(`/modules/terminals`))}return I(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:K}]),(e,n)=>{let h=O,v=Y,y=N,b=P,x=F,C=k,w=R,T=B,E=A,j=$,M=H;return s(),l(g,null,[t(b,{"left-size":30},{left:u(()=>[m(`div`,ee,[(s(!0),l(g,null,c(r(d)?.builds,e=>(s(),l(g,{key:e.slug},[m(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:i(e.slug===V.value?.slug?`text-primary bg-active`:``),onClick:t=>D.value=e.slug},[m(`code`,null,_(e.name),1),m(`div`,ne,[n[4]||=m(`div`,{"i-carbon-time":``},null,-1),m(`span`,null,_(J(e)),1),n[5]||=m(`div`,{"flex-auto":``},null,-1),m(`span`,null,_(r(S)(new Date(e.endTime))),1)])],10,te),n[6]||=m(`div`,{"x-divider":``},null,-1)],64))),128)),m(`div`,re,[r(L)?(s(),p(h,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,onClick:n[1]||=e=>X()},{default:u(()=>[...n[8]||=[a(` Building... `,-1)]]),_:1})):(s(),p(h,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>K()},{default:u(()=>[...n[7]||=[a(` Start a new build `,-1)]]),_:1}))])])]),right:u(()=>[V.value?(s(),p(v,{key:0,current:V.value},null,8,[`current`])):(s(),p(y,{key:1}))]),_:1}),t(r(o),null,{default:u(({resolve:e})=>[t(E,{"model-value":!0,onClose:t=>e(!1)},{default:u(()=>[m(`div`,ie,[n[13]||=m(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=m(`p`,{op50:``},` Enter the name of the build: `,-1),t(x,{modelValue:W.value,"onUpdate:modelValue":n[2]||=e=>W.value=e,placeholder:`Build name`},null,8,[`modelValue`]),G.value?(s(),p(C,{key:0,"n-orange":``},{default:u(()=>[...n[9]||=[a(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):f(``,!0),n[15]||=m(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=m(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),t(w,{code:`npx nuxi analyze --no-serve --name=${W.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),t(T,{modelValue:U.value,"onUpdate:modelValue":n[3]||=e=>U.value=e,mt2:``,n:`primary`},{default:u(()=>[...n[10]||=[a(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),m(`div`,ae,[t(h,{onClick:t=>e(!1)},{default:u(()=>[...n[11]||=[a(` Cancel `,-1)]]),_:1},8,[`onClick`]),t(h,{n:`solid primary`,onClick:t=>e(!0)},{default:u(()=>[...n[12]||=[a(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),t(M,null,{default:u(()=>[t(j)]),_:1})],64)}}});export{oe as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{C as e,Ct as t,Mt as n,Q as r,Qt as i,S as a,T as o,W as s,X as c,Y as l,_ as u,dt as d,en as f,ft as p,g as m,h,m as g,p as _,s as v,tn as y,vt as b}from"./vendor/json-editor-vue-ajxjng9j.js";import{St as x,bt as S}from"./ready-j6igpruf.js";import{j as C,w}from"./utils-gsui1utc.js";import{D as T,E,G as D,K as O,M as k,W as A,Y as j,g as M,h as N,l as P,v as F,z as I}from"./client-kw9rd8gy.js";import{t as L}from"./storage-options-h4ted7ut.js";import{t as R}from"./nicon-oi9zv8qe.js";import{t as z}from"./nbutton-n4jak7c4.js";import{t as B}from"./ndialog-d7onas5p.js";import{t as V}from"./telemetry-pbqlai15.js";import{n as ee,t as te}from"./editor-gio3gzf5.js";import{t as H}from"./ntext-input-m2w61kr5.js";import{t as U}from"./fuse-blwyun20.js";import{t as W}from"./ndropdown-hei8kmpv.js";import{t as G}from"./ndrawer-rf7qwkr7.js";import{t as K}from"./composables-ioamscf4.js";import{t as q}from"./ncheckbox-g0h4v30t.js";import{t as ne}from"./filepath-item-n14cgzrq.js";import{t as J}from"./nnavbar-dxs3xl8m.js";import{r as Y,t as re}from"./code-snippets-iyqjogm4.js";import{t as ie}from"./nsection-block-deo3d5ca.js";var ae={key:0,"h-full":``,"w-full":``,flex:``,"items-center":``,"justify-center":``},oe={for:`drop-zone-input`,"text-3xl":``,hover:`text-green cursor-pointer`,"transition-all":``},se={key:1,relative:``,"h-full":``,"w-full":``,grid:`~ rows-[max-content_1fr_max-content]`},ce={grid:`~ cols-minmax-8rem gap-8`,"overflow-auto":``,p6:``},le={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,rounded:``,"rounded-t-lg":``,"bg-active":``,"object-cover":``,class:`aspect-1/1`,border:`~ base`},ue=[`src`],de={flex:`~ gap1`,"items-center":``},fe={flex:`~ gap-2`,"items-center":``,"justify-center":``,p8:``},pe=Object.assign(o({__name:`AssetDropZone`,props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(o){let c=o,f=/\.\w+$/,_=O(c,`modelValue`),y=t(),b=t([]);function x(e){y.value=e.target,_.value=!0}function S(e){e.target===y.value&&(_.value=!1)}function C(e){e.preventDefault()}function w(e){e.preventDefault(),T(e.dataTransfer.files)}function T(e){let t=[...e||[]];if(t.length){let e=[],n=b.value.map(e=>e.name);for(let r of t)if(n.includes(r.name)){let t=1,[i,a]=r.name.split(`.`);for(;n.includes(`${i} (${t}).${a}`);)t++;let o=`${i}-${t}.${a}`,s=new Blob([r],{type:r.type}),c=new File([s],o,{lastModified:Date.now()});e.push(c),n.push(o)}else r.type===``&&E({message:`Folders are not supported yet`,icon:`carbon:face-dissatisfied`,classes:`text-orange`}),e.push(r);b.value=[...b.value,...e]}}async function D(){if(M.value||F.value)return;V(`assets:upload`);let e=[];for(let t of b.value){let n=new FileReader;n.readAsDataURL(t);let r=(await new Promise(e=>{n.onload=()=>e(n.result)})).split(`;base64,`).pop();e.push({path:t.name,encoding:`base64`,content:r})}await N.writeStaticAssets(await P(),[...e],c.folder).then(()=>{B(),E({message:`Files uploaded successfully!`,icon:`i-carbon:checkmark`})}).catch(e=>{B(),E({message:`Error uploading files: ${e?.message??`unknown`}`,icon:`i-carbon-warning`,classes:`text-red`})}),_.value=!1}function k(e){b.value?.splice(e,1)}function A(e){return URL.createObjectURL(e)}function j(e,t){let[n,r]=e.name.split(`.`),i=t.replace(f,``),a=`${i}.${r}`;return i.length===0?(alert(`File name must be at least 1 characters long`),n):(Object.defineProperty(e,"name",{value:a,writable:!1}),b.value.splice(b.value.indexOf(e),1,e),e)}function L(){b.value=[]}function B(){_.value=!1,L()}return I(`dragenter`,x),I(`dragleave`,S),I(`dragover`,C),I(`drop`,w),(t,o)=>{let c=z,f=R,y=H,x=r(`tooltip`);return s(),u(`div`,{fixed:``,"bottom-0":``,"left-13":``,"right-0":``,"top-0":``,"z-10":``,"backdrop-blur-20":``,"transition-all":``,class:i(n(_)?`opacity-100 visible`:`opacity-0 invisible`)},[p(e(c,{icon:`carbon-close`,title:`Close`,absolute:``,"right-5":``,"top-5":``,"z-20":``,"text-xl":``,border:!1,onClick:B},null,512),[[x,`Close`,void 0,{"bottom-end":!0}]]),b.value?.length?(s(),u(`div`,se,[o[4]||=g(`div`,{px6:``,py6:``},[g(`h1`,{"text-2xl":``},` Upload `),g(`p`,{"text-sm":``,op50:``},` Drag and drop files to upload `)],-1),g(`div`,ce,[(s(!0),u(v,null,l(b.value,(t,n)=>(s(),u(`div`,{key:t.name,flex:`~ col gap-2`,relative:``,"h-50":``,"w-40":``,"items-center":``},[g(`div`,le,[g(`img`,{"h-full":``,"w-full":``,"rounded-t-lg":``,"object-cover":``,src:A(t)},null,8,ue)]),g(`div`,de,[e(y,{n:`xs`,"h-full":``,"flex-auto":``,"model-value":t.name,"onUpdate:modelValue":e=>j(t,e.target.value)},null,8,[`model-value`,`onUpdate:modelValue`]),e(c,{n:`red`,icon:`carbon-trash-can`,"h-full":``,"flex-none":``,title:`Remove file`,onClick:e=>k(n)},null,8,[`onClick`])])]))),128))]),g(`div`,fe,[b.value.length?(s(),h(c,{key:0,n:`red`,onClick:L},{default:d(()=>[e(f,{icon:`carbon-clean`}),o[2]||=a(` Clear `,-1)]),_:1})):m(``,!0),e(c,{disabled:!b.value.length,n:`primary solid`,onClick:D},{default:d(()=>[e(f,{icon:`carbon-cloud-upload`}),o[3]||=a(` Upload `,-1)]),_:1},8,[`disabled`])])])):(s(),u(`div`,ae,[g(`label`,oe,[e(f,{icon:`carbon-cloud-upload`,"mr-2":``}),o[1]||=a(` Drop files here or click to select `,-1)]),g(`input`,{id:`drop-zone-input`,type:`file`,multiple:``,hidden:``,onChange:o[0]||=e=>T(e.target.files)},null,32)]))],2)}}}),{__name:`AssetDropZone`}),me=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],he=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],ge=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,X=[],_e=class{_data=new Z;_hash=new Z([...me]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)X[n]=e[t+n]|0;else{let e=X[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=X[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;X[n]=t+X[n-7]+i+X[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+he[n]+X[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=Z.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new Z(t,i)}},Z=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(ge.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function ve(e){return new _e().finalize(e).toBase64()}function ye(e){return ve(Y(e))}var be=Object.assign(o({__name:`AssetFontPreview`,props:{asset:{}},setup(e){let t=e,n=_(()=>`devtools-assets-${ye(t.asset)}`);return A(_(()=>`
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: '${n.value}';
|
|
4
|
+
src: url('${t.asset.publicPath}');
|
|
5
|
+
}
|
|
6
|
+
`)),(e,t)=>(s(),u(`div`,{"of-hidden":``,style:f({fontFamily:`'${n.value}'`})},` Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz `,4))}}),{__name:`AssetFontPreview`}),xe={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,"bg-active":``,"object-cover":``,p1:``},Se=[`src`],Ce={key:2,"i-carbon-document":``,"text-3xl":``,op20:``},we={key:3,"w-full":``,"self-start":``,p4:``},Te=[`textContent`],Ee={key:4},De=[`src`,`autoplay`,`controls`],Oe={key:5},ke={key:0,"i-carbon-volume-up":``,"text-3xl":``,op20:``},Ae=[`src`],je={key:6,"i-carbon-help":``,"text-3xl":``,op20:``},Q=Object.assign(o({__name:`AssetPreview`,props:{asset:{},textContent:{},detail:{type:Boolean}},setup(e){return(t,n)=>{let r=be;return s(),u(`div`,xe,[e.asset.type===`image`?(s(),u(`img`,{key:0,src:e.asset.publicPath},null,8,Se)):e.asset.type===`font`?(s(),h(r,{key:e.asset.publicPath,asset:e.asset,"self-stretch":``,p2:``,"text-2xl":``},null,8,[`asset`])):e.asset.type===`text`&&!e.textContent?(s(),u(`div`,Ce)):e.asset.type===`text`&&e.textContent?(s(),u(`div`,we,[g(`pre`,{"max-h-10rem":``,"of-hidden":``,"text-xs":``,"font-mono":``,textContent:y(e.textContent)},null,8,Te)])):e.asset.type===`video`?(s(),u(`div`,Ee,[g(`video`,{src:e.asset.publicPath,autoplay:e.detail,controls:e.detail},null,8,De)])):e.asset.type===`audio`?(s(),u(`div`,Oe,[e.detail?(s(),u(`audio`,{key:1,src:e.asset.publicPath,controls:``},null,8,Ae)):(s(),u(`div`,ke))])):(s(),u(`div`,je))])}}}),{__name:`AssetPreview`}),Me={relative:``,flex:`~ col gap-1`,hover:`bg-active`,"items-center":``,"of-hidden":``,rounded:``,p2:``},Ne={"w-full":``,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-center":``,"text-xs":``},Pe=Object.assign(o({__name:`AssetGridItem`,props:{asset:{},folder:{}},setup(t){let n=t,r=_(()=>n.folder&&n.asset.path.startsWith(n.folder)?n.asset.path.slice(n.folder.length):n.asset.path);return(n,i)=>{let a=R,o=Q;return s(),u(`button`,Me,[t.asset.layer?(s(),h(a,{key:0,icon:`i-carbon-layers`,absolute:``,"right-4":``,"top-4":``,"bg-primary":``})):m(``,!0),e(o,{"h-30":``,"w-30":``,rounded:``,border:`~ base`,asset:t.asset},null,8,[`asset`]),g(`div`,Ne,y(r.value),1)])}}}),{__name:`AssetGridItem`}),$=Object.assign(o({__name:`AssetListItem`,props:{item:{},index:{default:0},modelValue:{}},setup(e,{emit:r}){let o=e,d=O(o,`modelValue`,r,{passive:!0}),p=_(()=>o.item?.children?.length),x=t(!0),S=_(()=>p.value?`i-carbon-folder`:o.item.type===`image`?`i-carbon-image`:o.item.type===`video`?`i-carbon-video`:o.item.type===`audio`?`i-carbon-volume-up`:o.item.type===`font`?`i-carbon-text-small-caps`:o.item.type===`text`?`i-carbon-document`:o.item.type===`json`?`i-carbon-json`:`i-carbon-document-blank`);return(t,r)=>{let o=R,_=$;return s(),u(`div`,null,[g(`button`,{flex:`~ gap-2`,"w-full":``,"items-center":``,hover:`bg-active`,px4:``,py1:``,style:f({paddingLeft:`calc(1rem + ${e.index*1.5}em)`}),class:i({"bg-active":!p.value&&n(d)?.filePath===e.item?.filePath}),border:`b base`,onClick:r[0]||=t=>p.value?x.value=!x.value:d.value=e.item},[g(`div`,{class:i(S.value)},null,2),g(`span`,{class:i({"flex items-center":p.value}),"flex-auto":``,"text-start":``,"text-sm":``,"font-mono":``},[a(y(e.item.path)+` `,1),e.item.layer?(s(),h(o,{key:0,icon:`i-carbon-layers`,"bg-primary":``})):m(``,!0)],2),p.value?(s(),h(o,{key:0,icon:`carbon:chevron-right`,"transform-rotate":x.value?90:0,transition:``},null,8,[`transform-rotate`])):m(``,!0)],6),x.value?c(t.$slots,`default`,{},()=>[(s(!0),u(v,null,l(e.item?.children,t=>(s(),h(_,{key:t.filepath,modelValue:n(d),"onUpdate:modelValue":r[1]||=e=>b(d)?d.value=e:null,item:t,index:e.index+1},null,8,[`modelValue`,`item`,`index`]))),128))],void 0,0):m(``,!0)])}}}),{__name:`AssetListItem`}),Fe={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Ie={flex:`~`,"items-center":``,"justify-center":``},Le={"max-w-full":``,"w-full":``,"table-fixed":``},Re={flex:`~ gap-1`,"w-full":``,"items-center":``},ze={flex:`~ gap-1`,"w-full":``,"items-center":``,"of-hidden":``},Be={"flex-auto":``,"of-hidden":``,truncate:``,"ws-pre":``,"font-mono":``},Ve={capitalize:``},He={key:0},Ue={op70:``},We={flex:`~ gap2 wrap`},Ge={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Ke={flex:`~ gap2 wrap justify-center`},qe={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Je={flex:`~ gap2 wrap justify-center`},Ye={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Xe={flex:``,"justify-end":``,"gap-4":``},Ze=Object.assign(o({__name:`AssetDetails`,props:{modelValue:{}},setup(i,{emit:o}){let c=O(i,`modelValue`,o,{passive:!0}),l=T(async()=>{if(c.value.type===`image`)return N.getImageMeta(await P(),c.value.filePath)}),f=t(!1),b=t(),C=t(0),k=T(async()=>{if(c.value.type!==`text`)return;C.value;let e=await N.getTextAssetContent(await P(),c.value.filePath);return b.value=e,e});async function A(){if(k.value!==b.value)try{await N.writeStaticAssets(await P(),[{path:c.value.path,content:b.value,override:!0}],``),f.value=!1,C.value++,E({message:`Updated`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),E({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let j=w(),M=_(()=>(j.value?._installedModules||[]).some(e=>e.meta?.name===`@nuxt/image`||e.meta?.name===`@nuxt/image-edge`||e.meta?.name===`@nuxt/image-nightly`)),F=_(()=>{let e=[];if(c.value.type===`image`){let t=l.value?.width?`\n width="${l.value.width}"\n height="${l.value.height}" `:` `;return e.push({lang:`vue-html`,code:`<img${t}\n src="${c.value.publicPath}"\n/>`,name:`Plain Image`}),M.value&&e.push({lang:`vue-html`,code:`<NuxtImg${t}\n src="${c.value.publicPath}"\n/>`,name:`Nuxt Img`,docs:`https://image.nuxt.com/usage/nuxt-img`},{lang:`vue-html`,code:`<NuxtPicture${t}\n src="${c.value.publicPath}"\n/>`,name:`Nuxt Picture`,docs:`https://image.nuxt.com/usage/nuxt-picture`}),e}return e.push({lang:`html`,code:`<a download href="${c.value.publicPath}">\n Download ${c.value.path.split(`/`).slice(-1)[0]}\n</a>`,name:`Download link`}),e}),I=te(),L=ee(),R=D(()=>c.value.mtime),V=_(()=>{let e=c.value.size;return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(2)} KB`:`${(e/1024/1024).toFixed(2)} MB`}),U=_(()=>{if(!l.value?.width||!l.value?.height)return``;let e=(t,n)=>n?e(n,t%n):t,t=e(l.value.width,l.value.height);return t>3?`${l.value.width/t}:${l.value.height/t}`:``}),W=_(()=>[`image`,`text`,`video`,`audio`,`font`].includes(c.value.type)),G=t(!1);async function K(){try{await N.deleteStaticAsset(await P(),c.value.filePath),c.value=void 0,G.value=!1,E({message:`Asset deleted`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),E({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let q=t(!1),J=t(``);async function Y(){let e=c.value.filePath.split(`/`),t=e.slice(-1)[0]?.split(`.`).slice(0,-1).join(`.`);if(!J.value||J.value===t)return E({message:`Please enter a new name`,icon:`i-carbon-warning`,classes:`text-orange`});try{let t=e.slice(-1)[0]?.split(`.`).slice(-1)[0],n=`${e.slice(0,-1).join(`/`)}/${J.value}.${t}`;await N.renameStaticAsset(await P(),c.value.filePath,n),c.value=void 0,q.value=!1,E({message:`Asset renamed`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),E({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}return(t,i)=>{let o=Q,_=ne,C=z,w=re,T=B,E=H,D=r(`tooltip`);return s(),u(v,null,[g(`div`,Fe,[W.value?(s(),u(v,{key:0},[i[13]||=g(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[g(`div`,{"x-divider":``}),g(`div`,{"flex-none":``},` Preview `),g(`div`,{"x-divider":``})],-1),g(`div`,Ie,[e(o,{detail:``,"max-h-80":``,"min-h-20":``,"min-w-20":``,"w-auto":``,rounded:``,border:`~ base`,asset:n(c),"text-content":n(k)},null,8,[`asset`,`text-content`])])],64)):m(``,!0),i[25]||=g(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[g(`div`,{"x-divider":``}),g(`div`,{"flex-none":``},` Details `),g(`div`,{"x-divider":``})],-1),g(`table`,Le,[g(`tbody`,null,[g(`tr`,null,[i[14]||=g(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Filepath `,-1),g(`td`,null,[g(`div`,Re,[e(_,{filepath:n(c).filePath,"text-left":``},null,8,[`filepath`]),p(e(C,{"flex-none":``,title:`Open in Editor`,icon:`carbon-launch`,border:!1,onClick:i[0]||=e=>n(L)(n(c).filePath)},null,512),[[D,`Open in Editor`]])])])]),g(`tr`,null,[i[15]||=g(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Public Path `,-1),g(`td`,null,[g(`div`,ze,[g(`div`,Be,y(n(c).publicPath),1),p(e(C,{"flex-none":``,title:`Copy public path`,icon:`carbon-copy`,border:!1,onClick:i[1]||=e=>n(I)(n(c).publicPath,`assets-public-path`)},null,512),[[D,`Copy public path`]]),p(e(C,{"flex-none":``,to:n(c).publicPath,icon:`carbon-launch`,target:`_blank`,border:!1,title:`Open in browser`},null,8,[`to`]),[[D,`Open in browser`]])])])]),g(`tr`,null,[i[16]||=g(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Type `,-1),g(`td`,Ve,y(n(c).type),1)]),n(l)?.width?(s(),u(v,{key:0},[g(`tr`,null,[i[17]||=g(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Image Size `,-1),g(`td`,null,y(n(l).width)+` x `+y(n(l).height),1)]),U.value?(s(),u(`tr`,He,[i[18]||=g(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Aspect Ratio `,-1),g(`td`,null,y(U.value),1)])):m(``,!0)],64)):m(``,!0),g(`tr`,null,[i[19]||=g(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` File size `,-1),g(`td`,null,y(V.value),1)]),g(`tr`,null,[i[20]||=g(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Last modified `,-1),g(`td`,null,[a(y(new Date(n(c).mtime).toLocaleString())+` `,1),g(`span`,Ue,`(`+y(n(R))+`)`,1)])])])]),i[26]||=g(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[g(`div`,{"x-divider":``}),g(`div`,{"flex-none":``},` Actions `),g(`div`,{"x-divider":``})],-1),g(`div`,We,[e(C,{to:n(c).publicPath,download:``,target:`_blank`,icon:`carbon-download`,n:`green`},{default:d(()=>[...i[21]||=[a(` Download `,-1)]]),_:1},8,[`to`]),n(c).type===`text`?(s(),h(C,{key:0,icon:`carbon-edit`,n:`cyan`,onClick:i[2]||=e=>f.value=!f.value},{default:d(()=>[...i[22]||=[a(` Edit `,-1)]]),_:1})):m(``,!0),e(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:i[3]||=e=>q.value=!q.value},{default:d(()=>[...i[23]||=[a(` Rename `,-1)]]),_:1}),e(C,{icon:`carbon-delete`,n:`red`,onClick:i[4]||=e=>G.value=!G.value},{default:d(()=>[...i[24]||=[a(` Delete `,-1)]]),_:1})]),i[27]||=g(`div`,{"flex-auto":``},null,-1),F.value.length?(s(),h(w,{key:1,border:`t base`,"mx--4":``,"mb--4":``,"code-snippets":F.value},null,8,[`code-snippets`])):m(``,!0)]),e(T,{modelValue:G.value,"onUpdate:modelValue":i[6]||=e=>G.value=e},{default:d(()=>[g(`div`,Ge,[i[30]||=g(`span`,null,` Are you sure you want to delete this asset? `,-1),g(`div`,Ke,[e(C,{icon:`carbon-close`,onClick:i[5]||=e=>G.value=!1},{default:d(()=>[...i[28]||=[a(` Cancel `,-1)]]),_:1}),e(C,{icon:`carbon-delete`,n:`red`,onClick:K},{default:d(()=>[...i[29]||=[a(` Delete `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),e(T,{modelValue:q.value,"onUpdate:modelValue":i[9]||=e=>q.value=e},{default:d(()=>[g(`div`,qe,[e(E,{modelValue:J.value,"onUpdate:modelValue":i[7]||=e=>J.value=e,placeholder:`New name`,n:`blue`},null,8,[`modelValue`]),g(`div`,Je,[e(C,{icon:`carbon-close`,onClick:i[8]||=e=>q.value=!1},{default:d(()=>[...i[31]||=[a(` Cancel `,-1)]]),_:1}),e(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:Y},{default:d(()=>[...i[32]||=[a(` Rename `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),n(c).type===`text`?(s(),h(T,{key:0,modelValue:f.value,"onUpdate:modelValue":i[12]||=e=>f.value=e},{default:d(()=>[g(`div`,Ye,[p(g(`textarea`,{"onUpdate:modelValue":i[10]||=e=>b.value=e,placeholder:`Item value...`,class:`h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none`,onKeydown:x(A,[`enter`])},null,544),[[S,b.value]]),g(`div`,Xe,[e(C,{icon:`carbon-close`,onClick:i[11]||=e=>f.value=!1},{default:d(()=>[...i[33]||=[a(` Cancel `,-1)]]),_:1}),e(C,{icon:`carbon:save`,n:`primary`,onClick:A},{default:d(()=>[...i[34]||=[a(` save `,-1)]]),_:1})])])]),_:1},8,[`modelValue`])):m(``,!0)],64)}}}),{__name:`AssetDetails`}),Qe={"h-full":``,"of-auto":``},$e={"flex-none":``,flex:`~ gap2 items-center`,"text-lg":``},et={flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--1":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-primary:30":``,"text-8px":``},tt={flex:`~ col`,"w-30":``,"of-auto":``},nt={"text-xs":``,op75:``},rt={op50:``},it={key:0},at={"mt--4":``,px2:``,grid:`~ cols-minmax-8rem`},ot={key:1,p2:``,grid:`~ cols-minmax-8rem`},st={key:1},ct=o({__name:`assets`,setup(i){K({icon:`carbon-image-copy`,title:`Assets`,layout:`full`});let a=C(),o=t(!1),c=t(``),f=_(()=>new U(a.value||[],{keys:[`path`]})),b=j(()=>{let e=[];for(let t of a.value||[]){let n=t.path.split(`.`).pop();n&&!e.some(e=>e.name===n)&&e.push({name:n,value:!0})}return e}),x=_(()=>(c.value?f.value.search(c.value).map(e=>e.item):a.value||[]).filter(e=>{let t=e.path.split(`.`).pop();return!t||b.some(e=>e.name===t&&e.value)})),S=_(()=>{let e={};for(let t of x.value){let n=`${t.path.split(`/`).slice(0,-1).join(`/`)}/`;e[n]||(e[n]=[]),e[n].push(t)}return Object.entries(e).sort(([e],[t])=>e.localeCompare(t))}),w=_(()=>{let e={path:`public`,children:[]},t=(e,n,r)=>{let[i,...a]=n,o=e.children.find(e=>e.path===i);o||(o={...r,path:i,children:[]},e.children.push(o)),a.length>1?t(o,a,r):a.length===1&&o.children.push({...r,path:a[0]})};return x.value.forEach(n=>{let r=n.path.split(`/`).filter(e=>e!==``);t(e,r,n)}),e.children}),T=t(),{view:E}=L(`assets`);function D(){E.value=E.value===`list`?`grid`:`list`}k(`Escape`,()=>{T.value=void 0});let O=t();return(t,i)=>{let f=z,_=q,C=W,k=J,A=pe,j=Pe,M=ie,N=$,P=Ze,F=G,I=r(`tooltip`);return s(),u(`div`,Qe,[e(k,{ref_key:`navbar`,ref:O,search:c.value,"onUpdate:search":i[1]||=e=>c.value=e,pb2:``},{actions:d(()=>[g(`div`,$e,[p(e(f,{icon:`carbon:cloud-upload`,title:`File Upload`,border:!1,onClick:i[0]||=e=>o.value=!o.value},null,512),[[I,`File Upload`,void 0,{"bottom-end":!0}]]),n(b).length?(s(),h(C,{key:0,direction:`end`,n:`sm primary`},{trigger:d(({click:t})=>[p(e(f,{icon:`carbon-filter`,border:!1,title:`Filter`,p3:``,"text-lg":``,onClick:e=>t()},null,8,[`onClick`]),[[I,`Filter`,void 0,{"bottom-end":!0}]]),g(`span`,et,y(n(b).length),1)]),default:d(()=>[g(`div`,tt,[(s(!0),u(v,null,l(n(b),e=>(s(),h(_,{key:e.name,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:d(()=>[g(`span`,nt,y(e.name),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):m(``,!0),p(e(f,{"text-lg":``,border:!1,icon:n(E)===`grid`?`i-carbon-list`:`i-carbon-grid`,title:`Toggle view`,onClick:D},null,8,[`icon`]),[[I,`Toggle View`,void 0,{"bottom-end":!0}]])])]),default:d(()=>[g(`div`,rt,[c.value?(s(),u(`span`,it,y(x.value.length)+` matched · `,1)):m(``,!0),g(`span`,null,y(n(a)?.length)+` assets in total`,1)])]),_:1},8,[`search`]),e(A,{modelValue:o.value,"onUpdate:modelValue":i[2]||=e=>o.value=e,folder:`/`},null,8,[`modelValue`]),n(E)===`grid`?(s(),u(v,{key:0},[S.value.length>1?(s(!0),u(v,{key:0},l(S.value,([e,t])=>(s(),h(M,{key:e,text:e,description:`${t.length} items`,open:t.length<=n(50),padding:!1},{default:d(()=>[g(`div`,at,[(s(!0),u(v,null,l(t,t=>(s(),h(j,{key:t.path,asset:t,folder:e,onClick:e=>T.value=t},null,8,[`asset`,`folder`,`onClick`]))),128))])]),_:2},1032,[`text`,`description`,`open`]))),128)):(s(),u(`div`,ot,[(s(!0),u(v,null,l(x.value,e=>(s(),h(j,{key:e.path,asset:e,onClick:t=>T.value=e},null,8,[`asset`,`onClick`]))),128))]))],64)):(s(),u(`div`,st,[(s(!0),u(v,null,l(w.value,(e,t)=>(s(),h(N,{key:t,modelValue:T.value,"onUpdate:modelValue":i[3]||=e=>T.value=e,item:e},null,8,[`modelValue`,`item`]))),128))])),e(F,{"model-value":!!T.value,"auto-close":``,"w-120":``,top:O.value,onClose:i[5]||=e=>T.value=void 0},{default:d(()=>[T.value?(s(),h(P,{key:0,modelValue:T.value,"onUpdate:modelValue":i[4]||=e=>T.value=e},null,8,[`modelValue`])):m(``,!0)]),_:1},8,[`model-value`,`top`])])}}});export{ct as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Ct as t,Mt as n,S as r,T as i,V as a,W as o,X as s,dt as c,h as l,m as u}from"./vendor/json-editor-vue-ajxjng9j.js";import{Ct as d,St as f}from"./ready-j6igpruf.js";import{c as p,d as m,f as h,h as g,u as _}from"./client-kw9rd8gy.js";import{t as v}from"./nbutton-n4jak7c4.js";import{t as y}from"./ncard-nwvxjytu.js";import{t as b}from"./npanel-grids-l34v8x7x.js";import{t as x}from"./ntext-input-m2w61kr5.js";var S={flex:`~ gap-3`,mt5:``,"justify-between":``},C={flex:`~ inline gap-2 items-center`},w={flex:`~ gap-2 items-end`},T=Object.assign(i({__name:`AuthRequiredPanel`,setup(i){a(async()=>{_.value||p.value&&await g.verifyAuthToken(p.value)&&(_.value=!0),_.value||m()});let T=t(``),E=t(!1);async function D(){let e=T.value.trim();E.value=!1,await g.verifyAuthToken(e).then(t=>{t?(_.value=!0,h(e)):E.value=!0})}return(t,i)=>{let a=x,p=v,m=y,h=b;return n(_)?s(t.$slots,`default`,{},void 0,void 0,1):(o(),l(h,{key:0},{default:c(()=>[e(m,{flex:`~ col gap-2`,mxa:``,p6:``},{default:c(()=>[i[3]||=u(`h3`,{class:`mb2 text-lg font-medium leading-6`,flex:`~ items-center gap-1`,"text-orange":``},[u(`span`,{class:`i-carbon-information-square`}),r(` Permissions required `)],-1),i[4]||=u(`p`,null,` This operation requires permissions for running command and access files from the browser. `,-1),i[5]||=u(`p`,null,[r(` A request is sent to the server.`),u(`br`),r(` Please check your terminal for the instructions and then come back. `)],-1),u(`div`,S,[u(`form`,{relative:``,flex:`~ col gap-2`,onSubmit:d(D,[`prevent`])},[i[1]||=u(`p`,{"text-xs":``,"op-50":``},` Or you can manually paste the token below: `,-1),u(`div`,C,[e(a,{modelValue:T.value,"onUpdate:modelValue":i[0]||=e=>T.value=e,placeholder:`Enter token here`,n:E.value?`red`:void 0,onKeydown:f(D,[`enter`])},null,8,[`modelValue`,`n`]),e(p,{n:`green`,"h-full":``,icon:`i-carbon-arrow-right`,onClick:D})])],32),u(`div`,w,[s(t.$slots,`actions`),e(p,{disabled:``,icon:`i-carbon-time`},{default:c(()=>[...i[2]||=[r(` Waiting for authorization... `,-1)]]),_:1})])])]),_:3})]),_:3}))}}}),{__name:`AuthRequiredPanel`});export{T as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"4881c231-9888-448f-8cc1-afa9e4e8d161","timestamp":1787439133408}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"4881c231-9888-448f-8cc1-afa9e4e8d161","timestamp":1787439133408,"prerendered":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Et as e,jt as t}from"./vendor/json-editor-vue-
|
|
1
|
+
import{Et as e,jt as t}from"./vendor/json-editor-vue-ajxjng9j.js";var n,r=[];function i(e){if(r.push(e),!(typeof window>`u`))return window.__NUXT_DEVTOOLS__&&r.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(e){e&&r.forEach(t=>t(e))},get(){return n.value},configurable:!0}),()=>{r.splice(r.indexOf(e),1)}}function a(){n||(n=e(),i(a));function r(){n&&t(n)}function a(e){n.value=e,e.host&&e.host.hooks.hook(`host:update:reactivity`,r)}return n}var o=a();export{o as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor/markdown-it-hplpr18t.js","./rolldown-runtime-f96lzs6p.js","./vendor/shiki-k3jqtxcz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as e,i as t,v as n,y as r}from"./nuxt-hhee6z5x.js";import{A as i,At as a,Ct as o,Dt as s,E as c,Et as l,F as u,Mt as d,Ot as f,St as p,T as m,Tt as h,V as g,bt as _,ct as v,gt as y,i as b,j as x,k as ee,lt as S,mt as te,p as C,s as ne,vt as w,wt as re,xt as ie}from"./vendor/json-editor-vue-ajxjng9j.js";import{pt as ae}from"./ready-j6igpruf.js";import{D as T,O as oe,k as se}from"./vendor/shiki-k3jqtxcz.js";function E(e,t){return y()?(_(e,t),!0):!1}var ce=new WeakMap,le=(...e)=>{let t=e[0],n=c()?.proxy??y();if(n==null&&!i())throw Error(`injectLocal must be called in setup`);return n&&ce.has(n)&&t in ce.get(n)?ce.get(n)[t]:x(...e)},D=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var ue=e=>e!==void 0,de=e=>e!=null,fe=Object.prototype.toString,pe=e=>fe.call(e)===`[object Object]`,O=()=>{},me=he();function he(){var e,t;return D&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ge(...e){if(e.length!==1)return f(...e);let t=e[0];return typeof t==`function`?p(te(()=>({get:t,set:O}))):o(t)}function _e(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var ve=e=>e();function ye(e,t={}){let n,r,i=O,o=O,s=l(!1),c=e=>{clearTimeout(e),i(),i=O},u;return Object.assign(l=>{let d=a(e),f=a(t.maxWait);return n&&c(n),d<=0||f!==void 0&&f<=0?(r&&=(c(r),void 0),s.value=!1,Promise.resolve(l())):(s.value=!0,new Promise((e,a)=>{i=t.rejectOnCancel?a:e,o=e,u=l,f&&!r&&(r=setTimeout(()=>{n&&c(n),r=void 0,s.value=!1,e(u())},f)),n=setTimeout(()=>{r&&c(r),r=void 0,s.value=!1,e(l())},d)}))},{cancel:()=>{n&&=(c(n),void 0),r&&=(c(r),void 0),s.value=!1,o=O},flush:()=>{if(s.value){n&&=(clearTimeout(n),void 0),r&&=(clearTimeout(r),void 0),s.value=!1;let e=o;i=O,o=O,e(u())}},isPending:h(s)})}function be(e=ve,t={}){let{initialState:n=`active`}=t,r=ge(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:h(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function xe(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(i,e,n):setTimeout(r,e)})}function Se(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function Ce(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function we(e){return Object.entries(e)}function k(e){return Array.isArray(e)?e:[e]}function Te(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var Ee=/-(\w)/g,De=Te(e=>e.replace(Ee,(e,t)=>t?t.toUpperCase():``));function Oe(e){return e||c()}function ke(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function Ae(e){return w(e)?ie(new Proxy({},{get(t,n,r){return d(Reflect.get(e.value,n,r))},set(t,n,r){return w(e.value[n])&&!w(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):ie(e)}function je(e){return Ae(C(e))}function Me(e,t=200,n={}){return _e(ye(t,n),e)}function Ne(e,t=200,n={}){let r=o(a(e)),i=Me(()=>{r.value=e.value},t,n);return v(e,()=>i()),h(r)}var Pe=Ne;function Fe(e,t,n={}){let{eventFilter:r=ve,...i}=n;return v(e,_e(r,t),i)}function Ie(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=be(r,{initialState:i});return{stop:Fe(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function A(e,t=!0,n){Oe(n)?g(e,n):t?e():u(e)}function Le(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(a=>{c=v(e,e=>{n(e)!==t&&(c?c():u(()=>c?.()),a(e))},{flush:r,deep:i,immediate:!0})})];return o!=null&&l.push(xe(o,s).then(()=>a(e)).finally(()=>c?.())),Promise.race(l)}function r(r,i){if(!w(r))return n(e=>e===r,i);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=i??{},d=null,f=[new Promise(n=>{d=v([e,r],([e,r])=>{t!==(e===r)&&(d?d():u(()=>d?.()),n(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&f.push(xe(c,l).then(()=>a(e)).finally(()=>(d?.(),a(e)))),Promise.race(f)}function i(e){return n(e=>!!e,e)}function o(e){return r(null,e)}function s(e){return r(void 0,e)}function c(e){return n(Number.isNaN,e)}function l(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(a(e))},t)}function d(e){return f(1,e)}function f(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}return Array.isArray(a(e))?{toMatch:n,toContains:l,changed:d,changedTimes:f,get not(){return Le(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:d,changedTimes:f,get not(){return Le(e,!t)}}}function Re(e){return Le(e)}var ze=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Be=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function Ve(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function j(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function He(e,t,n={}){let r=e.getFullYear(),i=e.getMonth(),o=e.getDate(),s=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),f=n.customMeridiem??Ve,p=e=>e.split(` `)[1]??``,m={Yo:()=>j(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>i+1,Mo:()=>j(i+1),MM:()=>`${i+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString(a(n.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString(a(n.locales),{month:`long`}),D:()=>String(o),Do:()=>j(o),DD:()=>`${o}`.padStart(2,`0`),H:()=>String(s),Ho:()=>j(s),HH:()=>`${s}`.padStart(2,`0`),h:()=>`${s%12||12}`.padStart(1,`0`),ho:()=>j(s%12||12),hh:()=>`${s%12||12}`.padStart(2,`0`),m:()=>String(c),mo:()=>j(c),mm:()=>`${c}`.padStart(2,`0`),s:()=>String(l),so:()=>j(l),ss:()=>`${l}`.padStart(2,`0`),SSS:()=>`${u}`.padStart(3,`0`),d:()=>d,dd:()=>e.toLocaleDateString(a(n.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString(a(n.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString(a(n.locales),{weekday:`long`}),A:()=>f(s,c),AA:()=>f(s,c,!1,!0),a:()=>f(s,c,!0),aa:()=>f(s,c,!0,!0),z:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`shortOffset`})),zz:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`shortOffset`})),zzz:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`shortOffset`})),zzzz:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`longOffset`}))};return t.replace(Be,(e,t)=>t??m[e]?.call(m)??e)}function Ue(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(ze);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function We(e,t=`HH:mm:ss`,n={}){return C(()=>He(Ue(a(e)),a(t),n))}function Ge(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,o=null,s=l(!1);function c(){o&&=(clearInterval(o),null)}function u(){s.value=!1,c()}function d(){let n=a(t);n<=0||(s.value=!0,i&&e(),c(),s.value&&(o=setInterval(e,n)))}return r&&D&&d(),(w(t)||typeof t==`function`)&&E(v(t,()=>{s.value&&D&&d()})),E(u),{isActive:h(s),pause:u,resume:d}}function Ke(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,o=l(!1),s;function c(){s&&=(clearTimeout(s),void 0)}function u(){o.value=!1,c()}function d(...n){i&&e(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...n)},a(t))}return r&&(o.value=!0,D&&d()),E(u),{isPending:h(o),start:d,stop:u}}function qe(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Fe(e,t,{...a,eventFilter:ye(r,{maxWait:i})})}function Je(e,t,n){return v(e,t,{...n,immediate:!0})}function Ye(e,t,n){let r;r=w(n)?{evaluating:n}:n||{};let{lazy:i=!1,flush:a=`sync`,evaluating:s=void 0,shallow:c=!0,onError:u=globalThis.reportError??O}=r,d=l(!i),f=c?l(t):o(t),p=0;return S(async t=>{if(!d.value)return;p++;let n=p,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===p&&(f.value=i)}catch(e){u(e)}finally{s&&n===p&&(s.value=!1),r=!0}},{flush:a}),i?C(()=>(d.value=!0,f.value)):f}function Xe(e={}){let{inheritAttrs:t=!0,name:n=`ReusableTemplate`}=e,r=l(),i=m({name:`${n}.define`,setup(e,{slots:t}){return()=>{r.value=t.default}}}),a=m({inheritAttrs:t,name:`${n}.reuse`,props:e.props,setup(n,{attrs:i,slots:a}){return()=>{if(!r.value)throw Error(`[VueUse] Failed to find the definition of reusable template`);let o=r.value?.call(r,{...e.props==null?Ze(i):n,$slots:a});return t&&o?.length===1?o[0]:o}}});return ke({define:i,reuse:a},[i,a])}function Ze(e){let t={};for(let n in e)t[De(n)]=e[n];return t}function Qe(e={}){let t=0,n=o([]);function r(...r){let i=re({key:t++,args:r,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(i),i.promise=new Promise((e,t)=>{i.resolve=t=>(i.isResolving=!0,e(t)),i.reject=t}).finally(()=>{i.promise=void 0;let e=n.value.indexOf(i);e!==-1&&n.value.splice(e,1)}),i.promise}function i(...t){return e.singleton&&n.value.length>0?n.value[0].promise:r(...t)}let a=m((t,{slots:r})=>{let i=()=>n.value.map(e=>ee(ne,{key:e.key},r.default?.call(r,e)));return e.transition?()=>ee(ae,e.transition,i):i});return a.start=i,a}var M=D?window:void 0,$e=D?window.document:void 0,et=D?window.navigator:void 0;D&&window.location;function N(e){let t=a(e);return t?.$el??t}function P(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=C(()=>{let t=k(a(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Je(()=>[n.value?.map(e=>N(e))??[M].filter(e=>e!=null),k(a(n.value?e[1]:e[0])),k(d(n.value?e[2]:e[1])),a(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=pe(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var tt=!1;function nt(e,t,n={}){let{window:r=M,ignore:i=[],capture:o=!0,detectIframe:s=!1,controls:c=!1}=n;if(!r)return c?{stop:O,cancel:O,trigger:O}:O;if(me&&!tt){tt=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,O,e)),r.document.documentElement.addEventListener(`click`,O,e)}let l=!0,u=e=>a(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=N(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let t=a(e);return t&&t.$.subTree.shapeFlag===16}function f(e,t){let n=a(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let p=n=>{let r=N(e);if(n.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(l=!u(n)),!l){l=!0;return}t(n)}},m=!1,h=[P(r,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:o}),P(r,`pointerdown`,t=>{let n=N(e);l=!u(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),s&&P(r,`blur`,n=>{setTimeout(()=>{let i=N(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return c?{stop:g,cancel:()=>{l=!1},trigger:e=>{l=!0,p(e),l=!1}}:g}function rt(){let e=l(!1),t=c();return t&&g(()=>{e.value=!0},t),e}function F(e){let t=rt();return C(()=>(t.value,!!e()))}function it(e,t,n={}){let{window:r=M,...i}=n,o,s=F(()=>r&&`MutationObserver`in r),c=()=>{o&&=(o.disconnect(),void 0)},l=v(C(()=>{let t=k(a(e)).map(N).filter(de);return new Set(t)}),e=>{c(),s.value&&e.size&&(o=new MutationObserver(t),e.forEach(e=>o.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>o?.takeRecords(),d=()=>{l(),c()};return E(d),{isSupported:s,stop:d,takeRecords:u}}function at(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ot(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=M,eventName:o=`keydown`,passive:s=!1,dedupe:c=!1}=r,l=at(t);return P(i,o,e=>{e.repeat&&a(c)||l(e)&&n(e)},s)}function st(e,t,n={}){return ot(e,t,{...n,eventName:`keydown`})}function ct(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=M,once:o=!1}=t,s=l(!1),c=C(()=>{let e=a(r);return e?1e3/e:null}),u=0,d=null;function f(t){if(!s.value||!i)return;u||=t;let n=t-u;if(c.value&&n<c.value){d=i.requestAnimationFrame(f);return}if(u=t,e({delta:n,timestamp:t}),o){s.value=!1,d=null;return}d=i.requestAnimationFrame(f)}function p(){!s.value&&i&&(s.value=!0,u=0,d=i.requestAnimationFrame(f))}function m(){s.value=!1,d!=null&&i&&(i.cancelAnimationFrame(d),d=null)}return n&&p(),E(m),{isActive:h(s),pause:m,resume:p}}var lt=Symbol(`vueuse-ssr-width`);function ut(){let e=i()?le(lt,null):null;return typeof e==`number`?e:void 0}function dt(e,t={}){let{window:n=M,ssrWidth:r=ut()}=t,i=F(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),o=l(typeof r==`number`),s=l(),c=l(!1);return S(()=>{if(o.value){o.value=!i.value;let t=a(e).split(`,`);c.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=Ce(n[1])),i&&a&&(a=r<=Ce(i[1])),t?!a:a});return}i.value&&(s.value=n.matchMedia(a(e)),c.value=s.value.matches)}),P(s,`change`,e=>{c.value=e.matches},{passive:!0}),C(()=>c.value)}var ft=[`hash`,`host`,`hostname`,`href`,`pathname`,`port`,`protocol`,`search`];function pt(e={}){let{window:t=M}=e,n=Object.fromEntries(ft.map(e=>[e,o()])),r=e=>{var r;let{state:i,length:a}=t?.history||{},{origin:o}=t?.location||{};for(let e of ft)n[e].value=t==null||(r=t.location)==null?void 0:r[e];return ie({trigger:e,state:i,length:a,origin:o,...n})},i=o(r(`load`));for(let[e,r]of we(n))v(r,n=>{!t?.location||t.location[e]===n||(t.location[e]=n)});if(t){let e={passive:!0};P(t,`popstate`,()=>i.value=r(`popstate`),e),P(t,`hashchange`,()=>i.value=r(`hashchange`),e)}return i}function mt(e,t={}){let{controls:n=!1,navigator:r=et}=t,i=F(()=>r&&`permissions`in r),a=l(),o=typeof e==`string`?{name:e}:e,c=l(),u=()=>{c.value=a.value?.state??`prompt`};P(a,`change`,u,{passive:!0});let d=Se(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{u()}if(n)return s(a.value)}});return d(),n?{state:c,isSupported:i,query:d}:c}function ht(e={}){let{navigator:t=et,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=e,s=F(()=>t&&`clipboard`in t),c=mt(`clipboard-read`),u=mt(`clipboard-write`),d=C(()=>s.value||o),f=l(``),p=l(!1),m=l(!1),g=Ke(()=>p.value=!1,i,{immediate:!1}),_=0;async function v(){let e=!(s.value&&S(c.value));if(!e)try{f.value=await t.clipboard.readText()}catch{e=!0}e&&(f.value=ee())}d.value&&n&&P([`copy`,`cut`],v,{passive:!0});async function y(e){let n=e??a(r);if(d.value&&n!=null){m.value=!0;let e=!(s.value&&S(u.value));if(!e)try{let e=b(n);await t.clipboard.write([e])}catch{e=!0}if(e)if(typeof n==`string`)f.value=n,x(n);else{let e=++_,t=await n();t!=null&&e===_&&(f.value=t,x(t))}p.value=!0,g.start(),m.value=!1}}function b(e){return typeof e==`string`?(f.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(f.value=e,new Blob([e],{type:`text/plain`})))})}function x(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function ee(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function S(e){return e===`granted`||e===`prompt`}return{copyPending:h(m),isSupported:d,text:h(f),copied:h(p),copy:y}}function gt(e){return JSON.parse(JSON.stringify(e))}var _t=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},vt=`__vueuse_ssr_handlers__`,yt=bt();function bt(){return vt in _t||(_t[vt]=_t[vt]||{}),_t[vt]}function xt(e,t){return yt[e]||t}function St(e){return dt(`(prefers-color-scheme: dark)`,e)}function Ct(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var wt={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Tt=`vueuse-storage`;function Et(e,t,n,r={}){let{flush:i=`pre`,deep:s=!0,listenToStorageChanges:c=!0,writeDefaults:d=!0,mergeDefaults:f=!1,shallow:p,window:m=M,eventFilter:h,onError:g=e=>{console.error(e)},initOnMounted:_}=r,y=(p?l:o)(typeof t==`function`?t():t),b=C(()=>a(e));if(!n)try{n=xt(`getDefaultStorage`,()=>M?.localStorage)()}catch(e){g(e)}if(!n)return y;let x=a(t),ee=Ct(x),S=r.serializer??wt[ee],{pause:te,resume:ne}=Ie(y,e=>ie(e),{flush:i,deep:s,eventFilter:h});v(b,()=>T(),{flush:i});let w=!1;m&&c&&(n instanceof Storage?P(m,`storage`,e=>{_&&!w||T(e)},{passive:!0}):P(m,Tt,e=>{_&&!w||oe(e)})),_?A(()=>{w=!0,T()}):T();function re(e,t){if(m){let r={key:b.value,oldValue:e,newValue:t,storageArea:n};m.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Tt,{detail:r}))}}function ie(e){try{let t=n.getItem(b.value);if(e==null)re(t,null),n.removeItem(b.value);else{let r=S.write(e);t!==r&&(n.setItem(b.value,r),re(t,r))}}catch(e){g(e)}}function ae(e){let t=e?e.newValue:n.getItem(b.value);if(t==null)return d&&x!=null&&n.setItem(b.value,S.write(x)),x;if(!e&&f){let e=S.read(t);return typeof f==`function`?f(e,x):ee===`object`&&!Array.isArray(e)?{...x,...e}:e}return typeof t==`string`?S.read(t):t}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){y.value=x;return}if(!(e&&e.key!==b.value)){te();try{let t=S.write(y.value);(e===void 0||e?.newValue!==t)&&(y.value=ae(e))}catch(e){g(e)}finally{e?u(ne):ne()}}}}function oe(e){T(e.detail)}return y}var Dt=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Ot(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=M,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=St({window:i}),p=C(()=>f.value?`dark`:`light`),m=c||(o==null?ge(r):Et(o,r,a,{window:i,listenToStorageChanges:s})),h=C(()=>m.value===`auto`?p.value:m.value),g=xt(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):N(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(Dt)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){g(t,n,d[e]??e)}function y(t){e.onChanged?e.onChanged(t,_):_(t)}v(h,y,{flush:`post`,immediate:!0}),A(()=>y(h.value));let b=C({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(b,{store:m,system:p,state:h})}function kt(e,t,n={}){let{window:r=M,...i}=n,o,s=F(()=>r&&`ResizeObserver`in r),c=()=>{o&&=(o.disconnect(),void 0)},l=v(C(()=>{let t=a(e);return Array.isArray(t)?t.map(e=>N(e)):[N(t)]}),e=>{if(c(),s.value&&r){o=new ResizeObserver(t);for(let t of e)t&&o.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return E(u),{isSupported:s,stop:u}}function At(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=l(0),c=l(0),u=l(0),d=l(0),f=l(0),p=l(0),m=l(0),h=l(0);function g(){let t=N(e);if(!t){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function _(){o===`sync`?g():o===`next-frame`&&requestAnimationFrame(()=>g())}return kt(e,_),v(()=>N(e),e=>!e&&_()),it(e,_,{attributeFilter:[`style`,`class`]}),i&&P(`scroll`,_,{capture:!0,passive:!0}),r&&P(`resize`,_,{passive:!0}),A(()=>{a&&_()}),{height:s,bottom:c,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function jt(e,t={width:0,height:0},n={}){let{window:r=M,box:i=`content-box`}=n,a=C(()=>{var t;return(t=N(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=l(t.width),s=l(t.height),{stop:c}=kt(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=N(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=k(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);A(()=>{let n=N(e);if(n&&`offsetWidth`in n)if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),c=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);o.value=n.offsetWidth-t-a,s.value=n.offsetHeight-i-c}else o.value=n.offsetWidth,s.value=n.offsetHeight;else n&&(o.value=t.width,s.value=t.height)});let u=v(()=>N(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function d(){c(),u()}return{width:o,height:s,stop:d}}function Mt(e={}){let{initialValue:t=``}=e,n=F(()=>typeof window<`u`&&`EyeDropper`in window),r=l(t);async function i(e){if(!n.value)return;let t=await new window.EyeDropper().open(e);return r.value=t.sRGBHex,t}return{isSupported:n,sRGBHex:r,open:i}}function Nt(e,t,n={}){let{window:r=M}=n;return Et(e,t,r?.localStorage,n)}function Pt(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>ct(e,{immediate:n}):n=>Ge(n,t,e)}return ct}function Ft(e={}){let{controls:t=!1,scheduler:n=Pt(e)}=e,r=l(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function It(e,t,n={}){let{window:r=M}=n;return Et(e,t,r?.sessionStorage,n)}var Lt=0,Rt=new WeakMap;function zt(e,t={}){let n=l(!1),{document:r=$e,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++Lt}`}=t,s=l(e),c=()=>{},u=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(Rt.set(e,(Rt.get(e)??0)+1),c=v(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},d=()=>{if(!r||!n.value)return;c();let e=r.getElementById(o);if(e){let t=(Rt.get(e)??1)-1;t<=0?(Rt.delete(e),r.head.removeChild(e)):Rt.set(e,t)}n.value=!1};return i&&!a&&A(u),a||E(d),{id:o,css:s,unload:d,load:u,isLoaded:h(n)}}var Bt=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}],Vt={justNow:`just now`,past:e=>/\d/.test(e)?`${e} ago`:e,future:e=>/\d/.test(e)?`in ${e}`:e,month:(e,t)=>e===1?t?`last month`:`next month`:`${e} month${e>1?`s`:``}`,year:(e,t)=>e===1?t?`last year`:`next year`:`${e} year${e>1?`s`:``}`,day:(e,t)=>e===1?t?`yesterday`:`tomorrow`:`${e} day${e>1?`s`:``}`,week:(e,t)=>e===1?t?`last week`:`next week`:`${e} week${e>1?`s`:``}`,hour:e=>`${e} hour${e>1?`s`:``}`,minute:e=>`${e} minute${e>1?`s`:``}`,second:e=>`${e} second${e>1?`s`:``}`,invalid:``};function Ht(e){return e.toISOString().slice(0,10)}function Ut(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>Ge(e,t)}return e=>Ge(e,3e4)}function Wt(e,t={}){let{controls:n=!1,scheduler:r=Ut(t)}=t,{now:i,...o}=Ft({scheduler:r,controls:!0}),s=C(()=>Gt(new Date(a(e)),t,a(i)));return n?{timeAgo:s,...o}:s}function Gt(e,t={},n=Date.now()){let{max:r,messages:i=Vt,fullDateFormatter:a=Ht,units:o=Bt,showSecond:s=!1,rounding:c=`round`}=t,l=typeof c==`number`?e=>+e.toFixed(c):Math[c],u=n-+e,d=Math.abs(u);function f(e,t){return l(Math.abs(e)/t.value)}function p(e,t){let n=f(e,t),r=e>0,i=m(t.name,n,r);return m(r?`past`:`future`,i,r)}function m(e,t,n){let r=i[e];return typeof r==`function`?r(t,n):r.replace(`{0}`,t.toString())}if(d<6e4&&!s)return i.justNow;if(typeof r==`number`&&d>r)return a(new Date(e));if(typeof r==`string`){let t=o.find(e=>e.name===r)?.max;if(t&&d>t)return a(new Date(e))}for(let[e,t]of o.entries()){if(f(u,t)<=0&&o[e-1])return p(u,o[e-1]);if(d<t.max)return p(u,t)}return i.invalid}function Kt(e,t,n,r={}){var i,a;let{clone:s=!1,passive:l=!1,eventName:d,deep:f=!1,defaultValue:p,shouldEmit:m}=r,h=c(),g=n||h?.emit||(h==null||(i=h.$emit)==null?void 0:i.bind(h))||(h==null||(a=h.proxy)==null||(a=a.$emit)==null?void 0:a.bind(h?.proxy)),_=d;t||=`modelValue`,_||=`update:${t.toString()}`;let y=e=>s?typeof s==`function`?s(e):gt(e):e,b=()=>ue(e[t])?y(e[t]):p,x=e=>{m?m(e)&&g(_,e):g(_,e)};if(l){let n=o(b()),r=!1;return v(()=>e[t],e=>{r||(r=!0,n.value=y(e),u(()=>r=!1))}),v(n,n=>{!r&&(n!==e[t]||f)&&x(n)},{deep:f}),n}return C({get(){return b()},set(e){x(e)}})}function qt(e={}){let{window:t=M,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=l(n),c=l(r),u=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};u(),A(u);let d={passive:!0};return P(`resize`,u,d),t&&o===`visual`&&t.visualViewport&&P(t.visualViewport,`resize`,u,d),i&&v(dt(`(orientation: portrait)`),()=>u()),{width:s,height:c}}var Jt;function Yt(e){Jt?.(e)}function Xt(e){Jt=e}var Zt=``,Qt=`?`,$t=`major`,I=`model`,L=`name`,R=`type`,z=`vendor`,B=`version`,V=`architecture`,en=`console`,H=`mobile`,U=`tablet`,W=`smarttv`,G=`wearable`,tn=`embedded`,nn=500,rn=`Amazon`,an=`Apple`,on=`ASUS`,sn=`BlackBerry`,K=`Browser`,cn=`Chrome`,ln=`Edge`,un=`Firefox`,dn=`Google`,fn=`Huawei`,pn=`LG`,mn=`Microsoft`,hn=`Motorola`,gn=`Opera`,_n=`Samsung`,vn=`Sharp`,yn=`Sony`,bn=`Xiaomi`,xn=`Zebra`,Sn=`Facebook`,Cn=`Chromium OS`,wn=`Mac OS`;function Tn(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];n[r]=i&&i.length%2==0?[...i,...e[r]]:e[r]}return n}function En(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Dn(e){return e.toLowerCase()}function On(e,t){return typeof e==`string`&&Dn(t).includes(Dn(e))}function kn(e){return typeof e==`string`?e.replace(/[^\d.]/g,Zt).split(`.`)[0]:void 0}function An(e,t){let n=e.replace(/^\s+/,Zt);return t===void 0?n:n.substring(0,t)}function jn(e,t,n){let r=n??{};for(let n=0;n<t.length;n+=2){let i=t[n],a=t[n+1];for(let t=0;t<i.length;t++){let n=i[t];if(!n)break;let o=n.exec(e);if(o){for(let e=0;e<a.length;e++){let t=o[e+1],n=a[e];if(Array.isArray(n)){let e=n[0],i=n.length;if(i===2){let i=n[1];r[e]=typeof i==`function`?i(t,void 0,r):i}else if(i===3){let i=n[1],a=n[2];r[e]=typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?t?i(t,a,r):void 0:t?t.replace(i,a):void 0}else i===4&&(r[e]=t?n[3](t.replace(n[1],n[2]),void 0,r):void 0)}else r[n]=t||void 0}return r}}}return r}function Mn(e,t){for(let n in t){let r=t[n];if(Array.isArray(r)&&r.length>0){for(let t=0;t<r.length;t++)if(On(r[t],e))return n===Qt?void 0:n}else if(On(r,e))return n===Qt?void 0:n}return e}var Nn={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Pn={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},Fn={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[B,[L,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[B,[L,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[L,B],[/opios[/ ]+([\w.]+)/i],[B,[L,`${gn} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[B,[L,`${gn} GX`]],[/\bopr\/([\w.]+)/i],[B,[L,gn]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[B,[L,`Baidu`]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[L,B],[/\bddg\/([\w.]+)/i],[B,[L,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[B,[L,`UC${K}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[B,[L,`WeChat`]],[/konqueror\/([\w.]+)/i],[B,[L,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[B,[L,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[B,[L,`Yandex`]],[/slbrowser\/([\w.]+)/i],[B,[L,`Smart Lenovo ${K}`]],[/(avast|avg)\/([\w.]+)/i],[[L,/(.+)/,`$1 Secure ${K}`],B],[/\bfocus\/([\w.]+)/i],[B,[L,`${un} Focus`]],[/\bopt\/([\w.]+)/i],[B,[L,`${gn} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[B,[L,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[B,[L,`Dolphin`]],[/coast\/([\w.]+)/i],[B,[L,`${gn} Coast`]],[/miuibrowser\/([\w.]+)/i],[B,[L,`MIUI ${K}`]],[/fxios\/([-\w.]+)/i],[B,[L,un]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[L,`360 ${K}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[L,/(.+)/,`$1 ${K}`],B],[/samsungbrowser\/([\w.]+)/i],[B,[L,`${_n} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[L,/_/g,` `],B],[/metasr[/ ]?([\d.]+)/i],[B,[L,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[L,`Sogou Mobile`],B],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[L,B],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[L],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[L,Sn],B],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[L,B],[/\bgsa\/([\w.]+) .*safari\//i],[B,[L,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[B,[L,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[B,[L,`${cn} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[L,`${cn} WebView`],B],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[B,[L,`Android ${K}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[L,B],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[B,[L,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[B,L],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[L,[B,Mn,Nn]],[/(webkit|khtml)\/([\w.]+)/i],[L,B],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[L,`Netscape`],B],[/mobile vr; rv:([\w.]+)\).+firefox/i],[B,[L,`${un} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[L,B],[/(cobalt)\/([\w.]+)/i],[L,[B,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[V,`amd64`]],[/(ia32(?=;))/i],[[V,Dn]],[/((?:i[346]|x)86)[;)]/i],[[V,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[V,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[V,`armhf`]],[/windows (ce|mobile); ppc;/i],[[V,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[V,/ower/,Zt,Dn]],[/(sun4\w)[;)]/i],[[V,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[V,Dn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[I,[z,_n],[R,U]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[I,[z,_n],[R,H]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[I,[z,an],[R,H]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[I,[z,an],[R,U]],[/(macintosh);/i],[I,[z,an]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[I,[z,vn],[R,H]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[I,[z,fn],[R,U]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[I,[z,fn],[R,H]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[I,/_/g,` `],[z,bn],[R,H]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[I,/_/g,` `],[z,bn],[R,U]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[I,[z,`OPPO`],[R,H]],[/\b(opd2\d{3}a?) bui/i],[I,[z,`OPPO`],[R,U]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[I,[z,`Vivo`],[R,H]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[I,[z,`Realme`],[R,H]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[I,[z,hn],[R,H]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[I,[z,hn],[R,U]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[I,[z,pn],[R,U]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[I,[z,pn],[R,H]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[I,[z,`Lenovo`],[R,U]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[I,/_/g,` `],[z,`Nokia`],[R,H]],[/(pixel c)\b/i],[I,[z,dn],[R,U]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[I,[z,dn],[R,H]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[I,[z,yn],[R,H]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[I,`Xperia Tablet`],[z,yn],[R,U]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[I,[z,`OnePlus`],[R,H]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[I,[z,rn],[R,U]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[I,/(.+)/g,`Fire Phone $1`],[z,rn],[R,H]],[/(playbook);[-\w),; ]+(rim)/i],[I,z,[R,U]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[I,[z,sn],[R,H]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[I,[z,on],[R,U]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[I,[z,on],[R,H]],[/(nexus 9)/i],[I,[z,`HTC`],[R,U]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[z,[I,/_/g,` `],[R,H]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[I,[z,`Acer`],[R,U]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[I,[z,`Meizu`],[R,H]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[I,[z,`Ulefone`],[R,H]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[z,I,[R,H]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[z,I,[R,U]],[/(surface duo)/i],[I,[z,mn],[R,U]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[I,[z,`Fairphone`],[R,H]],[/(u304aa)/i],[I,[z,`AT&T`],[R,H]],[/\bsie-(\w*)/i],[I,[z,`Siemens`],[R,H]],[/\b(rct\w+) b/i],[I,[z,`RCA`],[R,U]],[/\b(venue[\d ]{2,7}) b/i],[I,[z,`Dell`],[R,U]],[/\b(q(?:mv|ta)\w+) b/i],[I,[z,`Verizon`],[R,U]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[I,[z,`Barnes & Noble`],[R,U]],[/\b(tm\d{3}\w+) b/i],[I,[z,`NuVision`],[R,U]],[/\b(k88) b/i],[I,[z,`ZTE`],[R,U]],[/\b(nx\d{3}j) b/i],[I,[z,`ZTE`],[R,H]],[/\b(gen\d{3}) b.+49h/i],[I,[z,`Swiss`],[R,H]],[/\b(zur\d{3}) b/i],[I,[z,`Swiss`],[R,U]],[/\b((zeki)?tb.*\b) b/i],[I,[z,`Zeki`],[R,U]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[z,`Dragon Touch`],I,[R,U]],[/\b(ns-?\w{0,9}) b/i],[I,[z,`Insignia`],[R,U]],[/\b((nxa|next)-?\w{0,9}) b/i],[I,[z,`NextBook`],[R,U]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[z,`Voice`],I,[R,H]],[/\b(lvtel-)?(v1[12]) b/i],[[z,`LvTel`],I,[R,H]],[/\b(ph-1) /i],[I,[z,`Essential`],[R,H]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[I,[z,`Envizen`],[R,U]],[/\b(trio[-\w. ]+) b/i],[I,[z,`MachSpeed`],[R,U]],[/\btu_(1491) b/i],[I,[z,`Rotor`],[R,U]],[/(shield[\w ]+) b/i],[I,[z,`Nvidia`],[R,U]],[/(sprint) (\w+)/i],[z,I,[R,H]],[/(kin\.[onetw]{3})/i],[[I,/\./g,` `],[z,mn],[R,H]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[I,[z,xn],[R,U]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[I,[z,xn],[R,H]],[/smart-tv.+(samsung)/i],[z,[R,W]],[/hbbtv.+maple;(\d+)/i],[[I,/^/,`SmartTV`],[z,_n],[R,W]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[z,pn],[R,W]],[/(apple) ?tv/i],[z,[I,`${an} TV`],[R,W]],[/crkey/i],[[I,`${cn}cast`],[z,dn],[R,W]],[/droid.+aft(\w+)( bui|\))/i],[I,[z,rn],[R,W]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[I,[z,vn],[R,W]],[/(bravia[\w ]+)( bui|\))/i],[I,[z,yn],[R,W]],[/(mitv-\w{5}) bui/i],[I,[z,bn],[R,W]],[/Hbbtv.*(technisat) (.*);/i],[z,I,[R,W]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[z,An],[I,An],[R,W]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[R,W]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[z,I,[R,en]],[/droid.+; (shield) bui/i],[I,[z,`Nvidia`],[R,en]],[/(playstation [345portablevi]+)/i],[I,[z,yn],[R,en]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[I,[z,mn],[R,en]],[/((pebble))app/i],[z,I,[R,G]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[I,[z,an],[R,G]],[/droid.+; (glass) \d/i],[I,[z,dn],[R,G]],[/droid.+; (wt63?0{2,3})\)/i],[I,[z,xn],[R,G]],[/(quest( \d| pro)?)/i],[I,[z,Sn],[R,G]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[z,[R,tn]],[/(aeobc)\b/i],[I,[z,rn],[R,tn]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[I,[R,H]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[I,[R,U]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[R,U]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[R,H]],[/(android[-\w. ]{0,9});.+buil/i],[I,[z,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[B,[L,`${ln}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[B,[L,`Blink`]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[L,B],[/rv:([\w.]{1,9})\b.+(gecko)/i],[B,L]],os:[[/microsoft (windows) (vista|xp)/i],[L,B],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[L,[B,Mn,Pn]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[B,Mn,Pn],[L,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[B,/_/g,`.`],[L,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[L,wn],[B,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[B,L],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[L,B],[/\(bb(10);/i],[B,[L,sn]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[B,[L,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[B,[L,`${un} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[B,[L,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[B,[L,`watchOS`]],[/crkey\/([\d.]+)/i],[B,[L,`${cn}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[L,Cn],B],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[L,B],[/(sunos) ?([\w.]*)/i],[[L,`Solaris`],B],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[L,B]]};function In(e){return typeof e==`object`&&!!e}Object.freeze(En([L,B,$t])),Object.freeze(En([V])),Object.freeze(En([I,z,R,en,H,W,U,G,tn])),Object.freeze(En([L,B])),Object.freeze(En([L,B]));function Ln(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function Rn(e){return e.length>nn?An(e,nn):e}function zn(e){if(typeof e==`string`)return{ua:Rn(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:Fn};let t=Ln(),n=Rn(t&&t.userAgent?t.userAgent:Zt);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:Fn}}function Bn(e,t){if(!t&&!In(e))return zn(e);let n=Ln(),r=In(e)?void 0:e,i=In(e)?e:t,a=Rn(r||(n&&n.userAgent?n.userAgent:Zt)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?Tn(Fn,i):Fn}}function Vn(e){let t={name:void 0,version:void 0,major:void 0};return jn(e.ua,e.regexMap.browser,t),t.major=kn(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function Hn(e){let t={architecture:void 0};return jn(e.ua,e.regexMap.cpu,t),t}function Un(e){let t={vendor:void 0,model:void 0,type:void 0};return jn(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=H),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=U),t}function Wn(e){let t={name:void 0,version:void 0};return jn(e.ua,e.regexMap.engine,t),t}function Gn(e){let t={name:void 0,version:void 0};return jn(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!==`Unknown`&&(t.name=e.userAgentData.platform.replace(/chrome os/i,Cn).replace(/macos/i,wn)),t}function Kn(e,t){let n,r,i,a,o,s,c=()=>n||=Bn(e,t);return{get ua(){return c().ua},get browser(){return r||=Vn(c()),r},get engine(){return i||=Wn(c()),i},get os(){return a||=Gn(c()),a},get device(){return o||=Un(c()),o},get cpu(){return s||=Hn(c()),s}}}var qn=r({docsBase:e,reporters:n}),Jn=`$s`;function Yn(...e){let n=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(n);let[r,i]=e;if(!r||typeof r!=`string`)throw qn.NUXT_E7009({key:r});if(i!==void 0&&typeof i!=`function`)throw qn.NUXT_E7007({type:typeof i});let a=Jn+r,o=t(),s=f(o.payload.state,a);if(i&&(o._state[a]??={_default:i}),s.value===void 0&&i){let e=i();if(w(e))return o.payload.state[a]=e,e;s.value=e}return s}var Xn=Qe(),Zn=Qe();function Qn(){return Yn(`devtools:restart-dialogs`,()=>[])}var $n=`q`,er=`s`;function tr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var nr=Math.random.bind(Math),rr=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ir(e=21){let t=``,n=e;for(;n--;)t+=rr[nr()*64|0];return t}var ar=6e4,or=e=>e,sr=or,{clearTimeout:cr,setTimeout:lr}=globalThis;function ur(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=or,deserialize:s=sr,resolver:c,bind:l=`rpc`,timeout:u=ar,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:$n};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=tr(),_=ir();s.i=_;let v;async function y(n=s){return u>=0&&(v=lr(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{cr(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===$n){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:er,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:er,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(cr(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var dr=typeof self==`object`?self:globalThis,fr=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),pr=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function mr(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=fr.has(e)?dr[e]:void 0;return n(new(r??dr.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&pr.has(a))return n(new dr[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function hr(e){return mr(new Map,e)(0)}var q=``,{toString:gr}={},{keys:_r}=Object;function vr(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=gr.call(e).slice(8,-1);switch(n){case`Array`:return[1,q];case`Object`:return[2,q];case`Date`:return[3,q];case`RegExp`:return[4,q];case`Map`:return[5,q];case`Set`:return[6,q];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function yr([e,t]){return e===0&&(t===`function`||t===`symbol`)}function br(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=vr(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of _r(r))(e||!yr(vr(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(yr(vr(n))||yr(vr(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!yr(vr(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function xr(e,t={}){let n=[];return br(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Sr,stringify:Cr}=JSON,wr={json:!0,lossy:!0};function Tr(e){return hr(Sr(e))}function Er(e){return Cr(xr(e,wr))}function Dr(e,t){return hr(xr(e,t))}async function Or(e=`/`,t=!0){try{let t=`${e}@vite/client`,n=await fetch(t);if((await n.text()).startsWith(`<`)||!n.headers.get(`content-type`)?.includes(`javascript`))throw Error(`Not javascript`);return await b(()=>import(t),[],import.meta.url)}catch{t&&console.error(`[vite-hot-client] Failed to import "${e}@vite/client"`)}}function kr(e=window.location.pathname){return e.split(`/`).map((e,t,n)=>n.slice(0,t+1).join(`/`)||`/`)}async function Ar(e=`/___`,t){t??=kr();for(let n of t){let t=(await Or(n,!1))?.createHotContext(e);if(t)return t}console.error(`[vite-hot-client] Failed to import vite client, tried with:`,t)}var jr=`nuxt:devtools:rpc`,Mr={behavior:{telemetry:null,openInEditor:void 0},ui:{componentsView:`list`,componentsGraphShowNodeModules:!1,componentsGraphShowGlobalComponents:!0,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,interactionCloseOnOutsideClick:!1,showExperimentalFeatures:!1,showHelpButtons:!0,showPanel:!0,scale:1,minimizePanelInactive:5e3,hiddenTabs:[],pinnedTabs:[],hiddenTabCategories:[],sidebarExpanded:!1,sidebarScrollable:!1},serverRoutes:{selectedRoute:null,view:`tree`,inputDefaults:{query:[],body:[],headers:[]},sendFrom:`app`},serverTasks:{enabled:!1,selectedTask:null,view:`list`,inputDefaults:{query:[],body:[],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}},assets:{view:`grid`}},Nr=/^\/|\/$/g,Pr=/\/__nuxt_devtools__\/client\/.*$/,J=o(!1),Fr=l(),Ir=Pe(J,2e3),Lr=Vr(),Rr=()=>{},zr={},Br=new Map,Y=ur(zr,{post:async e=>{(await Lr).send(jr,e)},on:e=>{Rr=e},serialize:Er,deserialize:Tr,resolver(e,t){if(t)return t;if(!e.includes(`:`))return;let[n,r]=e.split(`:`);return Br.get(n)?.[r]},onFunctionError(e,t){return console.error(`[nuxt-devtools] RPC error on executing "${t}":`),console.error(e),!0},onGeneralError(e){return console.error(`[nuxt-devtools] RPC error:`),console.error(e),!0},timeout:12e4});async function Vr(){let e=window.parent?.__NUXT__?.config?.app??window.parent?.useNuxtApp?.()?.payload?.config?.app,t=e?.baseURL??`/`,n=e?.buildAssetsDir?.replace(Nr,``)??`_nuxt`;t&&!t.endsWith(`/`)&&(t+=`/`);let r=window.location.href.replace(Pr,`/`),i=await Ar(void 0,[...new Set([`${t}${n}/`,`${t}_nuxt/`,t,`${r}${n}/`,`${r}_nuxt/`,r])]);if(!i)throw J.value=!0,console.error(`[Nuxt DevTools] Unable to find Vite HMR context`),Error(`[Nuxt DevTools] Unable to connect to devtools`);return i.on(jr,e=>{J.value=!1,Rr(e)}),J.value=!0,i.on(`vite:ws:connect`,()=>{console.log(`[nuxt-devtools] Connected to WebSocket`),J.value=!1}),i.on(`vite:ws:disconnect`,()=>{console.log(`[nuxt-devtools] Disconnected from WebSocket`),J.value=!0}),i}var X=o(localStorage.getItem(`__nuxt_dev_token__`)),Z=o(!1),Hr=new BroadcastChannel(`__nuxt_dev_token__`);Hr.addEventListener(`message`,e=>{if(e.data.event===`new-token`){if(e.data.data===X.value)return;let t=e.data.data;Y.verifyAuthToken(t).then(e=>{X.value=e?t:null,Z.value=e})}});function Ur(e){X.value=e,Z.value=!0,localStorage.setItem(`__nuxt_dev_token__`,e),Hr.postMessage({event:`new-token`,data:e})}async function Wr(){if(Z.value)return X.value;if(X.value||await Kr(),Z.value=await Y.verifyAuthToken(X.value),!Z.value)throw X.value=null,Yt({message:`Invalid auth token, action canceled`,icon:`i-carbon-warning-alt`,classes:`text-red`}),await Kr(),Error(`[Nuxt DevTools] Invalid auth token`);return X.value}var Q=Kn(navigator.userAgent);async function Gr(){let e=[Q.browser.name,Q.browser.version,`|`,Q.os.name,Q.os.version,Q.device.type].filter(e=>e).join(` `);return await Y.requestForAuth(e)}async function Kr(){if(X.value||Gr(),await Promise.race([Zn.start(),Re(X.value).toBeTruthy()])===!1)throw Yt({message:`Action canceled`,icon:`carbon-close`,classes:`text-orange`}),Error(`[Nuxt DevTools] User canceled auth`)}var qr=l(),Jr;function Yr(){Jr||=(async()=>{let{default:e}=await b(async()=>{let{default:e}=await import(`./vendor/markdown-it-hplpr18t.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1]),import.meta.url);qr.value=new e({html:!0,linkify:!0,breaks:!0})})()}function Xr(e){return Yr(),qr.value?qr.value.render(e):e}var Zr={json:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.S),__vite__mapDeps([2,1]),import.meta.url),yaml:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),yml:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),css:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.E),__vite__mapDeps([2,1]),import.meta.url),javascript:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),js:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),cjs:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),mjs:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),typescript:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),ts:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),cts:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),mts:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),vue:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.v),__vite__mapDeps([2,1]),import.meta.url),"vue-html":()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.y),__vite__mapDeps([2,1]),import.meta.url),html:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.C),__vite__mapDeps([2,1]),import.meta.url),diff:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.T),__vite__mapDeps([2,1]),import.meta.url),shellscript:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),bash:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),sh:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),shell:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),zsh:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url)},Qr={"vitesse-dark":()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.g),__vite__mapDeps([2,1]),import.meta.url),"vitesse-light":()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.h),__vite__mapDeps([2,1]),import.meta.url)},$r=oe({langs:Zr,themes:Qr,engine:()=>T()}),{codeToHtml:ei,codeToHast:ti,codeToTokensBase:ni,codeToTokens:ri,codeToTokensWithThemes:ii,getSingletonHighlighter:ai,getLastGrammarState:oi}=se($r),si=l(),ci=null;function li(e,t=`text`,n){!ci&&!si.value&&(ci=$r({langs:Object.keys(Zr),themes:Object.keys(Qr)}).then(e=>{si.value=e}));let r=si.value?.getLoadedLanguages().includes(t);return r?{code:si.value.codeToHtml(e,{...n,lang:t,themes:{dark:`vitesse-dark`,light:`vitesse-light`},transformers:[{root(e){return{type:`root`,children:e.children[0].children[0].children}}}]}),supported:!0}:{code:e,supported:r}}function $(){return Yn(`devtools-client`)}function ui(){let e=$();return C(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function di(){let e=$();return C(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function fi(){let e=$();return C(()=>e.value?.nuxt.vueApp.config.globalProperties?.$head)}var pi=o(!1);setTimeout(()=>{pi.value=!0},2e3);var mi=C(()=>pi.value&&!$().value);function hi(){return Ot({storageKey:`nuxt-devtools-color-mode`})}function gi(){let e=$(),t=hi();return C(()=>({host:e.value,devtools:{rpc:Y,colorMode:t.value,renderCodeHighlight(e,t){return li(e,t)},renderMarkdown(e){return Xr(e)},extendClientRpc(e,t){return Br.set(e,t),new Proxy({},{get(t,n){if(typeof n==`string`)return Y[`${e}:${n}`]}})}}}))}export{We as $,Gt as A,Mt as B,Qn as C,Ye as D,Yt as E,ht as F,Wt as G,Ft as H,Ot as I,de as J,Kt as K,At as L,st as M,N,Xe as O,pt as P,Re as Q,jt as R,Xn as S,Xt as T,It as U,Nt as V,zt as W,k as X,je as Y,E as Z,Ir as _,ui as a,Dr as b,X as c,Gr as d,Pe as et,Ur as f,J as g,Y as h,fi as i,nt as j,Qe as k,Wr as l,zr as m,mi as n,di as o,Q as p,qt as q,$ as r,gi as s,hi as t,qe as tt,Z as u,Fr as v,Yn as w,Zn as x,Mr as y,P as z};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{Ct as e,T as t,V as n,W as r,h as i,p as a}from"./vendor/json-editor-vue-ajxjng9j.js";import{N as o}from"./client-kw9rd8gy.js";import{t as s}from"./ncode-block-pepewqmk.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function v(e,t){if(t)return b(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function y(e,t){if(t)return b(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function b(e,t){if(!t)return[y(e),v(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=_(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var x=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,S=RegExp(`[${x}]+|\\s+|[^${x}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=_(e,r)}else n=e.match(S)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&C(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&C(n,i,r,null,t.intlSegmenter),e}};function C(e,t,n,r,i){if(t&&n){let[a,o]=b(t.value,i),[s,c]=b(n.value,i);if(e){let r=l(a,s);e.value=f(e.value,s,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(o,c);r.value=d(r.value,c,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=y(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=y(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=y(r.value,i),[a,o]=b(t.value,i),s=l(n,a);t.value=p(t.value,s);let c=u(p(n,s),o);t.value=m(t.value,c),r.value=d(r.value,n,c),e.value=f(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=y(r.value,i),n=h(v(t.value,i),e);t.value=m(t.value,n)}else if(e){let n=h(v(e.value,i),y(t.value,i));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${x}]+|[^\\S\\n\\r]+|[^${x}]`,`ug`);return e.match(t)||[]}};var w=new class extends c{constructor(){super(...arguments),this.tokenize=E}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
|
+
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
3
|
+
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function T(e,t,n){return w.diff(e,t,n)}function E(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
6
|
+
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function D(e){return e==`.`||e==`!`||e==`?`}new class extends c{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(D(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends c{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends c{constructor(){super(...arguments),this.tokenize=E}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(O(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function O(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=O(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=O(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends c{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var k=Object.assign(t({__name:`CodeDiff`,props:{from:{},to:{},lang:{}},setup(t){let c=t,l=/class="shiki/,u=/class="line"/g;function d(e,t){let n=T(e.trim(),t.trim()),r=[],i=[],a=[];for(let e of n){let t=e.value.trimEnd().split(`
|
|
7
|
+
`);for(let n of t)e.added?(r.push(a.length),a.push(n)):(e.removed&&i.push(a.length),a.push(n))}return{added:r,removed:i,result:a.join(`
|
|
8
|
+
`)}}let f=a(()=>d(c.from,c.to));function p(e){let t=0;return e.replace(l,`class="shiki diff`).replace(u,e=>(t++,f.value.added.includes(t-1)?`class="line line-added"`:f.value.removed.includes(t-1)?`class="line line-removed"`:e))}let m=e();n(h);function h(){let e=o(m);e&&e.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(e,n)=>{let a=s;return r(),i(a,{ref_key:`elRef`,ref:m,code:f.value.result,lang:t.lang,"transform-rendered":p,onLoaded:h},null,8,[`code`,`lang`])}}}),{__name:`CodeDiff`});export{k as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Et as t,Mt as n,Qt as r,S as i,T as a,W as o,Y as s,_ as c,dt as l,g as u,h as d,lt as f,m as p,p as m,s as h,tn as g}from"./vendor/json-editor-vue-ajxjng9j.js";import{t as _}from"./nbutton-n4jak7c4.js";import{t as v}from"./editor-gio3gzf5.js";import{t as y}from"./ncode-block-pepewqmk.js";function b(e){return typeof e==`string`?`'${e}'`:new x().serialize(e)}var x=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function S(e,t){return e===t||b(e)===b(t)}var C={key:0,relative:``,"n-code-block":``},w={flex:`~ wrap`,"w-full":``},T=[`onClick`],E={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},D=Object.assign(a({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(a){let b=a,x=t(b.codeSnippets[0]),S=v(),D=m(()=>x.value?.lang||`text`);return f(()=>{b.codeSnippets.includes(x.value)||(x.value=b.codeSnippets[0])}),(t,f)=>{let m=y,v=_;return a.codeSnippets.length?(o(),c(`div`,C,[p(`div`,w,[(o(!0),c(h,null,s(a.codeSnippets,(e,t)=>(o(),c(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:r(e===x.value?``:`border-b`),onClick:t=>x.value=e},[p(`div`,{class:r(e===x.value?``:`op30`),"font-mono":``},g(e.name),3)],10,T))),128)),f[1]||=p(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?(o(),c(h,{key:0},[e(m,{code:x.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),p(`div`,E,[e(v,{icon:`carbon-copy`,onClick:f[0]||=e=>n(S)(x.value.code,a.eventType||`code-snippet-${x.value.name}`)},{default:l(()=>[...f[2]||=[i(` Copy `,-1)]]),_:1}),x.value?.docs?(o(),d(v,{key:0,to:x.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:l(()=>[...f[3]||=[i(` Docs `,-1)]]),_:1},8,[`to`])):u(``,!0)])],64)):u(``,!0)])):u(``,!0)}}}),{__name:`CodeSnippets`});export{S as n,b as r,D as t};
|