vite 5.3.4 → 5.3.5

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/LICENSE.md CHANGED
@@ -1006,6 +1006,27 @@ License: MIT
1006
1006
  By: Mathias Bynens
1007
1007
  Repository: https://github.com/mathiasbynens/cssesc.git
1008
1008
 
1009
+ > Copyright Mathias Bynens <https://mathiasbynens.be/>
1010
+ >
1011
+ > Permission is hereby granted, free of charge, to any person obtaining
1012
+ > a copy of this software and associated documentation files (the
1013
+ > "Software"), to deal in the Software without restriction, including
1014
+ > without limitation the rights to use, copy, modify, merge, publish,
1015
+ > distribute, sublicense, and/or sell copies of the Software, and to
1016
+ > permit persons to whom the Software is furnished to do so, subject to
1017
+ > the following conditions:
1018
+ >
1019
+ > The above copyright notice and this permission notice shall be
1020
+ > included in all copies or substantial portions of the Software.
1021
+ >
1022
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1023
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1024
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1025
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1026
+ > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1027
+ > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1028
+ > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1029
+
1009
1030
  ---------------------------------------
1010
1031
 
1011
1032
  ## debug
@@ -2660,6 +2681,29 @@ License: MIT
2660
2681
  By: Ben Briggs, Chris Eppstein
2661
2682
  Repository: postcss/postcss-selector-parser
2662
2683
 
2684
+ > Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
2685
+ >
2686
+ > Permission is hereby granted, free of charge, to any person
2687
+ > obtaining a copy of this software and associated documentation
2688
+ > files (the "Software"), to deal in the Software without
2689
+ > restriction, including without limitation the rights to use,
2690
+ > copy, modify, merge, publish, distribute, sublicense, and/or sell
2691
+ > copies of the Software, and to permit persons to whom the
2692
+ > Software is furnished to do so, subject to the following
2693
+ > conditions:
2694
+ >
2695
+ > The above copyright notice and this permission notice shall be
2696
+ > included in all copies or substantial portions of the Software.
2697
+ >
2698
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2699
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
2700
+ > OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2701
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
2702
+ > HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
2703
+ > WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2704
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2705
+ > OTHER DEALINGS IN THE SOFTWARE.
2706
+
2663
2707
  ---------------------------------------
2664
2708
 
2665
2709
  ## postcss-value-parser
@@ -1,4 +1,4 @@
1
- import { C as commonjsGlobal, B as getDefaultExportFromCjs } from './dep-D8YhmIY-.js';
1
+ import { C as commonjsGlobal, B as getDefaultExportFromCjs } from './dep-mCdpKltl.js';
2
2
  import require$$0__default from 'fs';
3
3
  import require$$0 from 'postcss';
4
4
  import require$$0$1 from 'path';
@@ -561,10 +561,6 @@ var root$2 = freeGlobal || freeSelf || Function('return this')();
561
561
  function arrayReduce(array, iteratee, accumulator, initAccum) {
562
562
  var index = -1,
563
563
  length = array ? array.length : 0;
564
-
565
- if (initAccum && length) {
566
- accumulator = array[++index];
567
- }
568
564
  while (++index < length) {
569
565
  accumulator = iteratee(accumulator, array[index], index, array);
570
566
  }
@@ -977,7 +973,7 @@ var upperFirst = createCaseFirst('toUpperCase');
977
973
  */
978
974
  function words(string, pattern, guard) {
979
975
  string = toString(string);
980
- pattern = guard ? undefined : pattern;
976
+ pattern = pattern;
981
977
 
982
978
  if (pattern === undefined) {
983
979
  return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
@@ -2437,7 +2433,7 @@ function _interopRequireDefault$3(obj) { return obj && obj.__esModule ? obj : {
2437
2433
 
2438
2434
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2439
2435
 
2440
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
2436
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
2441
2437
 
2442
2438
  var cloneNode = function cloneNode(obj, parent) {
2443
2439
  if (typeof obj !== 'object' || obj === null) {
@@ -2715,7 +2711,7 @@ types.UNIVERSAL = UNIVERSAL;
2715
2711
 
2716
2712
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2717
2713
 
2718
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
2714
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
2719
2715
 
2720
2716
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2721
2717
 
@@ -2723,7 +2719,7 @@ types.UNIVERSAL = UNIVERSAL;
2723
2719
 
2724
2720
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2725
2721
 
2726
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
2722
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
2727
2723
 
2728
2724
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
2729
2725
 
@@ -3112,7 +3108,7 @@ var containerExports = container.exports;
3112
3108
 
3113
3109
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3114
3110
 
3115
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3111
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
3116
3112
 
3117
3113
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
3118
3114
 
@@ -3328,7 +3324,7 @@ var cssesc_1 = cssesc;
3328
3324
 
3329
3325
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3330
3326
 
3331
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3327
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
3332
3328
 
3333
3329
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
3334
3330
 
@@ -3483,7 +3479,7 @@ var namespace = {exports: {}};
3483
3479
 
3484
3480
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3485
3481
 
3486
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3482
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
3487
3483
 
3488
3484
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
3489
3485
 
@@ -3716,7 +3712,7 @@ var node = require$$0$2.deprecate;
3716
3712
 
3717
3713
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
3718
3714
 
3719
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3715
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
3720
3716
 
3721
3717
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
3722
3718
 
@@ -4787,7 +4783,7 @@ tokenTypes.combinator = combinator$1;
4787
4783
 
4788
4784
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4789
4785
 
4790
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4786
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
4791
4787
 
4792
4788
  var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
4793
4789
  var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
@@ -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;
@@ -1,4 +1,4 @@
1
- import { B as getDefaultExportFromCjs } from './dep-D8YhmIY-.js';
1
+ import { B as getDefaultExportFromCjs } from './dep-mCdpKltl.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';