oxfmt 0.54.0 → 0.56.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.
Files changed (33) hide show
  1. package/configuration_schema.json +1 -1
  2. package/dist/{acorn-C-l7ouWN.js → acorn-LGWopQvF.js} +2 -2
  3. package/dist/{angular-4Mc0TmPv.js → angular-BbAuvH72.js} +16 -206
  4. package/dist/{apis-CngUzqDq.js → apis-C2fbFQF2.js} +5 -5
  5. package/dist/{babel-DjR61Wf3.js → babel-DLjwvkt5.js} +9 -9
  6. package/dist/{napi-callbacks-C8y3J_xb.js → bindings-Ab6hoO7p.js} +46 -64
  7. package/dist/{chunk-DSjvVL_1-BUO3FyMh.js → chunk-DSjvVL_1-DaTvESxp.js} +1 -1
  8. package/dist/cli-worker.d.ts +2 -2
  9. package/dist/cli-worker.js +1 -1
  10. package/dist/cli.js +4 -3
  11. package/dist/{dist-ZI7w_ao-.js → dist-BMp5jzRv.js} +15 -15
  12. package/dist/{estree-DHQPBKqf.js → estree-DbmUPhmV.js} +8 -8
  13. package/dist/{flow-Cz3mJAtC.js → flow-CJbpv7JL.js} +6 -6
  14. package/dist/{glimmer-ubhL-0tG.js → glimmer-Ba_8Z2bG.js} +6 -6
  15. package/dist/{graphql-Cl0TIiHU.js → graphql-CZ7EPWgo.js} +3 -3
  16. package/dist/{html-Cqnv8X__.js → html-DblM11Xw.js} +99 -99
  17. package/dist/index.js +7 -4
  18. package/dist/{jiti-Bb1dT6Cw-DPQUX1DC.js → jiti-Bb1dT6Cw-DWQc1k7j.js} +28 -28
  19. package/dist/{markdown-Eujfu-fQ.js → markdown-B5hFVJKQ.js} +9 -9
  20. package/dist/{meriyah-DESRG6oe.js → meriyah-DafjRZfO.js} +3 -3
  21. package/dist/{migrate-prettier-DWPaoKDl.js → migrate-prettier-DrYAkU3F.js} +1 -1
  22. package/dist/napi-callbacks-Sb-usWTs.js +30 -0
  23. package/dist/{plugin-CHUKsFCg.js → plugin-CYEM2898.js} +10 -10
  24. package/dist/{postcss-BFLfznNY.js → postcss-CkhtwsAS.js} +8 -8
  25. package/dist/{prettier-CttUn4xj.js → prettier-DKAx5A83.js} +28 -28
  26. package/dist/{chunk-CNf5ZN-e.js → rolldown-runtime-CE-6LUnI.js} +9 -2
  27. package/dist/{sorter-BZkvDMjt-DCuU-7CM.js → sorter-BZkvDMjt-c-GMCzH3.js} +10 -9
  28. package/dist/{sorter-CharfNIQ.js → sorter-DK1aMCjs.js} +1 -1
  29. package/dist/{typescript-lqJOqGcK.js → typescript-DaxiA0nr.js} +16 -16
  30. package/dist/{v3-D-mr2VVh-C7AdPwxy.js → v3-D-mr2VVh-7G9Y2N0Q.js} +22 -22
  31. package/dist/{v4-C-HWEQJm-CJKqx13d.js → v4-C-HWEQJm-DKnDZXAs.js} +12 -12
  32. package/dist/{yaml-BT3ntp8h.js → yaml-BC7gw7un.js} +6 -6
  33. package/package.json +20 -20
@@ -1,4 +1,4 @@
1
- import { n as __esmMin, r as __exportAll } from "./chunk-CNf5ZN-e.js";
1
+ import { n as __esmMin, r as __exportAll } from "./rolldown-runtime-CE-6LUnI.js";
2
2
  import { builtinModules, createRequire } from "module";
3
3
  import * as url from "url";
4
4
  import url2, { fileURLToPath, pathToFileURL } from "url";
@@ -7,11 +7,11 @@ import path10, { dirname } from "path";
7
7
  import * as fs from "fs/promises";
8
8
  import fs2 from "fs/promises";
9
9
  import process2 from "process";
10
- import assert3, { ok, strictEqual } from "assert";
10
+ import assert2, { ok, strictEqual } from "assert";
11
11
  import fs3, { realpathSync, statSync } from "fs";
12
12
  import v8 from "v8";
