vite 8.0.0-beta.7 → 8.0.0-beta.9

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.
@@ -91,8 +91,8 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91
91
  const extractICSS = (css, removeRules = true, mode = "auto") => {
92
92
  const icssImports = {};
93
93
  const icssExports = {};
94
- function addImports(node, path$2) {
95
- const unquoted = path$2.replace(/'|"/g, "");
94
+ function addImports(node, path) {
95
+ const unquoted = path.replace(/'|"/g, "");
96
96
  icssImports[unquoted] = Object.assign(icssImports[unquoted] || {}, getDeclsObject(node));
97
97
  if (removeRules) node.remove();
98
98
  }
@@ -128,8 +128,8 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
128
128
  //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js
129
129
  var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
130
130
  const createImports = (imports, postcss, mode = "rule") => {
131
- return Object.keys(imports).map((path$2) => {
132
- const aliases = imports[path$2];
131
+ return Object.keys(imports).map((path) => {
132
+ const aliases = imports[path];
133
133
  const declarations = Object.keys(aliases).map((key) => postcss.decl({
134
134
  prop: key,
135
135
  value: aliases[key],
@@ -137,21 +137,21 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
137
137
  }));
138
138
  const hasDeclarations = declarations.length > 0;
139
139
  const rule = mode === "rule" ? postcss.rule({
140
- selector: `:import('${path$2}')`,
140
+ selector: `:import('${path}')`,
141
141
  raws: { after: hasDeclarations ? "\n" : "" }
142
142
  }) : postcss.atRule({
143
143
  name: "icss-import",
144
- params: `'${path$2}'`,
144
+ params: `'${path}'`,
145
145
  raws: { after: hasDeclarations ? "\n" : "" }
146
146
  });
147
147
  if (hasDeclarations) rule.append(declarations);
148
148
  return rule;
149
149
  });
150
150
  };
151
- const createExports = (exports$1, postcss, mode = "rule") => {
152
- const declarations = Object.keys(exports$1).map((key) => postcss.decl({
151
+ const createExports = (exports$7, postcss, mode = "rule") => {
152
+ const declarations = Object.keys(exports$7).map((key) => postcss.decl({
153
153
  prop: key,
154
- value: exports$1[key],
154
+ value: exports$7[key],
155
155
  raws: { before: "\n " }
156
156
  }));
157
157
  if (declarations.length === 0) return [];
@@ -165,7 +165,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
165
165
  rule.append(declarations);
166
166
  return [rule];
167
167
  };
168
- const createICSSRules = (imports, exports$1, postcss, mode) => [...createImports(imports, postcss, mode), ...createExports(exports$1, postcss, mode)];
168
+ const createICSSRules = (imports, exports$8, postcss, mode) => [...createImports(imports, postcss, mode), ...createExports(exports$8, postcss, mode)];
169
169
  module.exports = createICSSRules;
170
170
  }));
171
171
 
@@ -239,10 +239,10 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
239
239
  async fetchImport(importNode, relativeTo, depNr) {
240
240
  const file = importNode.selector.match(importRegexp)[1];
241
241
  const depTrace = this.trace + String.fromCharCode(depNr);
242
- const exports$1 = await this.pathFetcher(file, relativeTo, depTrace);
242
+ const exports$6 = await this.pathFetcher(file, relativeTo, depTrace);
243
243
  try {
244
244
  importNode.each((decl) => {
245
- if (decl.type == "decl") this.translations[decl.prop] = exports$1[decl.value];
245
+ if (decl.type == "decl") this.translations[decl.prop] = exports$6[decl.value];
246
246
  });
247
247
  importNode.remove();
248
248
  } catch (err) {
@@ -1150,8 +1150,8 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1150
1150
  return;
1151
1151
  }
1152
1152
  let tmpSymbols;
1153
- let [, symbols, doubleQuotePath, singleQuotePath, global$1] = matches;
1154
- if (global$1) tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`);
1153
+ let [, symbols, doubleQuotePath, singleQuotePath, global] = matches;
1154
+ if (global) tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`);
1155
1155
  else {
1156
1156
  const importPath = doubleQuotePath || singleQuotePath;
1157
1157
  let parent = declaration.parent;
@@ -1179,12 +1179,12 @@ var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1179
1179
  word: "composes"
1180
1180
  });
1181
1181
  let lastImportRule;
1182
- importsOrder.forEach((path$2) => {
1183
- const importedSymbols = imports[path$2];
1184
- let rule = existingImports[path$2];
1182
+ importsOrder.forEach((path) => {
1183
+ const importedSymbols = imports[path];
1184
+ let rule = existingImports[path];
1185
1185
  if (!rule && importedSymbols) {
1186
1186
  rule = postcss.rule({
1187
- selector: `:import("${path$2}")`,
1187
+ selector: `:import("${path}")`,
1188
1188
  raws: { after: "\n" }
1189
1189
  });
1190
1190
  if (lastImportRule) root.insertAfter(lastImportRule, rule);
@@ -1219,10 +1219,10 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1219
1219
  * @param {number} digestSize size of digest returned by wasm
1220
1220
  */
1221
1221
  constructor(instance, instancesPool, chunkSize, digestSize) {
1222
- const exports$1 = instance.exports;
1223
- exports$1.init();
1224
- this.exports = exports$1;
1225
- this.mem = Buffer.from(exports$1.memory.buffer, 0, 65536);
1222
+ const exports$2 = instance.exports;
1223
+ exports$2.init();
1224
+ this.exports = exports$2;
1225
+ this.mem = Buffer.from(exports$2.memory.buffer, 0, 65536);
1226
1226
  this.buffered = 0;
1227
1227
  this.instancesPool = instancesPool;
1228
1228
  this.chunkSize = chunkSize;
@@ -1255,7 +1255,7 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1255
1255
  * @returns {void}
1256
1256
  */
1257
1257
  _updateWithShortString(data, encoding) {
1258
- const { exports: exports$1, buffered, mem, chunkSize } = this;
1258
+ const { exports: exports$3, buffered, mem, chunkSize } = this;
1259
1259
  let endPos;
1260
1260
  if (data.length < 70) if (!encoding || encoding === "utf-8" || encoding === "utf8") {
1261
1261
  endPos = buffered;
@@ -1282,7 +1282,7 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1282
1282
  if (endPos < chunkSize) this.buffered = endPos;
1283
1283
  else {
1284
1284
  const l = endPos & ~(this.chunkSize - 1);
1285
- exports$1.update(l);
1285
+ exports$3.update(l);
1286
1286
  const newBuffered = endPos - l;
1287
1287
  this.buffered = newBuffered;
1288
1288
  if (newBuffered > 0) mem.copyWithin(0, l, endPos);
@@ -1293,7 +1293,7 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1293
1293
  * @returns {void}
1294
1294
  */
1295
1295
  _updateWithBuffer(data) {
1296
- const { exports: exports$1, buffered, mem } = this;
1296
+ const { exports: exports$4, buffered, mem } = this;
1297
1297
  const length = data.length;
1298
1298
  if (buffered + length < this.chunkSize) {
1299
1299
  data.copy(mem, buffered, 0, length);
@@ -1303,18 +1303,18 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1303
1303
  if (l > 65536) {
1304
1304
  let i = 65536 - buffered;
1305
1305
  data.copy(mem, buffered, 0, i);
1306
- exports$1.update(65536);
1306
+ exports$4.update(65536);
1307
1307
  const stop = l - buffered - 65536;
1308
1308
  while (i < stop) {
1309
1309
  data.copy(mem, 0, i, i + 65536);
1310
- exports$1.update(65536);
1310
+ exports$4.update(65536);
1311
1311
  i += 65536;
1312
1312
  }
1313
1313
  data.copy(mem, 0, i, l - buffered);
1314
- exports$1.update(l - buffered - i);
1314
+ exports$4.update(l - buffered - i);
1315
1315
  } else {
1316
1316
  data.copy(mem, buffered, 0, l - buffered);
1317
- exports$1.update(l);
1317
+ exports$4.update(l);
1318
1318
  }
1319
1319
  const newBuffered = length + buffered - l;
1320
1320
  this.buffered = newBuffered;
@@ -1322,8 +1322,8 @@ var require_wasm_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1322
1322
  }
1323
1323
  }
1324
1324
  digest(type) {
1325
- const { exports: exports$1, buffered, mem, digestSize } = this;
1326
- exports$1.final(buffered);
1325
+ const { exports: exports$5, buffered, mem, digestSize } = this;
1326
+ exports$5.final(buffered);
1327
1327
  this.instancesPool.push(this);
1328
1328
  const hex = mem.toString("latin1", 0, digestSize);
1329
1329
  if (type === "hex") return hex;
@@ -1631,7 +1631,7 @@ var require_generic_names = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1631
1631
  return interpolateName({ resourcePath: filepath }, name, {
1632
1632
  content: hashPrefix + path.relative(context, filepath).replace(/\\/g, "/") + "\0" + localName,
1633
1633
  context
1634
- }).replace(new RegExp("[^a-zA-Z0-9\\-_\xA0-￿]", "g"), "-").replace(/^((-?[0-9])|--)/, "_$1");
1634
+ }).replace(/* @__PURE__ */ new RegExp("[^a-zA-Z0-9\\-_\xA0-￿]", "g"), "-").replace(/^((-?[0-9])|--)/, "_$1");
1635
1635
  };
1636
1636
  };
1637
1637
  }));
@@ -1941,8 +1941,8 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1941
1941
  if (typeof WeakMap !== "function") return null;
1942
1942
  var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
1943
1943
  var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
1944
- return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop$1) {
1945
- return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop;
1944
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
1945
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
1946
1946
  })(nodeInterop);
1947
1947
  }
1948
1948
  function _interopRequireWildcard(obj, nodeInterop) {
@@ -2014,9 +2014,9 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2014
2014
  _setPrototypeOf(subClass, superClass);
2015
2015
  }
2016
2016
  function _setPrototypeOf(o, p) {
2017
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2018
- o$1.__proto__ = p$1;
2019
- return o$1;
2017
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2018
+ o.__proto__ = p;
2019
+ return o;
2020
2020
  };
2021
2021
  return _setPrototypeOf(o, p);
2022
2022
  }
@@ -2215,9 +2215,9 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2215
2215
  var _this11 = this;
2216
2216
  var current = [];
2217
2217
  return this.reduce(function(memo, node, index) {
2218
- var split$1 = callback.call(_this11, node);
2218
+ var split = callback.call(_this11, node);
2219
2219
  current.push(node);
2220
- if (split$1) {
2220
+ if (split) {
2221
2221
  memo.push(current);
2222
2222
  current = [];
2223
2223
  } else if (index === _this11.length - 1) memo.push(current);
@@ -2302,9 +2302,9 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2302
2302
  _setPrototypeOf(subClass, superClass);
2303
2303
  }
2304
2304
  function _setPrototypeOf(o, p) {
2305
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2306
- o$1.__proto__ = p$1;
2307
- return o$1;
2305
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2306
+ o.__proto__ = p;
2307
+ return o;
2308
2308
  };
2309
2309
  return _setPrototypeOf(o, p);
2310
2310
  }
@@ -2355,9 +2355,9 @@ var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2355
2355
  _setPrototypeOf(subClass, superClass);
2356
2356
  }
2357
2357
  function _setPrototypeOf(o, p) {
2358
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2359
- o$1.__proto__ = p$1;
2360
- return o$1;
2358
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2359
+ o.__proto__ = p;
2360
+ return o;
2361
2361
  };
2362
2362
  return _setPrototypeOf(o, p);
2363
2363
  }
@@ -2469,9 +2469,9 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2469
2469
  _setPrototypeOf(subClass, superClass);
2470
2470
  }
2471
2471
  function _setPrototypeOf(o, p) {
2472
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2473
- o$1.__proto__ = p$1;
2474
- return o$1;
2472
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2473
+ o.__proto__ = p;
2474
+ return o;
2475
2475
  };
2476
2476
  return _setPrototypeOf(o, p);
2477
2477
  }
@@ -2525,9 +2525,9 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2525
2525
  _setPrototypeOf(subClass, superClass);
2526
2526
  }
2527
2527
  function _setPrototypeOf(o, p) {
2528
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2529
- o$1.__proto__ = p$1;
2530
- return o$1;
2528
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2529
+ o.__proto__ = p;
2530
+ return o;
2531
2531
  };
2532
2532
  return _setPrototypeOf(o, p);
2533
2533
  }
