sv 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { Element, __commonJS, __require, __toESM, addPnpmBuildDependendencies, box, cancel, confirm, create, detect, esm_exports, from, getUserAgent, group, installDependencies, intro, isCancel, log, multiselect, note, outro, packageManagerPrompt, parseCss, parseHtml, parseHtml$1, parseJson, parseScript, parseSvelte, resolveCommand, select, spinner, templates, text, up, walk_exports } from "./package-manager-BusIB9Xp.js";
3
- import { __commonJS$1, __export, __toESM$1, addFromString, applyAddons, array_exports, common_exports, createWorkspace, dedent_default, exports_exports, formatFiles, function_exports, getHighlighter, imports_exports, kit_exports, object_exports, require_picocolors, setupAddons, variables_exports } from "./install-DPLwqpud.js";
2
+ import { Element, __commonJS, __require, __toESM, addPnpmBuildDependendencies, box, cancel, confirm, create, detect, esm_exports, from, getUserAgent, group, installDependencies, intro, isCancel, log, multiselect, note, outro, packageManagerPrompt, parseCss, parseHtml as parseHtml$1, parseHtml$1 as parseHtml, parseJson, parseScript, parseSvelte, resolveCommand, select, spinner, templates, text, up, walk_exports } from "./package-manager-Hi1R0gbv.js";
3
+ import { __commonJS$1, __export, __toESM$1, addFromString, applyAddons, array_exports, common_exports, createWorkspace, dedent_default, exports_exports, formatFiles, function_exports, getHighlighter, imports_exports, kit_exports, object_exports, require_picocolors, setupAddons, variables_exports } from "./install-C_HkLE-c.js";
4
4
  import fs, { existsSync } from "node:fs";
5
5
  import path, { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
@@ -12,7 +12,7 @@ import { promisify } from "node:util";
12
12
 
13
13
  //#region packages/cli/package.json
14
14
  var name = "sv";
15
- var version = "0.7.1";
15
+ var version = "0.8.0";
16
16
  var type = "module";
17
17
  var description = "A CLI for creating and updating SvelteKit projects";
18
18
  var license = "MIT";
@@ -4527,12 +4527,12 @@ const adapters = [
4527
4527
  {
4528
4528
  id: "auto",
4529
4529
  package: "@sveltejs/adapter-auto",
4530
- version: "^4.0.0"
4530
+ version: "^6.0.0"
4531
4531
  },
4532
4532
  {
4533
4533
  id: "node",
4534
4534
  package: "@sveltejs/adapter-node",
4535
- version: "^5.2.11"
4535
+ version: "^5.2.12"
4536
4536
  },
4537
4537
  {
4538
4538
  id: "static",
@@ -4542,22 +4542,17 @@ const adapters = [
4542
4542
  {
4543
4543
  id: "vercel",
4544
4544
  package: "@sveltejs/adapter-vercel",
4545
- version: "^5.5.2"
4545
+ version: "^5.6.3"
4546
4546
  },
4547
4547
  {
4548
4548
  id: "cloudflare-pages",
4549
4549
  package: "@sveltejs/adapter-cloudflare",
4550
- version: "^5.0.1"
4551
- },
4552
- {
4553
- id: "cloudflare-workers",
4554
- package: "@sveltejs/adapter-cloudflare-workers",
4555
- version: "^2.7.0"
4550
+ version: "^7.0.0"
4556
4551
  },
4557
4552
  {
4558
4553
  id: "netlify",
4559
4554
  package: "@sveltejs/adapter-netlify",
4560
- version: "^4.4.0"
4555
+ version: "^5.0.0"
4561
4556
  }
4562
4557
  ];
4563
4558
  const options$4 = defineAddonOptions({ adapter: {
@@ -6196,7 +6191,7 @@ function appendElement(childNodes, elementToAppend) {
6196
6191
  childNodes.push(elementToAppend);
6197
6192
  }
6198
6193
  function addFromRawHtml(childNodes, html) {
6199
- const document = parseHtml$1(html);
6194
+ const document = parseHtml(html);
6200
6195
  for (const childNode of document.childNodes) childNodes.push(childNode);
6201
6196
  }
6202
6197
  function addSlot(jsAst, htmlAst, svelteVersion) {
@@ -6303,7 +6298,7 @@ var paraglide_default = defineAddon({
6303
6298
  return generateCode();
6304
6299
  });
6305
6300
  sv.file("src/app.html", (content) => {
6306
- const { ast, generateCode } = parseHtml(content);
6301
+ const { ast, generateCode } = parseHtml$1(content);
6307
6302
  const htmlNode = ast.children.find((child) => child.type === esm_exports.Tag && child.name === "html");
6308
6303
  if (!htmlNode) {
6309
6304
  log$1.warn("Could not find <html> node in app.html. You'll need to add the language placeholder manually");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { create } from "./package-manager-BusIB9Xp.js";
2
- import { installAddon } from "./install-DPLwqpud.js";
1
+ import { create } from "./package-manager-Hi1R0gbv.js";
2
+ import { installAddon } from "./install-C_HkLE-c.js";
3
3
 
4
4
  export { create, installAddon };
@@ -1,4 +1,4 @@
1
- import { __commonJS, __toESM, be, detect, getUserAgent, log, parseJson, parseScript as parseScript$1, parseScript$1 as parseScript, resolveCommand, serializeScript, stripAst, up, walk_exports } from "./package-manager-BusIB9Xp.js";
1
+ import { __commonJS, __toESM, be, detect, getUserAgent, log, parseJson, parseScript as parseScript$1, parseScript$1 as parseScript, resolveCommand, serializeScript, stripAst, up, walk_exports } from "./package-manager-Hi1R0gbv.js";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import process$1 from "node:process";
@@ -2035,7 +2035,7 @@ var R = class {
2035
2035
  }, be = ve;
2036
2036
 
2037
2037
  //#endregion
2038
- //#region node_modules/.pnpm/package-manager-detector@0.2.8/node_modules/package-manager-detector/dist/commands.mjs
2038
+ //#region node_modules/.pnpm/package-manager-detector@0.2.7/node_modules/package-manager-detector/dist/commands.mjs
2039
2039
  function npmRun(agent) {
2040
2040
  return (args) => {
2041
2041
  if (args.length > 1) return [
@@ -2408,7 +2408,7 @@ function constructCommand(value, args) {
2408
2408
  }
2409
2409
 
2410
2410
  //#endregion
2411
- //#region node_modules/.pnpm/package-manager-detector@0.2.8/node_modules/package-manager-detector/dist/constants.mjs
2411
+ //#region node_modules/.pnpm/package-manager-detector@0.2.7/node_modules/package-manager-detector/dist/constants.mjs
2412
2412
  const AGENTS = [
2413
2413
  "npm",
2414
2414
  "yarn",
@@ -2419,7 +2419,6 @@ const AGENTS = [
2419
2419
  "deno"
2420
2420
  ];
2421
2421
  const LOCKS = {
2422
- "bun.lock": "bun",
2423
2422
  "bun.lockb": "bun",
2424
2423
  "deno.lock": "deno",
2425
2424
  "pnpm-lock.yaml": "pnpm",
@@ -2429,7 +2428,7 @@ const LOCKS = {
2429
2428
  };
2430
2429
 
2431
2430
  //#endregion
2432
- //#region node_modules/.pnpm/package-manager-detector@0.2.8/node_modules/package-manager-detector/dist/detect.mjs
2431
+ //#region node_modules/.pnpm/package-manager-detector@0.2.7/node_modules/package-manager-detector/dist/detect.mjs
2433
2432
  async function detect(options = {}) {
2434
2433
  const { cwd: cwd$1, onUnknown } = options;
2435
2434
  for (const directory of lookup(cwd$1)) {
@@ -6601,7 +6600,7 @@ var require_picocolors = __commonJS({ "node_modules/.pnpm/picocolors@1.1.1/node_
6601
6600
  module.exports = createColors();
6602
6601
  module.exports.createColors = createColors;
6603
6602
  } });
6604
- var require_tokenize = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/tokenize.js"(exports, module) {
6603
+ var require_tokenize = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/tokenize.js"(exports, module) {
6605
6604
  const SINGLE_QUOTE = "'".charCodeAt(0);
6606
6605
  const DOUBLE_QUOTE = "\"".charCodeAt(0);
6607
6606
  const BACKSLASH = "\\".charCodeAt(0);
@@ -6830,7 +6829,7 @@ else next = RE_WORD_END.lastIndex - 2;
6830
6829
  };
6831
6830
  };
6832
6831
  } });
6833
- var require_terminal_highlight = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/terminal-highlight.js"(exports, module) {
6832
+ var require_terminal_highlight = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/terminal-highlight.js"(exports, module) {
6834
6833
  let pico$1 = require_picocolors();
6835
6834
  let tokenizer$2 = require_tokenize();
6836
6835
  let Input$6;
@@ -6880,7 +6879,7 @@ else result += token[1];
6880
6879
  terminalHighlight$2.registerInput = registerInput;
6881
6880
  module.exports = terminalHighlight$2;
6882
6881
  } });
6883
- var require_css_syntax_error = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/css-syntax-error.js"(exports, module) {
6882
+ var require_css_syntax_error = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/css-syntax-error.js"(exports, module) {
6884
6883
  let pico = require_picocolors();
6885
6884
  let terminalHighlight$1 = require_terminal_highlight();
6886
6885
  var CssSyntaxError$4 = class CssSyntaxError$4$1 extends Error {
@@ -6953,7 +6952,7 @@ var require_css_syntax_error = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/no
6953
6952
  module.exports = CssSyntaxError$4;
6954
6953
  CssSyntaxError$4.default = CssSyntaxError$4;
6955
6954
  } });
6956
- var require_stringifier = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/stringifier.js"(exports, module) {
6955
+ var require_stringifier = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/stringifier.js"(exports, module) {
6957
6956
  const DEFAULT_RAW = {
6958
6957
  after: "\n",
6959
6958
  beforeClose: "\n",
@@ -7205,7 +7204,7 @@ else if (value) value = value.replace(/\S/g, "");
7205
7204
  module.exports = Stringifier$2;
7206
7205
  Stringifier$2.default = Stringifier$2;
7207
7206
  } });
7208
- var require_stringify = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/stringify.js"(exports, module) {
7207
+ var require_stringify = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/stringify.js"(exports, module) {
7209
7208
  let Stringifier$1 = require_stringifier();
7210
7209
  function stringify$5(node, builder) {
7211
7210
  let str = new Stringifier$1(builder);
@@ -7214,11 +7213,11 @@ var require_stringify = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modu
7214
7213
  module.exports = stringify$5;
7215
7214
  stringify$5.default = stringify$5;
7216
7215
  } });
7217
- var require_symbols = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/symbols.js"(exports, module) {
7216
+ var require_symbols = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/symbols.js"(exports, module) {
7218
7217
  module.exports.isClean = Symbol("isClean");
7219
7218
  module.exports.my = Symbol("my");
7220
7219
  } });
