vite 6.0.0-alpha.8 → 6.0.0-beta.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.
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './dep-C7zR1Rh8.js';
1
+ import { J as getDefaultExportFromCjs } from './dep-Bv1xMYNy.js';
2
2
  import require$$0 from 'path';
3
3
  import require$$0__default from 'fs';
4
4
  import { l as lib } from './dep-IQS-Za7F.js';
@@ -371,13 +371,16 @@ var CharCodes;
371
371
  (function (CharCodes) {
372
372
  CharCodes[CharCodes["NUM"] = 35] = "NUM";
373
373
  CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
374
+ CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
374
375
  CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
375
376
  CharCodes[CharCodes["NINE"] = 57] = "NINE";
376
377
  CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
377
378
  CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
378
379
  CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
379
- /** Bit that needs to be set to convert an upper case ASCII character to lower case */
380
- CharCodes[CharCodes["To_LOWER_BIT"] = 32] = "To_LOWER_BIT";
380
+ CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
381
+ CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
382
+ CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
383
+ CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
381
384
  })(CharCodes || (CharCodes = {}));
382
385
  var BinTrieFlags;
383
386
  (function (BinTrieFlags) {
@@ -385,6 +388,33 @@ var BinTrieFlags;
385
388
  BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
386
389
  BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
387
390
  })(BinTrieFlags || (BinTrieFlags = {}));
391
+ var EntityDecoderState;
392
+ (function (EntityDecoderState) {
393
+ EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
394
+ EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
395
+ EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
396
+ EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
397
+ EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
398
+ })(EntityDecoderState || (EntityDecoderState = {}));
399
+ var DecodingMode;
400
+ (function (DecodingMode) {
401
+ /** Entities in text nodes that can end with any character. */
402
+ DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
403
+ /** Only allow entities terminated with a semicolon. */
404
+ DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
405
+ /** Entities in attributes have limitations on ending characters. */
406
+ DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
407
+ })(DecodingMode || (DecodingMode = {}));
408
+ /**
409
+ * Determines the branch of the current node that is taken given the current
410
+ * character. This function is used to traverse the trie.
411
+ *
412
+ * @param decodeTree The trie.
413
+ * @param current The current node.
414
+ * @param nodeIdx The index right after the current node and its value.
415
+ * @param char The current character.
416
+ * @returns The index of the next node, or -1 if no branch is taken.
417
+ */
388
418
  function determineBranch(decodeTree, current, nodeIdx, char) {
389
419
  const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
390
420
  const jumpOffset = current & BinTrieFlags.JUMP_TABLE;