@@ -2560,9 +2560,9 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2560
2560
  _setPrototypeOf(subClass, superClass);
2561
2561
  }
2562
2562
  function _setPrototypeOf(o, p) {
2563
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2564
- o$1.__proto__ = p$1;
2565
- return o$1;
2563
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2564
+ o.__proto__ = p;
2565
+ return o;
2566
2566
  };
2567
2567
  return _setPrototypeOf(o, p);
2568
2568
  }
@@ -2615,9 +2615,9 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2615
2615
  _setPrototypeOf(subClass, superClass);
2616
2616
  }
2617
2617
  function _setPrototypeOf(o, p) {
2618
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2619
- o$1.__proto__ = p$1;
2620
- return o$1;
2618
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2619
+ o.__proto__ = p;
2620
+ return o;
2621
2621
  };
2622
2622
  return _setPrototypeOf(o, p);
2623
2623
  }
@@ -2696,9 +2696,9 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2696
2696
  _setPrototypeOf(subClass, superClass);
2697
2697
  }
2698
2698
  function _setPrototypeOf(o, p) {
2699
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2700
- o$1.__proto__ = p$1;
2701
- return o$1;
2699
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2700
+ o.__proto__ = p;
2701
+ return o;
2702
2702
  };
2703
2703
  return _setPrototypeOf(o, p);