7221
- var require_node = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/node.js"(exports, module) {
7220
+ var require_node = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/node.js"(exports, module) {
7222
7221
  let CssSyntaxError$3 = require_css_syntax_error();
7223
7222
  let Stringifier = require_stringifier();
7224
7223
  let stringify$4 = require_stringify();
@@ -7259,9 +7258,6 @@ else {
7259
7258
  return offset;
7260
7259
  }
7261
7260
  var Node$6 = class {
7262
- get proxyOf() {
7263
- return this;
7264
- }
7265
7261
  constructor(defaults = {}) {
7266
7262
  this.raws = {};
7267
7263
  this[isClean$2] = false;
@@ -7503,11 +7499,14 @@ else if (name === "source") {
7503
7499
  for (let i$1 in opts) data$1[i$1] = opts[i$1];
7504
7500
  return result.warn(text$1, data$1);
7505
7501
  }
7502
+ get proxyOf() {
7503
+ return this;
7504
+ }
7506
7505
  };
7507
7506
  module.exports = Node$6;
7508
7507
  Node$6.default = Node$6;
7509
7508
  } });
7510
- var require_comment = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/comment.js"(exports, module) {
7509
+ var require_comment = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/comment.js"(exports, module) {
7511
7510
  let Node$5 = require_node();
7512
7511
  var Comment$5 = class extends Node$5 {
7513
7512
  constructor(defaults) {
@@ -7518,12 +7517,9 @@ var require_comment = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_module
7518
7517
  module.exports = Comment$5;
7519
7518
  Comment$5.default = Comment$5;
7520
7519
  } });
7521
- var require_declaration = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/declaration.js"(exports, module) {
7520
+ var require_declaration = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/declaration.js"(exports, module) {
7522
7521
  let Node$4 = require_node();
7523
7522
  var Declaration$5 = class extends Node$4 {
7524
- get variable() {
7525
- return this.prop.startsWith("--") || this.prop[0] === "$";
7526
- }
7527
7523
  constructor(defaults) {
7528
7524
  if (defaults && typeof defaults.value !== "undefined" && typeof defaults.value !== "string") defaults = {
7529
7525
  ...defaults,
@@ -7532,11 +7528,14 @@ var require_declaration = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_mo
7532
7528
  super(defaults);
7533
7529
  this.type = "decl";
7534
7530
  }
7531
+ get variable() {
7532
+ return this.prop.startsWith("--") || this.prop[0] === "$";
7533
+ }
7535
7534
  };
7536
7535
  module.exports = Declaration$5;
7537
7536
  Declaration$5.default = Declaration$5;
7538
7537
  } });
7539
- var require_container = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/container.js"(exports, module) {
7538
+ var require_container = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/container.js"(exports, module) {
7540
7539
  let Comment$4 = require_comment();
7541
7540
  let Declaration$4 = require_declaration();
7542
7541
  let Node$3 = require_node();
@@ -7554,14 +7553,6 @@ var require_container = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modu
7554
7553
  if (node.proxyOf.nodes) for (let i$1 of node.proxyOf.nodes) markTreeDirty(i$1);
7555
7554
  }
7556
7555
  var Container$8 = class Container$8$1 extends Node$3 {
7557
- get first() {
7558
- if (!this.proxyOf.nodes) return undefined;
7559
- return this.proxyOf.nodes[0];
7560
- }
7561
- get last() {
7562
- if (!this.proxyOf.nodes) return undefined;
7563
- return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
7564
- }
7565
7556
  append(...children) {
7566
7557
  for (let child of children) {
7567
7558
  let nodes = this.normalize(child, this.last);
@@ -7797,6 +7788,14 @@ else throw new Error("Unknown node type in node creation");
7797
7788
  if (child.type === "rule" && child.selector === selector) return callback(child, i$1);
7798
7789
  });
7799
7790
  }
7791
+ get first() {
7792
+ if (!this.proxyOf.nodes) return undefined;
7793
+ return this.proxyOf.nodes[0];
7794
+ }
7795
+ get last() {
7796
+ if (!this.proxyOf.nodes) return undefined;
7797
+ return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
7798
+ }
7800
7799
  };
7801
7800
  Container$8.registerParse = (dependant) => {
7802
7801
  parse$6 = dependant;
@@ -7824,7 +7823,7 @@ else if (node.type === "root") Object.setPrototypeOf(node, Root$7.prototype);
7824
7823
  });
7825
7824
  };
7826
7825
  } });
7827
- var require_at_rule = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/at-rule.js"(exports, module) {
7826
+ var require_at_rule = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/at-rule.js"(exports, module) {
7828
7827
  let Container$7 = require_container();
7829
7828
  var AtRule$4 = class extends Container$7 {
7830
7829
  constructor(defaults) {
@@ -7844,7 +7843,7 @@ var require_at_rule = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_module
7844
7843
  AtRule$4.default = AtRule$4;
7845
7844
  Container$7.registerAtRule(AtRule$4);
7846
7845
  } });
