UNPKG

vite

Version:

Native-ESM powered web dev build tool

1,413 lines (1,394 loc) 215 kB
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url); import { __commonJS } from "./dep-Drtntmtt.js"; import { require_lib } from "./dep-DmY5m86w.js"; //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js var require_fs = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.getFileSystem = getFileSystem; exports.setFileSystem = setFileSystem; let fileSystem = { readFile: () => { throw Error("readFile not implemented"); }, writeFile: () => { throw Error("writeFile not implemented"); } }; function setFileSystem(fs) { fileSystem.readFile = fs.readFile; fileSystem.writeFile = fs.writeFile; } function getFileSystem() { return fileSystem; } } }); //#endregion //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js var require_unquote = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/unquote.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = unquote; const reg = /['"]/; function unquote(str$1) { if (!str$1) return ""; if (reg.test(str$1.charAt(0))) str$1 = str$1.substr(1); if (reg.test(str$1.charAt(str$1.length - 1))) str$1 = str$1.substr(0, str$1.length - 1); return str$1; } } }); //#endregion //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js var require_replaceValueSymbols = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceValueSymbols.js"(exports, module) { const matchValueName = /[$]?[\w-]+/g; const replaceValueSymbols$2 = (value, replacements) => { let matches; while (matches = matchValueName.exec(value)) { const replacement = replacements[matches[0]]; if (replacement) { value = value.slice(0, matches.index) + replacement + value.slice(matchValueName.lastIndex); matchValueName.lastIndex -= matches[0].length - replacement.length; } } return value; }; module.exports = replaceValueSymbols$2; } }); //#endregion //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js var require_replaceSymbols = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/replaceSymbols.js"(exports, module) { const replaceValueSymbols$1 = require_replaceValueSymbols(); const replaceSymbols$1 = (css, replacements) => { css.walk((node) => { if (node.type === "decl" && node.value) node.value = replaceValueSymbols$1(node.value.toString(), replacements); else if (node.type === "rule" && node.selector) node.selector = replaceValueSymbols$1(node.selector.toString(), replacements); else if (node.type === "atrule" && node.params) node.params = replaceValueSymbols$1(node.params.toString(), replacements); }); }; module.exports = replaceSymbols$1; } }); //#endregion //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js var require_extractICSS = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/extractICSS.js"(exports, module) { const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/; const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/; const getDeclsObject = (rule) => { const object$1 = {}; rule.walkDecls((decl) => { const before = decl.raws.before ? decl.raws.before.trim() : ""; object$1[before + decl.prop] = decl.value; }); return object$1; }; /** * * @param {string} css * @param {boolean} removeRules * @param {'auto' | 'rule' | 'at-rule'} mode */ const extractICSS$2 = (css, removeRules = true, mode = "auto") => { const icssImports = {}; const icssExports = {}; function addImports(node, path$2) { const unquoted = path$2.replace(/'|"/g, ""); icssImports[unquoted] = Object.assign(icssImports[unquoted] || {}, getDeclsObject(node)); if (removeRules) node.remove(); } function addExports(node) { Object.assign(icssExports, getDeclsObject(node)); if (removeRules) node.remove(); } css.each((node) => { if (node.type === "rule" && mode !== "at-rule") { if (node.selector.slice(0, 7) === ":import") { const matches = importPattern.exec(node.selector); if (matches) addImports(node, matches[1]); } if (node.selector === ":export") addExports(node); } if (node.type === "atrule" && mode !== "rule") { if (node.name === "icss-import") { const matches = balancedQuotes.exec(node.params); if (matches) addImports(node, matches[1]); } if (node.name === "icss-export") addExports(node); } }); return { icssImports, icssExports }; }; module.exports = extractICSS$2; } }); //#endregion //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js var require_createICSSRules = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/createICSSRules.js"(exports, module) { const createImports = (imports, postcss, mode = "rule") => { return Object.keys(imports).map((path$2) => { const aliases = imports[path$2]; const declarations = Object.keys(aliases).map((key) => postcss.decl({ prop: key, value: aliases[key], raws: { before: "\n " } })); const hasDeclarations = declarations.length > 0; const rule = mode === "rule" ? postcss.rule({ selector: `:import('${path$2}')`, raws: { after: hasDeclarations ? "\n" : "" } }) : postcss.atRule({ name: "icss-import", params: `'${path$2}'`, raws: { after: hasDeclarations ? "\n" : "" } }); if (hasDeclarations) rule.append(declarations); return rule; }); }; const createExports = (exports$1, postcss, mode = "rule") => { const declarations = Object.keys(exports$1).map((key) => postcss.decl({ prop: key, value: exports$1[key], raws: { before: "\n " } })); if (declarations.length === 0) return []; const rule = mode === "rule" ? postcss.rule({ selector: `:export`, raws: { after: "\n" } }) : postcss.atRule({ name: "icss-export", raws: { after: "\n" } }); rule.append(declarations); return [rule]; }; const createICSSRules$1 = (imports, exports$1, postcss, mode) => [...createImports(imports, postcss, mode), ...createExports(exports$1, postcss, mode)]; module.exports = createICSSRules$1; } }); //#endregion //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js var require_src$4 = __commonJS({ "../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.6/node_modules/icss-utils/src/index.js"(exports, module) { const replaceValueSymbols = require_replaceValueSymbols(); const replaceSymbols = require_replaceSymbols(); const extractICSS$1 = require_extractICSS(); const createICSSRules = require_createICSSRules(); module.exports = { replaceValueSymbols, replaceSymbols, extractICSS: extractICSS$1, createICSSRules }; } }); //#endregion //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js var require_Parser = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _icssUtils = require_src$4(); const importRegexp = /^:import\((.+)\)$/; var Parser$1 = class { constructor(pathFetcher, trace) { this.pathFetcher = pathFetcher; this.plugin = this.plugin.bind(this); this.exportTokens = {}; this.translations = {}; this.trace = trace; } plugin() { const parser$1 = this; return { postcssPlugin: "css-modules-parser", async OnceExit(css) { await Promise.all(parser$1.fetchAllImports(css)); parser$1.linkImportedSymbols(css); return parser$1.extractExports(css); } }; } fetchAllImports(css) { let imports = []; css.each((node) => { if (node.type == "rule" && node.selector.match(importRegexp)) imports.push(this.fetchImport(node, css.source.input.from, imports.length)); }); return imports; } linkImportedSymbols(css) { (0, _icssUtils.replaceSymbols)(css, this.translations); } extractExports(css) { css.each((node) => { if (node.type == "rule" && node.selector == ":export") this.handleExport(node); }); } handleExport(exportNode) { exportNode.each((decl) => { if (decl.type == "decl") { Object.keys(this.translations).forEach((translation) => { decl.value = decl.value.replace(translation, this.translations[translation]); }); this.exportTokens[decl.prop] = decl.value; } }); exportNode.remove(); } async fetchImport(importNode, relativeTo, depNr) { const file = importNode.selector.match(importRegexp)[1]; const depTrace = this.trace + String.fromCharCode(depNr); const exports$1 = await this.pathFetcher(file, relativeTo, depTrace); try { importNode.each((decl) => { if (decl.type == "decl") this.translations[decl.prop] = exports$1[decl.value]; }); importNode.remove(); } catch (err) { console.log(err); } } }; exports.default = Parser$1; } }); //#endregion //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js var require_saveJSON = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/saveJSON.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = saveJSON; var _fs$2 = require_fs(); function saveJSON(cssFile, json) { return new Promise((resolve, reject) => { const { writeFile } = (0, _fs$2.getFileSystem)(); writeFile(`${cssFile}.json`, JSON.stringify(json), (e) => e ? reject(e) : resolve(json)); }); } } }); //#endregion //#region ../../node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.camelcase@4.3.0/node_modules/lodash.camelcase/index.js"(exports, module) { /** * lodash (Custom Build) <https://lodash.com/> * Build: `lodash modularize exports="npm" -o ./` * Copyright jQuery Foundation and other contributors <https://jquery.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ /** Used as references for various `Number` constants. */ var INFINITY = Infinity; /** `Object#toString` result references. */ var symbolTag = "[object Symbol]"; /** Used to match words composed of alphanumeric characters. */ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; /** Used to match Latin Unicode letters (excluding mathematical operators). */ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; /** Used to compose unicode character classes. */ var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23", rsComboSymbolsRange = "\\u20d0-\\u20f0", rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; /** Used to compose unicode capture groups. */ var rsApos = "['’]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; /** Used to compose unicode regexes. */ var rsLowerMisc = "(?:" + rsLower + "|" + rsMisc + ")", rsUpperMisc = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptLowerContr = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptUpperContr = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [ rsNonAstral, rsRegional, rsSurrPair ].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [ rsDingbat, rsRegional, rsSurrPair ].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [ rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral ].join("|") + ")"; /** Used to match apostrophes. */ var reApos = RegExp(rsApos, "g"); /** * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). */ var reComboMark = RegExp(rsCombo, "g"); /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); /** Used to match complex or compound words. */ var reUnicodeWord = RegExp([ rsUpper + "?" + rsLower + "+" + rsOptLowerContr + "(?=" + [ rsBreak, rsUpper, "$" ].join("|") + ")", rsUpperMisc + "+" + rsOptUpperContr + "(?=" + [ rsBreak, rsUpper + rsLowerMisc, "$" ].join("|") + ")", rsUpper + "?" + rsLowerMisc + "+" + rsOptLowerContr, rsUpper + "+" + rsOptUpperContr, rsDigits, rsEmoji ].join("|"), "g"); /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + "]"); /** Used to detect strings that need a more robust regexp to match words. */ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; /** Used to map Latin Unicode letters to basic Latin letters. */ var deburredLetters = { "À": "A", "Á": "A", "Â": "A", "Ã": "A", "Ä": "A", "Å": "A", "à": "a", "á": "a", "â": "a", "ã": "a", "ä": "a", "å": "a", "Ç": "C", "ç": "c", "Ð": "D", "ð": "d", "È": "E", "É": "E", "Ê": "E", "Ë": "E", "è": "e", "é": "e", "ê": "e", "ë": "e", "Ì": "I", "Í": "I", "Î": "I", "Ï": "I", "ì": "i", "í": "i", "î": "i", "ï": "i", "Ñ": "N", "ñ": "n", "Ò": "O", "Ó": "O", "Ô": "O", "Õ": "O", "Ö": "O", "Ø": "O", "ò": "o", "ó": "o", "ô": "o", "õ": "o", "ö": "o", "ø": "o", "Ù": "U", "Ú": "U", "Û": "U", "Ü": "U", "ù": "u", "ú": "u", "û": "u", "ü": "u", "Ý": "Y", "ý": "y", "ÿ": "y", "Æ": "Ae", "æ": "ae", "Þ": "Th", "þ": "th", "ß": "ss", "Ā": "A", "Ă": "A", "Ą": "A", "ā": "a", "ă": "a", "ą": "a", "Ć": "C", "Ĉ": "C", "Ċ": "C", "Č": "C", "ć": "c", "ĉ": "c", "ċ": "c", "č": "c", "Ď": "D", "Đ": "D", "ď": "d", "đ": "d", "Ē": "E", "Ĕ": "E", "Ė": "E", "Ę": "E", "Ě": "E", "ē": "e", "ĕ": "e", "ė": "e", "ę": "e", "ě": "e", "Ĝ": "G", "Ğ": "G", "Ġ": "G", "Ģ": "G", "ĝ": "g", "ğ": "g", "ġ": "g", "ģ": "g", "Ĥ": "H", "Ħ": "H", "ĥ": "h", "ħ": "h", "Ĩ": "I", "Ī": "I", "Ĭ": "I", "Į": "I", "İ": "I", "ĩ": "i", "ī": "i", "ĭ": "i", "į": "i", "ı": "i", "Ĵ": "J", "ĵ": "j", "Ķ": "K", "ķ": "k", "ĸ": "k", "Ĺ": "L", "Ļ": "L", "Ľ": "L", "Ŀ": "L", "Ł": "L", "ĺ": "l", "ļ": "l", "ľ": "l", "ŀ": "l", "ł": "l", "Ń": "N", "Ņ": "N", "Ň": "N", "Ŋ": "N", "ń": "n", "ņ": "n", "ň": "n", "ŋ": "n", "Ō": "O", "Ŏ": "O", "Ő": "O", "ō": "o", "ŏ": "o", "ő": "o", "Ŕ": "R", "Ŗ": "R", "Ř": "R", "ŕ": "r", "ŗ": "r", "ř": "r", "Ś": "S", "Ŝ": "S", "Ş": "S", "Š": "S", "ś": "s", "ŝ": "s", "ş": "s", "š": "s", "Ţ": "T", "Ť": "T", "Ŧ": "T", "ţ": "t", "ť": "t", "ŧ": "t", "Ũ": "U", "Ū": "U", "Ŭ": "U", "Ů": "U", "Ű": "U", "Ų": "U", "ũ": "u", "ū": "u", "ŭ": "u", "ů": "u", "ű": "u", "ų": "u", "Ŵ": "W", "ŵ": "w", "Ŷ": "Y", "ŷ": "y", "Ÿ": "Y", "Ź": "Z", "Ż": "Z", "Ž": "Z", "ź": "z", "ż": "z", "ž": "z", "IJ": "IJ", "ij": "ij", "Œ": "Oe", "œ": "oe", "ʼn": "'n", "ſ": "ss" }; /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == "object" && global && global.Object === Object && global; /** Detect free variable `self`. */ var freeSelf = typeof self == "object" && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root$1 = freeGlobal || freeSelf || Function("return this")(); /** * A specialized version of `_.reduce` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} [accumulator] The initial value. * @param {boolean} [initAccum] Specify using the first element of `array` as * the initial value. * @returns {*} Returns the accumulated value. */ function arrayReduce(array, iteratee, accumulator, initAccum) { var index = -1, length = array ? array.length : 0; if (initAccum && length) accumulator = array[++index]; while (++index < length) accumulator = iteratee(accumulator, array[index], index, array); return accumulator; } /** * Converts an ASCII `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array. */ function asciiToArray(string$1) { return string$1.split(""); } /** * Splits an ASCII `string` into an array of its words. * * @private * @param {string} The string to inspect. * @returns {Array} Returns the words of `string`. */ function asciiWords(string$1) { return string$1.match(reAsciiWord) || []; } /** * The base implementation of `_.propertyOf` without support for deep paths. * * @private * @param {Object} object The object to query. * @returns {Function} Returns the new accessor function. */ function basePropertyOf(object$1) { return function(key) { return object$1 == null ? void 0 : object$1[key]; }; } /** * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A * letters to basic Latin letters. * * @private * @param {string} letter The matched letter to deburr. * @returns {string} Returns the deburred letter. */ var deburrLetter = basePropertyOf(deburredLetters); /** * Checks if `string` contains Unicode symbols. * * @private * @param {string} string The string to inspect. * @returns {boolean} Returns `true` if a symbol is found, else `false`. */ function hasUnicode(string$1) { return reHasUnicode.test(string$1); } /** * Checks if `string` contains a word composed of Unicode symbols. * * @private * @param {string} string The string to inspect. * @returns {boolean} Returns `true` if a word is found, else `false`. */ function hasUnicodeWord(string$1) { return reHasUnicodeWord.test(string$1); } /** * Converts `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array. */ function stringToArray(string$1) { return hasUnicode(string$1) ? unicodeToArray(string$1) : asciiToArray(string$1); } /** * Converts a Unicode `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array. */ function unicodeToArray(string$1) { return string$1.match(reUnicode) || []; } /** * Splits a Unicode `string` into an array of its words. * * @private * @param {string} The string to inspect. * @returns {Array} Returns the words of `string`. */ function unicodeWords(string$1) { return string$1.match(reUnicodeWord) || []; } /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; /** Built-in value references. */ var Symbol$1 = root$1.Symbol; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0; /** * The base implementation of `_.slice` without an iteratee call guard. * * @private * @param {Array} array The array to slice. * @param {number} [start=0] The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the slice of `array`. */ function baseSlice(array, start, end) { var index = -1, length = array.length; if (start < 0) start = -start > length ? 0 : length + start; end = end > length ? length : end; if (end < 0) end += length; length = start > end ? 0 : end - start >>> 0; start >>>= 0; var result = Array(length); while (++index < length) result[index] = array[index + start]; return result; } /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { if (typeof value == "string") return value; if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ""; var result = value + ""; return result == "0" && 1 / value == -INFINITY ? "-0" : result; } /** * Casts `array` to a slice if it's needed. * * @private * @param {Array} array The array to inspect. * @param {number} start The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the cast slice. */ function castSlice(array, start, end) { var length = array.length; end = end === void 0 ? length : end; return !start && end >= length ? array : baseSlice(array, start, end); } /** * Creates a function like `_.lowerFirst`. * * @private * @param {string} methodName The name of the `String` case method to use. * @returns {Function} Returns the new case function. */ function createCaseFirst(methodName) { return function(string$1) { string$1 = toString(string$1); var strSymbols = hasUnicode(string$1) ? stringToArray(string$1) : void 0; var chr = strSymbols ? strSymbols[0] : string$1.charAt(0); var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string$1.slice(1); return chr[methodName]() + trailing; }; } /** * Creates a function like `_.camelCase`. * * @private * @param {Function} callback The function to combine each word. * @returns {Function} Returns the new compounder function. */ function createCompounder(callback) { return function(string$1) { return arrayReduce(words(deburr(string$1).replace(reApos, "")), callback, ""); }; } /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return !!value && typeof value == "object"; } /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; } /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to process. * @returns {string} Returns the string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? "" : baseToString(value); } /** * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the camel cased string. * @example * * _.camelCase('Foo Bar'); * // => 'fooBar' * * _.camelCase('--foo-bar--'); * // => 'fooBar' * * _.camelCase('__FOO_BAR__'); * // => 'fooBar' */ var camelCase = createCompounder(function(result, word$1, index) { word$1 = word$1.toLowerCase(); return result + (index ? capitalize(word$1) : word$1); }); /** * Converts the first character of `string` to upper case and the remaining * to lower case. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to capitalize. * @returns {string} Returns the capitalized string. * @example * * _.capitalize('FRED'); * // => 'Fred' */ function capitalize(string$1) { return upperFirst(toString(string$1).toLowerCase()); } /** * Deburrs `string` by converting * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) * letters to basic Latin letters and removing * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to deburr. * @returns {string} Returns the deburred string. * @example * * _.deburr('déjà vu'); * // => 'deja vu' */ function deburr(string$1) { string$1 = toString(string$1); return string$1 && string$1.replace(reLatin, deburrLetter).replace(reComboMark, ""); } /** * Converts the first character of `string` to upper case. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the converted string. * @example * * _.upperFirst('fred'); * // => 'Fred' * * _.upperFirst('FRED'); * // => 'FRED' */ var upperFirst = createCaseFirst("toUpperCase"); /** * Splits `string` into an array of its words. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. * @param {RegExp|string} [pattern] The pattern to match words. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the words of `string`. * @example * * _.words('fred, barney, & pebbles'); * // => ['fred', 'barney', 'pebbles'] * * _.words('fred, barney, & pebbles', /[^, ]+/g); * // => ['fred', 'barney', '&', 'pebbles'] */ function words(string$1, pattern, guard) { string$1 = toString(string$1); pattern = guard ? void 0 : pattern; if (pattern === void 0) return hasUnicodeWord(string$1) ? unicodeWords(string$1) : asciiWords(string$1); return string$1.match(pattern) || []; } module.exports = camelCase; } }); //#endregion //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js var require_localsConvention = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/localsConvention.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.makeLocalsConventionReducer = makeLocalsConventionReducer; var _lodash = _interopRequireDefault$22(require_lodash()); function _interopRequireDefault$22(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function dashesCamelCase(string$1) { return string$1.replace(/-+(\w)/g, (_, firstLetter) => firstLetter.toUpperCase()); } function makeLocalsConventionReducer(localsConvention, inputFile) { const isFunc = typeof localsConvention === "function"; return (tokens$1, [className$1, value]) => { if (isFunc) { const convention = localsConvention(className$1, value, inputFile); tokens$1[convention] = value; return tokens$1; } switch (localsConvention) { case "camelCase": tokens$1[className$1] = value; tokens$1[(0, _lodash.default)(className$1)] = value; break; case "camelCaseOnly": tokens$1[(0, _lodash.default)(className$1)] = value; break; case "dashes": tokens$1[className$1] = value; tokens$1[dashesCamelCase(className$1)] = value; break; case "dashesOnly": tokens$1[dashesCamelCase(className$1)] = value; break; } return tokens$1; }; } } }); //#endregion //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js var require_FileSystemLoader = __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _postcss$1 = _interopRequireDefault$21(require("postcss")); var _path = _interopRequireDefault$21(require("path")); var _Parser$1 = _interopRequireDefault$21(require_Parser()); var _fs$1 = require_fs(); function _interopRequireDefault$21(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var Core = class Core { constructor(plugins) { this.plugins = plugins || Core.defaultPlugins; } async load(sourceString, sourcePath, trace, pathFetcher) { const parser$1 = new _Parser$1.default(pathFetcher, trace); const plugins = this.plugins.concat([parser$1.plugin()]); const result = await (0, _postcss$1.default)(plugins).process(sourceString, { from: sourcePath }); return { injectableSource: result.css, exportTokens: parser$1.exportTokens }; } }; const traceKeySorter = (a, b) => { if (a.length < b.length) return a < b.substring(0, a.length) ? -1 : 1; if (a.length > b.length) return a.substring(0, b.length) <= b ? -1 : 1; return a < b ? -1 : 1; }; var FileSystemLoader = class { constructor(root$2, plugins, fileResolve) { if (root$2 === "/" && process.platform === "win32") { const cwdDrive = process.cwd().slice(0, 3); if (!/^[A-Za-z]:\\$/.test(cwdDrive)) throw new Error(`Failed to obtain root from "${process.cwd()}".`); root$2 = cwdDrive; } this.root = root$2; this.fileResolve = fileResolve; this.sources = {}; this.traces = {}; this.importNr = 0; this.core = new Core(plugins); this.tokensByFile = {}; this.fs = (0, _fs$1.getFileSystem)(); } async fetch(_newPath, relativeTo, _trace) { const newPath = _newPath.replace(/^["']|["']$/g, ""); const trace = _trace || String.fromCharCode(this.importNr++); const useFileResolve = typeof this.fileResolve === "function"; const fileResolvedPath = useFileResolve ? await this.fileResolve(newPath, relativeTo) : await Promise.resolve(); if (fileResolvedPath && !_path.default.isAbsolute(fileResolvedPath)) throw new Error("The returned path from the \"fileResolve\" option must be absolute."); const relativeDir = _path.default.dirname(relativeTo); const rootRelativePath = fileResolvedPath || _path.default.resolve(relativeDir, newPath); let fileRelativePath = fileResolvedPath || _path.default.resolve(_path.default.resolve(this.root, relativeDir), newPath); if (!useFileResolve && newPath[0] !== "." && !_path.default.isAbsolute(newPath)) try { fileRelativePath = require.resolve(newPath); } catch (e) {} const tokens$1 = this.tokensByFile[fileRelativePath]; if (tokens$1) return tokens$1; return new Promise((resolve, reject) => { this.fs.readFile(fileRelativePath, "utf-8", async (err, source) => { if (err) reject(err); const { injectableSource, exportTokens } = await this.core.load(source, rootRelativePath, trace, this.fetch.bind(this)); this.sources[fileRelativePath] = injectableSource; this.traces[trace] = fileRelativePath; this.tokensByFile[fileRelativePath] = exportTokens; resolve(exportTokens); }); }); } get finalSource() { const traces = this.traces; const sources = this.sources; let written = /* @__PURE__ */ new Set(); return Object.keys(traces).sort(traceKeySorter).map((key) => { const filename = traces[key]; if (written.has(filename)) return null; written.add(filename); return sources[filename]; }).join(""); } }; exports.default = FileSystemLoader; } }); //#endregion //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js var require_topologicalSort = __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/topologicalSort.js"(exports, module) { const PERMANENT_MARKER = 2; const TEMPORARY_MARKER = 1; function createError(node, graph) { const er = /* @__PURE__ */ new Error("Nondeterministic import's order"); const related = graph[node]; const relatedNode = related.find((relatedNode$1) => graph[relatedNode$1].indexOf(node) > -1); er.nodes = [node, relatedNode]; return er; } function walkGraph(node, graph, state, result, strict) { if (state[node] === PERMANENT_MARKER) return; if (state[node] === TEMPORARY_MARKER) { if (strict) return createError(node, graph); return; } state[node] = TEMPORARY_MARKER; const children = graph[node]; const length = children.length; for (let i$1 = 0; i$1 < length; ++i$1) { const error = walkGraph(children[i$1], graph, state, result, strict); if (error instanceof Error) return error; } state[node] = PERMANENT_MARKER; result.push(node); } function topologicalSort$1(graph, strict) { const result = []; const state = {}; const nodes = Object.keys(graph); const length = nodes.length; for (let i$1 = 0; i$1 < length; ++i$1) { const er = walkGraph(nodes[i$1], graph, state, result, strict); if (er instanceof Error) return er; } return result; } module.exports = topologicalSort$1; } }); //#endregion //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js var require_src$3 = __commonJS({ "../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.6/node_modules/postcss-modules-extract-imports/src/index.js"(exports, module) { const topologicalSort = require_topologicalSort(); const matchImports$1 = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/; const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/; const VISITED_MARKER = 1; /** * :import('G') {} * * Rule * composes: ... from 'A' * composes: ... from 'B' * Rule * composes: ... from 'A' * composes: ... from 'A' * composes: ... from 'C' * * Results in: * * graph: { * G: [], * A: [], * B: ['A'], * C: ['A'], * } */ function addImportToGraph(importId, parentId, graph, visited) { const siblingsId = parentId + "_siblings"; const visitedId = parentId + "_" + importId; if (visited[visitedId] !== VISITED_MARKER) { if (!Array.isArray(visited[siblingsId])) visited[siblingsId] = []; const siblings = visited[siblingsId]; if (Array.isArray(graph[importId])) graph[importId] = graph[importId].concat(siblings); else graph[importId] = siblings.slice(); visited[visitedId] = VISITED_MARKER; siblings.push(importId); } } module.exports = (options = {}) => { let importIndex = 0; const createImportedName = typeof options.createImportedName !== "function" ? (importName) => `i__imported_${importName.replace(/\W/g, "_")}_${importIndex++}` : options.createImportedName; const failOnWrongOrder = options.failOnWrongOrder; return { postcssPlugin: "postcss-modules-extract-imports", prepare() { const graph = {}; const visited = {}; const existingImports = {}; const importDecls = {}; const imports = {}; return { Once(root$2, postcss) { root$2.walkRules((rule) => { const matches = icssImport.exec(rule.selector); if (matches) { const [, doubleQuotePath, singleQuotePath] = matches; const importPath = doubleQuotePath || singleQuotePath; addImportToGraph(importPath, "root", graph, visited); existingImports[importPath] = rule; } }); root$2.walkDecls(/^composes$/, (declaration) => { const multiple = declaration.value.split(","); const values = []; multiple.forEach((value) => { const matches = value.trim().match(matchImports$1); if (!matches) { values.push(value); return; } let tmpSymbols; let [, symbols, doubleQuotePath, singleQuotePath, global$1] = matches; if (global$1) tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`); else { const importPath = doubleQuotePath || singleQuotePath; let parent = declaration.parent; let parentIndexes = ""; while (parent.type !== "root") { parentIndexes = parent.parent.index(parent) + "_" + parentIndexes; parent = parent.parent; } const { selector: selector$1 } = declaration.parent; const parentRule = `_${parentIndexes}${selector$1}`; addImportToGraph(importPath, parentRule, graph, visited); importDecls[importPath] = declaration; imports[importPath] = imports[importPath] || {}; tmpSymbols = symbols.split(/\s+/).map((s) => { if (!imports[importPath][s]) imports[importPath][s] = createImportedName(s, importPath); return imports[importPath][s]; }); } values.push(tmpSymbols.join(" ")); }); declaration.value = values.join(", "); }); const importsOrder = topologicalSort(graph, failOnWrongOrder); if (importsOrder instanceof Error) { const importPath = importsOrder.nodes.find((importPath$1) => importDecls.hasOwnProperty(importPath$1)); const decl = importDecls[importPath]; throw decl.error("Failed to resolve order of composed modules " + importsOrder.nodes.map((importPath$1) => "`" + importPath$1 + "`").join(", ") + ".", { plugin: "postcss-modules-extract-imports", word: "composes" }); } let lastImportRule; importsOrder.forEach((path$2) => { const importedSymbols = imports[path$2]; let rule = existingImports[path$2]; if (!rule && importedSymbols) { rule = postcss.rule({ selector: `:import("${path$2}")`, raws: { after: "\n" } }); if (lastImportRule) root$2.insertAfter(lastImportRule, rule); else root$2.prepend(rule); } lastImportRule = rule; if (!importedSymbols) return; Object.keys(importedSymbols).forEach((importedSymbol) => { rule.append(postcss.decl({ value: importedSymbol, prop: importedSymbols[importedSymbol], raws: { before: "\n " } })); }); }); } }; } }; }; module.exports.postcss = true; } }); //#endregion //#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js var require_wasm_hash = __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/wasm-hash.js"(exports, module) { const MAX_SHORT_STRING$1 = Math.floor(65472 / 4) & -4; var WasmHash = class { /** * @param {WebAssembly.Instance} instance wasm instance * @param {WebAssembly.Instance[]} instancesPool pool of instances * @param {number} chunkSize size of data chunks passed to wasm * @param {number} digestSize size of digest returned by wasm */ constructor(instance, instancesPool, chunkSize, digestSize) { const exports$1 = instance.exports; exports$1.init(); this.exports = exports$1; this.mem = Buffer.from(exports$1.memory.buffer, 0, 65536); this.buffered = 0; this.instancesPool = instancesPool; this.chunkSize = chunkSize; this.digestSize = digestSize; } reset() { this.buffered = 0; this.exports.init(); } /** * @param {Buffer | string} data data * @param {BufferEncoding=} encoding encoding * @returns {this} itself */ update(data, encoding) { if (typeof data === "string") { while (data.length > MAX_SHORT_STRING$1) { this._updateWithShortString(data.slice(0, MAX_SHORT_STRING$1), encoding); data = data.slice(MAX_SHORT_STRING$1); } this._updateWithShortString(data, encoding); return this; } this._updateWithBuffer(data); return this; } /** * @param {string} data data * @param {BufferEncoding=} encoding encoding * @returns {void} */ _updateWithShortString(data, encoding) { const { exports: exports$1, buffered, mem, chunkSize } = this; let endPos; if (data.length < 70) if (!encoding || encoding === "utf-8" || encoding === "utf8") { endPos = buffered; for (let i$1 = 0; i$1 < data.length; i$1++) { const cc = data.charCodeAt(i$1); if (cc < 128) mem[endPos++] = cc; else if (cc < 2048) { mem[endPos] = cc >> 6 | 192; mem[endPos + 1] = cc & 63 | 128; endPos += 2; } else { endPos += mem.write(data.slice(i$1), endPos, encoding); break; } } } else if (encoding === "latin1") { endPos = buffered; for (let i$1 = 0; i$1 < data.length; i$1++) { const cc = data.charCodeAt(i$1); mem[endPos++] = cc; } } else endPos = buffered + mem.write(data, buffered, encoding); else endPos = buffered + mem.write(data, buffered, encoding); if (endPos < chunkSize) this.buffered = endPos; else { const l = endPos & ~(this.chunkSize - 1); exports$1.update(l); const newBuffered = endPos - l; this.buffered = newBuffered; if (newBuffered > 0) mem.copyWithin(0, l, endPos); } } /** * @param {Buffer} data data * @returns {void} */ _updateWithBuffer(data) { const { exports: exports$1, buffered, mem } = this; const length = data.length; if (buffered + length < this.chunkSize) { data.copy(mem, buffered, 0, length); this.buffered += length; } else { const l = buffered + length & ~(this.chunkSize - 1); if (l > 65536) { let i$1 = 65536 - buffered; data.copy(mem, buffered, 0, i$1); exports$1.update(65536); const stop = l - buffered - 65536; while (i$1 < stop) { data.copy(mem, 0, i$1, i$1 + 65536); exports$1.update(65536); i$1 += 65536; } data.copy(mem, 0, i$1, l - buffered); exports$1.update(l - buffered - i$1); } else { data.copy(mem, buffered, 0, l - buffered); exports$1.update(l); } const newBuffered = length + buffered - l; this.buffered = newBuffered; if (newBuffered > 0) data.copy(mem, 0, length - newBuffered, length); } } digest(type) { const { exports: exports$1, buffered, mem, digestSize } = this; exports$1.final(buffered); this.instancesPool.push(this); const hex$1 = mem.toString("latin1", 0, digestSize); if (type === "hex") return hex$1; if (type === "binary" || !type) return Buffer.from(hex$1, "hex"); return Buffer.from(hex$1, "hex").toString(type); } }; const create$2 = (wasmModule, instancesPool, chunkSize, digestSize) => { if (instancesPool.length > 0) { const old = instancesPool.pop(); old.reset(); return old; } else return new WasmHash(new WebAssembly.Instance(wasmModule), instancesPool, chunkSize, digestSize); }; module.exports = create$2; module.exports.MAX_SHORT_STRING = MAX_SHORT_STRING$1; } }); //#endregion //#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js var require_xxhash64 = __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/xxhash64.js"(exports, module) { const create$1 = require_wasm_hash(); const xxhash64 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwQDAQAABQMBAAEGGgV+AUIAC34BQgALfgFCAAt+AUIAC34BQgALByIEBGluaXQAAAZ1cGRhdGUAAQVmaW5hbAACBm1lbW9yeQIACrUIAzAAQtbrgu7q/Yn14AAkAELP1tO+0ser2UIkAUIAJAJC+erQ0OfJoeThACQDQgAkBAvUAQIBfwR+IABFBEAPCyMEIACtfCQEIwAhAiMBIQMjAiEEIwMhBQNAIAIgASkDAELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiECIAMgASkDCELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEDIAQgASkDEELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEEIAUgASkDGELP1tO+0ser2UJ+fEIfiUKHla+vmLbem55/fiEFIAAgAUEgaiIBSw0ACyACJAAgAyQBIAQkAiAFJAMLqwYCAX8EfiMEQgBSBH4jACICQgGJIwEiA0IHiXwjAiIEQgyJfCMDIgVCEol8IAJCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0gA0LP1tO+0ser2UJ+Qh+JQoeVr6+Ytt6bnn9+hUKHla+vmLbem55/fkKdo7Xqg7GNivoAfSAEQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IAVCz9bTvtLHq9lCfkIfiUKHla+vmLbem55/foVCh5Wvr5i23puef35CnaO16oOxjYr6AH0FQsXP2bLx5brqJwsjBCAArXx8IQIDQCABQQhqIABNBEAgAiABKQMAQs/W077Sx6vZQn5CH4lCh5Wvr5i23puef36FQhuJQoeVr6+Ytt6bnn9+Qp2jteqDsY2K+gB9IQIgAUEIaiEBDAELCyABQQRqIABNBEACfyACIAE1AgBCh5Wvr5i23puef36FQheJQs/W077Sx6vZQn5C+fPd8Zn2masWfCECIAFBBGoLIQELA0AgACABRwRAIAIgATEAAELFz9my8eW66id+hUILiUKHla+vmLbem55/fiECIAFBAWohAQwBCwtBACACIAJCIYiFQs/W077Sx6vZQn4iAiACQh2IhUL5893xmfaZqxZ+IgIgAkIgiIUiAkIgiCIDQv//A4NCIIYgA0KAgPz/D4NCEIiEIgNC/4GAgPAfg0IQhiADQoD+g4CA4D+DQgiIhCIDQo+AvIDwgcAHg0IIhiADQvCBwIeAnoD4AINCBIiEIgNChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IANCsODAgYOGjJgwhHw3AwBBCCACQv////8PgyICQv//A4NCIIYgAkKAgPz/D4NCEIiEIgJC/4GAgPAfg0IQhiACQoD+g4CA4D+DQgiIhCICQo+AvIDwgcAHg0IIhiACQvCBwIeAnoD4AINCBIiEIgJChoyYsODAgYMGfEIEiEKBgoSIkKDAgAGDQid+IAJCsODAgYOGjJgwhHw3AwAL", "base64")); module.exports = create$1.bind(null, xxhash64, [], 32, 16); } }); //#endregion //#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js var require_BatchedHash = __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/BatchedHash.js"(exports, module) { const MAX_SHORT_STRING = require_wasm_hash().MAX_SHORT_STRING; var BatchedHash$1 = class { constructor(hash$1) { this.string = void 0; this.encoding = void 0; this.hash = hash$1; } /** * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding} * @param {string|Buffer} data data * @param {string=} inputEncoding data encoding * @returns {this} updated hash */ update(data, inputEncoding) { if (this.string !== void 0) { if (typeof data === "string" && inputEncoding === this.encoding && this.string.length + data.length < MAX_SHORT_STRING) { this.string += data; return this; } this.hash.update(this.string, this.encoding); this.string = void 0; } if (typeof data === "string") if (data.length < MAX_SHORT_STRING && (!inputEncoding || !inputEncoding.startsWith("ba"))) { this.string = data; this.encoding = inputEncoding; } else this.hash.update(data, inputEncoding); else this.hash.update(data); return this; } /** * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding} * @param {string=} encoding encoding of the return value * @returns {string|Buffer} digest */ digest(encoding) { if (this.string !== void 0) this.hash.update(this.string, this.encoding); return this.hash.digest(encoding); } }; module.exports = BatchedHash$1; } }); //#endregion //#region ../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js var require_md4 = __commonJS({ "../../node_modules/.pnpm/loader-utils@3.3.1/node_modules/loader-utils/lib/hash/md4.js"(exports, module) { const create = require_wasm_hash(); const md4 = new WebAssembly.Module(Buffer.from("AGFzbQEAAAABCAJgAX8AYAAAAwUEAQAAAAUDAQABBhoFfwFBAAt/AUEAC38BQQALfwFBAAt/AUEACwciBARpbml0AAAGdXBkYXRlAAIFZmluYWwAAwZtZW1vcnkCAAqFEAQmAEGBxpS6BiQBQYnXtv5+JAJB/rnrxXkkA0H2qMmBASQEQQAkAAvMCgEYfyMBIQojAiEGIwMhByMEIQgDQCAAIAVLBEAgBSgCCCINIAcgBiAFKAIEIgsgCCAHIAUoAgAiDCAKIAggBiAHIAhzcXNqakEDdyIDIAYgB3Nxc2pqQQd3IgEgAyAGc3FzampBC3chAiAFKAIUIg8gASACIAUoAhAiCSADIAEgBSgCDCIOIAYgAyACIAEgA3Nxc2pqQRN3IgQgASACc3FzampBA3ciAyACIARzcXNqakEHdyEBIAUoAiAiEiADIAEgBSgCHCIRIAQgAyAFKAIYIhAgAiAEIAEgAyAEc3FzampBC3ciAiABIANzcXNqakETdyIEIAEgAnNxc2pqQQN3IQMgBSgCLCIVIAQgAyAFKAIoIhQgAiAEIAUoAiQiEyABIAIgAyACIARzcXNqakEHdyIBIAMgBHNxc2pqQQt3IgIgASADc3FzampBE3chBCAPIBAgCSAVIBQgEyAFKAI4IhYgAiAEIAUoAjQiFyABIAIgBSgCMCIYIAMgASAEIAEgAnNxc2pqQQN3IgEgAiAEc3FzampBB3ciAiABIARzcXNqakELdyIDIAkgAiAMIAEgBSgCPCIJIAQgASADIAEgAnNxc2pqQRN3IgEgAiADcnEgAiADcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAEgAnFyaiASakGZ84nUBWpBCXciAyAPIAQgCyACIBggASADIAIgBHJxIAIgBHFyampBmfOJ1AVqQQ13IgEgAyAEcnEgAyAEcXJqakGZ84nUBWpBA3ciAiABIANycSABIANxcmpqQZnzidQFakEFdyIEIAEgAnJxIAE