'use strict'; var chunkO7I5CWRX_cjs = require('./chunk-O7I5CWRX.cjs'); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/ms/2.0.0/a65cc302695e9dde36bdbab59e67a07f313b77a4e7b89957a7bf17f930a58070/node_modules/ms/index.js var require_ms = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/ms/2.0.0/a65cc302695e9dde36bdbab59e67a07f313b77a4e7b89957a7bf17f930a58070/node_modules/ms/index.js"(exports, module) { var s = 1e3; var m = s * 60; var h = m * 60; var d = h * 24; var y = d * 365.25; module.exports = function(val, options) { options = options || {}; var type = typeof val; if (type === "string" && val.length > 0) { return parse(val); } else if (type === "number" && isNaN(val) === false) { return options.long ? fmtLong(val) : fmtShort(val); } throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(val) ); }; function parse(str) { str = String(str); if (str.length > 100) { return; } var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec( str ); if (!match) { return; } var n = parseFloat(match[1]); var type = (match[2] || "ms").toLowerCase(); switch (type) { case "years": case "year": case "yrs": case "yr": case "y": return n * y; case "days": case "day": case "d": return n * d; case "hours": case "hour": case "hrs": case "hr": case "h": return n * h; case "minutes": case "minute": case "mins": case "min": case "m": return n * m; case "seconds": case "second": case "secs": case "sec": case "s": return n * s; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return n; default: return void 0; } } function fmtShort(ms) { if (ms >= d) { return Math.round(ms / d) + "d"; } if (ms >= h) { return Math.round(ms / h) + "h"; } if (ms >= m) { return Math.round(ms / m) + "m"; } if (ms >= s) { return Math.round(ms / s) + "s"; } return ms + "ms"; } function fmtLong(ms) { return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms"; } function plural(ms, n, name) { if (ms < n) { return; } if (ms < n * 1.5) { return Math.floor(ms / n) + " " + name; } return Math.ceil(ms / n) + " " + name + "s"; } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/debug.js var require_debug = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/debug.js"(exports, module) { exports = module.exports = createDebug.debug = createDebug["default"] = createDebug; exports.coerce = coerce; exports.disable = disable; exports.enable = enable; exports.enabled = enabled; exports.humanize = require_ms(); exports.names = []; exports.skips = []; exports.formatters = {}; var prevTime; function selectColor(namespace) { var hash = 0, i; for (i in namespace) { hash = (hash << 5) - hash + namespace.charCodeAt(i); hash |= 0; } return exports.colors[Math.abs(hash) % exports.colors.length]; } function createDebug(namespace) { function debug() { if (!debug.enabled) return; var self2 = debug; var curr = +/* @__PURE__ */ new Date(); var ms = curr - (prevTime || curr); self2.diff = ms; self2.prev = prevTime; self2.curr = curr; prevTime = curr; var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } args[0] = exports.coerce(args[0]); if ("string" !== typeof args[0]) { args.unshift("%O"); } var index = 0; args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) { if (match === "%%") return match; index++; var formatter = exports.formatters[format]; if ("function" === typeof formatter) { var val = args[index]; match = formatter.call(self2, val); args.splice(index, 1); index--; } return match; }); exports.formatArgs.call(self2, args); var logFn = debug.log || exports.log || console.log.bind(console); logFn.apply(self2, args); } debug.namespace = namespace; debug.enabled = exports.enabled(namespace); debug.useColors = exports.useColors(); debug.color = selectColor(namespace); if ("function" === typeof exports.init) { exports.init(debug); } return debug; } function enable(namespaces) { exports.save(namespaces); exports.names = []; exports.skips = []; var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/); var len = split.length; for (var i = 0; i < len; i++) { if (!split[i]) continue; namespaces = split[i].replace(/\*/g, ".*?"); if (namespaces[0] === "-") { exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$")); } else { exports.names.push(new RegExp("^" + namespaces + "$")); } } } function disable() { exports.enable(""); } function enabled(name) { var i, len; for (i = 0, len = exports.skips.length; i < len; i++) { if (exports.skips[i].test(name)) { return false; } } for (i = 0, len = exports.names.length; i < len; i++) { if (exports.names[i].test(name)) { return true; } } return false; } function coerce(val) { if (val instanceof Error) return val.stack || val.message; return val; } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/browser.js var require_browser = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/browser.js"(exports, module) { exports = module.exports = require_debug(); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = "undefined" != typeof chrome && "undefined" != typeof chrome.storage ? chrome.storage.local : localstorage(); exports.colors = [ "lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson" ]; function useColors() { if (typeof window !== "undefined" && window.process && window.process.type === "renderer") { return true; } return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773 typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31? // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); } exports.formatters.j = function(v) { try { return JSON.stringify(v); } catch (err) { return "[UnexpectedJSONParseError]: " + err.message; } }; function formatArgs(args) { var useColors2 = this.useColors; args[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args[0] + (useColors2 ? "%c " : " ") + "+" + exports.humanize(this.diff); if (!useColors2) return; var c = "color: " + this.color; args.splice(1, 0, c, "color: inherit"); var index = 0; var lastC = 0; args[0].replace(/%[a-zA-Z%]/g, function(match) { if ("%%" === match) return; index++; if ("%c" === match) { lastC = index; } }); args.splice(lastC, 0, c); } function log() { return "object" === typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments); } function save(namespaces) { try { if (null == namespaces) { exports.storage.removeItem("debug"); } else { exports.storage.debug = namespaces; } } catch (e) { } } function load() { var r; try { r = exports.storage.debug; } catch (e) { } if (!r && typeof process !== "undefined" && "env" in process) { r = process.env.DEBUG; } return r; } exports.enable(load()); function localstorage() { try { return window.localStorage; } catch (e) { } } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/node.js var require_node = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/node.js"(exports, module) { var tty = chunkO7I5CWRX_cjs.__require("tty"); var util = chunkO7I5CWRX_cjs.__require("util"); exports = module.exports = require_debug(); exports.init = init; exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.colors = [6, 2, 3, 4, 5, 1]; exports.inspectOpts = Object.keys(process.env).filter(function(key) { return /^debug_/i.test(key); }).reduce(function(obj, key) { var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) { return k.toUpperCase(); }); var val = process.env[key]; if (/^(yes|on|true|enabled)$/i.test(val)) val = true; else if (/^(no|off|false|disabled)$/i.test(val)) val = false; else if (val === "null") val = null; else val = Number(val); obj[prop] = val; return obj; }, {}); var fd = parseInt(process.env.DEBUG_FD, 10) || 2; if (1 !== fd && 2 !== fd) { util.deprecate(function() { }, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")(); } var stream = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd); function useColors() { return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd); } exports.formatters.o = function(v) { this.inspectOpts.colors = this.useColors; return util.inspect(v, this.inspectOpts).split("\n").map(function(str) { return str.trim(); }).join(" "); }; exports.formatters.O = function(v) { this.inspectOpts.colors = this.useColors; return util.inspect(v, this.inspectOpts); }; function formatArgs(args) { var name = this.namespace; var useColors2 = this.useColors; if (useColors2) { var c = this.color; var prefix = " \x1B[3" + c + ";1m" + name + " \x1B[0m"; args[0] = prefix + args[0].split("\n").join("\n" + prefix); args.push("\x1B[3" + c + "m+" + exports.humanize(this.diff) + "\x1B[0m"); } else { args[0] = (/* @__PURE__ */ new Date()).toUTCString() + " " + name + " " + args[0]; } } function log() { return stream.write(util.format.apply(util, arguments) + "\n"); } function save(namespaces) { if (null == namespaces) { delete process.env.DEBUG; } else { process.env.DEBUG = namespaces; } } function load() { return process.env.DEBUG; } function createWritableStdioStream(fd2) { var stream2; var tty_wrap = process.binding("tty_wrap"); switch (tty_wrap.guessHandleType(fd2)) { case "TTY": stream2 = new tty.WriteStream(fd2); stream2._type = "tty"; if (stream2._handle && stream2._handle.unref) { stream2._handle.unref(); } break; case "FILE": var fs = chunkO7I5CWRX_cjs.__require("fs"); stream2 = new fs.SyncWriteStream(fd2, { autoClose: false }); stream2._type = "fs"; break; case "PIPE": case "TCP": var net = chunkO7I5CWRX_cjs.__require("net"); stream2 = new net.Socket({ fd: fd2, readable: false, writable: true }); stream2.readable = false; stream2.read = null; stream2._type = "pipe"; if (stream2._handle && stream2._handle.unref) { stream2._handle.unref(); } break; default: throw new Error("Implement me. Unknown stream file type!"); } stream2.fd = fd2; stream2._isStdio = true; return stream2; } function init(debug) { debug.inspectOpts = {}; var keys = Object.keys(exports.inspectOpts); for (var i = 0; i < keys.length; i++) { debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; } } exports.enable(load()); } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/index.js var require_src = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/2.6.9/a0bc530475b72fd78792b0d9ccdc7efe90f67f200072e755bfec415a9ada02ef/node_modules/debug/src/index.js"(exports, module) { if (typeof process !== "undefined" && process.type === "renderer") { module.exports = require_browser(); } else { module.exports = require_node(); } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/stream-parser/0.3.1/a6d45478f59e8dc0800438d0b3b9ec2db024d1b317d6f81acec51f864078d5ad/node_modules/stream-parser/index.js var require_stream_parser = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/stream-parser/0.3.1/a6d45478f59e8dc0800438d0b3b9ec2db024d1b317d6f81acec51f864078d5ad/node_modules/stream-parser/index.js"(exports, module) { var assert = chunkO7I5CWRX_cjs.__require("assert"); var debug = require_src()("stream-parser"); module.exports = Parser; var INIT = -1; var BUFFERING = 0; var SKIPPING = 1; var PASSTHROUGH = 2; function Parser(stream) { var isTransform = stream && "function" == typeof stream._transform; var isWritable = stream && "function" == typeof stream._write; if (!isTransform && !isWritable) throw new Error("must pass a Writable or Transform stream in"); debug("extending Parser into stream"); stream._bytes = _bytes; stream._skipBytes = _skipBytes; if (isTransform) stream._passthrough = _passthrough; if (isTransform) { stream._transform = transform; } else { stream._write = write; } } function init(stream) { debug("initializing parser stream"); stream._parserBytesLeft = 0; stream._parserBuffers = []; stream._parserBuffered = 0; stream._parserState = INIT; stream._parserCallback = null; if ("function" == typeof stream.push) { stream._parserOutput = stream.push.bind(stream); } stream._parserInit = true; } function _bytes(n, fn) { assert(!this._parserCallback, 'there is already a "callback" set!'); assert(isFinite(n) && n > 0, 'can only buffer a finite number of bytes > 0, got "' + n + '"'); if (!this._parserInit) init(this); debug("buffering %o bytes", n); this._parserBytesLeft = n; this._parserCallback = fn; this._parserState = BUFFERING; } function _skipBytes(n, fn) { assert(!this._parserCallback, 'there is already a "callback" set!'); assert(n > 0, 'can only skip > 0 bytes, got "' + n + '"'); if (!this._parserInit) init(this); debug("skipping %o bytes", n); this._parserBytesLeft = n; this._parserCallback = fn; this._parserState = SKIPPING; } function _passthrough(n, fn) { assert(!this._parserCallback, 'There is already a "callback" set!'); assert(n > 0, 'can only pass through > 0 bytes, got "' + n + '"'); if (!this._parserInit) init(this); debug("passing through %o bytes", n); this._parserBytesLeft = n; this._parserCallback = fn; this._parserState = PASSTHROUGH; } function write(chunk, encoding, fn) { if (!this._parserInit) init(this); debug("write(%o bytes)", chunk.length); if ("function" == typeof encoding) fn = encoding; data(this, chunk, null, fn); } function transform(chunk, output, fn) { if (!this._parserInit) init(this); debug("transform(%o bytes)", chunk.length); if ("function" != typeof output) { output = this._parserOutput; } data(this, chunk, output, fn); } function _data(stream, chunk, output, fn) { if (stream._parserBytesLeft <= 0) { return fn(new Error("got data but not currently parsing anything")); } if (chunk.length <= stream._parserBytesLeft) { return function() { return process2(stream, chunk, output, fn); }; } else { return function() { var b = chunk.slice(0, stream._parserBytesLeft); return process2(stream, b, output, function(err) { if (err) return fn(err); if (chunk.length > b.length) { return function() { return _data(stream, chunk.slice(b.length), output, fn); }; } }); }; } } function process2(stream, chunk, output, fn) { stream._parserBytesLeft -= chunk.length; debug("%o bytes left for stream piece", stream._parserBytesLeft); if (stream._parserState === BUFFERING) { stream._parserBuffers.push(chunk); stream._parserBuffered += chunk.length; } else if (stream._parserState === PASSTHROUGH) { output(chunk); } if (0 === stream._parserBytesLeft) { var cb = stream._parserCallback; if (cb && stream._parserState === BUFFERING && stream._parserBuffers.length > 1) { chunk = Buffer.concat(stream._parserBuffers, stream._parserBuffered); } if (stream._parserState !== BUFFERING) { chunk = null; } stream._parserCallback = null; stream._parserBuffered = 0; stream._parserState = INIT; stream._parserBuffers.splice(0); if (cb) { var args = []; if (chunk) { args.push(chunk); } if (output) { args.push(output); } var async = cb.length > args.length; if (async) { args.push(trampoline(fn)); } var rtn = cb.apply(stream, args); if (!async || fn === rtn) return fn; } } else { return fn; } } var data = trampoline(_data); function trampoline(fn) { return function() { var result = fn.apply(this, arguments); while ("function" == typeof result) { result = result(); } return result; }; } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/common.js var require_common = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/common.js"(exports) { var Transform = chunkO7I5CWRX_cjs.__require("stream").Transform; var streamParser = require_stream_parser(); function ParserStream() { Transform.call(this, { readableObjectMode: true }); } ParserStream.prototype = Object.create(Transform.prototype); ParserStream.prototype.constructor = ParserStream; streamParser(ParserStream.prototype); exports.ParserStream = ParserStream; exports.sliceEq = function(src, start, dest) { for (var i = start, j = 0; j < dest.length; ) { if (src[i++] !== dest[j++]) return false; } return true; }; exports.str2arr = function(str, format) { var arr = [], i = 0; if (format && format === "hex") { while (i < str.length) { arr.push(parseInt(str.slice(i, i + 2), 16)); i += 2; } } else { for (; i < str.length; i++) { arr.push(str.charCodeAt(i) & 255); } } return arr; }; exports.readUInt16LE = function(data, offset) { return data[offset] | data[offset + 1] << 8; }; exports.readUInt16BE = function(data, offset) { return data[offset + 1] | data[offset] << 8; }; exports.readUInt32LE = function(data, offset) { return data[offset] | data[offset + 1] << 8 | data[offset + 2] << 16 | data[offset + 3] * 16777216; }; exports.readUInt32BE = function(data, offset) { return data[offset + 3] | data[offset + 2] << 8 | data[offset + 1] << 16 | data[offset] * 16777216; }; function ProbeError(message, code, statusCode) { Error.call(this); if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } else { this.stack = new Error().stack || ""; } this.name = this.constructor.name; this.message = message; if (code) this.code = code; if (statusCode) this.statusCode = statusCode; } ProbeError.prototype = Object.create(Error.prototype); ProbeError.prototype.constructor = ProbeError; exports.ProbeError = ProbeError; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/miaf_utils.js var require_miaf_utils = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/miaf_utils.js"(exports, module) { var readUInt16BE = require_common().readUInt16BE; var readUInt32BE = require_common().readUInt32BE; function unbox(data, offset) { if (data.length < 4 + offset) return null; var size = readUInt32BE(data, offset); if (data.length < size + offset || size < 8) return null; return { boxtype: String.fromCharCode.apply(null, data.slice(offset + 4, offset + 8)), data: data.slice(offset + 8, offset + size), end: offset + size }; } module.exports.unbox = unbox; function scan_ipco(data, sandbox) { var offset = 0; for (; ; ) { var box = unbox(data, offset); if (!box) break; switch (box.boxtype) { case "ispe": sandbox.sizes.push({ width: readUInt32BE(box.data, 4), height: readUInt32BE(box.data, 8) }); break; case "irot": sandbox.transforms.push({ type: "irot", value: box.data[0] & 3 }); break; case "imir": sandbox.transforms.push({ type: "imir", value: box.data[0] & 1 }); break; } offset = box.end; } } function readUIntBE(data, offset, size) { var result = 0; for (var i = 0; i < size; i++) { result = result * 256 + (data[offset + i] || 0); } return result; } function scan_iloc(data, sandbox) { var offset_size = data[4] >> 4 & 15; var length_size = data[4] & 15; var base_offset_size = data[5] >> 4 & 15; var item_count = readUInt16BE(data, 6); var offset = 8; for (var i = 0; i < item_count; i++) { var item_ID = readUInt16BE(data, offset); offset += 2; var data_reference_index = readUInt16BE(data, offset); offset += 2; var base_offset = readUIntBE(data, offset, base_offset_size); offset += base_offset_size; var extent_count = readUInt16BE(data, offset); offset += 2; if (data_reference_index === 0 && extent_count === 1) { var first_extent_offset = readUIntBE(data, offset, offset_size); var first_extent_length = readUIntBE(data, offset + offset_size, length_size); sandbox.item_loc[item_ID] = { length: first_extent_length, offset: first_extent_offset + base_offset }; } offset += extent_count * (offset_size + length_size); } } function scan_iinf(data, sandbox) { var item_count = readUInt16BE(data, 4); var offset = 6; for (var i = 0; i < item_count; i++) { var box = unbox(data, offset); if (!box) break; if (box.boxtype === "infe") { var item_id = readUInt16BE(box.data, 4); var item_name = ""; for (var pos = 8; pos < box.data.length && box.data[pos]; pos++) { item_name += String.fromCharCode(box.data[pos]); } sandbox.item_inf[item_name] = item_id; } offset = box.end; } } function scan_iprp(data, sandbox) { var offset = 0; for (; ; ) { var box = unbox(data, offset); if (!box) break; if (box.boxtype === "ipco") scan_ipco(box.data, sandbox); offset = box.end; } } function scan_meta(data, sandbox) { var offset = 4; for (; ; ) { var box = unbox(data, offset); if (!box) break; if (box.boxtype === "iprp") scan_iprp(box.data, sandbox); if (box.boxtype === "iloc") scan_iloc(box.data, sandbox); if (box.boxtype === "iinf") scan_iinf(box.data, sandbox); offset = box.end; } } function getMaxSize(sizes) { var maxWidthSize = sizes.reduce(function(a, b) { return a.width > b.width || a.width === b.width && a.height > b.height ? a : b; }); var maxHeightSize = sizes.reduce(function(a, b) { return a.height > b.height || a.height === b.height && a.width > b.width ? a : b; }); var maxSize; if (maxWidthSize.width > maxHeightSize.height || maxWidthSize.width === maxHeightSize.height && maxWidthSize.height > maxHeightSize.width) { maxSize = maxWidthSize; } else { maxSize = maxHeightSize; } return maxSize; } module.exports.readSizeFromMeta = function(data) { var sandbox = { sizes: [], transforms: [], item_inf: {}, item_loc: {} }; scan_meta(data, sandbox); if (!sandbox.sizes.length) return; var maxSize = getMaxSize(sandbox.sizes); var orientation = 1; sandbox.transforms.forEach(function(transform) { var rotate_ccw = { 1: 6, 2: 5, 3: 8, 4: 7, 5: 4, 6: 3, 7: 2, 8: 1 }; var mirror_vert = { 1: 4, 2: 3, 3: 2, 4: 1, 5: 6, 6: 5, 7: 8, 8: 7 }; if (transform.type === "imir") { if (transform.value === 0) { orientation = mirror_vert[orientation]; } else { orientation = mirror_vert[orientation]; orientation = rotate_ccw[orientation]; orientation = rotate_ccw[orientation]; } } if (transform.type === "irot") { for (var i = 0; i < transform.value; i++) { orientation = rotate_ccw[orientation]; } } }); var exif_location = null; if (sandbox.item_inf.Exif) { exif_location = sandbox.item_loc[sandbox.item_inf.Exif]; } return { width: maxSize.width, height: maxSize.height, orientation: sandbox.transforms.length ? orientation : null, variants: sandbox.sizes, exif_location }; }; module.exports.getMimeType = function(data) { var brand = String.fromCharCode.apply(null, data.slice(0, 4)); var compat = {}; compat[brand] = true; for (var i = 8; i < data.length; i += 4) { compat[String.fromCharCode.apply(null, data.slice(i, i + 4))] = true; } if (!compat.mif1 && !compat.msf1 && !compat.miaf) return; if (brand === "avif" || brand === "avis" || brand === "avio") { return { type: "avif", mime: "image/avif" }; } if (brand === "heic" || brand === "heix") { return { type: "heic", mime: "image/heic" }; } if (brand === "hevc" || brand === "hevx") { return { type: "heic", mime: "image/heic-sequence" }; } if (compat.avif || compat.avis) { return { type: "avif", mime: "image/avif" }; } if (compat.heic || compat.heix || compat.hevc || compat.hevx || compat.heis) { if (compat.msf1) { return { type: "heif", mime: "image/heif-sequence" }; } return { type: "heif", mime: "image/heif" }; } return { type: "avif", mime: "image/avif" }; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/exif_utils.js var require_exif_utils = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/exif_utils.js"(exports, module) { function error(message, code) { var err = new Error(message); err.code = code; return err; } function utf8_decode(str) { try { return decodeURIComponent(escape(str)); } catch (_) { return str; } } function ExifParser(jpeg_bin, exif_start, exif_end) { this.input = jpeg_bin.subarray(exif_start, exif_end); this.start = exif_start; var sig = String.fromCharCode.apply(null, this.input.subarray(0, 4)); if (sig !== "II*\0" && sig !== "MM\0*") { throw error("invalid TIFF signature", "EBADDATA"); } this.big_endian = sig[0] === "M"; } ExifParser.prototype.each = function(on_entry) { this.aborted = false; var offset = this.read_uint32(4); this.ifds_to_read = [{ id: 0, offset }]; while (this.ifds_to_read.length > 0 && !this.aborted) { var i = this.ifds_to_read.shift(); if (!i.offset) continue; this.scan_ifd(i.id, i.offset, on_entry); } }; ExifParser.prototype.read_uint16 = function(offset) { var d = this.input; if (offset + 2 > d.length) throw error("unexpected EOF", "EBADDATA"); return this.big_endian ? d[offset] * 256 + d[offset + 1] : d[offset] + d[offset + 1] * 256; }; ExifParser.prototype.read_uint32 = function(offset) { var d = this.input; if (offset + 4 > d.length) throw error("unexpected EOF", "EBADDATA"); return this.big_endian ? d[offset] * 16777216 + d[offset + 1] * 65536 + d[offset + 2] * 256 + d[offset + 3] : d[offset] + d[offset + 1] * 256 + d[offset + 2] * 65536 + d[offset + 3] * 16777216; }; ExifParser.prototype.is_subifd_link = function(ifd, tag) { return ifd === 0 && tag === 34665 || // SubIFD ifd === 0 && tag === 34853 || // GPS Info ifd === 34665 && tag === 40965; }; ExifParser.prototype.exif_format_length = function(format) { switch (format) { case 1: // byte case 2: // ascii case 6: // sbyte case 7: return 1; case 3: // short case 8: return 2; case 4: // long case 9: // slong case 11: return 4; case 5: // rational case 10: // srational case 12: return 8; default: return 0; } }; ExifParser.prototype.exif_format_read = function(format, offset) { var v; switch (format) { case 1: // byte case 2: v = this.input[offset]; return v; case 6: v = this.input[offset]; return v | (v & 128) * 33554430; case 3: v = this.read_uint16(offset); return v; case 8: v = this.read_uint16(offset); return v | (v & 32768) * 131070; case 4: v = this.read_uint32(offset); return v; case 9: v = this.read_uint32(offset); return v | 0; case 5: // rational case 10: // srational case 11: // float case 12: return null; // not implemented case 7: return null; // blob default: return null; } }; ExifParser.prototype.scan_ifd = function(ifd_no, offset, on_entry) { var entry_count = this.read_uint16(offset); offset += 2; for (var i = 0; i < entry_count; i++) { var tag = this.read_uint16(offset); var format = this.read_uint16(offset + 2); var count = this.read_uint32(offset + 4); var comp_length = this.exif_format_length(format); var data_length = count * comp_length; var data_offset = data_length <= 4 ? offset + 8 : this.read_uint32(offset + 8); var is_subifd_link = false; if (data_offset + data_length > this.input.length) { throw error("unexpected EOF", "EBADDATA"); } var value = []; var comp_offset = data_offset; for (var j = 0; j < count; j++, comp_offset += comp_length) { var item = this.exif_format_read(format, comp_offset); if (item === null) { value = null; break; } value.push(item); } if (Array.isArray(value) && format === 2) { value = utf8_decode(String.fromCharCode.apply(null, value)); if (value && value[value.length - 1] === "\0") value = value.slice(0, -1); } if (this.is_subifd_link(ifd_no, tag)) { if (Array.isArray(value) && Number.isInteger(value[0]) && value[0] > 0) { this.ifds_to_read.push({ id: tag, offset: value[0] }); is_subifd_link = true; } } var entry = { is_big_endian: this.big_endian, ifd: ifd_no, tag, format, count, entry_offset: offset + this.start, data_length, data_offset: data_offset + this.start, value, is_subifd_link }; if (on_entry(entry) === false) { this.aborted = true; return; } offset += 12; } if (ifd_no === 0) { this.ifds_to_read.push({ id: 1, offset: this.read_uint32(offset) }); } }; module.exports.ExifParser = ExifParser; module.exports.get_orientation = function(data) { var orientation = 0; try { new ExifParser(data, 0, data.length).each(function(entry) { if (entry.ifd === 0 && entry.tag === 274 && Array.isArray(entry.value)) { orientation = entry.value[0]; return false; } }); return orientation; } catch (err) { return -1; } }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/avif.js var require_avif = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/avif.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var readUInt32BE = require_common().readUInt32BE; var miaf = require_miaf_utils(); var exif = require_exif_utils(); var SIG_FTYP = str2arr("ftyp"); function safeSkip(parser, count, callback) { if (count === 0) { callback(); return; } parser._skipBytes(count, callback); } function readExifOrientation(parser, sandbox, callback) { if (!sandbox.exif_location || sandbox.exif_location.offset <= sandbox.offset) { callback(0); return; } parser._skipBytes(sandbox.exif_location.offset - sandbox.offset, function() { sandbox.offset = sandbox.exif_location.offset; parser._bytes(4, function(data) { sandbox.offset += 4; var sig_offset = readUInt32BE(data, 0); safeSkip(parser, sig_offset, function() { sandbox.offset += sig_offset; var byteCount = sandbox.exif_location.length - sig_offset - 4; if (byteCount <= 0) { callback(0); return; } parser._bytes(byteCount, function(exif_data) { sandbox.offset += byteCount; callback(exif.get_orientation(exif_data)); }); }); }); }); } function readAvifSize(parser, sandbox) { parser._bytes(8, function(data) { sandbox.offset += 8; var size = readUInt32BE(data, 0) - 8; var type = String.fromCharCode.apply(null, data.slice(4, 8)); if (type === "mdat") { parser._skipBytes(Infinity); parser.push(null); return; } else if (size < 0) { parser._skipBytes(Infinity); parser.push(null); return; } else if (type === "meta" && size > 0) { parser._bytes(size, function(data2) { sandbox.offset += size; var imgSize = miaf.readSizeFromMeta(data2); if (!imgSize) { parser._skipBytes(Infinity); parser.push(null); return; } var result = { width: imgSize.width, height: imgSize.height, type: sandbox.fileType.type, mime: sandbox.fileType.mime, wUnits: "px", hUnits: "px" }; if (imgSize.variants.length > 1) { result.variants = imgSize.variants; } if (imgSize.orientation) { result.orientation = imgSize.orientation; } sandbox.exif_location = imgSize.exif_location; readExifOrientation(parser, sandbox, function(orientation) { if (orientation > 0) result.orientation = orientation; parser._skipBytes(Infinity); parser.push(result); parser.push(null); }); }); } else { safeSkip(parser, size, function() { sandbox.offset += size; readAvifSize(parser, sandbox); }); } }); } module.exports = function() { var parser = new ParserStream(); var sandbox = { offset: 0, fileType: null }; parser._bytes(8, function(data) { sandbox.offset += 8; if (!sliceEq(data, 4, SIG_FTYP)) { parser._skipBytes(Infinity); parser.push(null); return; } var size = readUInt32BE(data, 0) - 8; if (size <= 0) { parser._skipBytes(Infinity); parser.push(null); return; } parser._bytes(size, function(data2) { sandbox.offset += size; sandbox.fileType = miaf.getMimeType(data2); if (!sandbox.fileType) { parser._skipBytes(Infinity); parser.push(null); return; } readAvifSize(parser, sandbox); }); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/bmp.js var require_bmp = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/bmp.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var SIG_BM = str2arr("BM"); module.exports = function() { var parser = new ParserStream(); parser._bytes(26, function(data) { parser._skipBytes(Infinity); if (!sliceEq(data, 0, SIG_BM)) { parser.push(null); return; } parser.push({ width: data.readUInt16LE(18), height: data.readUInt16LE(22), type: "bmp", mime: "image/bmp", wUnits: "px", hUnits: "px" }); parser.push(null); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/gif.js var require_gif = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/gif.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var SIG_GIF87a = str2arr("GIF87a"); var SIG_GIF89a = str2arr("GIF89a"); module.exports = function() { var parser = new ParserStream(); parser._bytes(10, function(data) { parser._skipBytes(Infinity); if (!sliceEq(data, 0, SIG_GIF87a) && !sliceEq(data, 0, SIG_GIF89a)) { parser.push(null); return; } parser.push({ width: data.readUInt16LE(6), height: data.readUInt16LE(8), type: "gif", mime: "image/gif", wUnits: "px", hUnits: "px" }); parser.push(null); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/ico.js var require_ico = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/ico.js"(exports, module) { var ParserStream = require_common().ParserStream; var HEADER = 0; var TYPE_ICO = 1; var INDEX_SIZE = 16; module.exports = function() { var parser = new ParserStream(); parser._bytes(6, function(data) { var header = data.readUInt16LE(0); var type = data.readUInt16LE(2); var numImages = data.readUInt16LE(4); if (header !== HEADER || type !== TYPE_ICO || !numImages) { parser._skipBytes(Infinity); parser.push(null); return; } parser._bytes(numImages * INDEX_SIZE, function(indexData) { parser._skipBytes(Infinity); var variants = []; var maxSize = { width: 0, height: 0 }; for (var i = 0; i < numImages; i++) { var width = indexData.readUInt8(INDEX_SIZE * i + 0) || 256; var height = indexData.readUInt8(INDEX_SIZE * i + 1) || 256; var size = { width, height }; variants.push(size); if (width > maxSize.width || height > maxSize.height) { maxSize = size; } } parser.push({ width: maxSize.width, height: maxSize.height, variants, type: "ico", mime: "image/x-icon", wUnits: "px", hUnits: "px" }); parser.push(null); }); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/jpeg.js var require_jpeg = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/jpeg.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var exif = require_exif_utils(); var SIG_EXIF = str2arr("Exif\0\0"); function parseJpegMarker_afterFF(parser, callback) { parser._bytes(1, function(data) { var code = data[0]; if (code === 255) { parseJpegMarker_afterFF(parser, callback); return; } if (208 <= code && code <= 217 || code === 1) { callback(code, 0); return; } if (192 <= code && code <= 254) { parser._bytes(2, function(length) { callback(code, length.readUInt16BE(0) - 2); }); return; } callback(); }); } function parseJpegMarker(parser, sandbox, callback) { var start = sandbox.start; sandbox.start = false; parser._bytes(1, function(data) { if (data[0] !== 255) { if (start) { callback(); } else { parseJpegMarker(parser, sandbox, callback); } return; } parseJpegMarker_afterFF(parser, callback); }); } function getJpegSize(parser, sandbox) { parseJpegMarker(parser, sandbox, function(code, length) { if (!code || length < 0) { parser._skipBytes(Infinity); parser.push(null); return; } if (code === 217 || code === 218) { parser._skipBytes(Infinity); parser.push(null); return; } if (code === 225 && length >= 10) { parser._bytes(length, function(data) { if (sliceEq(data, 0, SIG_EXIF)) { sandbox.orientation = exif.get_orientation(data.slice(6, 6 + length)); } getJpegSize(parser, sandbox); }); return; } if (length <= 0) { getJpegSize(parser, sandbox); return; } if (length >= 5 && (192 <= code && code <= 207) && code !== 196 && code !== 200 && code !== 204) { parser._bytes(length, function(data) { parser._skipBytes(Infinity); var result = { width: data.readUInt16BE(3), height: data.readUInt16BE(1), type: "jpg", mime: "image/jpeg", wUnits: "px", hUnits: "px" }; if (sandbox.orientation > 0) result.orientation = sandbox.orientation; parser.push(result); parser.push(null); }); return; } parser._skipBytes(length, function() { getJpegSize(parser, sandbox); }); }); } module.exports = function() { var parser = new ParserStream(); parser._bytes(2, function(data) { if (data[0] !== 255 || data[1] !== 216) { parser._skipBytes(Infinity); parser.push(null); return; } getJpegSize(parser, { start: true }); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/png.js var require_png = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/png.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var SIG_PNG = str2arr("\x89PNG\r\n\n"); var SIG_IHDR = str2arr("IHDR"); module.exports = function() { var parser = new ParserStream(); parser._bytes(24, function(data) { parser._skipBytes(Infinity); if (!sliceEq(data, 0, SIG_PNG)) { parser.push(null); return; } if (!sliceEq(data, 12, SIG_IHDR)) { parser.push(null); return; } parser.push({ width: data.readUInt32BE(16), height: data.readUInt32BE(20), type: "png", mime: "image/png", wUnits: "px", hUnits: "px" }); parser.push(null); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/psd.js var require_psd = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/psd.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var SIG_8BPS = str2arr("8BPS\0"); module.exports = function() { var parser = new ParserStream(); parser._bytes(6, function(data) { if (!sliceEq(data, 0, SIG_8BPS)) { parser._skipBytes(Infinity); parser.push(null); return; } parser._bytes(16, function(data2) { parser._skipBytes(Infinity); parser.push({ width: data2.readUInt32BE(12), height: data2.readUInt32BE(8), type: "psd", mime: "image/vnd.adobe.photoshop", wUnits: "px", hUnits: "px" }); parser.push(null); }); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/svg.js var require_svg = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/svg.js"(exports, module) { var Transform = chunkO7I5CWRX_cjs.__require("stream").Transform; var STATE_IDENTIFY = 0; var STATE_PARSE = 1; var STATE_IGNORE = 2; var MAX_DATA_LENGTH = 65536; var SVG_HEADER_RE = /<[-_.:a-zA-Z0-9][^>]*>/; var SVG_TAG_RE = /^<([-_.:a-zA-Z0-9]+:)?svg\s/; var SVG_WIDTH_RE = /[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/; var SVG_HEIGHT_RE = /\bheight="([^%]+?)"|\bheight='([^%]+?)'/; var SVG_VIEWBOX_RE = /\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/; var SVG_UNITS_RE = /in$|mm$|cm$|pt$|pc$|px$|em$|ex$/; function isWhiteSpace(chr) { return chr === 32 || chr === 9 || chr === 13 || chr === 10; } function isFinitePositive(val) { return typeof val === "number" && isFinite(val) && val > 0; } function svgAttrs(str) { var width = str.match(SVG_WIDTH_RE); var height = str.match(SVG_HEIGHT_RE); var viewbox = str.match(SVG_VIEWBOX_RE); return { width: width && (width[1] || width[2]), height: height && (height[1] || height[2]), viewbox: viewbox && (viewbox[1] || viewbox[2]) }; } function units(str) { if (!SVG_UNITS_RE.test(str)) return "px"; return str.match(SVG_UNITS_RE)[0]; } function parseSvg(str) { var svgTag = (str.match(SVG_HEADER_RE) || [""])[0]; if (!SVG_TAG_RE.test(svgTag)) return; var attrs = svgAttrs(svgTag); var width = parseFloat(attrs.width); var height = parseFloat(attrs.height); if (attrs.width && attrs.height) { if (!isFinitePositive(width) || !isFinitePositive(height)) return; return { width, height, type: "svg", mime: "image/svg+xml", wUnits: units(attrs.width), hUnits: units(attrs.height) }; } var parts = (attrs.viewbox || "").split(" "); var viewbox = { width: parts[2], height: parts[3] }; var vbWidth = parseFloat(viewbox.width); var vbHeight = parseFloat(viewbox.height); if (!isFinitePositive(vbWidth) || !isFinitePositive(vbHeight)) return; if (units(viewbox.width) !== units(viewbox.height)) return; var ratio = vbWidth / vbHeight; if (attrs.width) { if (!isFinitePositive(width)) return; return { width, height: width / ratio, type: "svg", mime: "image/svg+xml", wUnits: units(attrs.width), hUnits: units(attrs.width) }; } if (attrs.height) { if (!isFinitePositive(height)) return; return { width: height * ratio, height, type: "svg", mime: "image/svg+xml", wUnits: units(attrs.height), hUnits: units(attrs.height) }; } return { width: vbWidth, height: vbHeight, type: "svg", mime: "image/svg+xml", wUnits: units(viewbox.width), hUnits: units(viewbox.height) }; } module.exports = function() { var state = STATE_IDENTIFY; var data_len = 0; var str = ""; var buf = null; var parser = new Transform({ readableObjectMode: true, transform: function transform(chunk, encoding, next) { switch (state) { // identify step is needed to fail fast if the file isn't SVG case STATE_IDENTIFY: if (buf) { chunk = Buffer.concat([buf, chunk]); buf = null; } if (data_len === 0 && chunk.length < 4) { buf = chunk; break; } var i = 0, max = chunk.length; if (data_len === 0 && chunk[0] === 239 && chunk[1] === 187 && chunk[2] === 191) i = 3; while (i < max && isWhiteSpace(chunk[i])) i++; if (i >= max) { data_len += chunk.length; if (data_len > MAX_DATA_LENGTH) { state = STATE_IGNORE; parser.push(null); } } else if (chunk[i] === 60) { state = STATE_PARSE; return transform(chunk, encoding, next); } else { state = STATE_IGNORE; parser.push(null); } break; case STATE_PARSE: str += chunk.toString(); var result = parseSvg(str); if (result) { state = STATE_IGNORE; parser.push(result); parser.push(null); break; } data_len += chunk.length; if (data_len > MAX_DATA_LENGTH) { state = STATE_IGNORE; parser.push(null); } break; } next(); }, flush: function() { state = STATE_IGNORE; parser.push(null); } }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/tiff.js var require_tiff = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/tiff.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var SIG_1 = str2arr("II*\0"); var SIG_2 = str2arr("MM\0*"); function readUInt16(buffer, offset, is_big_endian) { return is_big_endian ? buffer.readUInt16BE(offset) : buffer.readUInt16LE(offset); } function readUInt32(buffer, offset, is_big_endian) { return is_big_endian ? buffer.readUInt32BE(offset) : buffer.readUInt32LE(offset); } function readIFDValue(data, data_offset, is_big_endian) { var type = readUInt16(data, data_offset + 2, is_big_endian); var values = readUInt32(data, data_offset + 4, is_big_endian); if (values !== 1 || type !== 3 && type !== 4) { return null; } if (type === 3) { return readUInt16(data, data_offset + 8, is_big_endian); } return readUInt32(data, data_offset + 8, is_big_endian); } module.exports = function() { var parser = new ParserStream(); parser._bytes(8, function(data) { if (!sliceEq(data, 0, SIG_1) && !sliceEq(data, 0, SIG_2)) { parser._skipBytes(Infinity); parser.push(null); return; } var is_big_endian = data[0] === 77; var count = readUInt32(data, 4, is_big_endian) - 8; if (count < 0) { parser._skipBytes(Infinity); parser.push(null); return; } function safeSkip(parser2, count2, callback) { if (count2 === 0) { callback(); return; } parser2._skipBytes(count2, callback); } safeSkip(parser, count, function() { parser._bytes(2, function(data2) { var ifd_size = readUInt16(data2, 0, is_big_endian) * 12; if (ifd_size <= 0) { parser._skipBytes(Infinity); parser.push(null); return; } parser._bytes(ifd_size, function(data3) { parser._skipBytes(Infinity); var i, width, height, tag; for (i = 0; i < ifd_size; i += 12) { tag = readUInt16(data3, i, is_big_endian); if (tag === 256) { width = readIFDValue(data3, i, is_big_endian); } else if (tag === 257) { height = readIFDValue(data3, i, is_big_endian); } } if (width && height) { parser.push({ width, height, type: "tiff", mime: "image/tiff", wUnits: "px", hUnits: "px" }); } parser.push(null); }); }); }); }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/webp.js var require_webp = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parse_stream/webp.js"(exports, module) { var ParserStream = require_common().ParserStream; var str2arr = require_common().str2arr; var sliceEq = require_common().sliceEq; var exif = require_exif_utils(); var SIG_RIFF = str2arr("RIFF"); var SIG_WEBP = str2arr("WEBP"); function safeSkip(parser, count, callback) { if (count === 0) { callback(); return; } parser._skipBytes(count, callback); } function parseVP8(parser, length, sandbox) { parser._bytes(10, function(data) { if (data[3] === 157 && data[4] === 1 && data[5] === 42) { sandbox.result = sandbox.result || { width: data.readUInt16LE(6) & 16383, height: data.readUInt16LE(8) & 16383, type: "webp", mime: "image/webp", wUnits: "px", hUnits: "px" }; } safeSkip(parser, length - 10, function() { sandbox.offset += length; getWebpSize(parser, sandbox); }); }); } function parseVP8L(parser, length, sandbox) { parser._bytes(5, function(data) { if (data[0] === 47) { var bits = data.readUInt32LE(1); sandbox.result = sandbox.result || { width: (bits & 16383) + 1, height: (bits >> 14 & 16383) + 1, type: "webp", mime: "image/webp", wUnits: "px", hUnits: "px" }; } safeSkip(parser, length - 5, function() { sandbox.offset += length; getWebpSize(parser, sandbox); }); }); } function parseVP8X(parser, length, sandbox) { parser._bytes(10, function(data) { sandbox.result = sandbox.result || { // TODO: replace with `data.readUIntLE(8, 3) + 1` // when 0.10 support is dropped width: (data[6] << 16 | data[5] << 8 | data[4]) + 1, height: (data[9] << 16 | data[8] << 8 | data[7]) + 1, type: "webp", mime: "image/webp", wUnits: "px", hUnits: "px" }; safeSkip(parser, length - 10, function() { sandbox.offset += length; getWebpSize(parser, sandbox); }); }); } function parseExif(parser, length, sandbox) { parser._bytes(length, function(data) { sandbox.offset = Infinity; sandbox.exif_orientation = exif.get_orientation(data); getWebpSize(parser, sandbox); }); } function getWebpSize(parser, sandbox) { if (sandbox.fileLength - 8 <= sandbox.offset) { parser._skipBytes(Infinity); if (sandbox.result) { var result = sandbox.result; if (sandbox.exif_orientation > 0) { result.orientation = sandbox.exif_orientation; } parser.push(result); } parser.push(null); return; } parser._bytes(4 - sandbox.bufferedChunkHeader.length, function(data) { sandbox.offset += 4 - sandbox.bufferedChunkHeader.length; var header = sandbox.bufferedChunkHeader + String.fromCharCode.apply(null, data); header = header.replace(/^\0+/, ""); if (header.length < 4) { sandbox.bufferedChunkHeader = header; getWebpSize(parser, sandbox); return; } sandbox.bufferedChunkHeader = ""; parser._bytes(4, function(data2) { sandbox.offset += 4; var length = data2.readUInt32LE(0); if (header === "VP8 " && length >= 10) { parseVP8(parser, length, sandbox); } else if (header === "VP8L" && length >= 5) { parseVP8L(parser, length, sandbox); } else if (header === "VP8X" && length >= 10) { parseVP8X(parser, length, sandbox); } else if (header === "EXIF" && length >= 4) { parseExif(parser, length, sandbox); } else { safeSkip(parser, length, function() { sandbox.offset += length; getWebpSize(parser, sandbox); }); } }); }); } module.exports = function() { var parser = new ParserStream(); parser._bytes(12, function(data) { if (sliceEq(data, 0, SIG_RIFF) && sliceEq(data, 8, SIG_WEBP)) { getWebpSize(parser, { fileLength: data.readUInt32LE(4) + 8, offset: 12, exif_orientation: 0, bufferedChunkHeader: "" // for dealing with padding }); } else { parser._skipBytes(Infinity); parser.push(null); } }); return parser; }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parsers_stream.js var require_parsers_stream = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/lib/parsers_stream.js"(exports, module) { module.exports = { avif: require_avif(), bmp: require_bmp(), gif: require_gif(), ico: require_ico(), jpeg: require_jpeg(), png: require_png(), psd: require_psd(), svg: require_svg(), tiff: require_tiff(), webp: require_webp() }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/stream.js var require_stream = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/probe-image-size/7.2.3/5c98b624d33ea215651dcdabccfe83eebfee774ae800e4250203ab6ed85a1abd/node_modules/probe-image-size/stream.js"(exports, module) { var ProbeError = require_common().ProbeError; var parsers = require_parsers_stream(); var PassThrough = chunkO7I5CWRX_cjs.__require("stream").PassThrough; var pipeline = chunkO7I5CWRX_cjs.__require("stream").pipeline; module.exports = function probeStream(src, keepOpen) { var proxy = new PassThrough(); proxy.setMaxListeners(Object.keys(parsers).length + 10); var result = new Promise(function(resolve, reject) { src.on("error", reject); proxy.on("error", reject); var alive_parsers = []; var last_error; function parserEnd(err) { var idx = alive_parsers.indexOf[this]; if (idx < 0) return; if (err) last_error = err; proxy.unpipe(this); this.removeAllListeners(); alive_parsers.splice(idx, 1); if (alive_parsers.length) return; reject(last_error || new ProbeError("unrecognized file format", "ECONTENT")); } Object.keys(parsers).forEach(function(type) { var pStream = parsers[type](); alive_parsers.push(pStream); pStream.once("data", resolve); pStream.once("end", parserEnd); pStream.on("error", parserEnd); proxy.pipe(pStream); }); }); function cleanup() { if (keepOpen && typeof src.unpipe === "function") src.unpipe(proxy); proxy.destroy(); } result.then(cleanup).catch(cleanup); if (keepOpen) src.pipe(proxy); else pipeline(src, proxy, function() { }); return result; }; module.exports.parsers = parsers; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/ms/2.1.3/e0f4c72e735898d92cc164c858cbd0c7b6ed2ec2b4d6da5e8a20fedffeed95cd/node_modules/ms/index.js var require_ms2 = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/ms/2.1.3/e0f4c72e735898d92cc164c858cbd0c7b6ed2ec2b4d6da5e8a20fedffeed95cd/node_modules/ms/index.js"(exports, module) { var s = 1e3; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; module.exports = function(val, options) { options = options || {}; var type = typeof val; if (type === "string" && val.length > 0) { return parse(val); } else if (type === "number" && isFinite(val)) { return options.long ? fmtLong(val) : fmtShort(val); } throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(val) ); }; function parse(str) { str = String(str); if (str.length > 100) { return; } var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( str ); if (!match) { return; } var n = parseFloat(match[1]); var type = (match[2] || "ms").toLowerCase(); switch (type) { case "years": case "year": case "yrs": case "yr": case "y": return n * y; case "weeks": case "week": case "w": return n * w; case "days": case "day": case "d": return n * d; case "hours": case "hour": case "hrs": case "hr": case "h": return n * h; case "minutes": case "minute": case "mins": case "min": case "m": return n * m; case "seconds": case "second": case "secs": case "sec": case "s": return n * s; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return n; default: return void 0; } } function fmtShort(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return Math.round(ms / d) + "d"; } if (msAbs >= h) { return Math.round(ms / h) + "h"; } if (msAbs >= m) { return Math.round(ms / m) + "m"; } if (msAbs >= s) { return Math.round(ms / s) + "s"; } return ms + "ms"; } function fmtLong(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return plural(ms, msAbs, d, "day"); } if (msAbs >= h) { return plural(ms, msAbs, h, "hour"); } if (msAbs >= m) { return plural(ms, msAbs, m, "minute"); } if (msAbs >= s) { return plural(ms, msAbs, s, "second"); } return ms + " ms"; } function plural(ms, msAbs, n, name) { var isPlural = msAbs >= n * 1.5; return Math.round(ms / n) + " " + name + (isPlural ? "s" : ""); } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/common.js var require_common2 = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/common.js"(exports, module) { function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.enabled = enabled; createDebug.humanize = require_ms2(); Object.keys(env).forEach(function(key) { createDebug[key] = env[key]; }); createDebug.instances = []; createDebug.names = []; createDebug.skips = []; createDebug.formatters = {}; function selectColor(namespace) { var hash = 0; for (var i = 0; i < namespace.length; i++) { hash = (hash << 5) - hash + namespace.charCodeAt(i); hash |= 0; } return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; } createDebug.selectColor = selectColor; function createDebug(namespace) { var prevTime; function debug() { if (!debug.enabled) { return; } for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var self2 = debug; var curr = Number(/* @__PURE__ */ new Date()); var ms = curr - (prevTime || curr); self2.diff = ms; self2.prev = prevTime; self2.curr = curr; prevTime = curr; args[0] = createDebug.coerce(args[0]); if (typeof args[0] !== "string") { args.unshift("%O"); } var index = 0; args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) { if (match === "%%") { return match; } index++; var formatter = createDebug.formatters[format]; if (typeof formatter === "function") { var val = args[index]; match = formatter.call(self2, val); args.splice(index, 1); index--; } return match; }); createDebug.formatArgs.call(self2, args); var logFn = self2.log || createDebug.log; logFn.apply(self2, args); } debug.namespace = namespace; debug.enabled = createDebug.enabled(namespace); debug.useColors = createDebug.useColors(); debug.color = selectColor(namespace); debug.destroy = destroy; debug.extend = extend; if (typeof createDebug.init === "function") { createDebug.init(debug); } createDebug.instances.push(debug); return debug; } function destroy() { var index = createDebug.instances.indexOf(this); if (index !== -1) { createDebug.instances.splice(index, 1); return true; } return false; } function extend(namespace, delimiter) { return createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace); } function enable(namespaces) { createDebug.save(namespaces); createDebug.names = []; createDebug.skips = []; var i; var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/); var len = split.length; for (i = 0; i < len; i++) { if (!split[i]) { continue; } namespaces = split[i].replace(/\*/g, ".*?"); if (namespaces[0] === "-") { createDebug.skips.push(new RegExp("^" + namespaces.substr(1) + "$")); } else { createDebug.names.push(new RegExp("^" + namespaces + "$")); } } for (i = 0; i < createDebug.instances.length; i++) { var instance = createDebug.instances[i]; instance.enabled = createDebug.enabled(instance.namespace); } } function disable() { createDebug.enable(""); } function enabled(name) { if (name[name.length - 1] === "*") { return true; } var i; var len; for (i = 0, len = createDebug.skips.length; i < len; i++) { if (createDebug.skips[i].test(name)) { return false; } } for (i = 0, len = createDebug.names.length; i < len; i++) { if (createDebug.names[i].test(name)) { return true; } } return false; } function coerce(val) { if (val instanceof Error) { return val.stack || val.message; } return val; } createDebug.enable(createDebug.load()); return createDebug; } module.exports = setup; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/browser.js var require_browser2 = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/browser.js"(exports, module) { function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof2(obj2) { return typeof obj2; }; } else { _typeof = function _typeof2(obj2) { return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; }; } return _typeof(obj); } exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"]; function useColors() { if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) { return true; } if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { return false; } return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773 typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31? // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); } function formatArgs(args) { args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff); if (!this.useColors) { return; } var c = "color: " + this.color; args.splice(1, 0, c, "color: inherit"); var index = 0; var lastC = 0; args[0].replace(/%[a-zA-Z%]/g, function(match) { if (match === "%%") { return; } index++; if (match === "%c") { lastC = index; } }); args.splice(lastC, 0, c); } function log() { var _console; return (typeof console === "undefined" ? "undefined" : _typeof(console)) === "object" && console.log && (_console = console).log.apply(_console, arguments); } function save(namespaces) { try { if (namespaces) { exports.storage.setItem("debug", namespaces); } else { exports.storage.removeItem("debug"); } } catch (error) { } } function load() { var r; try { r = exports.storage.getItem("debug"); } catch (error) { } if (!r && typeof process !== "undefined" && "env" in process) { r = process.env.DEBUG; } return r; } function localstorage() { try { return localStorage; } catch (error) { } } module.exports = require_common2()(exports); var formatters = module.exports.formatters; formatters.j = function(v) { try { return JSON.stringify(v); } catch (error) { return "[UnexpectedJSONParseError]: " + error.message; } }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/node.js var require_node2 = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/node.js"(exports, module) { var tty = chunkO7I5CWRX_cjs.__require("tty"); var util = chunkO7I5CWRX_cjs.__require("util"); exports.init = init; exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.colors = [6, 2, 3, 4, 5, 1]; try { supportsColor = chunkO7I5CWRX_cjs.__require("supports-color"); if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221]; } } catch (error) { } var supportsColor; exports.inspectOpts = Object.keys(process.env).filter(function(key) { return /^debug_/i.test(key); }).reduce(function(obj, key) { var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) { return k.toUpperCase(); }); var val = process.env[key]; if (/^(yes|on|true|enabled)$/i.test(val)) { val = true; } else if (/^(no|off|false|disabled)$/i.test(val)) { val = false; } else if (val === "null") { val = null; } else { val = Number(val); } obj[prop] = val; return obj; }, {}); function useColors() { return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd); } function formatArgs(args) { var name = this.namespace, useColors2 = this.useColors; if (useColors2) { var c = this.color; var colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c); var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m"); args[0] = prefix + args[0].split("\n").join("\n" + prefix); args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m"); } else { args[0] = getDate() + name + " " + args[0]; } } function getDate() { if (exports.inspectOpts.hideDate) { return ""; } return (/* @__PURE__ */ new Date()).toISOString() + " "; } function log() { return process.stderr.write(util.format.apply(util, arguments) + "\n"); } function save(namespaces) { if (namespaces) { process.env.DEBUG = namespaces; } else { delete process.env.DEBUG; } } function load() { return process.env.DEBUG; } function init(debug) { debug.inspectOpts = {}; var keys = Object.keys(exports.inspectOpts); for (var i = 0; i < keys.length; i++) { debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; } } module.exports = require_common2()(exports); var formatters = module.exports.formatters; formatters.o = function(v) { this.inspectOpts.colors = this.useColors; return util.inspect(v, this.inspectOpts).split("\n").map(function(str) { return str.trim(); }).join(" "); }; formatters.O = function(v) { this.inspectOpts.colors = this.useColors; return util.inspect(v, this.inspectOpts); }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/index.js var require_src2 = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/debug/3.2.7/489723db5ee7916450db3e4874f081b817abd369caa1d1411727a8c4ed1e6dd7/node_modules/debug/src/index.js"(exports, module) { if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) { module.exports = require_browser2(); } else { module.exports = require_node2(); } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/querystring.js var require_querystring = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/querystring.js"(exports) { var toString = Object.prototype.toString; function stringify(obj, prefix) { if (prefix && (obj === null || typeof obj == "undefined")) { return prefix + "="; } else if (toString.call(obj) == "[object Array]") { return stringifyArray(obj, prefix); } else if (toString.call(obj) == "[object Object]") { return stringifyObject(obj, prefix); } else if (toString.call(obj) == "[object Date]") { return obj.toISOString(); } else if (prefix) { return prefix + "=" + encodeURIComponent(String(obj)); } else if (String(obj).indexOf("=") !== -1) { return String(obj); } else { throw new TypeError("Cannot build a querystring out of: " + obj); } } function stringifyArray(arr, prefix) { var ret = []; for (var i = 0, len = arr.length; i < len; i++) { if (prefix) ret.push(stringify(arr[i], prefix + "[]")); else ret.push(stringify(arr[i])); } return ret.join("&"); } function stringifyObject(obj, prefix) { var ret = []; Object.keys(obj).forEach(function(key) { ret.push(stringify(obj[key], prefix ? prefix + "[" + encodeURIComponent(key) + "]" : encodeURIComponent(key))); }); return ret.join("&"); } exports.build = stringify; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/multipart.js var require_multipart = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/multipart.js"(exports) { var readFile = chunkO7I5CWRX_cjs.__require("fs").readFile; var basename = chunkO7I5CWRX_cjs.__require("path").basename; exports.build = function(data, boundary, callback) { if (typeof data != "object" || typeof data.pipe == "function") return callback(new Error("Multipart builder expects data as key/val object.")); var body = "", object = flatten(data), count = Object.keys(object).length; if (count === 0) return callback(new Error("Empty multipart body. Invalid data.")); function done(err, section) { if (err) return callback(err); if (section) body += section; --count || callback(null, body + "--" + boundary + "--"); } for (var key in object) { var value = object[key]; if (value === null || typeof value == "undefined") { done(); } else if (Buffer.isBuffer(value)) { var part = { buffer: value, content_type: "application/octet-stream" }; generate_part(key, part, boundary, done); } else { var part = value.buffer || value.file || value.content_type ? value : { value }; generate_part(key, part, boundary, done); } } }; function generate_part(name, part, boundary, callback) { var return_part = "--" + boundary + "\r\n"; return_part += 'Content-Disposition: form-data; name="' + name + '"'; function append(data, filename2) { if (data) { var binary = part.content_type.indexOf("text") == -1; return_part += '; filename="' + encodeURIComponent(filename2) + '"\r\n'; if (binary) return_part += "Content-Transfer-Encoding: binary\r\n"; return_part += "Content-Type: " + part.content_type + "\r\n\r\n"; return_part += binary ? data.toString("binary") : data.toString("utf8"); } callback(null, return_part + "\r\n"); } if ((part.file || part.buffer) && part.content_type) { var filename = part.filename ? part.filename : part.file ? basename(part.file) : name; if (part.buffer) return append(part.buffer, filename); readFile(part.file, function(err, data) { if (err) return callback(err); append(data, filename); }); } else { if (typeof part.value == "object") return callback(new Error("Object received for " + name + ", expected string.")); if (part.content_type) { return_part += "\r\n"; return_part += "Content-Type: " + part.content_type; } return_part += "\r\n\r\n"; return_part += Buffer.from(String(part.value), "utf8").toString("binary"); append(); } } function flatten(object, into, prefix) { into = into || {}; for (var key in object) { var prefix_key = prefix ? prefix + "[" + key + "]" : key; var prop = object[key]; if (prop && typeof prop === "object" && !(prop.buffer || prop.file || prop.content_type)) flatten(prop, into, prefix_key); else into[prefix_key] = prop; } return into; } } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/auth.js var require_auth = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/auth.js"(exports, module) { var createHash = chunkO7I5CWRX_cjs.__require("crypto").createHash; function get_header(header, credentials, opts) { var type = header.split(" ")[0], user = credentials[0], pass = credentials[1]; if (type == "Digest") { return digest.generate(header, user, pass, opts.method, opts.path); } else if (type == "Basic") { return basic(user, pass); } } function md5(string) { return createHash("md5").update(string).digest("hex"); } function basic(user, pass) { var str = typeof pass == "undefined" ? user : [user, pass].join(":"); return "Basic " + Buffer.from(str).toString("base64"); } var digest = {}; digest.parse_header = function(header) { var challenge = {}, matches = header.match(/([a-z0-9_-]+)="?([a-z0-9_=\/\.@\s-\+)()]+)"?/gi); for (var i = 0, l = matches.length; i < l; i++) { var parts = matches[i].split("="), key = parts.shift(), val = parts.join("=").replace(/^"/, "").replace(/"$/, ""); challenge[key] = val; } return challenge; }; digest.update_nc = function(nc) { var max = 99999999; nc++; if (nc > max) nc = 1; var padding = new Array(8).join("0") + ""; nc = nc + ""; return padding.substr(0, 8 - nc.length) + nc; }; digest.generate = function(header, user, pass, method, path) { var nc = 1, cnonce = null, challenge = digest.parse_header(header); var ha1 = md5(user + ":" + challenge.realm + ":" + pass), ha2 = md5(method.toUpperCase() + ":" + path), resp = [ha1, challenge.nonce]; if (typeof challenge.qop === "string") { cnonce = md5(Math.random().toString(36)).substr(0, 8); nc = digest.update_nc(nc); resp = resp.concat(nc, cnonce); resp = resp.concat(challenge.qop, ha2); } else { resp = resp.concat(ha2); } var params = { uri: path, realm: challenge.realm, nonce: challenge.nonce, username: user, response: md5(resp.join(":")) }; if (challenge.qop) { params.qop = challenge.qop; } if (challenge.opaque) { params.opaque = challenge.opaque; } if (cnonce) { params.nc = nc; params.cnonce = cnonce; } header = []; for (var k in params) header.push(k + '="' + params[k] + '"'); return "Digest " + header.join(", "); }; module.exports = { header: get_header, basic, digest: digest.generate }; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/cookies.js var require_cookies = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/needle/2.9.1/197a4b698eea2f6fc7fd30d14cb5f7a943b7e681a8f6e3c816b4c1e9b00fbf2c/node_modules/needle/lib/cookies.js"(exports) { var unescape = chunkO7I5CWRX_cjs.__require("querystring").unescape; var COOKIE_PAIR = /^([^=\s]+)\s*=\s*("?)\s*(.*)\s*\2\s*$/; var EXCLUDED_CHARS = /[\x00-\x1F\x7F\x3B\x3B\s\"\,\\"%]/g; var KEY_INDEX = 1; var VALUE_INDEX = 3; function cleanCookieString(str) { return str.trim().replace(/\x3B+$/, ""); } function getFirstPair(str) { var index = str.indexOf(";"); return index === -1 ? str : str.substr(0, index); } function encodeCookieComponent(str) { return str.toString().replace(EXCLUDED_CHARS, encodeURIComponent); } function parseSetCookieString(str) { str = cleanCookieString(str); str = getFirstPair(str); var res = COOKIE_PAIR.exec(str); if (!res || !res[VALUE_INDEX]) return null; return { name: unescape(res[KEY_INDEX]), value: unescape(res[VALUE_INDEX]) }; } function parseSetCookieHeader(header) { if (!header) return {}; header = Array.isArray(header) ? header : [header]; return header.reduce(function(res, str) { var cookie = parseSetCookieString(str); if (cookie) res[cookie.name] = cookie.value; return res; }, {}); } function writeCookieString(obj) { return Object.keys(obj).reduce(function(str, name) { var encodedName = encodeCookieComponent(name); var encodedValue = encodeCookieComponent(obj[name]); str += (str ? "; " : "") + encodedName + "=" + encodedValue; return str; }, ""); } exports.read = parseSetCookieHeader; exports.write = writeCookieString; } }); // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/sax/1.4.4/3673acdc939b13a78d08902df86197ea052cfddeb2090a71958fe72c8b1a3029/node_modules/sax/lib/sax.js var require_sax = chunkO7I5CWRX_cjs.__commonJS({ "../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/sax/1.4.4/3673acdc939b13a78d08902df86197ea052cfddeb2090a71958fe72c8b1a3029/node_modules/sax/lib/sax.js"(exports) { (function(sax) { sax.parser = function(strict, opt) { return new SAXParser(strict, opt); }; sax.SAXParser = SAXParser; sax.SAXStream = SAXStream; sax.createStream = createStream; sax.MAX_BUFFER_LENGTH = 64 * 1024; var buffers = [ "comment", "sgmlDecl", "textNode", "tagName", "doctype", "procInstName", "procInstBody", "entity", "attribName", "attribValue", "cdata", "script" ]; sax.EVENTS = [ "text", "processinginstruction", "sgmldeclaration", "doctype", "comment", "opentagstart", "attribute", "opentag", "closetag", "opencdata", "cdata", "closecdata", "error", "end", "ready", "script", "opennamespace", "closenamespace" ]; function SAXParser(strict, opt) { if (!(this instanceof SAXParser)) { return new SAXParser(strict, opt); } var parser = this; clearBuffers(parser); parser.q = parser.c = ""; parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH; parser.opt = opt || {}; parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags; parser.looseCase = parser.opt.lowercase ? "toLowerCase" : "toUpperCase"; parser.tags = []; parser.closed = parser.closedRoot = parser.sawRoot = false; parser.tag = parser.error = null; parser.strict = !!strict; parser.noscript = !!(strict || parser.opt.noscript); parser.state = S.BEGIN; parser.strictEntities = parser.opt.strictEntities; parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES); parser.attribList = []; if (parser.opt.xmlns) { parser.ns = Object.create(rootNS); } if (parser.opt.unquotedAttributeValues === void 0) { parser.opt.unquotedAttributeValues = !strict; } parser.trackPosition = parser.opt.position !== false; if (parser.trackPosition) { parser.position = parser.line = parser.column = 0; } emit(parser, "onready"); } if (!Object.create) { Object.create = function(o) { function F() { } F.prototype = o; var newf = new F(); return newf; }; } if (!Object.keys) { Object.keys = function(o) { var a = []; for (var i in o) if (o.hasOwnProperty(i)) a.push(i); return a; }; } function checkBufferLength(parser) { var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10); var maxActual = 0; for (var i = 0, l = buffers.length; i < l; i++) { var len = parser[buffers[i]].length; if (len > maxAllowed) { switch (buffers[i]) { case "textNode": closeText(parser); break; case "cdata": emitNode(parser, "oncdata", parser.cdata); parser.cdata = ""; break; case "script": emitNode(parser, "onscript", parser.script); parser.script = ""; break; default: error(parser, "Max buffer length exceeded: " + buffers[i]); } } maxActual = Math.max(maxActual, len); } var m = sax.MAX_BUFFER_LENGTH - maxActual; parser.bufferCheckPosition = m + parser.position; } function clearBuffers(parser) { for (var i = 0, l = buffers.length; i < l; i++) { parser[buffers[i]] = ""; } } function flushBuffers(parser) { closeText(parser); if (parser.cdata !== "") { emitNode(parser, "oncdata", parser.cdata); parser.cdata = ""; } if (parser.script !== "") { emitNode(parser, "onscript", parser.script); parser.script = ""; } } SAXParser.prototype = { end: function() { end(this); }, write, resume: function() { this.error = null; return this; }, close: function() { return this.write(null); }, flush: function() { flushBuffers(this); } }; var Stream; try { Stream = chunkO7I5CWRX_cjs.__require("stream").Stream; } catch (ex) { Stream = function() { }; } if (!Stream) Stream = function() { }; var streamWraps = sax.EVENTS.filter(function(ev) { return ev !== "error" && ev !== "end"; }); function createStream(strict, opt) { return new SAXStream(strict, opt); } function SAXStream(strict, opt) { if (!(this instanceof SAXStream)) { return new SAXStream(strict, opt); } Stream.apply(this); this._parser = new SAXParser(strict, opt); this.writable = true; this.readable = true; var me = this; this._parser.onend = function() { me.emit("end"); }; this._parser.onerror = function(er) { me.emit("error", er); me._parser.error = null; }; this._decoder = null; streamWraps.forEach(function(ev) { Object.defineProperty(me, "on" + ev, { get: function() { return me._parser["on" + ev]; }, set: function(h) { if (!h) { me.removeAllListeners(ev); me._parser["on" + ev] = h; return h; } me.on(ev, h); }, enumerable: true, configurable: false }); }); } SAXStream.prototype = Object.create(Stream.prototype, { constructor: { value: SAXStream } }); SAXStream.prototype.write = function(data) { if (typeof Buffer === "function" && typeof Buffer.isBuffer === "function" && Buffer.isBuffer(data)) { if (!this._decoder) { this._decoder = new TextDecoder("utf8"); } data = this._decoder.decode(data, { stream: true }); } this._parser.write(data.toString()); this.emit("data", data); return true; }; SAXStream.prototype.end = function(chunk) { if (chunk && chunk.length) { this.write(chunk); } if (this._decoder) { var remaining = this._decoder.decode(); if (remaining) { this._parser.write(remaining); this.emit("data", remaining); } } this._parser.end(); return true; }; SAXStream.prototype.on = function(ev, handler) { var me = this; if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) { me._parser["on" + ev] = function() { var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments); args.splice(0, 0, ev); me.emit.apply(me, args); }; } return Stream.prototype.on.call(me, ev, handler); }; var CDATA = "[CDATA["; var DOCTYPE = "DOCTYPE"; var XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace"; var XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/"; var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }; var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/; var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; function isWhitespace(c) { return c === " " || c === "\n" || c === "\r" || c === " "; } function isQuote(c) { return c === '"' || c === "'"; } function isAttribEnd(c) { return c === ">" || isWhitespace(c); } function isMatch(regex, c) { return regex.test(c); } function notMatch(regex, c) { return !isMatch(regex, c); } var S = 0; sax.STATE = { BEGIN: S++, // leading byte order mark or whitespace BEGIN_WHITESPACE: S++, // leading whitespace TEXT: S++, // general stuff TEXT_ENTITY: S++, // & and such. OPEN_WAKA: S++, // < SGML_DECL: S++, // SCRIPT: S++, //