7847
- var require_document = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/document.js"(exports, module) {
7846
+ var require_document = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/document.js"(exports, module) {
7848
7847
  let Container$6 = require_container();
7849
7848
  let LazyResult$4, Processor$4;
7850
7849
  var Document$5 = class extends Container$6 {
@@ -9978,7 +9977,7 @@ var require_source_map = __commonJS({ "node_modules/.pnpm/source-map-js@1.2.1/no
9978
9977
  exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
9979
9978
  exports.SourceNode = require_source_node().SourceNode;
9980
9979
  } });
9981
- var require_previous_map = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/previous-map.js"(exports, module) {
9980
+ var require_previous_map = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/previous-map.js"(exports, module) {
9982
9981
  let { existsSync: existsSync$1, readFileSync } = __require("fs");
9983
9982
  let { dirname: dirname$1$1, join: join$1 } = __require("path");
9984
9983
  let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } = require_source_map();
@@ -10066,7 +10065,7 @@ else if (this.annotation) {
10066
10065
  module.exports = PreviousMap$2;
10067
10066
  PreviousMap$2.default = PreviousMap$2;
10068
10067
  } });
10069
- var require_input = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/input.js"(exports, module) {
10068
+ var require_input = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/input.js"(exports, module) {
10070
10069
  let { nanoid } = require_non_secure();
10071
10070
  let { isAbsolute: isAbsolute$1, resolve: resolve$1$1 } = __require("path");
10072
10071
  let { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } = require_source_map();
@@ -10078,9 +10077,6 @@ var require_input = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/
10078
10077
  let sourceMapAvailable$1 = Boolean(SourceMapConsumer$1 && SourceMapGenerator$1);
10079
10078
  let pathAvailable$1 = Boolean(resolve$1$1 && isAbsolute$1);
10080
10079
  var Input$5 = class {
10081
- get from() {
10082
- return this.file || this.id;
10083
- }
10084
10080
  constructor(css, opts = {}) {
10085
10081
  if (css === null || typeof css === "undefined" || typeof css === "object" && !css.toString) throw new Error(`PostCSS received ${css} instead of CSS string`);
10086
10082
  this.css = css.toString();
@@ -10237,12 +10233,15 @@ else throw new Error(`file: protocol is not available in this PostCSS build`);
10237
10233
  }
10238
10234
  return json;
10239
10235
  }
10236
+ get from() {
10237
+ return this.file || this.id;
10238
+ }
10240
10239
  };
10241
10240
  module.exports = Input$5;
10242
10241
  Input$5.default = Input$5;
10243
10242
  if (terminalHighlight && terminalHighlight.registerInput) terminalHighlight.registerInput(Input$5);
10244
10243
  } });
10245
- var require_root = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/root.js"(exports, module) {
10244
+ var require_root = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/root.js"(exports, module) {
10246
10245
  let Container$5 = require_container();
10247
10246
  let LazyResult$3, Processor$3;
10248
10247
  var Root$6 = class extends Container$5 {
@@ -10280,7 +10279,7 @@ else if (this.first !== sample) for (let node of nodes) node.raws.before = sampl
10280
10279
  Root$6.default = Root$6;
10281
10280
  Container$5.registerRoot(Root$6);
10282
10281
  } });
10283
- var require_list = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/list.js"(exports, module) {
10282
+ var require_list = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/list.js"(exports, module) {
10284
10283
  let list$4 = {
10285
10284
  comma(string) {
10286
10285
  return list$4.split(string, [","], true);
@@ -10328,10 +10327,15 @@ else if (letter === ")") {
10328
10327
  module.exports = list$4;
10329
10328
  list$4.default = list$4;
10330
10329
  } });
10331
- var require_rule = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/rule.js"(exports, module) {
10330
+ var require_rule = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/rule.js"(exports, module) {
10332
10331
  let Container$4 = require_container();
10333
10332
  let list$3 = require_list();
10334
10333
  var Rule$4 = class extends Container$4 {
10334
+ constructor(defaults) {
10335
+ super(defaults);
10336
+ this.type = "rule";
10337
+ if (!this.nodes) this.nodes = [];
10338
+ }
10335
10339
  get selectors() {
10336
10340
  return list$3.comma(this.selector);
10337
10341
  }
@@ -10340,17 +10344,12 @@ var require_rule = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/p
10340
10344
  let sep$1 = match ? match[0] : "," + this.raw("between", "beforeOpen");
10341
10345
  this.selector = values.join(sep$1);
10342
10346
  }
10343
- constructor(defaults) {
10344
- super(defaults);
10345
- this.type = "rule";
10346
- if (!this.nodes) this.nodes = [];
10347
- }
10348
10347
  };
10349
10348
  module.exports = Rule$4;
10350
10349
  Rule$4.default = Rule$4;
10351
10350
  Container$4.registerRule(Rule$4);
10352
10351
  } });
10353
- var require_fromJSON = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/fromJSON.js"(exports, module) {
10352
+ var require_fromJSON = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/fromJSON.js"(exports, module) {
10354
10353
  let AtRule$3 = require_at_rule();
10355
10354
  let Comment$3 = require_comment();
10356
10355
  let Declaration$3 = require_declaration();
@@ -10391,7 +10390,7 @@ else throw new Error("Unknown node type: " + json.type);
10391
10390
  module.exports = fromJSON$2;
10392
10391
  fromJSON$2.default = fromJSON$2;
10393
10392
  } });
10394
- var require_map_generator = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/map-generator.js"(exports, module) {
10393
+ var require_map_generator = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/map-generator.js"(exports, module) {
10395
10394
  let { dirname: dirname$2, relative, resolve: resolve$2, sep } = __require("path");
10396
10395
  let { SourceMapConsumer, SourceMapGenerator } = require_source_map();
10397
10396
  let { pathToFileURL } = __require("url");
@@ -10650,7 +10649,7 @@ else return window.btoa(unescape(encodeURIComponent(str)));
10650
10649
  };
10651
10650
  module.exports = MapGenerator$2;
10652
10651
  } });
10653
- var require_parser = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/parser.js"(exports, module) {
10652
+ var require_parser = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/parser.js"(exports, module) {
10654
10653
  let AtRule$2 = require_at_rule();
10655
10654
  let Comment$2 = require_comment();
10656
10655
  let Declaration$2 = require_declaration();
@@ -10910,8 +10909,6 @@ else return i$1;
10910
10909
  if (prev && prev.type === "rule" && !prev.raws.ownSemicolon) {
10911
10910
  prev.raws.ownSemicolon = this.spaces;
10912
10911
  this.spaces = "";
10913
- prev.source.end = this.getPosition(token[2]);
10914
- prev.source.end.offset += prev.raws.ownSemicolon.length;
10915
10912
  }
10916
10913
  }
10917
10914
  }
@@ -11094,7 +11091,7 @@ else clean = false;
11094
11091
  throw this.input.error("Unexpected }", { offset: token[2] }, { offset: token[2] + 1 });
11095
11092
  }
11096
11093
  unknownWord(tokens) {
11097
- throw this.input.error("Unknown word " + tokens[0][1], { offset: tokens[0][2] }, { offset: tokens[0][2] + tokens[0][1].length });
11094
+ throw this.input.error("Unknown word", { offset: tokens[0][2] }, { offset: tokens[0][2] + tokens[0][1].length });
11098
11095
  }
11099
11096
  unnamedAtrule(node, token) {
11100
11097
  throw this.input.error("At-rule without name", { offset: token[2] }, { offset: token[2] + token[1].length });
@@ -11102,7 +11099,7 @@ else clean = false;
11102
11099
  };
11103
11100
  module.exports = Parser$2;
11104
11101
  } });
11105
- var require_parse = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/parse.js"(exports, module) {
11102
+ var require_parse = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/parse.js"(exports, module) {
11106
11103
  let Container$3 = require_container();