2704
2704
  }
@@ -2731,20 +2731,20 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2731
2731
  _setPrototypeOf(subClass, superClass);
2732
2732
  }
2733
2733
  function _setPrototypeOf(o, p) {
2734
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2735
- o$1.__proto__ = p$1;
2736
- return o$1;
2734
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2735
+ o.__proto__ = p;
2736
+ return o;
2737
2737
  };
2738
2738
  return _setPrototypeOf(o, p);
2739
2739
  }
2740
2740
  var String = /* @__PURE__ */ function(_Node) {
2741
- _inheritsLoose(String$1, _Node);
2742
- function String$1(opts) {
2741
+ _inheritsLoose(String, _Node);
2742
+ function String(opts) {
2743
2743
  var _this = _Node.call(this, opts) || this;
2744
2744
  _this.type = _types.STRING;
2745
2745
  return _this;
2746
2746
  }
2747
- return String$1;
2747
+ return String;
2748
2748
  }(_node["default"]);
2749
2749
  exports["default"] = String;
2750
2750
  module.exports = exports.default;
@@ -2766,9 +2766,9 @@ var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2766
2766
  _setPrototypeOf(subClass, superClass);
2767
2767
  }
2768
2768
  function _setPrototypeOf(o, p) {
2769
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2770
- o$1.__proto__ = p$1;
2771
- return o$1;
2769
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2770
+ o.__proto__ = p;
2771
+ return o;
2772
2772
  };