13
13
  import { format, inspect } from "util";
14
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/doc.mjs
14
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/doc.mjs
15
15
  var doc_exports = /* @__PURE__ */ __exportAll({
16
16
  builders: () => builders,
17
17
  default: () => public_exports$1,
@@ -1051,7 +1051,7 @@ var init_doc = __esmMin((() => {
1051
1051
  };
1052
1052
  }));
1053
1053
  //#endregion
1054
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/index.mjs
1054
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/index.mjs
1055
1055
  var prettier_exports = /* @__PURE__ */ __exportAll({
1056
1056
  __debug: () => debugApis,
1057
1057
  __internal: () => sharedWithCli,
@@ -2402,7 +2402,7 @@ async function loadConfigFromPackageYaml(file) {
2402
2402
  }
2403
2403
  async function loadYaml(file) {
2404
2404
  const content = await read_file_default(file);
2405
- if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-BT3ntp8h.js"));
2405
+ if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-BC7gw7un.js"));
2406
2406
  try {
2407
2407
  return parseYaml(content);
2408
2408
  } catch (error) {
@@ -2502,15 +2502,15 @@ function hideStackFrames(wrappedFunction) {
2502
2502
  }
2503
2503
  function getMessage(key2, parameters, self) {
2504
2504
  const message = messages.get(key2);
2505
- assert3.ok(message !== void 0, "expected `message` to be found");
2505
+ assert2.ok(message !== void 0, "expected `message` to be found");
2506
2506
  if (typeof message === "function") {
2507
- assert3.ok(message.length <= parameters.length, `Code: ${key2}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
2507
+ assert2.ok(message.length <= parameters.length, `Code: ${key2}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
2508
2508
  return Reflect.apply(message, self, parameters);
2509
2509
  }
2510
2510
  const regex = /%[dfijoOs]/g;
2511
2511
  let expectedLength = 0;
2512
2512
  while (regex.exec(message) !== null) expectedLength++;
2513
- assert3.ok(expectedLength === parameters.length, `Code: ${key2}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
2513
+ assert2.ok(expectedLength === parameters.length, `Code: ${key2}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
2514
2514
  if (parameters.length === 0) return message;
2515
2515
  parameters.unshift(message);
2516
2516
  return Reflect.apply(format, null, parameters);
@@ -3028,7 +3028,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
3028
3028
  }
3029
3029
  resolved = packageResolve(specifier, base, conditions);
3030
3030
  }
3031
- assert3.ok(resolved !== void 0, "expected to be defined");
3031
+ assert2.ok(resolved !== void 0, "expected to be defined");
3032
3032
  if (resolved.protocol !== "file:") return resolved;
3033
3033
  return finalizeResolution(resolved, base, preserveSymlinks);
3034
3034
  }
@@ -3055,7 +3055,7 @@ function throwIfInvalidParentURL(parentURL) {
3055
3055
  }
3056
3056
  function defaultResolve(specifier, context = {}) {
3057
3057
  const { parentURL } = context;
3058
- assert3.ok(parentURL !== void 0, "expected `parentURL` to be defined");
3058
+ assert2.ok(parentURL !== void 0, "expected `parentURL` to be defined");
3059
3059
  throwIfInvalidParentURL(parentURL);
3060
3060
  let parsedParentURL;
3061
3061
  if (parentURL) try {
@@ -13804,7 +13804,7 @@ ${codeblock}`, options8);
13804
13804
  * @param {unknown} actual
13805
13805
  */
13806
13806
  (name, expected, actual) => {
13807
- assert3.ok(typeof name === "string", "'name' must be a string");
13807
+ assert2.ok(typeof name === "string", "'name' must be a string");
13808
13808
  if (!Array.isArray(expected)) expected = [expected];
13809
13809
  let message = "The ";
13810
13810
  if (name.endsWith(" argument")) message += `${name} `;
@@ -13817,10 +13817,10 @@ ${codeblock}`, options8);
13817
13817
  const instances = [];
13818
13818
  const other = [];
13819
13819
  for (const value of expected) {
13820
- assert3.ok(typeof value === "string", "All expected entries have to be of type string");
13820
+ assert2.ok(typeof value === "string", "All expected entries have to be of type string");
13821
13821
  if (kTypes.has(value)) types.push(value.toLowerCase());
13822
13822
  else if (classRegExp.exec(value) === null) {
13823
- assert3.ok(value !== "object", "The value \"object\" should be written as \"Object\"");
13823
+ assert2.ok(value !== "object", "The value \"object\" should be written as \"Object\"");
13824
13824
  other.push(value);
13825
13825
  } else instances.push(value);
13826
13826
  }
@@ -13885,7 +13885,7 @@ ${codeblock}`, options8);
13885
13885
  (packagePath, key2, target, isImport = false, base = void 0) => {
13886
13886
  const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
13887
13887
  if (key2 === ".") {
13888
- assert3.ok(isImport === false);
13888
+ assert2.ok(isImport === false);
13889
13889
  return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
13890
13890
  }
13891
13891
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key2}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
@@ -15380,7 +15380,7 @@ ${codeblock}`, options8);
15380
15380
  proseWrap: common_options_evaluate_default.proseWrap
15381
15381
  };
15382
15382
  estreePlugin = createParsersAndPrinters([{
15383
- importPlugin: () => import("./estree-DHQPBKqf.js"),
15383
+ importPlugin: () => import("./estree-DbmUPhmV.js"),
15384
15384
  printers: ["estree", "estree-json"]
15385
15385
  }]);
15386
15386
  options7 = {
@@ -15403,11 +15403,11 @@ ${codeblock}`, options8);
15403
15403
  ];
15404
15404
  ({parsers, printers} = createParsersAndPrinters([
15405
15405
  {
15406
- importPlugin: () => import("./acorn-C-l7ouWN.js"),
15406
+ importPlugin: () => import("./acorn-LGWopQvF.js"),
15407
15407
  parsers: ["acorn", "espree"]
15408
15408
  },
15409
15409
  {
15410
- importPlugin: () => import("./angular-4Mc0TmPv.js"),
15410
+ importPlugin: () => import("./angular-BbAuvH72.js"),
15411
15411
  parsers: [
15412
15412
  "__ng_action",
15413
15413
  "__ng_binding",
@@ -15416,7 +15416,7 @@ ${codeblock}`, options8);
15416
15416
  ]
15417
15417
  },
15418
15418
  {
15419
- importPlugin: () => import("./babel-DjR61Wf3.js"),
15419
+ importPlugin: () => import("./babel-DLjwvkt5.js"),
15420
15420
  parsers: [
15421
15421
  "babel",
15422
15422
  "babel-flow",
@@ -15435,21 +15435,21 @@ ${codeblock}`, options8);
15435
15435
  ]
15436
15436
  },
15437
15437
  {
15438
- importPlugin: () => import("./flow-Cz3mJAtC.js"),
15438
+ importPlugin: () => import("./flow-CJbpv7JL.js"),
15439
15439
  parsers: ["flow"]
15440
15440
  },
15441
15441
  {
15442
- importPlugin: () => import("./glimmer-ubhL-0tG.js"),
15442
+ importPlugin: () => import("./glimmer-Ba_8Z2bG.js"),
15443
15443
  parsers: ["glimmer"],
15444
15444
  printers: ["glimmer"]
15445
15445
  },
15446
15446
  {
15447
- importPlugin: () => import("./graphql-Cl0TIiHU.js"),
15447
+ importPlugin: () => import("./graphql-CZ7EPWgo.js"),
15448
15448
  parsers: ["graphql"],
15449
15449
  printers: ["graphql"]
15450
15450
  },
15451
15451
  {
15452
- importPlugin: () => import("./html-Cqnv8X__.js"),
15452
+ importPlugin: () => import("./html-DblM11Xw.js"),
15453
15453
  parsers: [
15454
15454
  "html",
15455
15455
  "angular",
@@ -15460,7 +15460,7 @@ ${codeblock}`, options8);
15460
15460
  printers: ["html"]
15461
15461
  },
15462
15462
  {
15463
- importPlugin: () => import("./markdown-Eujfu-fQ.js"),
15463
+ importPlugin: () => import("./markdown-B5hFVJKQ.js"),
15464
15464
  parsers: [
15465
15465
  "markdown",
15466
15466
  "mdx",
@@ -15469,11 +15469,11 @@ ${codeblock}`, options8);
15469
15469
  printers: ["mdast"]
15470
15470
  },
15471
15471
  {
15472
- importPlugin: () => import("./meriyah-DESRG6oe.js"),
15472
+ importPlugin: () => import("./meriyah-DafjRZfO.js"),
15473
15473
  parsers: ["meriyah"]
15474
15474
  },
15475
15475
  {
15476
- importPlugin: () => import("./postcss-BFLfznNY.js"),
15476
+ importPlugin: () => import("./postcss-CkhtwsAS.js"),
15477
15477
  parsers: [
15478
15478
  "css",
15479
15479
  "less",
@@ -15482,11 +15482,11 @@ ${codeblock}`, options8);
15482
15482
  printers: ["postcss"]
15483
15483
  },
15484
15484
  {
15485
- importPlugin: () => import("./typescript-lqJOqGcK.js"),
15485
+ importPlugin: () => import("./typescript-DaxiA0nr.js"),
15486
15486
  parsers: ["typescript"]
15487
15487
  },
15488
15488
  {
15489
- importPlugin: () => import("./yaml-BT3ntp8h.js"),
15489
+ importPlugin: () => import("./yaml-BC7gw7un.js"),
15490
15490
  parsers: ["yaml"],
15491
15491
  printers: ["yaml"]
15492
15492
  }
@@ -15505,7 +15505,7 @@ ${codeblock}`, options8);
15505
15505
  slash = path10.sep === "\\" ? (filePath) => method_replace_all_default(0, filePath, "\\", "/") : (filePath) => filePath;
15506
15506
  object_omit_default = omit;
15507
15507
  get_file_info_default = getFileInfo;
15508
- version_evaluate_default = "3.8.3";
15508
+ version_evaluate_default = "3.8.4";
15509
15509
  public_exports = {};
15510
15510
  __export(public_exports, {
15511
15511
  addDanglingComment: () => addDanglingComment,
@@ -6,7 +6,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
9
+ var __esmMin = (fn, res, err) => () => {
10
+ if (err) throw err[0];
11
+ try {
12
+ return fn && (res = fn(fn = 0)), res;
13
+ } catch (e) {
14
+ throw err = [e], e;
15
+ }
16
+ };
10
17
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
18
  var __exportAll = (all, no_symbols) => {
12
19
  let target = {};
@@ -32,6 +39,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
39
  enumerable: true
33
40
  }) : target, mod));
34
41
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
42
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
36
43
  //#endregion
37
44
  export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
@@ -1,10 +1,10 @@
1
- import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-BUO3FyMh.js";
1
+ import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-DaTvESxp.js";
2
2
  import { fileURLToPath, pathToFileURL } from "node:url";
3
3
  import * as path from "node:path";
4
4
  import { dirname, resolve } from "path";
5
5
  import { readdirSync, statSync } from "fs";
6
6
  import fs from "node:fs";
7
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
7
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_38bf7b19300712455a0a76d31dd7693b/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
8
8
  function expiringMap(duration) {
9
9
  let map = /* @__PURE__ */ new Map();
10
10
  return {
@@ -2388,7 +2388,7 @@ var require_Hook = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2388
2388
  _insert(item) {
2389
2389
  this._resetCompilation();
2390
2390
  let before;
2391
- if (typeof item.before === "string") before = new Set([item.before]);
2391
+ if (typeof item.before === "string") before = /* @__PURE__ */ new Set([item.before]);
2392
2392
  else if (Array.isArray(item.before)) before = new Set(item.before);
2393
2393
  let stage = 0;
2394
2394
  if (typeof item.stage === "number") stage = item.stage;
@@ -4119,7 +4119,8 @@ var import_lib = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
4119
4119
  };
4120
4120
  }
4121
4121
  const mergeExports = (obj, exports$1) => {
4122
- Object.defineProperties(obj, Object.getOwnPropertyDescriptors(exports$1));
4122
+ const descriptors = Object.getOwnPropertyDescriptors(exports$1);
4123
+ Object.defineProperties(obj, descriptors);
4123
4124
  return Object.freeze(obj);
4124
4125
  };
4125
4126
  module.exports = mergeExports(resolve, {
@@ -4198,7 +4199,7 @@ function resolveCssFrom(base, id) {
4198
4199
  return cssResolver.resolveSync({}, base, id) || id;
4199
4200
  }
4200
4201
  //#endregion
4201
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4202
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_38bf7b19300712455a0a76d31dd7693b/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4202
4203
  function isNodeLike(value) {
4203
4204
  return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
4204
4205
  }
@@ -4277,7 +4278,7 @@ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir)
4277
4278
  }
4278
4279
  }
4279
4280
  //#endregion
4280
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
4281
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_38bf7b19300712455a0a76d31dd7693b/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
4281
4282
  let seen = /* @__PURE__ */ new Set();
4282
4283
  function warn(key, arg, ...args) {
4283
4284
  if (seen.has(key)) return;
@@ -4376,14 +4377,14 @@ async function getTailwindConfig(options) {
4376
4377
  if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
4377
4378
  if (jsConfig) {
4378
4379
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4379
- const { loadV3 } = await import("./v3-D-mr2VVh-C7AdPwxy.js");
4380
+ const { loadV3 } = await import("./v3-D-mr2VVh-7G9Y2N0Q.js");
4380
4381
  return loadV3(pkgDir, jsConfig);
4381
4382
  });
4382
4383
  error("explicit-stylesheet-and-config-together", base, `You have specified a Tailwind CSS stylesheet and a Tailwind CSS config at the same time. Use stylesheetPath unless you are using v3. Preferring the stylesheet.`);
4383
4384
  }
4384
4385
  if (mod && !mod.__unstable__loadDesignSystem) {
4385
4386
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4386
- const { loadV3 } = await import("./v3-D-mr2VVh-C7AdPwxy.js");
4387
+ const { loadV3 } = await import("./v3-D-mr2VVh-7G9Y2N0Q.js");
4387
4388
  return loadV3(pkgDir, jsConfig);
4388
4389
  });
4389
4390
  mod = null;
@@ -4391,7 +4392,7 @@ async function getTailwindConfig(options) {
4391
4392
  }
4392
4393
  if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
4393
4394
  return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
4394
- const { loadV4 } = await import("./v4-C-HWEQJm-CJKqx13d.js");
4395
+ const { loadV4 } = await import("./v4-C-HWEQJm-DKnDZXAs.js");
4395
4396
  return loadV4(mod, stylesheet);
4396
4397
  });
4397
4398
  }
@@ -1,2 +1,2 @@
1
- import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-DCuU-7CM.js";
1
+ import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-c-GMCzH3.js";
2
2
  export { createSorter, getTailwindConfig };
@@ -1,5 +1,5 @@
1
- import { n as __esmMin } from "./chunk-CNf5ZN-e.js";
2
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/typescript.mjs
1
+ import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
2
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/typescript.mjs
3
3
  function e_(e) {
4
4
  return e !== void 0 ? e.length : 0;
5
5
  }
@@ -7244,7 +7244,7 @@ function Zh(e, t = {}) {
7244
7244
  codeFullText: a,
7245
7245
  comment: t.comment === !0,
7246
7246
  comments: [],
7247
- debugLevel: t.debugLevel === !0 ? new Set(["typescript-eslint"]) : Array.isArray(t.debugLevel) ? new Set(t.debugLevel) : /* @__PURE__ */ new Set(),
7247
+ debugLevel: t.debugLevel === !0 ? /* @__PURE__ */ new Set(["typescript-eslint"]) : Array.isArray(t.debugLevel) ? new Set(t.debugLevel) : /* @__PURE__ */ new Set(),
7248
7248
  errorOnTypeScriptSyntacticAndSemanticIssues: !1,
7249
7249
  errorOnUnknownASTType: t.errorOnUnknownASTType === !0,
7250
7250
  extraFileExtensions: Array.isArray(t.extraFileExtensions) && t.extraFileExtensions.every((y) => typeof y == "string") ? t.extraFileExtensions : [],
@@ -10569,7 +10569,7 @@ ${Me.join(`
10569
10569
  "@": 60,
10570
10570
  "#": 63,
10571
10571
  "`": 62
10572
- })), Jm = new Map([
10572
+ })), Jm = /* @__PURE__ */ new Map([
10573
10573
  [100, 1],
10574
10574
  [103, 2],
10575
10575
  [105, 4],
@@ -10578,7 +10578,7 @@ ${Me.join(`
10578
10578
  [117, 32],
10579
10579
  [118, 64],
10580
10580
  [121, 128]
10581
- ]), Gy = new Map([
10581
+ ]), Gy = /* @__PURE__ */ new Map([
10582
10582
  [1, $s.RegularExpressionFlagsHasIndices],
10583
10583
  [16, $s.RegularExpressionFlagsDotAll],
10584
10584
  [32, $s.RegularExpressionFlagsUnicode],
@@ -15055,7 +15055,7 @@ ${Me.join(`
15055
15055
  sc: "Script",
15056
15056
  Script_Extensions: "Script_Extensions",
15057
15057
  scx: "Script_Extensions"
15058
- })), Ad = new Set([
15058
+ })), Ad = /* @__PURE__ */ new Set([
15059
15059
  "ASCII",
15060
15060
  "ASCII_Hex_Digit",
15061
15061
  "AHex",
@@ -15154,7 +15154,7 @@ ${Me.join(`
15154
15154
  "XIDC",
15155
15155
  "XID_Start",
15156
15156
  "XIDS"
15157
- ]), Cd = new Set([
15157
+ ]), Cd = /* @__PURE__ */ new Set([
15158
15158
  "Basic_Emoji",
15159
15159
  "Emoji_Keycap_Sequence",
15160
15160
  "RGI_Emoji_Modifier_Sequence",
@@ -15163,7 +15163,7 @@ ${Me.join(`
15163
15163
  "RGI_Emoji_ZWJ_Sequence",
15164
15164
  "RGI_Emoji"
15165
15165
  ]), Ra = {
15166
- General_Category: new Set([
15166
+ General_Category: /* @__PURE__ */ new Set([
15167
15167
  "C",
15168
15168
  "Other",
15169
15169
  "Cc",
@@ -15245,7 +15245,7 @@ ${Me.join(`
15245
15245
  "Zs",
15246
15246
  "Space_Separator"
15247
15247
  ]),
15248
- Script: new Set([
15248
+ Script: /* @__PURE__ */ new Set([
15249
15249
  "Adlm",
15250
15250
  "Adlam",
15251
15251
  "Aghb",
@@ -15893,17 +15893,17 @@ ${Me.join(`
15893
15893
  "zlib"
15894
15894
  ];
15895
15895
  new Set(qp);
15896
- Ab = new Set([
15896
+ Ab = /* @__PURE__ */ new Set([
15897
15897
  "node:sea",
15898
15898
  "node:sqlite",
15899
15899
  "node:test",
15900
15900
  "node:test/reporters"
15901
15901
  ]);
15902
- new Set([
15902
+ [
15903
15903
  ...qp,
15904
15904
  ...qp.map((e) => `node:${e}`),
15905
15905
  ...Ab
15906
- ]);
15906
+ ];
15907
15907
  Db = {
15908
15908
  getParenthesizeLeftSideOfBinaryForOperator: (e) => bt,
15909
15909
  getParenthesizeRightSideOfBinaryForOperator: (e) => bt,
@@ -20519,11 +20519,11 @@ ${Me.join(`
20519
20519
  Ll = new Proxy({}, { get: (e, t) => t });
20520
20520
  xh = Ll, Sh = Ll;
20521
20521
  C = xh, Rt = Sh;
20522
- av = Ml["5.0"], ye = Ae, sv = new Set([
20522
+ av = Ml["5.0"], ye = Ae, sv = /* @__PURE__ */ new Set([
20523
20523
  ye.AmpersandAmpersandToken,
20524
20524
  ye.BarBarToken,
20525
20525
  ye.QuestionQuestionToken
20526
- ]), _v = new Set([
20526
+ ]), _v = /* @__PURE__ */ new Set([
20527
20527
  Ae.AmpersandAmpersandEqualsToken,
20528
20528
  Ae.AmpersandEqualsToken,
20529
20529
  Ae.AsteriskAsteriskEqualsToken,
@@ -20540,7 +20540,7 @@ ${Me.join(`
20540
20540
  Ae.PlusEqualsToken,
20541
20541
  Ae.QuestionQuestionEqualsToken,
20542
20542
  Ae.SlashEqualsToken
20543
- ]), ov = new Set([
20543
+ ]), ov = /* @__PURE__ */ new Set([
20544
20544
  ye.AmpersandAmpersandToken,
20545
20545
  ye.AmpersandToken,
20546
20546
  ye.AsteriskAsteriskToken,
@@ -22099,7 +22099,7 @@ ${Me.join(`
22099
22099
  "type" in t && (_.typeAnnotation = t.type && "kind" in t.type && i1(t.type) ? this.convertTypeAnnotation(t.type, t) : null), "typeArguments" in t && (_.typeArguments = t.typeArguments && "pos" in t.typeArguments ? this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) : null), "typeParameters" in t && (_.typeParameters = t.typeParameters && "pos" in t.typeParameters ? this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) : null);
22100
22100
  let f = xi(t);
22101
22101
  f?.length && (_.decorators = this.convertChildren(f));
22102
- let h = new Set([
22102
+ let h = /* @__PURE__ */ new Set([
22103
22103
  "_children",
22104
22104
  "decorators",
22105
22105
  "end",
@@ -1,9 +1,9 @@
1
- import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-BUO3FyMh.js";
2
- import { s as bigSign } from "./sorter-BZkvDMjt-DCuU-7CM.js";
3
- import { t as createJiti } from "./jiti-Bb1dT6Cw-DPQUX1DC.js";
1
+ import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-DaTvESxp.js";
2
+ import { s as bigSign } from "./sorter-BZkvDMjt-c-GMCzH3.js";
3
+ import { t as createJiti } from "./jiti-Bb1dT6Cw-DWQc1k7j.js";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  import * as path from "node:path";
6
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
6
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_38bf7b19300712455a0a76d31dd7693b/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
7
7
  var getFilename, __filename;
8
8
  var init_esm_shims = __esmMin((() => {
9
9
  getFilename = () => fileURLToPath(import.meta.url);
@@ -9159,7 +9159,7 @@ var require_parseBoxShadowValue = /* @__PURE__ */ __commonJSMin(((exports) => {
9159
9159
  }
9160
9160
  });
9161
9161
  const _splitAtTopLevelOnly = require_splitAtTopLevelOnly();
9162
- let KEYWORDS = new Set([
9162
+ let KEYWORDS = /* @__PURE__ */ new Set([
9163
9163
  "inset",
9164
9164
  "inherit",
9165
9165
  "initial",
@@ -9288,7 +9288,7 @@ var require_dataTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
9288
9288
  function isCSSFunction(value) {
9289
9289
  return cssFunctions.some((fn) => new RegExp(`^${fn}\\(.*\\)`).test(value));
9290
9290
  }
9291
- const AUTO_VAR_INJECTION_EXCEPTIONS = new Set([
9291
+ const AUTO_VAR_INJECTION_EXCEPTIONS = /* @__PURE__ */ new Set([
9292
9292
  "scroll-timeline-name",
9293
9293
  "timeline-scope",
9294
9294
  "view-timeline-name",
@@ -9370,7 +9370,7 @@ var require_dataTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
9370
9370
  function length(value) {
9371
9371
  return value === "0" || new RegExp(`^[+-]?[0-9]*\.?[0-9]+(?:[eE][+-]?[0-9]+)?${lengthUnitsPattern}$`).test(value) || isCSSFunction(value);
9372
9372
  }
9373
- let lineWidths = new Set([
9373
+ let lineWidths = /* @__PURE__ */ new Set([
9374
9374
  "thin",
9375
9375
  "medium",
9376
9376
  "thick"
@@ -9411,7 +9411,7 @@ var require_dataTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
9411
9411
  })) return false;
9412
9412
  return images > 0;
9413
9413
  }
9414
- let gradientTypes = new Set([
9414
+ let gradientTypes = /* @__PURE__ */ new Set([
9415
9415
  "conic-gradient",
9416
9416
  "linear-gradient",
9417
9417
  "radial-gradient",
@@ -9424,7 +9424,7 @@ var require_dataTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
9424
9424
  for (let type of gradientTypes) if (value.startsWith(`${type}(`)) return true;
9425
9425
  return false;
9426
9426
  }
9427
- let validPositions = new Set([
9427
+ let validPositions = /* @__PURE__ */ new Set([
9428
9428
  "center",
9429
9429
  "top",
9430
9430
  "right",
@@ -9458,7 +9458,7 @@ var require_dataTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
9458
9458
  })) return false;
9459
9459
  return fonts > 0;
9460
9460
  }
9461
- let genericNames = new Set([
9461
+ let genericNames = /* @__PURE__ */ new Set([
9462
9462
  "serif",
9463
9463
  "sans-serif",
9464
9464
  "monospace",
@@ -9476,7 +9476,7 @@ var require_dataTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
9476
9476
  function genericName(value) {
9477
9477
  return genericNames.has(value);
9478
9478
  }
9479
- let absoluteSizes = new Set([
9479
+ let absoluteSizes = /* @__PURE__ */ new Set([
9480
9480
  "xx-small",
9481
9481
  "x-small",
9482
9482
  "small",
@@ -9489,7 +9489,7 @@ var require_dataTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
9489
9489
  function absoluteSize(value) {
9490
9490
  return absoluteSizes.has(value);
9491
9491
  }
9492
- let relativeSizes = new Set(["larger", "smaller"]);
9492
+ let relativeSizes = /* @__PURE__ */ new Set(["larger", "smaller"]);
9493
9493
  function relativeSize(value) {
9494
9494
  return relativeSizes.has(value);
9495
9495
  }
@@ -10322,21 +10322,21 @@ var require_parseAnimationValue = /* @__PURE__ */ __commonJSMin(((exports) => {
10322
10322
  return parseAnimationValue;
10323
10323
  }
10324
10324
  });
10325
- const DIRECTIONS = new Set([
10325
+ const DIRECTIONS = /* @__PURE__ */ new Set([
10326
10326
  "normal",
10327
10327
  "reverse",
10328
10328
  "alternate",
10329
10329
  "alternate-reverse"
10330
10330
  ]);
10331
- const PLAY_STATES = new Set(["running", "paused"]);
10332
- const FILL_MODES = new Set([
10331
+ const PLAY_STATES = /* @__PURE__ */ new Set(["running", "paused"]);
10332
+ const FILL_MODES = /* @__PURE__ */ new Set([
10333
10333
  "none",
10334
10334
  "forwards",
10335
10335
  "backwards",
10336
10336
  "both"
10337
10337
  ]);
10338
- const ITERATION_COUNTS = new Set(["infinite"]);
10339
- const TIMINGS = new Set([
10338
+ const ITERATION_COUNTS = /* @__PURE__ */ new Set(["infinite"]);
10339
+ const TIMINGS = /* @__PURE__ */ new Set([
10340
10340
  "linear",
10341
10341
  "ease",
10342
10342
  "ease-in",
@@ -12866,13 +12866,13 @@ var require_isSyntacticallyValidPropertyValue = /* @__PURE__ */ __commonJSMin(((
12866
12866
  return isSyntacticallyValidPropertyValue;
12867
12867
  }
12868
12868
  });
12869
- let matchingBrackets = new Map([
12869
+ let matchingBrackets = /* @__PURE__ */ new Map([
12870
12870
  ["{", "}"],
12871
12871
  ["[", "]"],
12872
12872
  ["(", ")"]
12873
12873
  ]);
12874
12874
  let inverseMatchingBrackets = new Map(Array.from(matchingBrackets.entries()).map(([k, v]) => [v, k]));
12875
- let quotes = new Set([
12875
+ let quotes = /* @__PURE__ */ new Set([
12876
12876
  "\"",
12877
12877
  "'",
12878
12878
  "`"
@@ -14484,7 +14484,7 @@ var require_generateRules = /* @__PURE__ */ __commonJSMin(((exports) => {
14484
14484
  if (fallback) matches = [fallback];
14485
14485
  else {
14486
14486
  var _typesByMatches_get;
14487
- let typesPerPlugin = matches.map((match) => new Set([...(_typesByMatches_get = typesByMatches.get(match)) !== null && _typesByMatches_get !== void 0 ? _typesByMatches_get : []]));
14487
+ let typesPerPlugin = matches.map((match) => /* @__PURE__ */ new Set([...(_typesByMatches_get = typesByMatches.get(match)) !== null && _typesByMatches_get !== void 0 ? _typesByMatches_get : []]));
14488
14488
  for (let pluginTypes of typesPerPlugin) for (let type of pluginTypes) {
14489
14489
  let removeFromOwnGroup = false;
14490
14490
  for (let otherGroup of typesPerPlugin) {
@@ -16687,11 +16687,11 @@ async function loadV3(pkgDir, jsConfig) {
16687
16687
  tailwindConfig.content = ["no-op"];
16688
16688
  let context = createContext(resolveConfig(tailwindConfig));
16689
16689
  function getClassOrderPolyfill(classes) {
16690
- let parasiteUtilities = new Set([prefixCandidate(context, "group"), prefixCandidate(context, "peer")]);
16690
+ let parasiteUtilities = /* @__PURE__ */ new Set([prefixCandidate(context, "group"), prefixCandidate(context, "peer")]);
16691
16691
  let classNamesWithOrder = [];
16692
16692
  for (let className of classes) {
16693
16693
  var _generateRules$sort$;
16694
- let order = ((_generateRules$sort$ = generateRules(new Set([className]), context).sort(([a], [z]) => bigSign(z - a))[0]) === null || _generateRules$sort$ === void 0 ? void 0 : _generateRules$sort$[0]) ?? null;
16694
+ let order = ((_generateRules$sort$ = generateRules(/* @__PURE__ */ new Set([className]), context).sort(([a], [z]) => bigSign(z - a))[0]) === null || _generateRules$sort$ === void 0 ? void 0 : _generateRules$sort$[0]) ?? null;
16695
16695
  if (order === null && parasiteUtilities.has(className)) order = context.layerOrder.components;
16696
16696
  classNamesWithOrder.push([className, order]);
16697
16697
  }