11107
11104
  let Input$2 = require_input();
11108
11105
  let Parser$1 = require_parser();
@@ -11127,7 +11124,7 @@ else if (/\.less$/i.test(opts.from)) e.message += "\nYou tried to parse Less wit
11127
11124
  parse$5.default = parse$5;
11128
11125
  Container$3.registerParse(parse$5);
11129
11126
  } });
11130
- var require_warning = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/warning.js"(exports, module) {
11127
+ var require_warning = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/warning.js"(exports, module) {
11131
11128
  var Warning$3 = class {
11132
11129
  constructor(text$1, opts = {}) {
11133
11130
  this.type = "warning";
@@ -11154,12 +11151,9 @@ var require_warning = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_module
11154
11151
  module.exports = Warning$3;
11155
11152
  Warning$3.default = Warning$3;
11156
11153
  } });
11157
- var require_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/result.js"(exports, module) {
11154
+ var require_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/result.js"(exports, module) {
11158
11155
  let Warning$2 = require_warning();
11159
11156
  var Result$4 = class {
11160
- get content() {
11161
- return this.css;
11162
- }
11163
11157
  constructor(processor, root$1, opts) {
11164
11158
  this.processor = processor;
11165
11159
  this.messages = [];
@@ -11182,11 +11176,14 @@ var require_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules
11182
11176
  warnings() {
11183
11177
  return this.messages.filter((i$1) => i$1.type === "warning");
11184
11178
  }
11179
+ get content() {
11180
+ return this.css;
11181
+ }
11185
11182
  };
11186
11183
  module.exports = Result$4;
11187
11184
  Result$4.default = Result$4;
11188
11185
  } });
11189
- var require_warn_once = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/warn-once.js"(exports, module) {
11186
+ var require_warn_once = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/warn-once.js"(exports, module) {
11190
11187
  let printed = {};
11191
11188
  module.exports = function warnOnce$2(message) {
11192
11189
  if (printed[message]) return;
@@ -11194,7 +11191,7 @@ var require_warn_once = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modu
11194
11191
  if (typeof console !== "undefined" && console.warn) console.warn(message);
11195
11192
  };
11196
11193
  } });
11197
- var require_lazy_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/lazy-result.js"(exports, module) {
11194
+ var require_lazy_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/lazy-result.js"(exports, module) {
11198
11195
  let Container$2 = require_container();
11199
11196
  let Document$4 = require_document();
11200
11197
  let MapGenerator$1 = require_map_generator();
@@ -11293,30 +11290,6 @@ else events = getEvents(node);
11293
11290
  }
11294
11291
  let postcss$2 = {};
11295
11292
  var LazyResult$2 = class LazyResult$2$1 {
11296
- get content() {
11297
- return this.stringify().content;
11298
- }
11299
- get css() {
11300
- return this.stringify().css;
11301
- }
11302
- get map() {
11303
- return this.stringify().map;
11304
- }
11305
- get messages() {
11306
- return this.sync().messages;
11307
- }
11308
- get opts() {
11309
- return this.result.opts;
11310
- }
11311
- get processor() {
11312
- return this.result.processor;
11313
- }
11314
- get root() {
11315
- return this.sync().root;
11316
- }
11317
- get [Symbol.toStringTag]() {
11318
- return "LazyResult";
11319
- }
11320
11293
  constructor(processor, css, opts) {
11321
11294
  this.stringified = false;
11322
11295
  this.processed = false;
@@ -11595,33 +11568,17 @@ else this.visitSync(this.listeners.OnceExit, root$1);
11595
11568
  warnings() {
11596
11569
  return this.sync().warnings();
11597
11570
  }
11598
- };
11599
- LazyResult$2.registerPostcss = (dependant) => {
11600
- postcss$2 = dependant;
11601
- };
11602
- module.exports = LazyResult$2;
11603
- LazyResult$2.default = LazyResult$2;
11604
- Root$3.registerLazyResult(LazyResult$2);
11605
- Document$4.registerLazyResult(LazyResult$2);
11606
- } });
11607
- var require_no_work_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/no-work-result.js"(exports, module) {
11608
- let MapGenerator = require_map_generator();
11609
- let parse$3 = require_parse();
11610
- const Result$2 = require_result();
11611
- let stringify$2 = require_stringify();
11612
- let warnOnce = require_warn_once();
11613
- var NoWorkResult$1 = class {
11614
11571
  get content() {
11615
- return this.result.css;
11572
+ return this.stringify().content;
11616
11573
  }
11617
11574
  get css() {
11618
- return this.result.css;
11575
+ return this.stringify().css;
11619
11576
  }
11620
11577
  get map() {
11621
- return this.result.map;
11578
+ return this.stringify().map;
11622
11579
  }
11623
11580
  get messages() {
11624
- return [];
11581
+ return this.sync().messages;
11625
11582
  }
11626
11583
  get opts() {
11627
11584
  return this.result.opts;
@@ -11630,23 +11587,27 @@ var require_no_work_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node
11630
11587
  return this.result.processor;
11631
11588
  }
11632
11589
  get root() {
11633
- if (this._root) return this._root;
11634
- let root$1;
11635
- let parser = parse$3;
11636
- try {
11637
- root$1 = parser(this._css, this._opts);
11638
- } catch (error) {
11639
- this.error = error;
11640
- }
11641
- if (this.error) throw this.error;
11642
- else {
11643
- this._root = root$1;
11644
- return root$1;
11645
- }
11590
+ return this.sync().root;
11646
11591
  }
11647
11592
  get [Symbol.toStringTag]() {
11648
- return "NoWorkResult";
11593
+ return "LazyResult";
11649
11594
  }
11595
+ };
11596
+ LazyResult$2.registerPostcss = (dependant) => {
11597
+ postcss$2 = dependant;
11598
+ };
11599
+ module.exports = LazyResult$2;
11600
+ LazyResult$2.default = LazyResult$2;
11601
+ Root$3.registerLazyResult(LazyResult$2);
11602
+ Document$4.registerLazyResult(LazyResult$2);
11603
+ } });
11604
+ var require_no_work_result = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/no-work-result.js"(exports, module) {
11605
+ let MapGenerator = require_map_generator();
11606
+ let parse$3 = require_parse();
11607
+ const Result$2 = require_result();
11608
+ let stringify$2 = require_stringify();
11609
+ let warnOnce = require_warn_once();
11610
+ var NoWorkResult$1 = class {
11650
11611
  constructor(processor, css, opts) {
11651
11612
  css = css.toString();
11652
11613
  this.stringified = false;
@@ -11698,18 +11659,54 @@ else {
11698
11659
  warnings() {
11699
11660
  return [];
11700
11661
  }
11662
+ get content() {
11663
+ return this.result.css;
11664
+ }
11665
+ get css() {
11666
+ return this.result.css;
11667
+ }
11668
+ get map() {
11669
+ return this.result.map;
11670
+ }
11671
+ get messages() {
11672
+ return [];
11673
+ }
11674
+ get opts() {
11675
+ return this.result.opts;
11676
+ }
11677
+ get processor() {
11678
+ return this.result.processor;
11679
+ }
11680
+ get root() {
11681
+ if (this._root) return this._root;
11682
+ let root$1;
11683
+ let parser = parse$3;
11684
+ try {
11685
+ root$1 = parser(this._css, this._opts);
11686
+ } catch (error) {
11687
+ this.error = error;
11688
+ }
11689
+ if (this.error) throw this.error;
11690
+ else {
11691
+ this._root = root$1;
11692
+ return root$1;
11693
+ }
11694
+ }
11695
+ get [Symbol.toStringTag]() {
11696
+ return "NoWorkResult";
11697
+ }
11701
11698
  };
11702
11699
  module.exports = NoWorkResult$1;
11703
11700
  NoWorkResult$1.default = NoWorkResult$1;
11704
11701
  } });