2773
2773
  return _setPrototypeOf(o, p);
2774
2774
  }
@@ -2839,9 +2839,9 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
2839
2839
  _setPrototypeOf(subClass, superClass);
2840
2840
  }
2841
2841
  function _setPrototypeOf(o, p) {
2842
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
2843
- o$1.__proto__ = p$1;
2844
- return o$1;
2842
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2843
+ o.__proto__ = p;
2844
+ return o;
2845
2845
  };
2846
2846
  return _setPrototypeOf(o, p);
2847
2847
  }
@@ -3147,9 +3147,9 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3147
3147
  _setPrototypeOf(subClass, superClass);
3148
3148
  }
3149
3149
  function _setPrototypeOf(o, p) {
3150
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
3151
- o$1.__proto__ = p$1;
3152
- return o$1;
3150
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
3151
+ o.__proto__ = p;
3152
+ return o;
3153
3153
  };
3154
3154
  return _setPrototypeOf(o, p);
3155
3155
  }
@@ -3183,9 +3183,9 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3183
3183
  _setPrototypeOf(subClass, superClass);
3184
3184
  }
3185
3185
  function _setPrototypeOf(o, p) {
3186
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
3187
- o$1.__proto__ = p$1;
3188
- return o$1;
3186
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
3187
+ o.__proto__ = p;
3188
+ return o;
3189
3189
  };
3190
3190
  return _setPrototypeOf(o, p);
3191
3191
  }
@@ -3218,9 +3218,9 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3218
3218
  _setPrototypeOf(subClass, superClass);
3219
3219
  }
3220
3220
  function _setPrototypeOf(o, p) {
3221
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o$1, p$1) {
3222
- o$1.__proto__ = p$1;
3223
- return o$1;
3221
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
3222
+ o.__proto__ = p;
3223
+ return o;
3224
3224
  };
3225
3225
  return _setPrototypeOf(o, p);
3226
3226
  }
@@ -3332,8 +3332,8 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
3332
3332
  if (typeof WeakMap !== "function") return null;
3333
3333
  var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
3334
3334
  var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
3335
- return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop$1) {
3336
- return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop;
3335
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
3336
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
3337
3337
  })(nodeInterop);
3338
3338
  }
3339
3339
  function _interopRequireWildcard(obj, nodeInterop) {
@@ -3574,8 +3574,8 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3574
3574
  if (typeof WeakMap !== "function") return null;
3575
3575
  var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
3576
3576
  var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
3577
- return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop$1) {
3578
- return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop;
3577
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
3578
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
3579
3579
  })(nodeInterop);
3580
3580
  }
3581
3581
  function _interopRequireWildcard(obj, nodeInterop) {
@@ -4236,9 +4236,9 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4236
4236
  var value = word.slice(ind, index);
4237
4237
  if (i === 0 && firstCallback) return firstCallback.call(_this5, value, indices.length);
4238
4238
  var node;
4239
- var current$1 = _this5.currToken;
4240
- var sourceIndex = current$1[_tokenize.FIELDS.START_POS] + indices[i];
4241
- var source = getSource(current$1[1], current$1[2] + ind, current$1[3], current$1[2] + (index - 1));
4239
+ var current = _this5.currToken;
4240
+ var sourceIndex = current[_tokenize.FIELDS.START_POS] + indices[i];
4241
+ var source = getSource(current[1], current[2] + ind, current[3], current[2] + (index - 1));
4242
4242
  if (~hasClass.indexOf(ind)) {
4243
4243
  var classNameOpts = {
4244
4244
  value: value.slice(1),
@@ -4498,7 +4498,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4498
4498
  _proto.transformSync = function transformSync(rule, options) {
4499
4499
  return this._runSync(rule, options).transform;
4500
4500
  };
4501
- _proto.process = function process$1(rule, options) {
4501
+ _proto.process = function process(rule, options) {
4502
4502
  return this._run(rule, options).then(function(result) {
4503
4503
  return result.string || result.root.toString();
4504
4504
  });
@@ -4679,8 +4679,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4679
4679
  if (typeof WeakMap !== "function") return null;
4680
4680
  var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
4681
4681
  var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
4682
- return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop$1) {
4683
- return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop;
4682
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
4683
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
4684
4684
  })(nodeInterop);
4685
4685
  }
4686
4686
  function _interopRequireWildcard(obj, nodeInterop) {
@@ -5194,21 +5194,21 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5194
5194
  return node;
5195
5195
  }
5196
5196
  const importedNames = {};
5197
- root.walkRules(/^:import\(.+\)$/, (rule$1) => {
5198
- rule$1.walkDecls((decl) => {
5197
+ root.walkRules(/^:import\(.+\)$/, (rule) => {
5198
+ rule.walkDecls((decl) => {
5199
5199
  importedNames[decl.prop] = true;
5200
5200
  });
5201
5201
  });
5202
- root.walkRules((rule$1) => {
5203
- let parsedSelector = selectorParser().astSync(rule$1);
5204
- rule$1.selector = traverseNode(parsedSelector.clone()).toString();
5205
- rule$1.walkDecls(/^(composes|compose-with)$/i, (decl) => {
5202
+ root.walkRules((rule) => {
5203
+ let parsedSelector = selectorParser().astSync(rule);
5204
+ rule.selector = traverseNode(parsedSelector.clone()).toString();
5205
+ rule.walkDecls(/^(composes|compose-with)$/i, (decl) => {
5206
5206
  const localNames = getSingleLocalNamesForComposes(parsedSelector, decl.parent);
5207
5207
  decl.value.split(",").forEach((value) => {
5208
5208
  value.trim().split(/\s+/).forEach((className) => {
5209
- const global$1 = /^global\(([^)]+)\)$/.exec(className);
5210
- if (global$1) localNames.forEach((exportedName) => {
5211
- exports$1[exportedName].push(global$1[1]);
5209
+ const global = /^global\(([^)]+)\)$/.exec(className);
5210
+ if (global) localNames.forEach((exportedName) => {
5211
+ exports$1[exportedName].push(global[1]);
5212
5212
  });
5213
5213
  else if (hasOwnProperty.call(importedNames, className)) localNames.forEach((exportedName) => {
5214
5214
  exports$1[exportedName].push(className);
@@ -5223,7 +5223,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5223
5223
  });
5224
5224
  decl.remove();
5225
5225
  });
5226
- rule$1.walkDecls((decl) => {
5226
+ rule.walkDecls((decl) => {
5227
5227
  if (!/:local\s*\((.+?)\)/.test(decl.value)) return;
5228
5228
  let tokens = decl.value.split(/(,|'[^']*'|"[^"]*")/);
5229
5229
  tokens = tokens.map((token, idx) => {
@@ -5269,8 +5269,8 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5269
5269
  };
5270
5270
  };
5271
5271
  plugin.postcss = true;
5272
- plugin.generateScopedName = function(name, path$2) {
5273
- return `_${path$2.replace(/\.[^./\\]+$/, "").replace(/[\W_]+/g, "_").replace(/^_|_$/g, "")}__${name}`.trim();
5272
+ plugin.generateScopedName = function(name, path) {
5273
+ return `_${path.replace(/\.[^./\\]+$/, "").replace(/[\W_]+/g, "_").replace(/^_|_$/g, "")}__${name}`.trim();
5274
5274
  };
5275
5275
  plugin.generateExportEntry = function(name, scopedName) {
5276
5276
  return {
@@ -5311,8 +5311,8 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5311
5311
  root.walkAtRules(/value/i, (atRule) => {
5312
5312
  const matches = atRule.params.match(matchImports);
5313
5313
  if (matches) {
5314
- let [, aliases, path$2] = matches;
5315
- if (definitions[path$2]) path$2 = definitions[path$2];
5314
+ let [, aliases, path] = matches;
5315
+ if (definitions[path]) path = definitions[path];
5316
5316
  const imports = aliases.replace(/^\(\s*([\s\S]+)\s*\)$/, "$1").split(/\s*,\s*/).map((alias) => {
5317
5317
  const tokens = matchImport.exec(alias);
5318
5318
  if (tokens) {
@@ -5326,7 +5326,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5326
5326
  } else throw new Error(`@import statement "${alias}" is invalid!`);
5327
5327
  });
5328
5328
  importAliases.push({
5329
- path: path$2,
5329
+ path,
5330
5330
  imports
5331
5331
  });
5332
5332
  atRule.remove();
@@ -5359,9 +5359,9 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5359
5359
  exportRule.append(exportDeclarations);
5360
5360
  root.prepend(exportRule);
5361
5361
  }
5362
- importAliases.reverse().forEach(({ path: path$2, imports }) => {
5362
+ importAliases.reverse().forEach(({ path, imports }) => {
5363
5363
  const importRule = postcss.rule({
5364
- selector: `:import(${path$2})`,
5364
+ selector: `:import(${path})`,
5365
5365
  raws: { after: "\n" }
5366
5366
  });
5367
5367
  imports.forEach(({ theirName, importedName }) => {