11705
- var require_processor = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/processor.js"(exports, module) {
11702
+ var require_processor = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/processor.js"(exports, module) {
11706
11703
  let Document$3 = require_document();
11707
11704
  let LazyResult$1 = require_lazy_result();
11708
11705
  let NoWorkResult = require_no_work_result();
11709
11706
  let Root$2 = require_root();
11710
11707
  var Processor$2 = class {
11711
11708
  constructor(plugins = []) {
11712
- this.version = "8.5.3";
11709
+ this.version = "8.5.1";
11713
11710
  this.plugins = this.normalize(plugins);
11714
11711
  }
11715
11712
  normalize(plugins) {
@@ -11740,7 +11737,7 @@ else return new LazyResult$1(this, css, opts);
11740
11737
  Root$2.registerProcessor(Processor$2);
11741
11738
  Document$3.registerProcessor(Processor$2);
11742
11739
  } });
11743
- var require_postcss = __commonJS({ "node_modules/.pnpm/postcss@8.5.3/node_modules/postcss/lib/postcss.js"(exports, module) {
11740
+ var require_postcss = __commonJS({ "node_modules/.pnpm/postcss@8.5.1/node_modules/postcss/lib/postcss.js"(exports, module) {
11744
11741
  let AtRule$1 = require_at_rule();
11745
11742
  let Comment$1 = require_comment();
11746
11743
  let Container$1 = require_container();
@@ -19867,8 +19864,6 @@ var acornScope = {
19867
19864
  BIND_TS_NAMESPACE: 8,
19868
19865
  BIND_FLAGS_TS_EXPORT_ONLY: 1024,
19869
19866
  BIND_FLAGS_TS_IMPORT: 4096,
19870
- BIND_KIND_VALUE: 0,
19871
- BIND_KIND_TYPE: 0,
19872
19867
  BIND_FLAGS_TS_ENUM: 256,
19873
19868
  BIND_FLAGS_TS_CONST_ENUM: 512,
19874
19869
  BIND_FLAGS_CLASS: 128
@@ -19914,7 +19909,7 @@ function keywordTypeFromName(value) {
19914
19909
  }
19915
19910
  }
19916
19911
  function tsPlugin(options) {
19917
- const { dts = false, allowSatisfies = false } = options || {};
19912
+ const { dts = false } = options || {};
19918
19913
  const disallowAmbiguousJSXLike = !!options?.jsx;
19919
19914
  return function(Parser$4) {
19920
19915
  const _acorn = Parser$4.acorn || acorn_exports;
@@ -19957,11 +19952,14 @@ function tsPlugin(options) {
19957
19952
  * default kind is undefined
19958
19953
  * */
19959
19954
  this.importOrExportOuterKind = void 0;
19960
- this.tsParseConstModifier = this.tsParseModifiers.bind(this, {
19961
- allowedModifiers: ["const"],
19962
- disallowedModifiers: ["in", "out"],
19963
- errorTemplate: TypeScriptError.InvalidModifierOnTypeParameterPositions
19964
- });
19955
+ this.tsParseConstModifier = (node) => {
19956
+ this.tsParseModifiers({
19957
+ modified: node,
19958
+ allowedModifiers: ["const"],
19959
+ disallowedModifiers: ["in", "out"],
19960
+ errorTemplate: TypeScriptError.InvalidModifierOnTypeParameterPositions
19961
+ });
19962
+ };
19965
19963
  this.ecmaVersion = this.options.ecmaVersion;
19966
19964
  }
19967
19965
  static get acornTypeScript() {
@@ -20062,10 +20060,10 @@ else return this.finishToken(tt.relational, "<");
20062
20060
  }
20063
20061
  return type;
20064
20062
  }
20065
- resetEndLocation(node, endLoc = this.lastTokEndLoc) {
20066
- node.end = endLoc.column;
20063
+ resetEndLocation(node, endPos = this.lastTokEnd, endLoc = this.lastTokEndLoc) {
20064
+ node.end = endPos;
20067
20065
  node.loc.end = endLoc;
20068
- if (this.options.ranges) node.range[1] = endLoc.column;
20066
+ if (this.options.ranges) node.range[1] = endPos;
20069
20067
  }
20070
20068
  startNodeAtNode(type) {
20071
20069
  return super.startNodeAt(type.start, type.loc.start);
@@ -20102,7 +20100,7 @@ else return this.finishToken(tt.relational, "<");
20102
20100
  this.maybeInArrowParameters = true;
20103
20101
  const res = this.tsTryParseAndCatch(() => {
20104
20102
  const node = this.startNodeAt(startPos, startLoc);
20105
- node.typeParameters = this.tsParseTypeParameters();
20103
+ node.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier);
20106
20104
  super.parseFunctionParams(node);
20107
20105
  node.returnType = this.tsTryParseTypeOrTypePredicateAnnotation();
20108
20106
  this.expect(tt.arrow);
@@ -20310,7 +20308,7 @@ else Object.defineProperty(extra, key, {
20310
20308
  return tokenIsLiteralPropertyName(this.type);
20311
20309
  }
20312
20310
  hasPrecedingLineBreak() {
20313
- return lineBreak$1.test(this.input.slice(this.lastTokEndLoc.index, this.start));
20311
+ return lineBreak$1.test(this.input.slice(this.lastTokEnd, this.start));
20314
20312
  }
20315
20313
  createIdentifier(node, name) {
20316
20314
  node.name = name;
@@ -20463,7 +20461,7 @@ else Object.defineProperty(extra, key, {
20463
20461
  }
20464
20462
  tsParseModuleBlock() {
20465
20463
  const node = this.startNode();
20466
- super.enterScope(TS_SCOPE_OTHER);
20464
+ this.enterScope(TS_SCOPE_OTHER);
20467
20465
  this.expect(tt.braceL);
20468
20466
  node.body = [];
20469
20467
  while (this.type !== tt.braceR) {
@@ -20481,7 +20479,7 @@ else Object.defineProperty(extra, key, {
20481
20479
  } else if (this.match(tt.string)) node.id = this.parseLiteral(this.value);
20482
20480
  else this.unexpected();
20483
20481
  if (this.match(tt.braceL)) {
20484
- super.enterScope(TS_SCOPE_TS_MODULE);
20482
+ this.enterScope(TS_SCOPE_TS_MODULE);
20485
20483
  node.body = this.tsParseModuleBlock();
20486
20484
  super.exitScope();
20487
20485
  } else super.semicolon();
@@ -20758,7 +20756,7 @@ else if (this.match(returnToken)) signature[returnTypeKey] = this.tsParseTypeOrT
20758
20756
  if (this.lookahead().type !== tt._const) return null;
20759
20757
  this.next();
20760
20758
  const typeReference = this.tsParseTypeReference();
20761
- if (typeReference.typeParameters) this.raise(typeReference.typeName.start, TypeScriptError.CannotFindName({ name: "const" }));
20759
+ if (typeReference.typeParameters || typeReference.typeArguments) this.raise(typeReference.typeName.start, TypeScriptError.CannotFindName({ name: "const" }));
20762
20760
  return typeReference;
20763
20761
  }
20764
20762
  tsParseFunctionOrConstructorType(type, abstract) {
@@ -20834,7 +20832,7 @@ else if (this.match(returnToken)) signature[returnTypeKey] = this.tsParseTypeOrT
20834
20832
  node.argument = this.parseExprAtom();
20835
20833
  this.expect(tt.parenR);
20836
20834
  if (this.eat(tt.dot)) node.qualifier = this.tsParseEntityName();
20837
- if (this.tsMatchLeftRelational()) node.typeParameters = this.tsParseTypeArguments();
20835
+ if (this.tsMatchLeftRelational()) node.typeArguments = this.tsParseTypeArguments();
20838
20836
  return this.finishNode(node, "TSImportType");
20839
20837
  }
20840
20838
  tsParseTypeQuery() {
@@ -20842,7 +20840,7 @@ else if (this.match(returnToken)) signature[returnTypeKey] = this.tsParseTypeOrT
20842
20840
  this.expect(tt._typeof);
20843
20841
  if (this.match(tt._import)) node.exprName = this.tsParseImportType();
20844
20842
  else node.exprName = this.tsParseEntityName();
20845
- if (!this.hasPrecedingLineBreak() && this.tsMatchLeftRelational()) node.typeParameters = this.tsParseTypeArguments();
20843
+ if (!this.hasPrecedingLineBreak() && this.tsMatchLeftRelational()) node.typeArguments = this.tsParseTypeArguments();
20846
20844
  return this.finishNode(node, "TSTypeQuery");
20847
20845
  }
20848
20846
  tsParseMappedTypeParameter() {
@@ -20888,7 +20886,7 @@ else node.exprName = this.tsParseEntityName();
20888
20886
  if (labeled) {
20889
20887
  const labeledNode = this.startNodeAtNode(type);
20890
20888
  labeledNode.optional = optional;
20891
- if (type.type === "TSTypeReference" && !type.typeParameters && type.typeName.type === "Identifier") labeledNode.label = type.typeName;
20889
+ if (type.type === "TSTypeReference" && !type.typeArguments && type.typeName.type === "Identifier") labeledNode.label = type.typeName;
20892
20890
  else {
20893
20891
  this.raise(type.start, TypeScriptError.InvalidTupleMemberLabel);
20894
20892
  labeledNode.label = type;
@@ -20942,7 +20940,7 @@ else {
20942
20940
  tsParseTypeReference() {
20943
20941
  const node = this.startNode();
20944
20942
  node.typeName = this.tsParseEntityName();
20945
- if (!this.hasPrecedingLineBreak() && this.tsMatchLeftRelational()) node.typeParameters = this.tsParseTypeArguments();
20943
+ if (!this.hasPrecedingLineBreak() && this.tsMatchLeftRelational()) node.typeArguments = this.tsParseTypeArguments();
20946
20944
  return this.finishNode(node, "TSTypeReference");
20947
20945
  }
20948
20946
  tsMatchLeftRelational() {
@@ -21136,7 +21134,6 @@ else {
21136
21134
  }
21137
21135
  /** Parses a modifier matching one the given modifier names. */
21138
21136
  tsParseModifier(allowedModifiers, stopOnStartOfClassStaticBlock) {
21139
- if (!tokenIsIdentifier(this.type) && this.type !== tt._in) return void 0;
21140
21137
  const modifier = this.value;
21141
21138
  if (allowedModifiers.indexOf(modifier) !== -1 && !this.containsEsc) {
21142
21139
  if (stopOnStartOfClassStaticBlock && this.tsIsStartOfStaticBlocks()) return void 0;
@@ -21187,6 +21184,11 @@ else {
21187
21184
  modifiedMap[modifier] = modifier;
21188
21185
  modified[modifier] = true;
21189
21186
  }
21187
+ else if (modifier === "const") if (modified[modifier]) this.raise(this.start, TypeScriptError.DuplicateModifier({ modifier }));
21188
+ else {
21189
+ modifiedMap[modifier] = modifier;
21190
+ modified[modifier] = true;
21191
+ }
21190
21192
  else if (Object.hasOwnProperty.call(modified, modifier)) this.raise(this.start, TypeScriptError.DuplicateModifier({ modifier }));
21191
21193
  else {
21192
21194
  enforceOrder(startLoc, modifier, "static", "readonly");
@@ -21232,7 +21234,7 @@ else return super.parseMaybeUnary(refExpressionErrors, sawUnary, incDec, forInit
21232
21234
  node.expression = this.parseMaybeUnary();
21233
21235
  return this.finishNode(node, "TSTypeAssertion");
21234
21236
  });
21235
- if (result.error) return this.tsParseTypeParameters();
21237
+ if (result.error) return this.tsParseTypeParameters(this.tsParseConstModifier);
21236
21238
  else return result.node;
21237
21239
  }
21238
21240
  tsParseTypeArguments() {
@@ -21396,7 +21398,7 @@ else {
21396
21398
  }
21397
21399
  case "global":
21398
21400
  if (this.match(tt.braceL)) {
21399
- super.enterScope(TS_SCOPE_TS_MODULE);
21401
+ this.enterScope(TS_SCOPE_TS_MODULE);
21400
21402
  const mod = node;
21401
21403
  mod.global = true;
21402
21404
  mod.id = expr;
@@ -21464,13 +21466,14 @@ else {
21464
21466
  this.tsParseModuleOrNamespaceDeclaration(inner, true);
21465
21467
  node.body = inner;
21466
21468
  } else {
21467
- super.enterScope(TS_SCOPE_TS_MODULE);
21469
+ this.enterScope(TS_SCOPE_TS_MODULE);
21468
21470
  node.body = this.tsParseModuleBlock();
21469
21471
  super.exitScope();
21470
21472
  }
21471
21473
  return this.finishNode(node, "TSModuleDeclaration");
21472
21474
  }
21473
21475
  checkLValSimple(expr, bindingType = acornScope.BIND_NONE, checkClashes) {
21476
+ if (expr.type === "TSNonNullExpression" || expr.type === "TSAsExpression") expr = expr.expression;
21474
21477
  return super.checkLValSimple(expr, bindingType, checkClashes);
21475
21478
  }
21476
21479
  tsParseTypeAliasDeclaration(node) {
@@ -21621,7 +21624,7 @@ else this.checkLValSimple(node.id, acornScope.BIND_NONE);
21621
21624
  if (isImport && node.callee.type === "ImportExpression") this.raise(startPos, "Cannot use new with import()");
21622
21625
  const { callee } = node;
21623
21626
  if (callee.type === "TSInstantiationExpression" && !callee.extra?.parenthesized) {
21624
- node.typeParameters = callee.typeParameters;
21627
+ node.typeArguments = callee.typeArguments;
21625
21628
  node.callee = callee.expression;
21626
21629
  }
21627
21630
  if (this.eat(tt.parenL)) node.arguments = this.parseExprList(tt.parenR, this.ecmaVersion >= 8, false);
@@ -21632,7 +21635,7 @@ else node.arguments = [];
21632
21635
  if (tt._in.binop > minPrec && !this.hasPrecedingLineBreak()) {
21633
21636
  let nodeType;
21634
21637
  if (this.isContextual("as")) nodeType = "TSAsExpression";
21635
- if (allowSatisfies && this.isContextual("satisfies")) nodeType = "TSSatisfiesExpression";
21638
+ if (this.isContextual("satisfies")) nodeType = "TSSatisfiesExpression";
21636
21639
  if (nodeType) {
21637
21640
  const node = this.startNodeAt(leftStartPos, leftStartLoc);
21638
21641
  node.expression = left;
@@ -21830,7 +21833,7 @@ else this.checkExport(exports$1, node.declaration.id, node.declaration.id.start)
21830
21833
  }
21831
21834
  typeCastToParameter(node) {
21832
21835
  node.expression.typeAnnotation = node.typeAnnotation;
21833
- this.resetEndLocation(node.expression, node.typeAnnotation.end);
21836
+ this.resetEndLocation(node.expression, node.typeAnnotation.end, node.typeAnnotation.loc?.end);
21834
21837
  return node.expression;
21835
21838
  }
21836
21839
  toAssignableList(exprList, isBinding) {
@@ -21893,7 +21896,7 @@ else if (this.type === tokTypes2.at) {
21893
21896
  }
21894
21897
  parseIdentNode() {
21895
21898
  let node = this.startNode();
21896
- if (tokenIsKeywordOrIdentifier(this.type)) node.name = this.value;
21899
+ if (tokenIsKeywordOrIdentifier(this.type) && !((this.type.keyword === "class" || this.type.keyword === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46))) node.name = this.value;
21897
21900
  else return super.parseIdentNode();
21898
21901
  return node;
21899
21902
  }
@@ -22036,7 +22039,7 @@ else if (this.eat(tt.question)) node.optional = true;
22036
22039
  parseClassMethod(method, isGenerator, isAsync, allowsDirectSuper) {
22037
22040
  const isConstructor = method.kind === "constructor";
22038
22041
  const isPrivate = method.key.type === "PrivateIdentifier";
22039
- const typeParameters = this.tsTryParseTypeParameters();
22042
+ const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
22040
22043
  if (isPrivate) {
22041
22044
  if (typeParameters) method.typeParameters = typeParameters;
22042
22045
  if (method.accessibility) this.raise(method.start, TypeScriptError.PrivateMethodsHasAccessibility({ modifier: method.accessibility }));
@@ -22105,7 +22108,7 @@ else if (this.eat(tt.question)) node.optional = true;
22105
22108
  }
22106
22109
  if (!this.inAbstractClass && node.abstract) this.raise(node.start, TypeScriptError.NonAbstractClassHasAbstractMethod);
22107
22110
  if (node.override) {
22108
- if (constructorAllowsSuper) this.raise(node.start, TypeScriptError.OverrideNotInSubClass);
22111
+ if (!constructorAllowsSuper) this.raise(node.start, TypeScriptError.OverrideNotInSubClass);
22109
22112
  }
22110
22113
  node.static = isStatic;
22111
22114
  if (isStatic) {
@@ -22150,7 +22153,7 @@ else callParseClassMemberWithIsStatic();
22150
22153
  if (this.eatContextual("implements")) node.implements = this.tsParseHeritageClause("implements");
22151
22154
  }
22152
22155
  parseFunctionParams(node) {
22153
- const typeParameters = this.tsTryParseTypeParameters();
22156
+ const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
22154
22157
  if (typeParameters) node.typeParameters = typeParameters;
22155
22158
  super.parseFunctionParams(node);
22156
22159
  }
@@ -22209,7 +22212,7 @@ else this.exprAllowed = false;
22209
22212
  if (this.type === tt.eq) left = this.toAssignable(left, true, refDestructuringErrors);
22210
22213
  if (!ownDestructuringErrors) refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;
22211
22214
  if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;
22212
- if (this.type === tt.eq) this.checkLValPattern(left);
22215
+ if (!this.maybeInArrowParameters) if (this.type === tt.eq) this.checkLValPattern(left);
22213
22216
  else this.checkLValSimple(left);
22214
22217
  node.left = left;
22215
22218
  this.next();
@@ -22241,7 +22244,7 @@ else this.checkLValSimple(left);
22241
22244
  if (!state || this.compareLookaheadState(state, this.getCurLookaheadState())) state = this.cloneCurLookaheadState();
22242
22245
  let typeParameters;
22243
22246
  const arrow = this.tryParse((abort) => {
22244
- typeParameters = this.tsParseTypeParameters();
22247
+ typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier);
22245
22248
  const expr = this.parseMaybeAssignOrigin(forInit, refExpressionErrors, afterLeftParse);
22246
22249
  if (expr.type !== "ArrowFunctionExpression" || expr.extra?.parenthesized) abort();
22247
22250
  if (typeParameters?.params.length !== 0) this.resetStartLocationFromNode(expr, typeParameters);
@@ -22390,20 +22393,6 @@ else this.checkLValSimple(left);
22390
22393
  default: return super.toAssignable(node, isBinding, refDestructuringErrors);
22391
22394
  }
22392
22395
  }
22393
- curPosition() {
22394
- if (this.options.locations) {
22395
- const position = super.curPosition();
22396
- Object.defineProperty(position, "offset", { get() {
22397
- return function(n$1) {
22398
- const np = new _acorn.Position(this.line, this.column + n$1);
22399
- np["index"] = this["index"] + n$1;
22400
- return np;
22401
- };
22402
- } });
22403
- position["index"] = this.pos;
22404
- return position;
22405
- }
22406
- }
22407
22396
  parseBindingAtom() {
22408
22397
  switch (this.type) {
22409
22398
  case tt._this: return this.parseIdent(
@@ -22540,6 +22529,7 @@ else shouldParseArrowRes = !this.canInsertSemicolon();
22540
22529
  if (allowEmpty && this.type === tt.comma) elt = null;
22541
22530
  else if (this.type === tt.ellipsis) {
22542
22531
  elt = this.parseSpread(refDestructuringErrors);
22532
+ if (this.maybeInArrowParameters && this.match(tt.colon)) elt.typeAnnotation = this.tsParseTypeAnnotation();
22543
22533
  if (refDestructuringErrors && this.type === tt.comma && refDestructuringErrors.trailingComma < 0) refDestructuringErrors.trailingComma = this.start;
22544
22534
  } else elt = this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem);
22545
22535
  elts.push(elt);
@@ -22581,7 +22571,7 @@ else if (this.type === tt.ellipsis) {
22581
22571
  }
22582
22572
  if (tokenIsTemplate(this.type) || this.type === tt.backQuote) {
22583
22573
  const result2 = this.parseTaggedTemplateExpression(base, startPos, startLoc, _optionalChained);
22584
- result2.typeParameters = typeArguments;
22574
+ result2.typeArguments = typeArguments;
22585
22575
  return result2;
22586
22576
  }
22587
22577
  if (!noCalls && this.eat(tt.parenL)) {
@@ -22590,7 +22580,7 @@ else if (this.type === tt.ellipsis) {
22590
22580
  node2.callee = base;
22591
22581
  node2.arguments = this.parseExprList(tt.parenR, this.ecmaVersion >= 8, false, refDestructuringErrors);
22592
22582
  this.tsCheckForInvalidTypeCasts(node2.arguments);
22593
- node2.typeParameters = typeArguments;
22583
+ node2.typeArguments = typeArguments;
22594
22584
  if (_optionalChained) node2.optional = isOptionalCall;
22595
22585
  this.checkExpressionErrors(refDestructuringErrors, true);
22596
22586
  base = this.finishNode(node2, "CallExpression");
@@ -22600,7 +22590,7 @@ else if (this.type === tt.ellipsis) {
22600
22590
  if (this.tsMatchRightRelational() || tokenType === tt.bitShift || tokenType !== tt.parenL && tokenCanStartExpression(tokenType) && !this.hasPrecedingLineBreak()) return;
22601
22591
  const node = this.startNodeAt(startPos, startLoc);
22602
22592
  node.expression = base;
22603
- node.typeParameters = typeArguments;
22593
+ node.typeArguments = typeArguments;
22604
22594
  return this.finishNode(node, "TSInstantiationExpression");
22605
22595
  });
22606
22596
  if (missingParenErrorLoc) this.unexpected(missingParenErrorLoc);
@@ -22752,7 +22742,7 @@ else this.raiseRecoverable(start, "setter should have exactly one param");
22752
22742
  }
22753
22743
  }
22754
22744
  parseClassFunctionParams() {
22755
- const typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier);
22745
+ const typeParameters = this.tsTryParseTypeParameters();
22756
22746
  let params = this.parseBindingList(tt.parenR, false, this.ecmaVersion >= 8, true);
22757
22747
  if (typeParameters) params.typeParameters = typeParameters;
22758
22748
  return params;
@@ -22915,7 +22905,7 @@ else super.updateContext(prevType);
22915
22905
  if (nodeName) node.name = nodeName;
22916
22906
  if (this.match(tt.relational) || this.match(tt.bitShift)) {
22917
22907
  const typeArguments = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression());
22918
- if (typeArguments) node.typeParameters = typeArguments;
22908
+ if (typeArguments) node.typeArguments = typeArguments;
22919
22909
  }
22920
22910
  node.attributes = [];
22921
22911
  while (this.type !== tt.slash && this.type !== tokTypes2.jsxTagEnd) node.attributes.push(this.jsx_parseAttribute());
@@ -22949,15 +22939,6 @@ else super.updateContext(prevType);
22949
22939
  maybeExportDefined(scope, name) {
22950
22940
  if (this.inModule && scope.flags & acornScope.SCOPE_TOP) this.undefinedExports.delete(name);
22951
22941
  }
22952
- isRedeclaredInScope(scope, name, bindingType) {
22953
- if (!(bindingType & acornScope.BIND_KIND_VALUE)) return false;
22954
- if (bindingType & acornScope.BIND_LEXICAL) return scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;
22955
- if (bindingType & acornScope.BIND_FUNCTION) return scope.lexical.indexOf(name) > -1 || !super.treatFunctionsAsVarInScope(scope) && scope.var.indexOf(name) > -1;
22956
- return scope.lexical.indexOf(name) > -1 && !(scope.flags & acornScope.SCOPE_SIMPLE_CATCH && scope.lexical[0] === name) || !this.treatFunctionsAsVarInScope(scope) && scope.functions.indexOf(name) > -1;
22957
- }
22958
- checkRedeclarationInScope(scope, name, bindingType, loc) {
22959
- if (this.isRedeclaredInScope(scope, name, bindingType)) this.raise(loc, `Identifier '${name}' has already been declared.`);
22960
- }
22961
22942
  declareName(name, bindingType, pos) {
22962
22943
  if (bindingType & acornScope.BIND_FLAGS_TS_IMPORT) {
22963
22944
  if (this.hasImport(name, true)) this.raise(pos, `Identifier '${name}' has already been declared.`);
@@ -22970,14 +22951,10 @@ else super.updateContext(prevType);
22970
22951
  scope.exportOnlyBindings.push(name);
22971
22952
  return;
22972
22953
  }
22973
- super.declareName(name, bindingType, pos);
22974
- if (bindingType & acornScope.BIND_KIND_TYPE) {
22975
- if (!(bindingType & acornScope.BIND_KIND_VALUE)) {
22976
- this.checkRedeclarationInScope(scope, name, bindingType, pos);
22977
- this.maybeExportDefined(scope, name);
22978
- }
22954
+ if (bindingType === acornScope.BIND_TS_TYPE || bindingType === acornScope.BIND_TS_INTERFACE) {
22955
+ if (bindingType === acornScope.BIND_TS_TYPE && scope.types.includes(name)) this.raise(pos, `type '${name}' has already been declared.`);
22979
22956
  scope.types.push(name);
22980
- }
22957
+ } else super.declareName(name, bindingType, pos);
22981
22958
  if (bindingType & acornScope.BIND_FLAGS_TS_ENUM) scope.enums.push(name);
22982
22959
  if (bindingType & acornScope.BIND_FLAGS_TS_CONST_ENUM) scope.constEnums.push(name);
22983
22960
  if (bindingType & acornScope.BIND_FLAGS_CLASS) scope.classes.push(name);
@@ -22999,7 +22976,7 @@ else super.updateContext(prevType);
22999
22976
  var import_silver_fleece_umd = __toESM(require_silver_fleece_umd(), 1);
23000
22977
  function parseScript$1(content) {
23001
22978
  const comments = [];
23002
- const acornTs = Parser.extend(tsPlugin({ allowSatisfies: true }));
22979
+ const acornTs = Parser.extend(tsPlugin());
23003
22980
  const ast = acornTs.parse(content, {
23004
22981
  ecmaVersion: "latest",
23005
22982
  sourceType: "module",
@@ -1,16 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="-3 -3 30 30">
2
- <path
3
- fill-rule="evenodd"
4
- clip-rule="evenodd"
5
- d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5229 6.47715 22 12 22C17.5229 22 22 17.5229 22 12C22 6.47715 17.5229 2 12 2ZM0 12C0 5.3726 5.3726 0 12 0C18.6274 0 24 5.3726 24 12C24 18.6274 18.6274 24 12 24C5.3726 24 0 18.6274 0 12Z"
6
- fill="rgba(0,0,0,0.7)"
7
- stroke="none"
8
- />
9
- <path
10
- fill-rule="evenodd"
11
- clip-rule="evenodd"
12
- d="M9.59162 22.7357C9.49492 22.6109 9.49492 21.4986 9.59162 19.399C8.55572 19.4347 7.90122 19.3628 7.62812 19.1833C7.21852 18.9139 6.80842 18.0833 6.44457 17.4979C6.08072 16.9125 5.27312 16.8199 4.94702 16.6891C4.62091 16.5582 4.53905 16.0247 5.84562 16.4282C7.15222 16.8316 7.21592 17.9303 7.62812 18.1872C8.04032 18.4441 9.02572 18.3317 9.47242 18.1259C9.91907 17.9201 9.88622 17.1538 9.96587 16.8503C10.0666 16.5669 9.71162 16.5041 9.70382 16.5018C9.26777 16.5018 6.97697 16.0036 6.34772 13.7852C5.71852 11.5669 6.52907 10.117 6.96147 9.49369C7.24972 9.07814 7.22422 8.19254 6.88497 6.83679C8.11677 6.67939 9.06732 7.06709 9.73672 7.99999C9.73737 8.00534 10.6143 7.47854 12.0001 7.47854C13.386 7.47854 13.8777 7.90764 14.2571 7.99999C14.6365 8.09234 14.94 6.36699 17.2834 6.83679C16.7942 7.79839 16.3844 8.99999 16.6972 9.49369C17.0099 9.98739 18.2372 11.5573 17.4833 13.7852C16.9807 15.2706 15.9927 16.1761 14.5192 16.5018C14.3502 16.5557 14.2658 16.6427 14.2658 16.7627C14.2658 16.9427 14.4942 16.9624 14.8233 17.8058C15.0426 18.368 15.0585 19.9739 14.8708 22.6234C14.3953 22.7445 14.0254 22.8257 13.7611 22.8673C13.2924 22.9409 12.7835 22.9822 12.2834 22.9982C11.7834 23.0141 11.6098 23.0123 10.9185 22.948C10.4577 22.9051 10.0154 22.8343 9.59162 22.7357Z"
13
- fill="rgba(0,0,0,0.7)"
14
- stroke="none"
15
- />
16
- </svg>
1
+ <svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
@@ -16,6 +16,6 @@
16
16
  "@sveltejs/kit": "^2.16.0",
17
17
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
18
18
  "svelte": "^5.25.0",
19
- "vite": "^6.0.0"
19
+ "vite": "^6.2.5"
20
20
  }
21
21
  }
@@ -30,7 +30,7 @@
30
30
  "publint": "^0.3.2",
31
31
  "svelte": "^5.0.0",
32
32
  "typescript": "^5.3.2",
33
- "vite": "^6.0.0"
33
+ "vite": "^6.2.5"
34
34
  },
35
35
  "keywords": ["svelte"]
36
36
  }
@@ -14,6 +14,6 @@
14
14
  "@sveltejs/kit": "^2.16.0",
15
15
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
16
16
  "svelte": "^5.0.0",
17
- "vite": "^6.0.0"
17
+ "vite": "^6.2.5"
18
18
  }
19
19
  }
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __commonJS, __require, __toESM, addPnpmBuildDependendencies, be, create } from "./package-manager-BusIB9Xp.js";
1
+ import { __commonJS, __require, __toESM, addPnpmBuildDependendencies, be, create } from "./package-manager-Hi1R0gbv.js";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import process$1 from "node:process";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sv",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "description": "A CLI for creating and updating SvelteKit projects",
6
6
  "license": "MIT",
@@ -38,9 +38,9 @@
38
38
  "tinyexec": "^0.3.1",
39
39
  "valibot": "^0.41.0",
40
40
  "@sveltejs/addons": "0.0.0",
41
+ "@sveltejs/cli-core": "0.0.0",
41
42
  "@sveltejs/clack-prompts": "0.9.1",
42
- "@sveltejs/create": "0.0.0",
43
- "@sveltejs/cli-core": "0.0.0"
43
+ "@sveltejs/create": "0.0.0"
44
44
  },
45
45
  "keywords": [
46
46
  "create",