`;
}
tablecell(e) {
let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `${n}>
`;
}
strong({ tokens: e }) {
return `${this.parser.parseInline(e)}`;
}
em({ tokens: e }) {
return `${this.parser.parseInline(e)}`;
}
codespan({ text: e }) {
return `${O(e, !0)}`;
}
br(e) {
return " ";
}
del({ tokens: e }) {
return `${this.parser.parseInline(e)}`;
}
link({ href: e, title: t, tokens: n }) {
let s = this.parser.parseInline(n), r = Y(e);
if (r === null) return s;
e = r;
let i = '" + s + "", i;
}
image({ href: e, title: t, text: n, tokens: s }) {
s && (n = this.parser.parseInline(s, this.parser.textRenderer));
let r = Y(e);
if (r === null) return O(n);
e = r;
let i = `", i;
}
text(e) {
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : O(e.text);
}
};
var L = class {
strong({ text: e }) {
return e;
}
em({ text: e }) {
return e;
}
codespan({ text: e }) {
return e;
}
del({ text: e }) {
return e;
}
html({ text: e }) {
return e;
}
text({ text: e }) {
return e;
}
link({ text: e }) {
return "" + e;
}
image({ text: e }) {
return "" + e;
}
br() {
return "";
}
checkbox({ raw: e }) {
return e;
}
};
var b = class l {
options;
renderer;
textRenderer;
constructor(e){
this.options = e || R, this.options.renderer = this.options.renderer || new P, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L;
}
static parse(e, t) {
return new l(t).parse(e);
}
static parseInline(e, t) {
return new l(t).parseInline(e);
}
parse(e) {
this.renderer.parser = this;
let t = "";
for(let n = 0; n < e.length; n++){
let s = e[n];
if (this.options.extensions?.renderers?.[s.type]) {
let i = s, o = this.options.extensions.renderers[i.type].call({
parser: this
}, i);
if (o !== !1 || ![
"space",
"hr",
"heading",
"code",
"table",
"blockquote",
"list",
"checkbox",
"html",
"def",
"paragraph",
"text"
].includes(i.type)) {
t += o || "";
continue;
}
}
let r = s;
switch(r.type){
case "space":
{
t += this.renderer.space(r);
break;
}
case "hr":
{
t += this.renderer.hr(r);
break;
}
case "heading":
{
t += this.renderer.heading(r);
break;
}
case "code":
{
t += this.renderer.code(r);
break;
}
case "table":
{
t += this.renderer.table(r);
break;
}
case "blockquote":
{
t += this.renderer.blockquote(r);
break;
}
case "list":
{
t += this.renderer.list(r);
break;
}
case "checkbox":
{
t += this.renderer.checkbox(r);
break;
}
case "html":
{
t += this.renderer.html(r);
break;
}
case "def":
{
t += this.renderer.def(r);
break;
}
case "paragraph":
{
t += this.renderer.paragraph(r);
break;
}
case "text":
{
t += this.renderer.text(r);
break;
}
default:
{
let i = 'Token with "' + r.type + '" type was not found.';
if (this.options.silent) return console.error(i), "";
throw new Error(i);
}
}
}
return t;
}
parseInline(e, t = this.renderer) {
this.renderer.parser = this;
let n = "";
for(let s = 0; s < e.length; s++){
let r = e[s];
if (this.options.extensions?.renderers?.[r.type]) {
let o = this.options.extensions.renderers[r.type].call({
parser: this
}, r);
if (o !== !1 || ![
"escape",
"html",
"link",
"image",
"checkbox",
"strong",
"em",
"codespan",
"br",
"del",
"text"
].includes(r.type)) {
n += o || "";
continue;
}
}
let i = r;
switch(i.type){
case "escape":
{
n += t.text(i);
break;
}
case "html":
{
n += t.html(i);
break;
}
case "link":
{
n += t.link(i);
break;
}
case "image":
{
n += t.image(i);
break;
}
case "checkbox":
{
n += t.checkbox(i);
break;
}
case "strong":
{
n += t.strong(i);
break;
}
case "em":
{
n += t.em(i);
break;
}
case "codespan":
{
n += t.codespan(i);
break;
}
case "br":
{
n += t.br(i);
break;
}
case "del":
{
n += t.del(i);
break;
}
case "text":
{
n += t.text(i);
break;
}
default:
{
let o = 'Token with "' + i.type + '" type was not found.';
if (this.options.silent) return console.error(o), "";
throw new Error(o);
}
}
}
return n;
}
};
var S = class {
options;
block;
constructor(e){
this.options = e || R;
}
static passThroughHooks = new Set([
"preprocess",
"postprocess",
"processAllTokens",
"emStrongMask"
]);
static passThroughHooksRespectAsync = new Set([
"preprocess",
"postprocess",
"processAllTokens"
]);
preprocess(e) {
return e;
}
postprocess(e) {
return e;
}
processAllTokens(e) {
return e;
}
emStrongMask(e) {
return e;
}
provideLexer(e = this.block) {
return e ? x.lex : x.lexInline;
}
provideParser(e = this.block) {
return e ? b.parse : b.parseInline;
}
};
var Z = class {
defaults = C();
options = this.setOptions;
parse = this.parseMarkdown(!0);
parseInline = this.parseMarkdown(!1);
Parser = b;
Renderer = P;
TextRenderer = L;
Lexer = x;
Tokenizer = y;
Hooks = S;
constructor(...e){
this.use(...e);
}
walkTokens(e, t) {
let n = [];
for (let s of e)switch(n = n.concat(t.call(this, s)), s.type){
case "table":
{
let r = s;
for (let i of r.header)n = n.concat(this.walkTokens(i.tokens, t));
for (let i of r.rows)for (let o of i)n = n.concat(this.walkTokens(o.tokens, t));
break;
}
case "list":
{
let r = s;
n = n.concat(this.walkTokens(r.items, t));
break;
}
default:
{
let r = s;
this.defaults.extensions?.childTokens?.[r.type] ? this.defaults.extensions.childTokens[r.type].forEach((i)=>{
let o = r[i].flat(1 / 0);
n = n.concat(this.walkTokens(o, t));
}) : r.tokens && (n = n.concat(this.walkTokens(r.tokens, t)));
}
}
return n;
}
use(...e) {
let t = this.defaults.extensions || {
renderers: {},
childTokens: {}
};
return e.forEach((n)=>{
let s = {
...n
};
if (s.async = this.defaults.async || s.async || !1, n.extensions && (n.extensions.forEach((r)=>{
if (!r.name) throw new Error("extension name required");
if ("renderer" in r) {
let i = t.renderers[r.name];
i ? t.renderers[r.name] = function(...o) {
let p = r.renderer.apply(this, o);
return p === !1 && (p = i.apply(this, o)), p;
} : t.renderers[r.name] = r.renderer;
}
if ("tokenizer" in r) {
if (!r.level || r.level !== "block" && r.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
let i = t[r.level];
i ? i.unshift(r.tokenizer) : t[r.level] = [
r.tokenizer
], r.start && (r.level === "block" ? t.startBlock ? t.startBlock.push(r.start) : t.startBlock = [
r.start
] : r.level === "inline" && (t.startInline ? t.startInline.push(r.start) : t.startInline = [
r.start
]));
}
"childTokens" in r && r.childTokens && (t.childTokens[r.name] = r.childTokens);
}), s.extensions = t), n.renderer) {
let r = this.defaults.renderer || new P(this.defaults);
for(let i in n.renderer){
if (!(i in r)) throw new Error(`renderer '${i}' does not exist`);
if ([
"options",
"parser"
].includes(i)) continue;
let o = i, p = n.renderer[o], a = r[o];
r[o] = (...u)=>{
let c = p.apply(r, u);
return c === !1 && (c = a.apply(r, u)), c || "";
};
}
s.renderer = r;
}
if (n.tokenizer) {
let r = this.defaults.tokenizer || new y(this.defaults);
for(let i in n.tokenizer){
if (!(i in r)) throw new Error(`tokenizer '${i}' does not exist`);
if ([
"options",
"rules",
"lexer"
].includes(i)) continue;
let o = i, p = n.tokenizer[o], a = r[o];
r[o] = (...u)=>{
let c = p.apply(r, u);
return c === !1 && (c = a.apply(r, u)), c;
};
}
s.tokenizer = r;
}
if (n.hooks) {
let r = this.defaults.hooks || new S;
for(let i in n.hooks){
if (!(i in r)) throw new Error(`hook '${i}' does not exist`);
if ([
"options",
"block"
].includes(i)) continue;
let o = i, p = n.hooks[o], a = r[o];
S.passThroughHooks.has(i) ? r[o] = (u)=>{
if (this.defaults.async && S.passThroughHooksRespectAsync.has(i)) return (async ()=>{
let h = await p.call(r, u);
return a.call(r, h);
})();
let c = p.call(r, u);
return a.call(r, c);
} : r[o] = (...u)=>{
if (this.defaults.async) return (async ()=>{
let h = await p.apply(r, u);
return h === !1 && (h = await a.apply(r, u)), h;
})();
let c = p.apply(r, u);
return c === !1 && (c = a.apply(r, u)), c;
};
}
s.hooks = r;
}
if (n.walkTokens) {
let r = this.defaults.walkTokens, i = n.walkTokens;
s.walkTokens = function(o) {
let p = [];
return p.push(i.call(this, o)), r && (p = p.concat(r.call(this, o))), p;
};
}
this.defaults = {
...this.defaults,
...s
};
}), this;
}
setOptions(e) {
return this.defaults = {
...this.defaults,
...e
}, this;
}
lexer(e, t) {
return x.lex(e, t ?? this.defaults);
}
parser(e, t) {
return b.parse(e, t ?? this.defaults);
}
parseMarkdown(e) {
return (n, s)=>{
let r = {
...s
}, i = {
...this.defaults,
...r
}, o = this.onError(!!i.silent, !!i.async);
if (this.defaults.async === !0 && r.async === !1) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async ()=>{
let p = i.hooks ? await i.hooks.preprocess(n) : n, u = await (i.hooks ? await i.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(p, i), c = i.hooks ? await i.hooks.processAllTokens(u) : u;
i.walkTokens && await Promise.all(this.walkTokens(c, i.walkTokens));
let d = await (i.hooks ? await i.hooks.provideParser(e) : e ? b.parse : b.parseInline)(c, i);
return i.hooks ? await i.hooks.postprocess(d) : d;
})().catch(o);
try {
i.hooks && (n = i.hooks.preprocess(n));
let a = (i.hooks ? i.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(n, i);
i.hooks && (a = i.hooks.processAllTokens(a)), i.walkTokens && this.walkTokens(a, i.walkTokens);
let c = (i.hooks ? i.hooks.provideParser(e) : e ? b.parse : b.parseInline)(a, i);
return i.hooks && (c = i.hooks.postprocess(c)), c;
} catch (p) {
return o(p);
}
};
}
onError(e, t) {
return (n)=>{
if (n.message += `
Please report this to https://github.com/markedjs/marked.`, e) {
let s = "
An error occurred:
" + O(n.message + "", !0) + "
";
return t ? Promise.resolve(s) : s;
}
if (t) return Promise.reject(n);
throw n;
};
}
};
var E = new Z;
function f(l, e) {
return E.parse(l, e);
}
f.options = f.setOptions = function(l) {
return E.setOptions(l), f.defaults = E.defaults, j(f.defaults), f;
};
f.getDefaults = C;
f.defaults = R;
function kt(...l) {
return E.use(...l), f.defaults = E.defaults, j(f.defaults), f;
}
f.use = kt;
f.walkTokens = function(l, e) {
return E.walkTokens(l, e);
};
f.parseInline = E.parseInline;
f.Parser = b;
f.parser = b.parse;
f.Renderer = P;
f.TextRenderer = L;
f.Lexer = x;
f.lexer = x.lex;
f.Tokenizer = y;
f.Hooks = S;
f.parse = f;
var nn = f.options, rn = f.setOptions, sn = f.walkTokens, on = f.parseInline, an = f, ln = b.parse, pn = x.lex;
;
}),
"[project]/node_modules/nanoid/non-secure/index.cjs [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
let urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
let customAlphabet = (alphabet, defaultSize = 21)=>{
return (size = defaultSize)=>{
let id = '';
let i = size | 0;
while(i-- > 0){
id += alphabet[Math.random() * alphabet.length | 0];
}
return id;
};
};
let nanoid = (size = 21)=>{
let id = '';
let i = size | 0;
while(i-- > 0){
id += urlAlphabet[Math.random() * 64 | 0];
}
return id;
};
module.exports = {
nanoid,
customAlphabet
};
}),
"[project]/node_modules/next/dist/compiled/buffer/index.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
(function() {
var e = {
872: function(e, r) {
"use strict";
r.byteLength = byteLength;
r.toByteArray = toByteArray;
r.fromByteArray = fromByteArray;
var t = [];
var f = [];
var n = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
for(var o = 0, u = i.length; o < u; ++o){
t[o] = i[o];
f[i.charCodeAt(o)] = o;
}
f["-".charCodeAt(0)] = 62;
f["_".charCodeAt(0)] = 63;
function getLens(e) {
var r = e.length;
if (r % 4 > 0) {
throw new Error("Invalid string. Length must be a multiple of 4");
}
var t = e.indexOf("=");
if (t === -1) t = r;
var f = t === r ? 0 : 4 - t % 4;
return [
t,
f
];
}
function byteLength(e) {
var r = getLens(e);
var t = r[0];
var f = r[1];
return (t + f) * 3 / 4 - f;
}
function _byteLength(e, r, t) {
return (r + t) * 3 / 4 - t;
}
function toByteArray(e) {
var r;
var t = getLens(e);
var i = t[0];
var o = t[1];
var u = new n(_byteLength(e, i, o));
var a = 0;
var s = o > 0 ? i - 4 : i;
var h;
for(h = 0; h < s; h += 4){
r = f[e.charCodeAt(h)] << 18 | f[e.charCodeAt(h + 1)] << 12 | f[e.charCodeAt(h + 2)] << 6 | f[e.charCodeAt(h + 3)];
u[a++] = r >> 16 & 255;
u[a++] = r >> 8 & 255;
u[a++] = r & 255;
}
if (o === 2) {
r = f[e.charCodeAt(h)] << 2 | f[e.charCodeAt(h + 1)] >> 4;
u[a++] = r & 255;
}
if (o === 1) {
r = f[e.charCodeAt(h)] << 10 | f[e.charCodeAt(h + 1)] << 4 | f[e.charCodeAt(h + 2)] >> 2;
u[a++] = r >> 8 & 255;
u[a++] = r & 255;
}
return u;
}
function tripletToBase64(e) {
return t[e >> 18 & 63] + t[e >> 12 & 63] + t[e >> 6 & 63] + t[e & 63];
}
function encodeChunk(e, r, t) {
var f;
var n = [];
for(var i = r; i < t; i += 3){
f = (e[i] << 16 & 16711680) + (e[i + 1] << 8 & 65280) + (e[i + 2] & 255);
n.push(tripletToBase64(f));
}
return n.join("");
}
function fromByteArray(e) {
var r;
var f = e.length;
var n = f % 3;
var i = [];
var o = 16383;
for(var u = 0, a = f - n; u < a; u += o){
i.push(encodeChunk(e, u, u + o > a ? a : u + o));
}
if (n === 1) {
r = e[f - 1];
i.push(t[r >> 2] + t[r << 4 & 63] + "==");
} else if (n === 2) {
r = (e[f - 2] << 8) + e[f - 1];
i.push(t[r >> 10] + t[r >> 4 & 63] + t[r << 2 & 63] + "=");
}
return i.join("");
}
},
230: function(e, r, t) {
"use strict";
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh
* @license MIT
*/ var f = t(872);
var n = t(321);
var i = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
r.Buffer = Buffer;
r.SlowBuffer = SlowBuffer;
r.INSPECT_MAX_BYTES = 50;
var o = 2147483647;
r.kMaxLength = o;
Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();
if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
console.error("This browser lacks typed array (Uint8Array) support which is required by " + "`buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
}
function typedArraySupport() {
try {
var e = new Uint8Array(1);
var r = {
foo: function() {
return 42;
}
};
Object.setPrototypeOf(r, Uint8Array.prototype);
Object.setPrototypeOf(e, r);
return e.foo() === 42;
} catch (e) {
return false;
}
}
Object.defineProperty(Buffer.prototype, "parent", {
enumerable: true,
get: function() {
if (!Buffer.isBuffer(this)) return undefined;
return this.buffer;
}
});
Object.defineProperty(Buffer.prototype, "offset", {
enumerable: true,
get: function() {
if (!Buffer.isBuffer(this)) return undefined;
return this.byteOffset;
}
});
function createBuffer(e) {
if (e > o) {
throw new RangeError('The value "' + e + '" is invalid for option "size"');
}
var r = new Uint8Array(e);
Object.setPrototypeOf(r, Buffer.prototype);
return r;
}
function Buffer(e, r, t) {
if (typeof e === "number") {
if (typeof r === "string") {
throw new TypeError('The "string" argument must be of type string. Received type number');
}
return allocUnsafe(e);
}
return from(e, r, t);
}
Buffer.poolSize = 8192;
function from(e, r, t) {
if (typeof e === "string") {
return fromString(e, r);
}
if (ArrayBuffer.isView(e)) {
return fromArrayLike(e);
}
if (e == null) {
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, " + "or Array-like Object. Received type " + typeof e);
}
if (isInstance(e, ArrayBuffer) || e && isInstance(e.buffer, ArrayBuffer)) {
return fromArrayBuffer(e, r, t);
}
if (typeof SharedArrayBuffer !== "undefined" && (isInstance(e, SharedArrayBuffer) || e && isInstance(e.buffer, SharedArrayBuffer))) {
return fromArrayBuffer(e, r, t);
}
if (typeof e === "number") {
throw new TypeError('The "value" argument must not be of type number. Received type number');
}
var f = e.valueOf && e.valueOf();
if (f != null && f !== e) {
return Buffer.from(f, r, t);
}
var n = fromObject(e);
if (n) return n;
if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] === "function") {
return Buffer.from(e[Symbol.toPrimitive]("string"), r, t);
}
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, " + "or Array-like Object. Received type " + typeof e);
}
Buffer.from = function(e, r, t) {
return from(e, r, t);
};
Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype);
Object.setPrototypeOf(Buffer, Uint8Array);
function assertSize(e) {
if (typeof e !== "number") {
throw new TypeError('"size" argument must be of type number');
} else if (e < 0) {
throw new RangeError('The value "' + e + '" is invalid for option "size"');
}
}
function alloc(e, r, t) {
assertSize(e);
if (e <= 0) {
return createBuffer(e);
}
if (r !== undefined) {
return typeof t === "string" ? createBuffer(e).fill(r, t) : createBuffer(e).fill(r);
}
return createBuffer(e);
}
Buffer.alloc = function(e, r, t) {
return alloc(e, r, t);
};
function allocUnsafe(e) {
assertSize(e);
return createBuffer(e < 0 ? 0 : checked(e) | 0);
}
Buffer.allocUnsafe = function(e) {
return allocUnsafe(e);
};
Buffer.allocUnsafeSlow = function(e) {
return allocUnsafe(e);
};
function fromString(e, r) {
if (typeof r !== "string" || r === "") {
r = "utf8";
}
if (!Buffer.isEncoding(r)) {
throw new TypeError("Unknown encoding: " + r);
}
var t = byteLength(e, r) | 0;
var f = createBuffer(t);
var n = f.write(e, r);
if (n !== t) {
f = f.slice(0, n);
}
return f;
}
function fromArrayLike(e) {
var r = e.length < 0 ? 0 : checked(e.length) | 0;
var t = createBuffer(r);
for(var f = 0; f < r; f += 1){
t[f] = e[f] & 255;
}
return t;
}
function fromArrayBuffer(e, r, t) {
if (r < 0 || e.byteLength < r) {
throw new RangeError('"offset" is outside of buffer bounds');
}
if (e.byteLength < r + (t || 0)) {
throw new RangeError('"length" is outside of buffer bounds');
}
var f;
if (r === undefined && t === undefined) {
f = new Uint8Array(e);
} else if (t === undefined) {
f = new Uint8Array(e, r);
} else {
f = new Uint8Array(e, r, t);
}
Object.setPrototypeOf(f, Buffer.prototype);
return f;
}
function fromObject(e) {
if (Buffer.isBuffer(e)) {
var r = checked(e.length) | 0;
var t = createBuffer(r);
if (t.length === 0) {
return t;
}
e.copy(t, 0, 0, r);
return t;
}
if (e.length !== undefined) {
if (typeof e.length !== "number" || numberIsNaN(e.length)) {
return createBuffer(0);
}
return fromArrayLike(e);
}
if (e.type === "Buffer" && Array.isArray(e.data)) {
return fromArrayLike(e.data);
}
}
function checked(e) {
if (e >= o) {
throw new RangeError("Attempt to allocate Buffer larger than maximum " + "size: 0x" + o.toString(16) + " bytes");
}
return e | 0;
}
function SlowBuffer(e) {
if (+e != e) {
e = 0;
}
return Buffer.alloc(+e);
}
Buffer.isBuffer = function isBuffer(e) {
return e != null && e._isBuffer === true && e !== Buffer.prototype;
};
Buffer.compare = function compare(e, r) {
if (isInstance(e, Uint8Array)) e = Buffer.from(e, e.offset, e.byteLength);
if (isInstance(r, Uint8Array)) r = Buffer.from(r, r.offset, r.byteLength);
if (!Buffer.isBuffer(e) || !Buffer.isBuffer(r)) {
throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
}
if (e === r) return 0;
var t = e.length;
var f = r.length;
for(var n = 0, i = Math.min(t, f); n < i; ++n){
if (e[n] !== r[n]) {
t = e[n];
f = r[n];
break;
}
}
if (t < f) return -1;
if (f < t) return 1;
return 0;
};
Buffer.isEncoding = function isEncoding(e) {
switch(String(e).toLowerCase()){
case "hex":
case "utf8":
case "utf-8":
case "ascii":
case "latin1":
case "binary":
case "base64":
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return true;
default:
return false;
}
};
Buffer.concat = function concat(e, r) {
if (!Array.isArray(e)) {
throw new TypeError('"list" argument must be an Array of Buffers');
}
if (e.length === 0) {
return Buffer.alloc(0);
}
var t;
if (r === undefined) {
r = 0;
for(t = 0; t < e.length; ++t){
r += e[t].length;
}
}
var f = Buffer.allocUnsafe(r);
var n = 0;
for(t = 0; t < e.length; ++t){
var i = e[t];
if (isInstance(i, Uint8Array)) {
i = Buffer.from(i);
}
if (!Buffer.isBuffer(i)) {
throw new TypeError('"list" argument must be an Array of Buffers');
}
i.copy(f, n);
n += i.length;
}
return f;
};
function byteLength(e, r) {
if (Buffer.isBuffer(e)) {
return e.length;
}
if (ArrayBuffer.isView(e) || isInstance(e, ArrayBuffer)) {
return e.byteLength;
}
if (typeof e !== "string") {
throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + "Received type " + typeof e);
}
var t = e.length;
var f = arguments.length > 2 && arguments[2] === true;
if (!f && t === 0) return 0;
var n = false;
for(;;){
switch(r){
case "ascii":
case "latin1":
case "binary":
return t;
case "utf8":
case "utf-8":
return utf8ToBytes(e).length;
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return t * 2;
case "hex":
return t >>> 1;
case "base64":
return base64ToBytes(e).length;
default:
if (n) {
return f ? -1 : utf8ToBytes(e).length;
}
r = ("" + r).toLowerCase();
n = true;
}
}
}
Buffer.byteLength = byteLength;
function slowToString(e, r, t) {
var f = false;
if (r === undefined || r < 0) {
r = 0;
}
if (r > this.length) {
return "";
}
if (t === undefined || t > this.length) {
t = this.length;
}
if (t <= 0) {
return "";
}
t >>>= 0;
r >>>= 0;
if (t <= r) {
return "";
}
if (!e) e = "utf8";
while(true){
switch(e){
case "hex":
return hexSlice(this, r, t);
case "utf8":
case "utf-8":
return utf8Slice(this, r, t);
case "ascii":
return asciiSlice(this, r, t);
case "latin1":
case "binary":
return latin1Slice(this, r, t);
case "base64":
return base64Slice(this, r, t);
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return utf16leSlice(this, r, t);
default:
if (f) throw new TypeError("Unknown encoding: " + e);
e = (e + "").toLowerCase();
f = true;
}
}
}
Buffer.prototype._isBuffer = true;
function swap(e, r, t) {
var f = e[r];
e[r] = e[t];
e[t] = f;
}
Buffer.prototype.swap16 = function swap16() {
var e = this.length;
if (e % 2 !== 0) {
throw new RangeError("Buffer size must be a multiple of 16-bits");
}
for(var r = 0; r < e; r += 2){
swap(this, r, r + 1);
}
return this;
};
Buffer.prototype.swap32 = function swap32() {
var e = this.length;
if (e % 4 !== 0) {
throw new RangeError("Buffer size must be a multiple of 32-bits");
}
for(var r = 0; r < e; r += 4){
swap(this, r, r + 3);
swap(this, r + 1, r + 2);
}
return this;
};
Buffer.prototype.swap64 = function swap64() {
var e = this.length;
if (e % 8 !== 0) {
throw new RangeError("Buffer size must be a multiple of 64-bits");
}
for(var r = 0; r < e; r += 8){
swap(this, r, r + 7);
swap(this, r + 1, r + 6);
swap(this, r + 2, r + 5);
swap(this, r + 3, r + 4);
}
return this;
};
Buffer.prototype.toString = function toString() {
var e = this.length;
if (e === 0) return "";
if (arguments.length === 0) return utf8Slice(this, 0, e);
return slowToString.apply(this, arguments);
};
Buffer.prototype.toLocaleString = Buffer.prototype.toString;
Buffer.prototype.equals = function equals(e) {
if (!Buffer.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
if (this === e) return true;
return Buffer.compare(this, e) === 0;
};
Buffer.prototype.inspect = function inspect() {
var e = "";
var t = r.INSPECT_MAX_BYTES;
e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim();
if (this.length > t) e += " ... ";
return "";
};
if (i) {
Buffer.prototype[i] = Buffer.prototype.inspect;
}
Buffer.prototype.compare = function compare(e, r, t, f, n) {
if (isInstance(e, Uint8Array)) {
e = Buffer.from(e, e.offset, e.byteLength);
}
if (!Buffer.isBuffer(e)) {
throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. ' + "Received type " + typeof e);
}
if (r === undefined) {
r = 0;
}
if (t === undefined) {
t = e ? e.length : 0;
}
if (f === undefined) {
f = 0;
}
if (n === undefined) {
n = this.length;
}
if (r < 0 || t > e.length || f < 0 || n > this.length) {
throw new RangeError("out of range index");
}
if (f >= n && r >= t) {
return 0;
}
if (f >= n) {
return -1;
}
if (r >= t) {
return 1;
}
r >>>= 0;
t >>>= 0;
f >>>= 0;
n >>>= 0;
if (this === e) return 0;
var i = n - f;
var o = t - r;
var u = Math.min(i, o);
var a = this.slice(f, n);
var s = e.slice(r, t);
for(var h = 0; h < u; ++h){
if (a[h] !== s[h]) {
i = a[h];
o = s[h];
break;
}
}
if (i < o) return -1;
if (o < i) return 1;
return 0;
};
function bidirectionalIndexOf(e, r, t, f, n) {
if (e.length === 0) return -1;
if (typeof t === "string") {
f = t;
t = 0;
} else if (t > 2147483647) {
t = 2147483647;
} else if (t < -2147483648) {
t = -2147483648;
}
t = +t;
if (numberIsNaN(t)) {
t = n ? 0 : e.length - 1;
}
if (t < 0) t = e.length + t;
if (t >= e.length) {
if (n) return -1;
else t = e.length - 1;
} else if (t < 0) {
if (n) t = 0;
else return -1;
}
if (typeof r === "string") {
r = Buffer.from(r, f);
}
if (Buffer.isBuffer(r)) {
if (r.length === 0) {
return -1;
}
return arrayIndexOf(e, r, t, f, n);
} else if (typeof r === "number") {
r = r & 255;
if (typeof Uint8Array.prototype.indexOf === "function") {
if (n) {
return Uint8Array.prototype.indexOf.call(e, r, t);
} else {
return Uint8Array.prototype.lastIndexOf.call(e, r, t);
}
}
return arrayIndexOf(e, [
r
], t, f, n);
}
throw new TypeError("val must be string, number or Buffer");
}
function arrayIndexOf(e, r, t, f, n) {
var i = 1;
var o = e.length;
var u = r.length;
if (f !== undefined) {
f = String(f).toLowerCase();
if (f === "ucs2" || f === "ucs-2" || f === "utf16le" || f === "utf-16le") {
if (e.length < 2 || r.length < 2) {
return -1;
}
i = 2;
o /= 2;
u /= 2;
t /= 2;
}
}
function read(e, r) {
if (i === 1) {
return e[r];
} else {
return e.readUInt16BE(r * i);
}
}
var a;
if (n) {
var s = -1;
for(a = t; a < o; a++){
if (read(e, a) === read(r, s === -1 ? 0 : a - s)) {
if (s === -1) s = a;
if (a - s + 1 === u) return s * i;
} else {
if (s !== -1) a -= a - s;
s = -1;
}
}
} else {
if (t + u > o) t = o - u;
for(a = t; a >= 0; a--){
var h = true;
for(var c = 0; c < u; c++){
if (read(e, a + c) !== read(r, c)) {
h = false;
break;
}
}
if (h) return a;
}
}
return -1;
}
Buffer.prototype.includes = function includes(e, r, t) {
return this.indexOf(e, r, t) !== -1;
};
Buffer.prototype.indexOf = function indexOf(e, r, t) {
return bidirectionalIndexOf(this, e, r, t, true);
};
Buffer.prototype.lastIndexOf = function lastIndexOf(e, r, t) {
return bidirectionalIndexOf(this, e, r, t, false);
};
function hexWrite(e, r, t, f) {
t = Number(t) || 0;
var n = e.length - t;
if (!f) {
f = n;
} else {
f = Number(f);
if (f > n) {
f = n;
}
}
var i = r.length;
if (f > i / 2) {
f = i / 2;
}
for(var o = 0; o < f; ++o){
var u = parseInt(r.substr(o * 2, 2), 16);
if (numberIsNaN(u)) return o;
e[t + o] = u;
}
return o;
}
function utf8Write(e, r, t, f) {
return blitBuffer(utf8ToBytes(r, e.length - t), e, t, f);
}
function asciiWrite(e, r, t, f) {
return blitBuffer(asciiToBytes(r), e, t, f);
}
function latin1Write(e, r, t, f) {
return asciiWrite(e, r, t, f);
}
function base64Write(e, r, t, f) {
return blitBuffer(base64ToBytes(r), e, t, f);
}
function ucs2Write(e, r, t, f) {
return blitBuffer(utf16leToBytes(r, e.length - t), e, t, f);
}
Buffer.prototype.write = function write(e, r, t, f) {
if (r === undefined) {
f = "utf8";
t = this.length;
r = 0;
} else if (t === undefined && typeof r === "string") {
f = r;
t = this.length;
r = 0;
} else if (isFinite(r)) {
r = r >>> 0;
if (isFinite(t)) {
t = t >>> 0;
if (f === undefined) f = "utf8";
} else {
f = t;
t = undefined;
}
} else {
throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
}
var n = this.length - r;
if (t === undefined || t > n) t = n;
if (e.length > 0 && (t < 0 || r < 0) || r > this.length) {
throw new RangeError("Attempt to write outside buffer bounds");
}
if (!f) f = "utf8";
var i = false;
for(;;){
switch(f){
case "hex":
return hexWrite(this, e, r, t);
case "utf8":
case "utf-8":
return utf8Write(this, e, r, t);
case "ascii":
return asciiWrite(this, e, r, t);
case "latin1":
case "binary":
return latin1Write(this, e, r, t);
case "base64":
return base64Write(this, e, r, t);
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return ucs2Write(this, e, r, t);
default:
if (i) throw new TypeError("Unknown encoding: " + f);
f = ("" + f).toLowerCase();
i = true;
}
}
};
Buffer.prototype.toJSON = function toJSON() {
return {
type: "Buffer",
data: Array.prototype.slice.call(this._arr || this, 0)
};
};
function base64Slice(e, r, t) {
if (r === 0 && t === e.length) {
return f.fromByteArray(e);
} else {
return f.fromByteArray(e.slice(r, t));
}
}
function utf8Slice(e, r, t) {
t = Math.min(e.length, t);
var f = [];
var n = r;
while(n < t){
var i = e[n];
var o = null;
var u = i > 239 ? 4 : i > 223 ? 3 : i > 191 ? 2 : 1;
if (n + u <= t) {
var a, s, h, c;
switch(u){
case 1:
if (i < 128) {
o = i;
}
break;
case 2:
a = e[n + 1];
if ((a & 192) === 128) {
c = (i & 31) << 6 | a & 63;
if (c > 127) {
o = c;
}
}
break;
case 3:
a = e[n + 1];
s = e[n + 2];
if ((a & 192) === 128 && (s & 192) === 128) {
c = (i & 15) << 12 | (a & 63) << 6 | s & 63;
if (c > 2047 && (c < 55296 || c > 57343)) {
o = c;
}
}
break;
case 4:
a = e[n + 1];
s = e[n + 2];
h = e[n + 3];
if ((a & 192) === 128 && (s & 192) === 128 && (h & 192) === 128) {
c = (i & 15) << 18 | (a & 63) << 12 | (s & 63) << 6 | h & 63;
if (c > 65535 && c < 1114112) {
o = c;
}
}
}
}
if (o === null) {
o = 65533;
u = 1;
} else if (o > 65535) {
o -= 65536;
f.push(o >>> 10 & 1023 | 55296);
o = 56320 | o & 1023;
}
f.push(o);
n += u;
}
return decodeCodePointsArray(f);
}
var u = 4096;
function decodeCodePointsArray(e) {
var r = e.length;
if (r <= u) {
return String.fromCharCode.apply(String, e);
}
var t = "";
var f = 0;
while(f < r){
t += String.fromCharCode.apply(String, e.slice(f, f += u));
}
return t;
}
function asciiSlice(e, r, t) {
var f = "";
t = Math.min(e.length, t);
for(var n = r; n < t; ++n){
f += String.fromCharCode(e[n] & 127);
}
return f;
}
function latin1Slice(e, r, t) {
var f = "";
t = Math.min(e.length, t);
for(var n = r; n < t; ++n){
f += String.fromCharCode(e[n]);
}
return f;
}
function hexSlice(e, r, t) {
var f = e.length;
if (!r || r < 0) r = 0;
if (!t || t < 0 || t > f) t = f;
var n = "";
for(var i = r; i < t; ++i){
n += s[e[i]];
}
return n;
}
function utf16leSlice(e, r, t) {
var f = e.slice(r, t);
var n = "";
for(var i = 0; i < f.length; i += 2){
n += String.fromCharCode(f[i] + f[i + 1] * 256);
}
return n;
}
Buffer.prototype.slice = function slice(e, r) {
var t = this.length;
e = ~~e;
r = r === undefined ? t : ~~r;
if (e < 0) {
e += t;
if (e < 0) e = 0;
} else if (e > t) {
e = t;
}
if (r < 0) {
r += t;
if (r < 0) r = 0;
} else if (r > t) {
r = t;
}
if (r < e) r = e;
var f = this.subarray(e, r);
Object.setPrototypeOf(f, Buffer.prototype);
return f;
};
function checkOffset(e, r, t) {
if (e % 1 !== 0 || e < 0) throw new RangeError("offset is not uint");
if (e + r > t) throw new RangeError("Trying to access beyond buffer length");
}
Buffer.prototype.readUIntLE = function readUIntLE(e, r, t) {
e = e >>> 0;
r = r >>> 0;
if (!t) checkOffset(e, r, this.length);
var f = this[e];
var n = 1;
var i = 0;
while(++i < r && (n *= 256)){
f += this[e + i] * n;
}
return f;
};
Buffer.prototype.readUIntBE = function readUIntBE(e, r, t) {
e = e >>> 0;
r = r >>> 0;
if (!t) {
checkOffset(e, r, this.length);
}
var f = this[e + --r];
var n = 1;
while(r > 0 && (n *= 256)){
f += this[e + --r] * n;
}
return f;
};
Buffer.prototype.readUInt8 = function readUInt8(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 1, this.length);
return this[e];
};
Buffer.prototype.readUInt16LE = function readUInt16LE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 2, this.length);
return this[e] | this[e + 1] << 8;
};
Buffer.prototype.readUInt16BE = function readUInt16BE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 2, this.length);
return this[e] << 8 | this[e + 1];
};
Buffer.prototype.readUInt32LE = function readUInt32LE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 4, this.length);
return (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
};
Buffer.prototype.readUInt32BE = function readUInt32BE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 4, this.length);
return this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
};
Buffer.prototype.readIntLE = function readIntLE(e, r, t) {
e = e >>> 0;
r = r >>> 0;
if (!t) checkOffset(e, r, this.length);
var f = this[e];
var n = 1;
var i = 0;
while(++i < r && (n *= 256)){
f += this[e + i] * n;
}
n *= 128;
if (f >= n) f -= Math.pow(2, 8 * r);
return f;
};
Buffer.prototype.readIntBE = function readIntBE(e, r, t) {
e = e >>> 0;
r = r >>> 0;
if (!t) checkOffset(e, r, this.length);
var f = r;
var n = 1;
var i = this[e + --f];
while(f > 0 && (n *= 256)){
i += this[e + --f] * n;
}
n *= 128;
if (i >= n) i -= Math.pow(2, 8 * r);
return i;
};
Buffer.prototype.readInt8 = function readInt8(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 1, this.length);
if (!(this[e] & 128)) return this[e];
return (255 - this[e] + 1) * -1;
};
Buffer.prototype.readInt16LE = function readInt16LE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 2, this.length);
var t = this[e] | this[e + 1] << 8;
return t & 32768 ? t | 4294901760 : t;
};
Buffer.prototype.readInt16BE = function readInt16BE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 2, this.length);
var t = this[e + 1] | this[e] << 8;
return t & 32768 ? t | 4294901760 : t;
};
Buffer.prototype.readInt32LE = function readInt32LE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 4, this.length);
return this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
};
Buffer.prototype.readInt32BE = function readInt32BE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 4, this.length);
return this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
};
Buffer.prototype.readFloatLE = function readFloatLE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 4, this.length);
return n.read(this, e, true, 23, 4);
};
Buffer.prototype.readFloatBE = function readFloatBE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 4, this.length);
return n.read(this, e, false, 23, 4);
};
Buffer.prototype.readDoubleLE = function readDoubleLE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 8, this.length);
return n.read(this, e, true, 52, 8);
};
Buffer.prototype.readDoubleBE = function readDoubleBE(e, r) {
e = e >>> 0;
if (!r) checkOffset(e, 8, this.length);
return n.read(this, e, false, 52, 8);
};
function checkInt(e, r, t, f, n, i) {
if (!Buffer.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
if (r > n || r < i) throw new RangeError('"value" argument is out of bounds');
if (t + f > e.length) throw new RangeError("Index out of range");
}
Buffer.prototype.writeUIntLE = function writeUIntLE(e, r, t, f) {
e = +e;
r = r >>> 0;
t = t >>> 0;
if (!f) {
var n = Math.pow(2, 8 * t) - 1;
checkInt(this, e, r, t, n, 0);
}
var i = 1;
var o = 0;
this[r] = e & 255;
while(++o < t && (i *= 256)){
this[r + o] = e / i & 255;
}
return r + t;
};
Buffer.prototype.writeUIntBE = function writeUIntBE(e, r, t, f) {
e = +e;
r = r >>> 0;
t = t >>> 0;
if (!f) {
var n = Math.pow(2, 8 * t) - 1;
checkInt(this, e, r, t, n, 0);
}
var i = t - 1;
var o = 1;
this[r + i] = e & 255;
while(--i >= 0 && (o *= 256)){
this[r + i] = e / o & 255;
}
return r + t;
};
Buffer.prototype.writeUInt8 = function writeUInt8(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 1, 255, 0);
this[r] = e & 255;
return r + 1;
};
Buffer.prototype.writeUInt16LE = function writeUInt16LE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 2, 65535, 0);
this[r] = e & 255;
this[r + 1] = e >>> 8;
return r + 2;
};
Buffer.prototype.writeUInt16BE = function writeUInt16BE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 2, 65535, 0);
this[r] = e >>> 8;
this[r + 1] = e & 255;
return r + 2;
};
Buffer.prototype.writeUInt32LE = function writeUInt32LE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 4, 4294967295, 0);
this[r + 3] = e >>> 24;
this[r + 2] = e >>> 16;
this[r + 1] = e >>> 8;
this[r] = e & 255;
return r + 4;
};
Buffer.prototype.writeUInt32BE = function writeUInt32BE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 4, 4294967295, 0);
this[r] = e >>> 24;
this[r + 1] = e >>> 16;
this[r + 2] = e >>> 8;
this[r + 3] = e & 255;
return r + 4;
};
Buffer.prototype.writeIntLE = function writeIntLE(e, r, t, f) {
e = +e;
r = r >>> 0;
if (!f) {
var n = Math.pow(2, 8 * t - 1);
checkInt(this, e, r, t, n - 1, -n);
}
var i = 0;
var o = 1;
var u = 0;
this[r] = e & 255;
while(++i < t && (o *= 256)){
if (e < 0 && u === 0 && this[r + i - 1] !== 0) {
u = 1;
}
this[r + i] = (e / o >> 0) - u & 255;
}
return r + t;
};
Buffer.prototype.writeIntBE = function writeIntBE(e, r, t, f) {
e = +e;
r = r >>> 0;
if (!f) {
var n = Math.pow(2, 8 * t - 1);
checkInt(this, e, r, t, n - 1, -n);
}
var i = t - 1;
var o = 1;
var u = 0;
this[r + i] = e & 255;
while(--i >= 0 && (o *= 256)){
if (e < 0 && u === 0 && this[r + i + 1] !== 0) {
u = 1;
}
this[r + i] = (e / o >> 0) - u & 255;
}
return r + t;
};
Buffer.prototype.writeInt8 = function writeInt8(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 1, 127, -128);
if (e < 0) e = 255 + e + 1;
this[r] = e & 255;
return r + 1;
};
Buffer.prototype.writeInt16LE = function writeInt16LE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 2, 32767, -32768);
this[r] = e & 255;
this[r + 1] = e >>> 8;
return r + 2;
};
Buffer.prototype.writeInt16BE = function writeInt16BE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 2, 32767, -32768);
this[r] = e >>> 8;
this[r + 1] = e & 255;
return r + 2;
};
Buffer.prototype.writeInt32LE = function writeInt32LE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 4, 2147483647, -2147483648);
this[r] = e & 255;
this[r + 1] = e >>> 8;
this[r + 2] = e >>> 16;
this[r + 3] = e >>> 24;
return r + 4;
};
Buffer.prototype.writeInt32BE = function writeInt32BE(e, r, t) {
e = +e;
r = r >>> 0;
if (!t) checkInt(this, e, r, 4, 2147483647, -2147483648);
if (e < 0) e = 4294967295 + e + 1;
this[r] = e >>> 24;
this[r + 1] = e >>> 16;
this[r + 2] = e >>> 8;
this[r + 3] = e & 255;
return r + 4;
};
function checkIEEE754(e, r, t, f, n, i) {
if (t + f > e.length) throw new RangeError("Index out of range");
if (t < 0) throw new RangeError("Index out of range");
}
function writeFloat(e, r, t, f, i) {
r = +r;
t = t >>> 0;
if (!i) {
checkIEEE754(e, r, t, 4, 34028234663852886e22, -34028234663852886e22);
}
n.write(e, r, t, f, 23, 4);
return t + 4;
}
Buffer.prototype.writeFloatLE = function writeFloatLE(e, r, t) {
return writeFloat(this, e, r, true, t);
};
Buffer.prototype.writeFloatBE = function writeFloatBE(e, r, t) {
return writeFloat(this, e, r, false, t);
};
function writeDouble(e, r, t, f, i) {
r = +r;
t = t >>> 0;
if (!i) {
checkIEEE754(e, r, t, 8, 17976931348623157e292, -17976931348623157e292);
}
n.write(e, r, t, f, 52, 8);
return t + 8;
}
Buffer.prototype.writeDoubleLE = function writeDoubleLE(e, r, t) {
return writeDouble(this, e, r, true, t);
};
Buffer.prototype.writeDoubleBE = function writeDoubleBE(e, r, t) {
return writeDouble(this, e, r, false, t);
};
Buffer.prototype.copy = function copy(e, r, t, f) {
if (!Buffer.isBuffer(e)) throw new TypeError("argument should be a Buffer");
if (!t) t = 0;
if (!f && f !== 0) f = this.length;
if (r >= e.length) r = e.length;
if (!r) r = 0;
if (f > 0 && f < t) f = t;
if (f === t) return 0;
if (e.length === 0 || this.length === 0) return 0;
if (r < 0) {
throw new RangeError("targetStart out of bounds");
}
if (t < 0 || t >= this.length) throw new RangeError("Index out of range");
if (f < 0) throw new RangeError("sourceEnd out of bounds");
if (f > this.length) f = this.length;
if (e.length - r < f - t) {
f = e.length - r + t;
}
var n = f - t;
if (this === e && typeof Uint8Array.prototype.copyWithin === "function") {
this.copyWithin(r, t, f);
} else if (this === e && t < r && r < f) {
for(var i = n - 1; i >= 0; --i){
e[i + r] = this[i + t];
}
} else {
Uint8Array.prototype.set.call(e, this.subarray(t, f), r);
}
return n;
};
Buffer.prototype.fill = function fill(e, r, t, f) {
if (typeof e === "string") {
if (typeof r === "string") {
f = r;
r = 0;
t = this.length;
} else if (typeof t === "string") {
f = t;
t = this.length;
}
if (f !== undefined && typeof f !== "string") {
throw new TypeError("encoding must be a string");
}
if (typeof f === "string" && !Buffer.isEncoding(f)) {
throw new TypeError("Unknown encoding: " + f);
}
if (e.length === 1) {
var n = e.charCodeAt(0);
if (f === "utf8" && n < 128 || f === "latin1") {
e = n;
}
}
} else if (typeof e === "number") {
e = e & 255;
} else if (typeof e === "boolean") {
e = Number(e);
}
if (r < 0 || this.length < r || this.length < t) {
throw new RangeError("Out of range index");
}
if (t <= r) {
return this;
}
r = r >>> 0;
t = t === undefined ? this.length : t >>> 0;
if (!e) e = 0;
var i;
if (typeof e === "number") {
for(i = r; i < t; ++i){
this[i] = e;
}
} else {
var o = Buffer.isBuffer(e) ? e : Buffer.from(e, f);
var u = o.length;
if (u === 0) {
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
}
for(i = 0; i < t - r; ++i){
this[i + r] = o[i % u];
}
}
return this;
};
var a = /[^+/0-9A-Za-z-_]/g;
function base64clean(e) {
e = e.split("=")[0];
e = e.trim().replace(a, "");
if (e.length < 2) return "";
while(e.length % 4 !== 0){
e = e + "=";
}
return e;
}
function utf8ToBytes(e, r) {
r = r || Infinity;
var t;
var f = e.length;
var n = null;
var i = [];
for(var o = 0; o < f; ++o){
t = e.charCodeAt(o);
if (t > 55295 && t < 57344) {
if (!n) {
if (t > 56319) {
if ((r -= 3) > -1) i.push(239, 191, 189);
continue;
} else if (o + 1 === f) {
if ((r -= 3) > -1) i.push(239, 191, 189);
continue;
}
n = t;
continue;
}
if (t < 56320) {
if ((r -= 3) > -1) i.push(239, 191, 189);
n = t;
continue;
}
t = (n - 55296 << 10 | t - 56320) + 65536;
} else if (n) {
if ((r -= 3) > -1) i.push(239, 191, 189);
}
n = null;
if (t < 128) {
if ((r -= 1) < 0) break;
i.push(t);
} else if (t < 2048) {
if ((r -= 2) < 0) break;
i.push(t >> 6 | 192, t & 63 | 128);
} else if (t < 65536) {
if ((r -= 3) < 0) break;
i.push(t >> 12 | 224, t >> 6 & 63 | 128, t & 63 | 128);
} else if (t < 1114112) {
if ((r -= 4) < 0) break;
i.push(t >> 18 | 240, t >> 12 & 63 | 128, t >> 6 & 63 | 128, t & 63 | 128);
} else {
throw new Error("Invalid code point");
}
}
return i;
}
function asciiToBytes(e) {
var r = [];
for(var t = 0; t < e.length; ++t){
r.push(e.charCodeAt(t) & 255);
}
return r;
}
function utf16leToBytes(e, r) {
var t, f, n;
var i = [];
for(var o = 0; o < e.length; ++o){
if ((r -= 2) < 0) break;
t = e.charCodeAt(o);
f = t >> 8;
n = t % 256;
i.push(n);
i.push(f);
}
return i;
}
function base64ToBytes(e) {
return f.toByteArray(base64clean(e));
}
function blitBuffer(e, r, t, f) {
for(var n = 0; n < f; ++n){
if (n + t >= r.length || n >= e.length) break;
r[n + t] = e[n];
}
return n;
}
function isInstance(e, r) {
return e instanceof r || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === r.name;
}
function numberIsNaN(e) {
return e !== e;
}
var s = function() {
var e = "0123456789abcdef";
var r = new Array(256);
for(var t = 0; t < 16; ++t){
var f = t * 16;
for(var n = 0; n < 16; ++n){
r[f + n] = e[t] + e[n];
}
}
return r;
}();
},
321: function(e, r) {
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ r.read = function(e, r, t, f, n) {
var i, o;
var u = n * 8 - f - 1;
var a = (1 << u) - 1;
var s = a >> 1;
var h = -7;
var c = t ? n - 1 : 0;
var l = t ? -1 : 1;
var p = e[r + c];
c += l;
i = p & (1 << -h) - 1;
p >>= -h;
h += u;
for(; h > 0; i = i * 256 + e[r + c], c += l, h -= 8){}
o = i & (1 << -h) - 1;
i >>= -h;
h += f;
for(; h > 0; o = o * 256 + e[r + c], c += l, h -= 8){}
if (i === 0) {
i = 1 - s;
} else if (i === a) {
return o ? NaN : (p ? -1 : 1) * Infinity;
} else {
o = o + Math.pow(2, f);
i = i - s;
}
return (p ? -1 : 1) * o * Math.pow(2, i - f);
};
r.write = function(e, r, t, f, n, i) {
var o, u, a;
var s = i * 8 - n - 1;
var h = (1 << s) - 1;
var c = h >> 1;
var l = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
var p = f ? 0 : i - 1;
var y = f ? 1 : -1;
var g = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
r = Math.abs(r);
if (isNaN(r) || r === Infinity) {
u = isNaN(r) ? 1 : 0;
o = h;
} else {
o = Math.floor(Math.log(r) / Math.LN2);
if (r * (a = Math.pow(2, -o)) < 1) {
o--;
a *= 2;
}
if (o + c >= 1) {
r += l / a;
} else {
r += l * Math.pow(2, 1 - c);
}
if (r * a >= 2) {
o++;
a /= 2;
}
if (o + c >= h) {
u = 0;
o = h;
} else if (o + c >= 1) {
u = (r * a - 1) * Math.pow(2, n);
o = o + c;
} else {
u = r * Math.pow(2, c - 1) * Math.pow(2, n);
o = 0;
}
}
for(; n >= 8; e[t + p] = u & 255, p += y, u /= 256, n -= 8){}
o = o << n | u;
s += n;
for(; s > 0; e[t + p] = o & 255, p += y, o /= 256, s -= 8){}
e[t + p - y] |= g * 128;
};
}
};
var r = {};
function __nccwpck_require__(t) {
var f = r[t];
if (f !== undefined) {
return f.exports;
}
var n = r[t] = {
exports: {}
};
var i = true;
try {
e[t](n, n.exports, __nccwpck_require__);
i = false;
} finally{
if (i) delete r[t];
}
return n.exports;
}
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = ("TURBOPACK compile-time value", "/ROOT/node_modules/next/dist/compiled/buffer") + "/";
var t = __nccwpck_require__(230);
module.exports = t;
})();
}),
"[project]/node_modules/next/dist/compiled/native-url/index.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
(function() {
var e = {
221: function(e) {
"use strict";
e.exports = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/querystring-es3/index.js [app-client] (ecmascript)");
}
};
var t = {};
function __nccwpck_require__(o) {
var a = t[o];
if (a !== undefined) {
return a.exports;
}
var s = t[o] = {
exports: {}
};
var n = true;
try {
e[o](s, s.exports, __nccwpck_require__);
n = false;
} finally{
if (n) delete t[o];
}
return s.exports;
}
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = ("TURBOPACK compile-time value", "/ROOT/node_modules/next/dist/compiled/native-url") + "/";
var o = {};
!function() {
var e = o;
var t, a = (t = __nccwpck_require__(221)) && "object" == typeof t && "default" in t ? t.default : t, s = /https?|ftp|gopher|file/;
function r(e) {
"string" == typeof e && (e = d(e));
var t = function(e, t, o) {
var a = e.auth, s = e.hostname, n = e.protocol || "", p = e.pathname || "", c = e.hash || "", i = e.query || "", u = !1;
a = a ? encodeURIComponent(a).replace(/%3A/i, ":") + "@" : "", e.host ? u = a + e.host : s && (u = a + (~s.indexOf(":") ? "[" + s + "]" : s), e.port && (u += ":" + e.port)), i && "object" == typeof i && (i = t.encode(i));
var f = e.search || i && "?" + i || "";
return n && ":" !== n.substr(-1) && (n += ":"), e.slashes || (!n || o.test(n)) && !1 !== u ? (u = "//" + (u || ""), p && "/" !== p[0] && (p = "/" + p)) : u || (u = ""), c && "#" !== c[0] && (c = "#" + c), f && "?" !== f[0] && (f = "?" + f), {
protocol: n,
host: u,
pathname: p = p.replace(/[?#]/g, encodeURIComponent),
search: f = f.replace("#", "%23"),
hash: c
};
}(e, a, s);
return "" + t.protocol + t.host + t.pathname + t.search + t.hash;
}
var n = "http://", p = "w.w", c = n + p, i = /^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i, u = /https?|ftp|gopher|file/;
function h(e, t) {
var o = "string" == typeof e ? d(e) : e;
e = "object" == typeof e ? r(e) : e;
var a = d(t), s = "";
o.protocol && !o.slashes && (s = o.protocol, e = e.replace(o.protocol, ""), s += "/" === t[0] || "/" === e[0] ? "/" : ""), s && a.protocol && (s = "", a.slashes || (s = a.protocol, t = t.replace(a.protocol, "")));
var p = e.match(i);
p && !a.protocol && (e = e.substr((s = p[1] + (p[2] || "")).length), /^\/\/[^/]/.test(t) && (s = s.slice(0, -1)));
var f = new URL(e, c + "/"), m = new URL(t, f).toString().replace(c, ""), v = a.protocol || o.protocol;
return v += o.slashes || a.slashes ? "//" : "", !s && v ? m = m.replace(n, v) : s && (m = m.replace(n, "")), u.test(m) || ~t.indexOf(".") || "/" === e.slice(-1) || "/" === t.slice(-1) || "/" !== m.slice(-1) || (m = m.slice(0, -1)), s && (m = s + ("/" === m[0] ? m.substr(1) : m)), m;
}
function l() {}
l.prototype.parse = d, l.prototype.format = r, l.prototype.resolve = h, l.prototype.resolveObject = h;
var f = /^https?|ftp|gopher|file/, m = /^(.*?)([#?].*)/, v = /^([a-z0-9.+-]*:)(\/{0,3})(.*)/i, _ = /^([a-z0-9.+-]*:)?\/\/\/*/i, b = /^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;
function d(e, t, o) {
if (void 0 === t && (t = !1), void 0 === o && (o = !1), e && "object" == typeof e && e instanceof l) return e;
var s = (e = e.trim()).match(m);
e = s ? s[1].replace(/\\/g, "/") + s[2] : e.replace(/\\/g, "/"), b.test(e) && "/" !== e.slice(-1) && (e += "/");
var n = !/(^javascript)/.test(e) && e.match(v), i = _.test(e), u = "";
n && (f.test(n[1]) || (u = n[1].toLowerCase(), e = "" + n[2] + n[3]), n[2] || (i = !1, f.test(n[1]) ? (u = n[1], e = "" + n[3]) : e = "//" + n[3]), 3 !== n[2].length && 1 !== n[2].length || (u = n[1], e = "/" + n[3]));
var g, y = (s ? s[1] : e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/), w = y && y[1], x = new l, C = "", U = "";
try {
g = new URL(e);
} catch (t) {
C = t, u || o || !/^\/\//.test(e) || /^\/\/.+[@.]/.test(e) || (U = "/", e = e.substr(1));
try {
g = new URL(e, c);
} catch (e) {
return x.protocol = u, x.href = u, x;
}
}
x.slashes = i && !U, x.host = g.host === p ? "" : g.host, x.hostname = g.hostname === p ? "" : g.hostname.replace(/(\[|\])/g, ""), x.protocol = C ? u || null : g.protocol, x.search = g.search.replace(/\\/g, "%5C"), x.hash = g.hash.replace(/\\/g, "%5C");
var j = e.split("#");
!x.search && ~j[0].indexOf("?") && (x.search = "?"), x.hash || "" !== j[1] || (x.hash = "#"), x.query = t ? a.decode(g.search.substr(1)) : x.search.substr(1), x.pathname = U + (n ? function(e) {
return e.replace(/['^|`]/g, function(e) {
return "%" + e.charCodeAt().toString(16).toUpperCase();
}).replace(/((?:%[0-9A-F]{2})+)/g, function(e, t) {
try {
return decodeURIComponent(t).split("").map(function(e) {
var t = e.charCodeAt();
return t > 256 || /^[a-z0-9]$/i.test(e) ? e : "%" + t.toString(16).toUpperCase();
}).join("");
} catch (e) {
return t;
}
});
}(g.pathname) : g.pathname), "about:" === x.protocol && "blank" === x.pathname && (x.protocol = "", x.pathname = ""), C && "/" !== e[0] && (x.pathname = x.pathname.substr(1)), u && !f.test(u) && "/" !== e.slice(-1) && "/" === x.pathname && (x.pathname = ""), x.path = x.pathname + x.search, x.auth = [
g.username,
g.password
].map(decodeURIComponent).filter(Boolean).join(":"), x.port = g.port, w && !x.host.endsWith(w) && (x.host += w, x.port = w.slice(1)), x.href = U ? "" + x.pathname + x.search + x.hash : r(x);
var q = /^(file)/.test(x.href) ? [
"host",
"hostname"
] : [];
return Object.keys(x).forEach(function(e) {
~q.indexOf(e) || (x[e] = x[e] || null);
}), x;
}
e.parse = d, e.format = r, e.resolve = h, e.resolveObject = function(e, t) {
return d(h(e, t));
}, e.Url = l;
}();
module.exports = o;
})();
}),
"[project]/node_modules/next/dist/compiled/querystring-es3/index.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
(function() {
"use strict";
var e = {
922: function(e) {
function hasOwnProperty(e, r) {
return Object.prototype.hasOwnProperty.call(e, r);
}
e.exports = function(e, n, t, o) {
n = n || "&";
t = t || "=";
var a = {};
if (typeof e !== "string" || e.length === 0) {
return a;
}
var i = /\+/g;
e = e.split(n);
var u = 1e3;
if (o && typeof o.maxKeys === "number") {
u = o.maxKeys;
}
var c = e.length;
if (u > 0 && c > u) {
c = u;
}
for(var p = 0; p < c; ++p){
var f = e[p].replace(i, "%20"), s = f.indexOf(t), _, l, y, d;
if (s >= 0) {
_ = f.substr(0, s);
l = f.substr(s + 1);
} else {
_ = f;
l = "";
}
y = decodeURIComponent(_);
d = decodeURIComponent(l);
if (!hasOwnProperty(a, y)) {
a[y] = d;
} else if (r(a[y])) {
a[y].push(d);
} else {
a[y] = [
a[y],
d
];
}
}
return a;
};
var r = Array.isArray || function(e) {
return Object.prototype.toString.call(e) === "[object Array]";
};
},
790: function(e) {
var stringifyPrimitive = function(e) {
switch(typeof e){
case "string":
return e;
case "boolean":
return e ? "true" : "false";
case "number":
return isFinite(e) ? e : "";
default:
return "";
}
};
e.exports = function(e, t, o, a) {
t = t || "&";
o = o || "=";
if (e === null) {
e = undefined;
}
if (typeof e === "object") {
return map(n(e), function(n) {
var a = encodeURIComponent(stringifyPrimitive(n)) + o;
if (r(e[n])) {
return map(e[n], function(e) {
return a + encodeURIComponent(stringifyPrimitive(e));
}).join(t);
} else {
return a + encodeURIComponent(stringifyPrimitive(e[n]));
}
}).join(t);
}
if (!a) return "";
return encodeURIComponent(stringifyPrimitive(a)) + o + encodeURIComponent(stringifyPrimitive(e));
};
var r = Array.isArray || function(e) {
return Object.prototype.toString.call(e) === "[object Array]";
};
function map(e, r) {
if (e.map) return e.map(r);
var n = [];
for(var t = 0; t < e.length; t++){
n.push(r(e[t], t));
}
return n;
}
var n = Object.keys || function(e) {
var r = [];
for(var n in e){
if (Object.prototype.hasOwnProperty.call(e, n)) r.push(n);
}
return r;
};
}
};
var r = {};
function __nccwpck_require__(n) {
var t = r[n];
if (t !== undefined) {
return t.exports;
}
var o = r[n] = {
exports: {}
};
var a = true;
try {
e[n](o, o.exports, __nccwpck_require__);
a = false;
} finally{
if (a) delete r[n];
}
return o.exports;
}
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = ("TURBOPACK compile-time value", "/ROOT/node_modules/next/dist/compiled/querystring-es3") + "/";
var n = {};
!function() {
var e = n;
e.decode = e.parse = __nccwpck_require__(922);
e.encode = e.stringify = __nccwpck_require__(790);
}();
module.exports = n;
})();
}),
"[project]/node_modules/parse-srcset/src/parse-srcset.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
/**
* Srcset Parser
*
* By Alex Bell | MIT License
*
* JS Parser for the string value that appears in markup
*
* @returns Array [{url: _, d: _, w: _, h:_}, ...]
*
* Based super duper closely on the reference algorithm at:
* https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute
*
* Most comments are copied in directly from the spec
* (except for comments in parens).
*/ (function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
((r)=>r !== undefined && __turbopack_context__.v(r))(factory());
} else if (("TURBOPACK compile-time value", "object") === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
// Browser globals (root is window)
root.parseSrcset = factory();
}
})(/*TURBOPACK member replacement*/ __turbopack_context__.e, function() {
// 1. Let input be the value passed to this algorithm.
return function(input) {
// UTILITY FUNCTIONS
// Manual is faster than RegEx
// http://bjorn.tipling.com/state-and-regular-expressions-in-javascript
// http://jsperf.com/whitespace-character/5
function isSpace(c) {
return c === "\u0020" || // space
c === "\u0009" || // horizontal tab
c === "\u000A" || // new line
c === "\u000C" || // form feed
c === "\u000D"; // carriage return
}
function collectCharacters(regEx) {
var chars, match = regEx.exec(input.substring(pos));
if (match) {
chars = match[0];
pos += chars.length;
return chars;
}
}
var inputLength = input.length, // (Don't use \s, to avoid matching non-breaking space)
regexLeadingSpaces = /^[ \t\n\r\u000c]+/, regexLeadingCommasOrSpaces = /^[, \t\n\r\u000c]+/, regexLeadingNotSpaces = /^[^ \t\n\r\u000c]+/, regexTrailingCommas = /[,]+$/, regexNonNegativeInteger = /^\d+$/, // ( Positive or negative or unsigned integers or decimals, without or without exponents.
// Must include at least one digit.
// According to spec tests any decimal point must be followed by a digit.
// No leading plus sign is allowed.)
// https://html.spec.whatwg.org/multipage/infrastructure.html#valid-floating-point-number
regexFloatingPoint = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, url, descriptors, currentDescriptor, state, c, // 2. Let position be a pointer into input, initially pointing at the start
// of the string.
pos = 0, // 3. Let candidates be an initially empty source set.
candidates = [];
// 4. Splitting loop: Collect a sequence of characters that are space
// characters or U+002C COMMA characters. If any U+002C COMMA characters
// were collected, that is a parse error.
while(true){
collectCharacters(regexLeadingCommasOrSpaces);
// 5. If position is past the end of input, return candidates and abort these steps.
if (pos >= inputLength) {
return candidates; // (we're done, this is the sole return path)
}
// 6. Collect a sequence of characters that are not space characters,
// and let that be url.
url = collectCharacters(regexLeadingNotSpaces);
// 7. Let descriptors be a new empty list.
descriptors = [];
// 8. If url ends with a U+002C COMMA character (,), follow these substeps:
// (1). Remove all trailing U+002C COMMA characters from url. If this removed
// more than one character, that is a parse error.
if (url.slice(-1) === ",") {
url = url.replace(regexTrailingCommas, "");
// (Jump ahead to step 9 to skip tokenization and just push the candidate).
parseDescriptors();
// Otherwise, follow these substeps:
} else {
tokenize();
} // (close else of step 8)
// 16. Return to the step labeled splitting loop.
} // (Close of big while loop.)
/**
* Tokenizes descriptor properties prior to parsing
* Returns undefined.
*/ function tokenize() {
// 8.1. Descriptor tokeniser: Skip whitespace
collectCharacters(regexLeadingSpaces);
// 8.2. Let current descriptor be the empty string.
currentDescriptor = "";
// 8.3. Let state be in descriptor.
state = "in descriptor";
while(true){
// 8.4. Let c be the character at position.
c = input.charAt(pos);
// Do the following depending on the value of state.
// For the purpose of this step, "EOF" is a special character representing
// that position is past the end of input.
// In descriptor
if (state === "in descriptor") {
// Do the following, depending on the value of c:
// Space character
// If current descriptor is not empty, append current descriptor to
// descriptors and let current descriptor be the empty string.
// Set state to after descriptor.
if (isSpace(c)) {
if (currentDescriptor) {
descriptors.push(currentDescriptor);
currentDescriptor = "";
state = "after descriptor";
}
// U+002C COMMA (,)
// Advance position to the next character in input. If current descriptor
// is not empty, append current descriptor to descriptors. Jump to the step
// labeled descriptor parser.
} else if (c === ",") {
pos += 1;
if (currentDescriptor) {
descriptors.push(currentDescriptor);
}
parseDescriptors();
return;
// U+0028 LEFT PARENTHESIS (()
// Append c to current descriptor. Set state to in parens.
} else if (c === "\u0028") {
currentDescriptor = currentDescriptor + c;
state = "in parens";
// EOF
// If current descriptor is not empty, append current descriptor to
// descriptors. Jump to the step labeled descriptor parser.
} else if (c === "") {
if (currentDescriptor) {
descriptors.push(currentDescriptor);
}
parseDescriptors();
return;
// Anything else
// Append c to current descriptor.
} else {
currentDescriptor = currentDescriptor + c;
}
// (end "in descriptor"
// In parens
} else if (state === "in parens") {
// U+0029 RIGHT PARENTHESIS ())
// Append c to current descriptor. Set state to in descriptor.
if (c === ")") {
currentDescriptor = currentDescriptor + c;
state = "in descriptor";
// EOF
// Append current descriptor to descriptors. Jump to the step labeled
// descriptor parser.
} else if (c === "") {
descriptors.push(currentDescriptor);
parseDescriptors();
return;
// Anything else
// Append c to current descriptor.
} else {
currentDescriptor = currentDescriptor + c;
}
// After descriptor
} else if (state === "after descriptor") {
// Do the following, depending on the value of c:
// Space character: Stay in this state.
if (isSpace(c)) {
// EOF: Jump to the step labeled descriptor parser.
} else if (c === "") {
parseDescriptors();
return;
// Anything else
// Set state to in descriptor. Set position to the previous character in input.
} else {
state = "in descriptor";
pos -= 1;
}
}
// Advance position to the next character in input.
pos += 1;
// Repeat this step.
} // (close while true loop)
}
/**
* Adds descriptor properties to a candidate, pushes to the candidates array
* @return undefined
*/ // Declared outside of the while loop so that it's only created once.
function parseDescriptors() {
// 9. Descriptor parser: Let error be no.
var pError = false, // 10. Let width be absent.
// 11. Let density be absent.
// 12. Let future-compat-h be absent. (We're implementing it now as h)
w, d, h, i, candidate = {}, desc, lastChar, value, intVal, floatVal;
// 13. For each descriptor in descriptors, run the appropriate set of steps
// from the following list:
for(i = 0; i < descriptors.length; i++){
desc = descriptors[i];
lastChar = desc[desc.length - 1];
value = desc.substring(0, desc.length - 1);
intVal = parseInt(value, 10);
floatVal = parseFloat(value);
// If the descriptor consists of a valid non-negative integer followed by
// a U+0077 LATIN SMALL LETTER W character
if (regexNonNegativeInteger.test(value) && lastChar === "w") {
// If width and density are not both absent, then let error be yes.
if (w || d) {
pError = true;
}
// Apply the rules for parsing non-negative integers to the descriptor.
// If the result is zero, let error be yes.
// Otherwise, let width be the result.
if (intVal === 0) {
pError = true;
} else {
w = intVal;
}
// If the descriptor consists of a valid floating-point number followed by
// a U+0078 LATIN SMALL LETTER X character
} else if (regexFloatingPoint.test(value) && lastChar === "x") {
// If width, density and future-compat-h are not all absent, then let error
// be yes.
if (w || d || h) {
pError = true;
}
// Apply the rules for parsing floating-point number values to the descriptor.
// If the result is less than zero, let error be yes. Otherwise, let density
// be the result.
if (floatVal < 0) {
pError = true;
} else {
d = floatVal;
}
// If the descriptor consists of a valid non-negative integer followed by
// a U+0068 LATIN SMALL LETTER H character
} else if (regexNonNegativeInteger.test(value) && lastChar === "h") {
// If height and density are not both absent, then let error be yes.
if (h || d) {
pError = true;
}
// Apply the rules for parsing non-negative integers to the descriptor.
// If the result is zero, let error be yes. Otherwise, let future-compat-h
// be the result.
if (intVal === 0) {
pError = true;
} else {
h = intVal;
}
// Anything else, Let error be yes.
} else {
pError = true;
}
} // (close step 13 for loop)
// 15. If error is still no, then append a new image source to candidates whose
// URL is url, associated with a width width if not absent and a pixel
// density density if not absent. Otherwise, there is a parse error.
if (!pError) {
candidate.url = url;
if (w) {
candidate.w = w;
}
if (d) {
candidate.d = d;
}
if (h) {
candidate.h = h;
}
candidates.push(candidate);
} else if (console && console.log) {
console.log("Invalid srcset descriptor found in '" + input + "' at '" + desc + "'.");
}
} // (close parseDescriptors fn)
};
});
}),
"[project]/node_modules/picocolors/picocolors.browser.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
var x = String;
var create = function() {
return {
isColorSupported: false,
reset: x,
bold: x,
dim: x,
italic: x,
underline: x,
inverse: x,
hidden: x,
strikethrough: x,
black: x,
red: x,
green: x,
yellow: x,
blue: x,
magenta: x,
cyan: x,
white: x,
gray: x,
bgBlack: x,
bgRed: x,
bgGreen: x,
bgYellow: x,
bgBlue: x,
bgMagenta: x,
bgCyan: x,
bgWhite: x,
blackBright: x,
redBright: x,
greenBright: x,
yellowBright: x,
blueBright: x,
magentaBright: x,
cyanBright: x,
whiteBright: x,
bgBlackBright: x,
bgRedBright: x,
bgGreenBright: x,
bgYellowBright: x,
bgBlueBright: x,
bgMagentaBright: x,
bgCyanBright: x,
bgWhiteBright: x
};
};
module.exports = create();
module.exports.createColors = create;
}),
"[project]/node_modules/postcss/lib/at-rule.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)");
class AtRule extends Container {
constructor(defaults){
super(defaults);
this.type = 'atrule';
}
append(...children) {
if (!this.proxyOf.nodes) this.nodes = [];
return super.append(...children);
}
prepend(...children) {
if (!this.proxyOf.nodes) this.nodes = [];
return super.prepend(...children);
}
}
module.exports = AtRule;
AtRule.default = AtRule;
Container.registerAtRule(AtRule);
}),
"[project]/node_modules/postcss/lib/comment.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [app-client] (ecmascript)");
class Comment extends Node {
constructor(defaults){
super(defaults);
this.type = 'comment';
}
}
module.exports = Comment;
Comment.default = Comment;
}),
"[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [app-client] (ecmascript)");
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [app-client] (ecmascript)");
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [app-client] (ecmascript)");
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [app-client] (ecmascript)");
let AtRule, parse, Root, Rule;
function cleanSource(nodes) {
let stack = nodes.slice();
while(stack.length > 0){
let node = stack.pop();
delete node.source;
if (node.nodes) {
node.nodes = node.nodes.slice();
for (let i of node.nodes)stack.push(i);
}
}
return nodes.slice();
}
function markTreeDirty(node) {
let stack = [
node
];
while(stack.length > 0){
let next = stack.pop();
next[isClean] = false;
if (next.proxyOf.nodes) {
for (let i of next.proxyOf.nodes)stack.push(i);
}
}
}
class Container extends Node {
get first() {
if (!this.proxyOf.nodes) return undefined;
return this.proxyOf.nodes[0];
}
get last() {
if (!this.proxyOf.nodes) return undefined;
return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
}
append(...children) {
for (let child of children){
let nodes = this.normalize(child, this.last);
for (let node of nodes)this.proxyOf.nodes.push(node);
}
this.markDirty();
return this;
}
cleanRaws(keepBetween) {
let stack = [
this
];
while(stack.length > 0){
let node = stack.pop();
if (node !== this && node.cleanRaws !== Container.prototype.cleanRaws) {
// Subclass with own logic; let it handle its subtree
node.cleanRaws(keepBetween);
continue;
}
Node.prototype.cleanRaws.call(node, keepBetween);
if (node.nodes) {
for (let child of node.nodes)stack.push(child);
}
}
}
each(callback) {
if (!this.proxyOf.nodes) return undefined;
let iterator = this.getIterator();
let index, result;
while(this.indexes[iterator] < this.proxyOf.nodes.length){
index = this.indexes[iterator];
result = callback(this.proxyOf.nodes[index], index);
if (result === false) break;
this.indexes[iterator] += 1;
}
delete this.indexes[iterator];
return result;
}
every(condition) {
return this.nodes.every(condition);
}
getIterator() {
if (!this.lastEach) this.lastEach = 0;
if (!this.indexes) this.indexes = {};
this.lastEach += 1;
let iterator = this.lastEach;
this.indexes[iterator] = 0;
return iterator;
}
getProxyProcessor() {
return {
get (node, prop) {
if (prop === 'proxyOf') {
return node;
} else if (!node[prop]) {
return node[prop];
} else if (prop === 'each' || typeof prop === 'string' && prop.startsWith('walk')) {
return (...args)=>{
return node[prop](...args.map((i)=>{
if (typeof i === 'function') {
return (child, index)=>i(child.toProxy(), index);
} else {
return i;
}
}));
};
} else if (prop === 'every' || prop === 'some') {
return (cb)=>{
return node[prop]((child, ...other)=>cb(child.toProxy(), ...other));
};
} else if (prop === 'root') {
return ()=>node.root().toProxy();
} else if (prop === 'nodes') {
return node.nodes.map((i)=>i.toProxy());
} else if (prop === 'first' || prop === 'last') {
return node[prop].toProxy();
} else {
return node[prop];
}
},
set (node, prop, value) {
if (node[prop] === value) return true;
node[prop] = value;
if (prop === 'name' || prop === 'params' || prop === 'selector') {
node.markDirty();
}
return true;
}
};
}
index(child) {
if (typeof child === 'number') return child;
if (child.proxyOf) child = child.proxyOf;
return this.proxyOf.nodes.indexOf(child);
}
insertAfter(exist, add) {
let existIndex = this.index(exist);
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse();
existIndex = this.index(exist);
for (let node of nodes)this.proxyOf.nodes.splice(existIndex + 1, 0, node);
let index;
for(let id in this.indexes){
index = this.indexes[id];
if (existIndex < index) {
this.indexes[id] = index + nodes.length;
}
}
this.markDirty();
return this;
}
insertBefore(exist, add) {
let existIndex = this.index(exist);
let type = existIndex === 0 ? 'prepend' : false;
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse();
existIndex = this.index(exist);
for (let node of nodes)this.proxyOf.nodes.splice(existIndex, 0, node);
let index;
for(let id in this.indexes){
index = this.indexes[id];
if (existIndex <= index) {
this.indexes[id] = index + nodes.length;
}
}
this.markDirty();
return this;
}
normalize(nodes, sample) {
if (typeof nodes === 'string') {
nodes = cleanSource(parse(nodes).nodes);
} else if (typeof nodes === 'undefined') {
nodes = [];
} else if (Array.isArray(nodes)) {
nodes = nodes.slice(0);
for (let i of nodes){
if (i.parent) i.parent.removeChild(i, 'ignore');
}
} else if (nodes.type === 'root' && this.type !== 'document') {
nodes = nodes.nodes.slice(0);
for (let i of nodes){
if (i.parent) i.parent.removeChild(i, 'ignore');
}
} else if (nodes.type) {
nodes = [
nodes
];
} else if (nodes.prop) {
if (typeof nodes.value === 'undefined') {
throw new Error('Value field is missed in node creation');
} else if (typeof nodes.value !== 'string') {
nodes.value = String(nodes.value);
}
nodes = [
new Declaration(nodes)
];
} else if (nodes.selector || nodes.selectors) {
nodes = [
new Rule(nodes)
];
} else if (nodes.name) {
nodes = [
new AtRule(nodes)
];
} else if (nodes.text) {
nodes = [
new Comment(nodes)
];
} else {
throw new Error('Unknown node type in node creation');
}
let processed = nodes.map((i)=>{
/* c8 ignore next */ if (!i[my]) Container.rebuild(i);
i = i.proxyOf;
if (i.parent) i.parent.removeChild(i);
if (i[isClean]) markTreeDirty(i);
if (!i.raws) i.raws = {};
if (typeof i.raws.before === 'undefined') {
if (sample && typeof sample.raws.before !== 'undefined') {
i.raws.before = sample.raws.before.replace(/\S/g, '');
}
}
i.parent = this.proxyOf;
return i;
});
return processed;
}
prepend(...children) {
children = children.reverse();
for (let child of children){
let nodes = this.normalize(child, this.first, 'prepend').reverse();
for (let node of nodes)this.proxyOf.nodes.unshift(node);
for(let id in this.indexes){
this.indexes[id] = this.indexes[id] + nodes.length;
}
}
this.markDirty();
return this;
}
push(child) {
child.parent = this;
this.proxyOf.nodes.push(child);
return this;
}
removeAll() {
for (let node of this.proxyOf.nodes)node.parent = undefined;
this.proxyOf.nodes = [];
this.markDirty();
return this;
}
removeChild(child) {
child = this.index(child);
this.proxyOf.nodes[child].parent = undefined;
this.proxyOf.nodes.splice(child, 1);
let index;
for(let id in this.indexes){
index = this.indexes[id];
if (index >= child) {
this.indexes[id] = index - 1;
}
}
this.markDirty();
return this;
}
replaceValues(pattern, opts, callback) {
if (!callback) {
callback = opts;
opts = {};
}
this.walkDecls((decl)=>{
if (opts.props && !opts.props.includes(decl.prop)) return;
if (opts.fast && !decl.value.includes(opts.fast)) return;
decl.value = decl.value.replace(pattern, callback);
});
this.markDirty();
return this;
}
some(condition) {
return this.nodes.some(condition);
}
walk(callback) {
if (!this.proxyOf.nodes) return undefined;
// An explicit stack instead of recursive `each()` calls to survive
// deeply nested trees. Each frame keeps a live `indexes` slot, so
// insertion and removal during the walk behave like `each()`: the
// slot stays at the current child until its subtree is finished.
let stack = [
{
iterator: this.getIterator(),
node: this.proxyOf
}
];
while(stack.length > 0){
let { iterator, node } = stack[stack.length - 1];
let index = node.indexes[iterator];
if (index >= node.proxyOf.nodes.length) {
delete node.indexes[iterator];
stack.pop();
let parent = stack[stack.length - 1];
// Finish the parent’s step for the child subtree we just left
if (parent) parent.node.indexes[parent.iterator] += 1;
continue;
}
let child = node.proxyOf.nodes[index];
let result;
try {
result = callback(child, index);
} catch (e) {
throw child.addToError(e);
}
if (result === false) {
for (let opened of stack){
delete opened.node.indexes[opened.iterator];
}
return false;
}
if (child.walk && child.proxyOf.nodes) {
stack.push({
iterator: child.getIterator(),
node: child
});
} else {
node.indexes[iterator] += 1;
}
}
return undefined;
}
walkAtRules(name, callback) {
if (!callback) {
callback = name;
return this.walk((child, i)=>{
if (child.type === 'atrule') {
return callback(child, i);
}
});
}
if (name instanceof RegExp) {
return this.walk((child, i)=>{
if (child.type === 'atrule' && name.test(child.name)) {
return callback(child, i);
}
});
}
return this.walk((child, i)=>{
if (child.type === 'atrule' && child.name === name) {
return callback(child, i);
}
});
}
walkComments(callback) {
return this.walk((child, i)=>{
if (child.type === 'comment') {
return callback(child, i);
}
});
}
walkDecls(prop, callback) {
if (!callback) {
callback = prop;
return this.walk((child, i)=>{
if (child.type === 'decl') {
return callback(child, i);
}
});
}
if (prop instanceof RegExp) {
return this.walk((child, i)=>{
if (child.type === 'decl' && prop.test(child.prop)) {
return callback(child, i);
}
});
}
return this.walk((child, i)=>{
if (child.type === 'decl' && child.prop === prop) {
return callback(child, i);
}
});
}
walkRules(selector, callback) {
if (!callback) {
callback = selector;
return this.walk((child, i)=>{
if (child.type === 'rule') {
return callback(child, i);
}
});
}
if (selector instanceof RegExp) {
return this.walk((child, i)=>{
if (child.type === 'rule' && selector.test(child.selector)) {
return callback(child, i);
}
});
}
return this.walk((child, i)=>{
if (child.type === 'rule' && child.selector === selector) {
return callback(child, i);
}
});
}
}
Container.registerParse = (dependant)=>{
parse = dependant;
};
Container.registerRule = (dependant)=>{
Rule = dependant;
};
Container.registerAtRule = (dependant)=>{
AtRule = dependant;
};
Container.registerRoot = (dependant)=>{
Root = dependant;
};
module.exports = Container;
Container.default = Container;
/* c8 ignore start */ Container.rebuild = (node)=>{
let stack = [
node
];
while(stack.length > 0){
let next = stack.pop();
if (next.type === 'atrule') {
Object.setPrototypeOf(next, AtRule.prototype);
} else if (next.type === 'rule') {
Object.setPrototypeOf(next, Rule.prototype);
} else if (next.type === 'decl') {
Object.setPrototypeOf(next, Declaration.prototype);
} else if (next.type === 'comment') {
Object.setPrototypeOf(next, Comment.prototype);
} else if (next.type === 'root') {
Object.setPrototypeOf(next, Root.prototype);
}
next[my] = true;
if (next.nodes) {
for (let child of next.nodes)stack.push(child);
}
}
}; /* c8 ignore stop */
}),
"[project]/node_modules/postcss/lib/css-syntax-error.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let pico = __turbopack_context__.r("[project]/node_modules/picocolors/picocolors.browser.js [app-client] (ecmascript)");
let terminalHighlight = {};
class CssSyntaxError extends Error {
constructor(message, line, column, source, file, plugin){
super(message);
this.name = 'CssSyntaxError';
this.reason = message;
if (file) {
this.file = file;
}
if (source) {
this.source = source;
}
if (plugin) {
this.plugin = plugin;
}
if (typeof line !== 'undefined' && typeof column !== 'undefined') {
if (typeof line === 'number') {
this.line = line;
this.column = column;
} else {
this.line = line.line;
this.column = line.column;
this.endLine = column.line;
this.endColumn = column.column;
}
}
this.setMessage();
if (Error.captureStackTrace) {
Error.captureStackTrace(this, CssSyntaxError);
}
}
setMessage() {
this.message = this.plugin ? this.plugin + ': ' : '';
this.message += this.file ? this.file : '';
if (typeof this.line !== 'undefined') {
this.message += ':' + this.line + ':' + this.column;
}
this.message += ': ' + this.reason;
}
showSourceCode(color) {
if (!this.source) return '';
let css = this.source;
if (color == null) color = pico.isColorSupported;
let aside = (text)=>text;
let mark = (text)=>text;
let highlight = (text)=>text;
if (color) {
let { bold, gray, red } = pico.createColors(true);
mark = (text)=>bold(red(text));
aside = (text)=>gray(text);
if (terminalHighlight) {
highlight = (text)=>terminalHighlight(text);
}
}
let lines = css.split(/\r?\n/);
let start = Math.max(this.line - 3, 0);
let end = Math.min(this.line + 2, lines.length);
let maxWidth = String(end).length;
return lines.slice(start, end).map((line, index)=>{
let number = start + 1 + index;
let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | ';
if (number === this.line) {
if (line.length > 160) {
let padding = 20;
let subLineStart = Math.max(0, this.column - padding);
let subLineEnd = Math.max(this.column + padding, this.endColumn + padding);
let subLine = line.slice(subLineStart, subLineEnd);
let spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, Math.min(this.column - 1, padding - 1)).replace(/[^\t]/g, ' ');
return mark('>') + aside(gutter) + highlight(subLine) + '\n ' + spacing + mark('^');
}
let spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, this.column - 1).replace(/[^\t]/g, ' ');
return mark('>') + aside(gutter) + highlight(line) + '\n ' + spacing + mark('^');
}
return ' ' + aside(gutter) + highlight(line);
}).join('\n');
}
toString() {
let code = this.showSourceCode();
if (code) {
code = '\n\n' + code + '\n';
}
return this.name + ': ' + this.message + code;
}
}
module.exports = CssSyntaxError;
CssSyntaxError.default = CssSyntaxError;
}),
"[project]/node_modules/postcss/lib/declaration.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [app-client] (ecmascript)");
class Declaration extends Node {
get variable() {
return this.prop.startsWith('--') || this.prop[0] === '$';
}
constructor(defaults){
if (defaults && typeof defaults.value !== 'undefined' && typeof defaults.value !== 'string') {
defaults = {
...defaults,
value: String(defaults.value)
};
}
super(defaults);
this.type = 'decl';
}
}
module.exports = Declaration;
Declaration.default = Declaration;
}),
"[project]/node_modules/postcss/lib/document.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)");
let LazyResult, Processor;
class Document extends Container {
constructor(defaults){
// type needs to be passed to super, otherwise child roots won't be normalized correctly
super({
type: 'document',
...defaults
});
if (!this.nodes) {
this.nodes = [];
}
}
toResult(opts = {}) {
let lazy = new LazyResult(new Processor(), this, opts);
return lazy.stringify();
}
}
Document.registerLazyResult = (dependant)=>{
LazyResult = dependant;
};
Document.registerProcessor = (dependant)=>{
Processor = dependant;
};
module.exports = Document;
Document.default = Document;
}),
"[project]/node_modules/postcss/lib/fromJSON.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let AtRule = __turbopack_context__.r("[project]/node_modules/postcss/lib/at-rule.js [app-client] (ecmascript)");
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [app-client] (ecmascript)");
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [app-client] (ecmascript)");
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [app-client] (ecmascript)");
let PreviousMap = __turbopack_context__.r("[project]/node_modules/postcss/lib/previous-map.js [app-client] (ecmascript)");
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [app-client] (ecmascript)");
let Rule = __turbopack_context__.r("[project]/node_modules/postcss/lib/rule.js [app-client] (ecmascript)");
function hydrateInputs(json, inputs) {
if (!json.inputs) return inputs;
return json.inputs.map((input)=>{
let inputHydrated = {
...input,
__proto__: Input.prototype
};
if (inputHydrated.map) {
inputHydrated.map = {
...inputHydrated.map,
__proto__: PreviousMap.prototype
};
}
return inputHydrated;
});
}
function constructNode(json, inputs, children) {
let defaults = {
...json
};
delete defaults.inputs;
delete defaults.nodes;
if (defaults.source) {
let { inputId, ...source } = defaults.source;
defaults.source = source;
if (inputId != null) {
defaults.source.input = inputs[inputId];
}
}
let node;
if (defaults.type === 'root') {
node = new Root(defaults);
} else if (defaults.type === 'decl') {
node = new Declaration(defaults);
} else if (defaults.type === 'rule') {
node = new Rule(defaults);
} else if (defaults.type === 'comment') {
node = new Comment(defaults);
} else if (defaults.type === 'atrule') {
node = new AtRule(defaults);
} else {
throw new Error('Unknown node type: ' + json.type);
}
// Rehydrated children are attached after construction. Passing them
// through the container constructor would re-run insertion spacing
// normalization and overwrite each child's own `raws.before`.
if (children) {
node.nodes = children;
for (let child of children)child.parent = node;
}
return node;
}
function fromJSON(json, inputs) {
if (Array.isArray(json)) return json.map((n)=>fromJSON(n));
// An explicit stack instead of recursive calls to survive deeply
// nested trees. Children are rehydrated before their parent node
// is constructed.
let result;
let stack = [
{
childIndex: 0,
children: [],
inputs: hydrateInputs(json, inputs),
json
}
];
while(stack.length > 0){
let frame = stack[stack.length - 1];
let jsonNodes = frame.json.nodes;
if (jsonNodes && frame.childIndex < jsonNodes.length) {
let childJson = jsonNodes[frame.childIndex];
frame.childIndex += 1;
stack.push({
childIndex: 0,
children: [],
inputs: hydrateInputs(childJson, frame.inputs),
json: childJson
});
continue;
}
stack.pop();
let node = constructNode(frame.json, frame.inputs, jsonNodes ? frame.children : undefined);
if (stack.length > 0) {
stack[stack.length - 1].children.push(node);
} else {
result = node;
}
}
return result;
}
module.exports = fromJSON;
fromJSON.default = fromJSON;
}),
"[project]/node_modules/postcss/lib/input.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let { nanoid } = __turbopack_context__.r("[project]/node_modules/nanoid/non-secure/index.cjs [app-client] (ecmascript)");
let { isAbsolute, resolve } = {};
let { SourceMapConsumer, SourceMapGenerator } = {};
let { fileURLToPath, pathToFileURL } = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/native-url/index.js [app-client] (ecmascript)");
let CssSyntaxError = __turbopack_context__.r("[project]/node_modules/postcss/lib/css-syntax-error.js [app-client] (ecmascript)");
let PreviousMap = __turbopack_context__.r("[project]/node_modules/postcss/lib/previous-map.js [app-client] (ecmascript)");
let terminalHighlight = {};
let lineToIndexCache = Symbol('lineToIndexCache');
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
let pathAvailable = Boolean(resolve && isAbsolute);
function getLineToIndex(input) {
if (input[lineToIndexCache]) return input[lineToIndexCache];
let lines = input.css.split('\n');
let lineToIndex = new Array(lines.length);
let prevIndex = 0;
for(let i = 0, l = lines.length; i < l; i++){
lineToIndex[i] = prevIndex;
prevIndex += lines[i].length + 1;
}
input[lineToIndexCache] = lineToIndex;
return lineToIndex;
}
class Input {
get from() {
return this.file || this.id;
}
constructor(css, opts = {}){
if (css === null || typeof css === 'undefined' || typeof css === 'object' && !css.toString) {
throw new Error(`PostCSS received ${css} instead of CSS string`);
}
this.css = css.toString();
if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') {
this.hasBOM = true;
this.css = this.css.slice(1);
} else {
this.hasBOM = false;
}
this.document = this.css;
if (opts.document) this.document = opts.document.toString();
if (opts.from) {
if (!pathAvailable || /^\w+:\/\//.test(opts.from) || isAbsolute(opts.from)) {
this.file = opts.from;
} else {
this.file = resolve(opts.from);
}
}
if (pathAvailable && sourceMapAvailable) {
let map = new PreviousMap(this.css, opts);
if (map.text) {
this.map = map;
let file = map.consumer().file;
if (!this.file && file) this.file = this.mapResolve(file);
}
}
if (!this.file) {
this.id = '';
}
if (this.map) this.map.file = this.from;
}
error(message, line, column, opts = {}) {
let endColumn, endLine, endOffset, offset, result;
if (line && typeof line === 'object') {
let start = line;
let end = column;
if (typeof start.offset === 'number') {
offset = start.offset;
let pos = this.fromOffset(offset);
line = pos.line;
column = pos.col;
} else {
line = start.line;
column = start.column;
offset = this.fromLineAndColumn(line, column);
}
if (typeof end.offset === 'number') {
endOffset = end.offset;
let pos = this.fromOffset(endOffset);
endLine = pos.line;
endColumn = pos.col;
} else {
endLine = end.line;
endColumn = end.column;
endOffset = this.fromLineAndColumn(end.line, end.column);
}
} else if (!column) {
offset = line;
let pos = this.fromOffset(offset);
line = pos.line;
column = pos.col;
} else {
offset = this.fromLineAndColumn(line, column);
}
let origin = this.origin(line, column, endLine, endColumn);
if (origin) {
result = new CssSyntaxError(message, origin.endLine === undefined ? origin.line : {
column: origin.column,
line: origin.line
}, origin.endLine === undefined ? origin.column : {
column: origin.endColumn,
line: origin.endLine
}, origin.source, origin.file, opts.plugin);
} else {
result = new CssSyntaxError(message, endLine === undefined ? line : {
column,
line
}, endLine === undefined ? column : {
column: endColumn,
line: endLine
}, this.css, this.file, opts.plugin);
}
result.input = {
column,
endColumn,
endLine,
endOffset,
line,
offset,
source: this.css
};
if (this.file) {
if (pathToFileURL) {
result.input.url = pathToFileURL(this.file).toString();
}
result.input.file = this.file;
}
return result;
}
fromLineAndColumn(line, column) {
let lineToIndex = getLineToIndex(this);
let index = lineToIndex[line - 1];
return index + column - 1;
}
fromOffset(offset) {
let lineToIndex = getLineToIndex(this);
let lastLine = lineToIndex[lineToIndex.length - 1];
let min = 0;
if (offset >= lastLine) {
min = lineToIndex.length - 1;
} else {
let max = lineToIndex.length - 2;
let mid;
while(min < max){
mid = min + (max - min >> 1);
if (offset < lineToIndex[mid]) {
max = mid - 1;
} else if (offset >= lineToIndex[mid + 1]) {
min = mid + 1;
} else {
min = mid;
break;
}
}
}
return {
col: offset - lineToIndex[min] + 1,
line: min + 1
};
}
mapResolve(file) {
if (/^\w+:\/\//.test(file)) {
return file;
}
return resolve(this.map.consumer().sourceRoot || this.map.root || '.', file);
}
origin(line, column, endLine, endColumn) {
if (!this.map) return false;
let consumer = this.map.consumer();
let from = consumer.originalPositionFor({
column: column - 1,
line
});
if (!from.source) return false;
let to;
if (typeof endLine === 'number') {
let toPosition = consumer.originalPositionFor({
column: endColumn - 1,
line: endLine
});
// The source map may not have a mapping that covers the end position
// (`originalPositionFor()` then returns `null` for `line`/`column`
// instead of omitting them). Treat that the same as not requesting
// an end position at all, so `endLine`/`endColumn` stay a consistent
// `undefined` pair instead of a mix of `null` and a bogus number.
if (toPosition.source) to = toPosition;
}
let fromUrl;
if (isAbsolute(from.source)) {
fromUrl = pathToFileURL(from.source);
} else {
fromUrl = new URL(from.source, this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile));
}
let result = {
column: from.column + 1,
endColumn: to && to.column + 1,
endLine: to && to.line,
line: from.line,
url: fromUrl.toString()
};
if (fromUrl.protocol === 'file:') {
if (fileURLToPath) {
result.file = fileURLToPath(fromUrl);
} else {
/* c8 ignore next 2 */ throw new Error(`file: protocol is not available in this PostCSS build`);
}
}
let source = consumer.sourceContentFor(from.source);
if (source) result.source = source;
return result;
}
toJSON() {
let json = {};
for (let name of [
'hasBOM',
'css',
'file',
'id'
]){
if (this[name] != null) {
json[name] = this[name];
}
}
if (this.map) {
json.map = {
...this.map
};
if (json.map.consumerCache) {
json.map.consumerCache = undefined;
}
}
return json;
}
}
module.exports = Input;
Input.default = Input;
if (terminalHighlight && terminalHighlight.registerInput) {
terminalHighlight.registerInput(Input);
}
}),
"[project]/node_modules/postcss/lib/lazy-result.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
'use strict';
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)");
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [app-client] (ecmascript)");
let MapGenerator = __turbopack_context__.r("[project]/node_modules/postcss/lib/map-generator.js [app-client] (ecmascript)");
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [app-client] (ecmascript)");
let Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [app-client] (ecmascript)");
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [app-client] (ecmascript)");
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [app-client] (ecmascript)");
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [app-client] (ecmascript)");
let warnOnce = __turbopack_context__.r("[project]/node_modules/postcss/lib/warn-once.js [app-client] (ecmascript)");
const TYPE_TO_CLASS_NAME = {
atrule: 'AtRule',
comment: 'Comment',
decl: 'Declaration',
document: 'Document',
root: 'Root',
rule: 'Rule'
};
const PLUGIN_PROPS = {
AtRule: true,
AtRuleExit: true,
Comment: true,
CommentExit: true,
Declaration: true,
DeclarationExit: true,
Document: true,
DocumentExit: true,
Once: true,
OnceExit: true,
postcssPlugin: true,
prepare: true,
Root: true,
RootExit: true,
Rule: true,
RuleExit: true
};
const NOT_VISITORS = {
Once: true,
postcssPlugin: true,
prepare: true
};
const CHILDREN = 0;
function isPromise(obj) {
return typeof obj === 'object' && typeof obj.then === 'function';
}
function getEvents(node) {
let key = false;
let type = TYPE_TO_CLASS_NAME[node.type];
if (node.type === 'decl') {
key = node.prop.toLowerCase();
} else if (node.type === 'atrule') {
key = node.name.toLowerCase();
}
if (key && node.append) {
return [
type,
type + '-' + key,
CHILDREN,
type + 'Exit',
type + 'Exit-' + key
];
} else if (key) {
return [
type,
type + '-' + key,
type + 'Exit',
type + 'Exit-' + key
];
} else if (node.append) {
return [
type,
CHILDREN,
type + 'Exit'
];
} else {
return [
type,
type + 'Exit'
];
}
}
function toStack(node) {
let events;
if (node.type === 'document') {
events = [
'Document',
CHILDREN,
'DocumentExit'
];
} else if (node.type === 'root') {
events = [
'Root',
CHILDREN,
'RootExit'
];
} else {
events = getEvents(node);
}
return {
eventIndex: 0,
events,
iterator: 0,
node,
visitorIndex: 0,
visitors: []
};
}
function cleanMarks(node) {
let stack = [
node
];
while(stack.length > 0){
let next = stack.pop();
next[isClean] = false;
if (next.nodes) {
for (let i of next.nodes)stack.push(i);
}
}
return node;
}
let postcss = {};
class LazyResult {
get content() {
return this.stringify().content;
}
get css() {
return this.stringify().css;
}
get map() {
return this.stringify().map;
}
get messages() {
return this.sync().messages;
}
get opts() {
return this.result.opts;
}
get processor() {
return this.result.processor;
}
get root() {
return this.sync().root;
}
get [Symbol.toStringTag]() {
return 'LazyResult';
}
constructor(processor, css, opts){
this.stringified = false;
this.processed = false;
let root;
if (typeof css === 'object' && css !== null && (css.type === 'root' || css.type === 'document')) {
root = cleanMarks(css);
} else if (css instanceof LazyResult || css instanceof Result) {
root = cleanMarks(css.root);
if (css.map) {
if (typeof opts.map === 'undefined') opts.map = {};
if (!opts.map.inline) opts.map.inline = false;
opts.map.prev = css.map;
}
} else {
let parser = parse;
if (opts.syntax) parser = opts.syntax.parse;
if (opts.parser) parser = opts.parser;
if (parser.parse) parser = parser.parse;
try {
root = parser(css, opts);
} catch (error) {
this.processed = true;
this.error = error;
}
if (root && !root[my]) {
/* c8 ignore next 2 */ Container.rebuild(root);
}
}
this.result = new Result(processor, root, opts);
this.helpers = {
...postcss,
postcss,
result: this.result
};
this.plugins = this.processor.plugins.map((plugin)=>{
if (typeof plugin === 'object' && plugin.prepare) {
return {
...plugin,
...plugin.prepare(this.result)
};
} else {
return plugin;
}
});
}
async() {
if (this.error) return Promise.reject(this.error);
if (this.processed) return Promise.resolve(this.result);
if (!this.processing) {
this.processing = this.runAsync();
}
return this.processing;
}
catch(onRejected) {
return this.async().catch(onRejected);
}
finally(onFinally) {
return this.async().then(onFinally, onFinally);
}
getAsyncError() {
throw new Error('Use process(css).then(cb) to work with async plugins');
}
handleError(error, node) {
let plugin = this.result.lastPlugin;
try {
if (node) node.addToError(error);
this.error = error;
if (error.name === 'CssSyntaxError' && !error.plugin) {
error.plugin = plugin.postcssPlugin;
error.setMessage();
} else if (plugin.postcssVersion) {
if ("TURBOPACK compile-time truthy", 1) {
let pluginName = plugin.postcssPlugin;
let pluginVer = plugin.postcssVersion;
let runtimeVer = this.result.processor.version;
let a = pluginVer.split('.');
let b = runtimeVer.split('.');
if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) {
// eslint-disable-next-line no-console
console.error('Unknown error from PostCSS plugin. Your current PostCSS ' + 'version is ' + runtimeVer + ', but ' + pluginName + ' uses ' + pluginVer + '. Perhaps this is the source of the error below.');
}
}
}
} catch (err) {
/* c8 ignore next 3 */ // eslint-disable-next-line no-console
if (console && console.error) console.error(err);
}
return error;
}
prepareVisitors() {
this.listeners = {};
let add = (plugin, type, cb)=>{
if (!this.listeners[type]) this.listeners[type] = [];
this.listeners[type].push([
plugin,
cb
]);
};
for (let plugin of this.plugins){
if (typeof plugin === 'object') {
for(let event in plugin){
if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) {
throw new Error(`Unknown event ${event} in ${plugin.postcssPlugin}. ` + `Try to update PostCSS (${this.processor.version} now).`);
}
if (!NOT_VISITORS[event]) {
if (typeof plugin[event] === 'object') {
for(let filter in plugin[event]){
if (filter === '*') {
add(plugin, event, plugin[event][filter]);
} else {
add(plugin, event + '-' + filter.toLowerCase(), plugin[event][filter]);
}
}
} else if (typeof plugin[event] === 'function') {
add(plugin, event, plugin[event]);
}
}
}
}
}
this.hasListener = Object.keys(this.listeners).length > 0;
}
async runAsync() {
this.plugin = 0;
for(let i = 0; i < this.plugins.length; i++){
let plugin = this.plugins[i];
let promise = this.runOnRoot(plugin);
if (isPromise(promise)) {
try {
await promise;
} catch (error) {
throw this.handleError(error);
}
}
}
this.prepareVisitors();
if (this.hasListener) {
let root = this.result.root;
while(!root[isClean]){
root[isClean] = true;
let stack = [
toStack(root)
];
while(stack.length > 0){
let promise = this.visitTick(stack);
if (isPromise(promise)) {
try {
await promise;
} catch (e) {
let node = stack[stack.length - 1].node;
throw this.handleError(e, node);
}
}
}
}
if (this.listeners.OnceExit) {
for (let [plugin, visitor] of this.listeners.OnceExit){
this.result.lastPlugin = plugin;
try {
if (root.type === 'document') {
let roots = root.nodes.map((subRoot)=>visitor(subRoot, this.helpers));
await Promise.all(roots);
} else {
await visitor(root, this.helpers);
}
} catch (e) {
throw this.handleError(e);
}
}
}
}
this.processed = true;
return this.stringify();
}
runOnRoot(plugin) {
this.result.lastPlugin = plugin;
try {
if (typeof plugin === 'object' && plugin.Once) {
if (this.result.root.type === 'document') {
let roots = this.result.root.nodes.map((root)=>plugin.Once(root, this.helpers));
if (isPromise(roots[0])) {
return Promise.all(roots);
}
return roots;
}
return plugin.Once(this.result.root, this.helpers);
} else if (typeof plugin === 'function') {
return plugin(this.result.root, this.result);
}
} catch (error) {
throw this.handleError(error);
}
}
stringify() {
if (this.error) throw this.error;
if (this.stringified) return this.result;
this.stringified = true;
this.sync();
let opts = this.result.opts;
let str = stringify;
if (opts.syntax) str = opts.syntax.stringify;
if (opts.stringifier) str = opts.stringifier;
if (str.stringify) str = str.stringify;
let rootSource = this.result.root.source;
if (opts.map === undefined && !(rootSource && rootSource.input && rootSource.input.map)) {
let result = '';
str(this.result.root, (i)=>{
result += i;
});
this.result.css = result;
return this.result;
}
let map = new MapGenerator(str, this.result.root, this.result.opts);
let data = map.generate();
this.result.css = data[0];
this.result.map = data[1];
return this.result;
}
sync() {
if (this.error) throw this.error;
if (this.processed) return this.result;
this.processed = true;
if (this.processing) {
throw this.getAsyncError();
}
for (let plugin of this.plugins){
let promise = this.runOnRoot(plugin);
if (isPromise(promise)) {
throw this.getAsyncError();
}
}
this.prepareVisitors();
if (this.hasListener) {
let root = this.result.root;
while(!root[isClean]){
root[isClean] = true;
this.walkSync(root);
}
if (this.listeners.OnceExit) {
if (root.type === 'document') {
for (let subRoot of root.nodes){
this.visitSync(this.listeners.OnceExit, subRoot);
}
} else {
this.visitSync(this.listeners.OnceExit, root);
}
}
}
return this.result;
}
then(onFulfilled, onRejected) {
if ("TURBOPACK compile-time truthy", 1) {
if (!('from' in this.opts)) {
warnOnce('Without `from` option PostCSS could generate wrong source map ' + 'and will not find Browserslist config. Set it to CSS file path ' + 'or to `undefined` to prevent this warning.');
}
}
return this.async().then(onFulfilled, onRejected);
}
toString() {
return this.css;
}
visitSync(visitors, node) {
for (let [plugin, visitor] of visitors){
this.result.lastPlugin = plugin;
let promise;
try {
promise = visitor(node, this.helpers);
} catch (e) {
throw this.handleError(e, node.proxyOf);
}
if (node.type !== 'root' && node.type !== 'document' && !node.parent) {
return true;
}
if (isPromise(promise)) {
throw this.getAsyncError();
}
}
}
visitTick(stack) {
let visit = stack[stack.length - 1];
let { node, visitors } = visit;
if (node.type !== 'root' && node.type !== 'document' && !node.parent) {
stack.pop();
return;
}
if (visitors.length > 0 && visit.visitorIndex < visitors.length) {
let [plugin, visitor] = visitors[visit.visitorIndex];
visit.visitorIndex += 1;
if (visit.visitorIndex === visitors.length) {
visit.visitors = [];
visit.visitorIndex = 0;
}
this.result.lastPlugin = plugin;
try {
return visitor(node.toProxy(), this.helpers);
} catch (e) {
throw this.handleError(e, node);
}
}
if (visit.iterator !== 0) {
let iterator = visit.iterator;
let child;
while(child = node.nodes[node.indexes[iterator]]){
node.indexes[iterator] += 1;
if (!child[isClean]) {
child[isClean] = true;
stack.push(toStack(child));
return;
}
}
visit.iterator = 0;
delete node.indexes[iterator];
}
let events = visit.events;
while(visit.eventIndex < events.length){
let event = events[visit.eventIndex];
visit.eventIndex += 1;
if (event === CHILDREN) {
if (node.nodes && node.nodes.length) {
node[isClean] = true;
visit.iterator = node.getIterator();
}
return;
} else if (this.listeners[event]) {
visit.visitors = this.listeners[event];
return;
}
}
stack.pop();
}
walkSync(node) {
// An explicit stack like in async `visitTick()` to survive deeply
// nested trees. Unlike `visitTick()`, nodes are marked clean only
// on entering, so a node dirtied by its own visitors is revisited
// on the next pass.
node[isClean] = true;
let stack = [
{
eventIndex: 0,
events: getEvents(node),
iterator: 0,
node
}
];
while(stack.length > 0){
let visit = stack[stack.length - 1];
let visitNode = visit.node;
if (visit.iterator !== 0) {
let iterator = visit.iterator;
let child;
let descended = false;
while(child = visitNode.nodes[visitNode.indexes[iterator]]){
visitNode.indexes[iterator] += 1;
if (!child[isClean]) {
child[isClean] = true;
stack.push({
eventIndex: 0,
events: getEvents(child),
iterator: 0,
node: child
});
descended = true;
break;
}
}
if (descended) continue;
visit.iterator = 0;
delete visitNode.indexes[iterator];
}
if (visit.eventIndex < visit.events.length) {
let event = visit.events[visit.eventIndex];
visit.eventIndex += 1;
if (event === CHILDREN) {
if (visitNode.nodes && visitNode.nodes.length) {
visit.iterator = visitNode.getIterator();
}
} else {
let visitors = this.listeners[event];
if (visitors) {
if (this.visitSync(visitors, visitNode.toProxy())) stack.pop();
}
}
continue;
}
stack.pop();
}
}
warnings() {
return this.sync().warnings();
}
}
LazyResult.registerPostcss = (dependant)=>{
postcss = dependant;
};
module.exports = LazyResult;
LazyResult.default = LazyResult;
Root.registerLazyResult(LazyResult);
Document.registerLazyResult(LazyResult);
}),
"[project]/node_modules/postcss/lib/list.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let list = {
comma (string) {
return list.split(string, [
','
], true);
},
space (string) {
let spaces = [
' ',
'\n',
'\t'
];
return list.split(string, spaces);
},
split (string, separators, last) {
let array = [];
let current = '';
let split = false;
let func = 0;
let inQuote = false;
let prevQuote = '';
let escape = false;
for (let letter of string){
if (escape) {
escape = false;
} else if (letter === '\\') {
escape = true;
} else if (inQuote) {
if (letter === prevQuote) {
inQuote = false;
}
} else if (letter === '"' || letter === "'") {
inQuote = true;
prevQuote = letter;
} else if (letter === '(') {
func += 1;
} else if (letter === ')') {
if (func > 0) func -= 1;
} else if (func === 0) {
if (separators.includes(letter)) split = true;
}
if (split) {
if (current !== '') array.push(current.trim());
current = '';
split = false;
} else {
current += letter;
}
}
if (last || current !== '') array.push(current.trim());
return array;
}
};
module.exports = list;
list.default = list;
}),
"[project]/node_modules/postcss/lib/map-generator.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$buffer$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/compiled/buffer/index.js [app-client] (ecmascript)");
'use strict';
let { dirname, relative, resolve, sep } = {};
let { SourceMapConsumer, SourceMapGenerator } = {};
let { pathToFileURL } = __turbopack_context__.r("[project]/node_modules/next/dist/compiled/native-url/index.js [app-client] (ecmascript)");
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [app-client] (ecmascript)");
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
let pathAvailable = Boolean(dirname && resolve && relative && sep);
class MapGenerator {
constructor(stringify, root, opts, cssString){
this.stringify = stringify;
this.mapOpts = opts.map || {};
this.root = root;
this.opts = opts;
this.css = cssString;
this.originalCSS = cssString;
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
this.memoizedFileURLs = new Map();
this.memoizedPaths = new Map();
this.memoizedURLs = new Map();
}
addAnnotation() {
let content;
if (this.isInline()) {
content = 'data:application/json;base64,' + this.toBase64(this.map.toString());
} else if (typeof this.mapOpts.annotation === 'string') {
content = this.mapOpts.annotation;
} else if (typeof this.mapOpts.annotation === 'function') {
content = this.mapOpts.annotation(this.opts.to, this.root);
} else {
content = this.outputFile() + '.map';
}
let eol = '\n';
if (this.css.includes('\r\n')) eol = '\r\n';
this.css += eol + '/*# sourceMappingURL=' + content + ' */';
}
applyPrevMaps() {
for (let prev of this.previous()){
let from = this.toUrl(this.path(prev.file));
let root = prev.root || dirname(prev.file);
let map;
if (this.mapOpts.sourcesContent === false) {
map = new SourceMapConsumer(prev.text);
if (map.sourcesContent) {
map.sourcesContent = null;
}
} else {
map = prev.consumer();
}
this.map.applySourceMap(map, from, this.toUrl(this.path(root)));
}
}
clearAnnotation() {
if (this.mapOpts.annotation === false) return;
if (this.root) {
let node;
for(let i = this.root.nodes.length - 1; i >= 0; i--){
node = this.root.nodes[i];
if (node.type !== 'comment') continue;
if (node.text.startsWith('# sourceMappingURL=')) {
this.root.removeChild(i);
}
}
} else if (this.css) {
let startIndex;
while((startIndex = this.css.lastIndexOf('/*#')) !== -1){
let endIndex = this.css.indexOf('*/', startIndex + 3);
if (endIndex === -1) break;
while(startIndex > 0 && this.css[startIndex - 1] === '\n'){
startIndex--;
}
this.css = this.css.slice(0, startIndex) + this.css.slice(endIndex + 2);
}
}
}
generate() {
this.clearAnnotation();
if (pathAvailable && sourceMapAvailable && this.isMap()) {
return this.generateMap();
} else {
let result = '';
this.stringify(this.root, (i)=>{
result += i;
});
return [
result
];
}
}
generateMap() {
if (this.root) {
this.generateString();
} else if (this.previous().length === 1) {
let prev = this.previous()[0].consumer();
prev.file = this.outputFile();
this.map = SourceMapGenerator.fromSourceMap(prev, {
ignoreInvalidMapping: true
});
} else {
this.map = new SourceMapGenerator({
file: this.outputFile(),
ignoreInvalidMapping: true
});
this.map.addMapping({
generated: {
column: 0,
line: 1
},
original: {
column: 0,
line: 1
},
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : ''
});
}
if (this.isSourcesContent()) this.setSourcesContent();
if (this.root && this.previous().length > 0) this.applyPrevMaps();
if (this.isAnnotation()) this.addAnnotation();
if (this.isInline()) {
return [
this.css
];
} else {
return [
this.css,
this.map
];
}
}
generateString() {
this.css = '';
this.map = new SourceMapGenerator({
file: this.outputFile(),
ignoreInvalidMapping: true
});
let line = 1;
let column = 1;
let noSource = '';
let mapping = {
generated: {
column: 0,
line: 0
},
original: {
column: 0,
line: 0
},
source: ''
};
let last, lines;
this.stringify(this.root, (str, node, type)=>{
this.css += str;
if (node && type !== 'end') {
mapping.generated.line = line;
mapping.generated.column = column - 1;
if (node.source && node.source.start) {
mapping.source = this.sourcePath(node);
mapping.original.line = node.source.start.line;
mapping.original.column = node.source.start.column - 1;
this.map.addMapping(mapping);
} else {
mapping.source = noSource;
mapping.original.line = 1;
mapping.original.column = 0;
this.map.addMapping(mapping);
}
}
lines = str.match(/\n/g);
if (lines) {
line += lines.length;
last = str.lastIndexOf('\n');
column = str.length - last;
} else {
column += str.length;
}
if (node && type !== 'start') {
let p = node.parent || {
raws: {}
};
let childless = node.type === 'decl' || node.type === 'atrule' && !node.nodes;
if (!childless || node !== p.last || p.raws.semicolon) {
if (node.source && node.source.end) {
mapping.source = this.sourcePath(node);
mapping.original.line = node.source.end.line;
mapping.original.column = node.source.end.column - 1;
mapping.generated.line = line;
mapping.generated.column = column - 2;
this.map.addMapping(mapping);
} else {
mapping.source = noSource;
mapping.original.line = 1;
mapping.original.column = 0;
mapping.generated.line = line;
mapping.generated.column = column - 1;
this.map.addMapping(mapping);
}
}
}
});
}
isAnnotation() {
if (this.isInline()) {
return true;
}
if (typeof this.mapOpts.annotation !== 'undefined') {
return this.mapOpts.annotation;
}
if (this.previous().length) {
return this.previous().some((i)=>i.annotation);
}
return true;
}
isInline() {
if (typeof this.mapOpts.inline !== 'undefined') {
return this.mapOpts.inline;
}
let annotation = this.mapOpts.annotation;
if (typeof annotation !== 'undefined' && annotation !== true) {
return false;
}
if (this.previous().length) {
return this.previous().some((i)=>i.inline);
}
return true;
}
isMap() {
if (typeof this.opts.map !== 'undefined') {
return !!this.opts.map;
}
return this.previous().length > 0;
}
isSourcesContent() {
if (typeof this.mapOpts.sourcesContent !== 'undefined') {
return this.mapOpts.sourcesContent;
}
if (this.previous().length) {
return this.previous().some((i)=>i.withContent());
}
return true;
}
outputFile() {
if (this.opts.to) {
return this.path(this.opts.to);
} else if (this.opts.from) {
return this.path(this.opts.from);
} else {
return 'to.css';
}
}
path(file) {
if (this.mapOpts.absolute) return file;
if (file.charCodeAt(0) === 60 /* `<` */ ) return file;
if (/^\w+:\/\//.test(file)) return file;
let cached = this.memoizedPaths.get(file);
if (cached) return cached;
let from = this.opts.to ? dirname(this.opts.to) : '.';
if (typeof this.mapOpts.annotation === 'string') {
from = dirname(resolve(from, this.mapOpts.annotation));
}
let path = relative(from, file);
this.memoizedPaths.set(file, path);
return path;
}
previous() {
if (!this.previousMaps) {
this.previousMaps = [];
if (this.root) {
this.root.walk((node)=>{
if (node.source && node.source.input.map) {
let map = node.source.input.map;
if (!this.previousMaps.includes(map)) {
this.previousMaps.push(map);
}
}
});
} else {
let input = new Input(this.originalCSS, this.opts);
if (input.map) this.previousMaps.push(input.map);
}
}
return this.previousMaps;
}
setSourcesContent() {
let already = {};
if (this.root) {
this.root.walk((node)=>{
if (node.source) {
let from = node.source.input.from;
if (from && !already[from]) {
already[from] = true;
let fromUrl = this.usesFileUrls ? this.toFileUrl(from) : this.toUrl(this.path(from));
this.map.setSourceContent(fromUrl, node.source.input.css);
}
}
});
} else if (this.css) {
let from = this.opts.from ? this.toUrl(this.path(this.opts.from)) : '';
this.map.setSourceContent(from, this.css);
}
}
sourcePath(node) {
if (this.mapOpts.from) {
return this.toUrl(this.mapOpts.from);
} else if (this.usesFileUrls) {
return this.toFileUrl(node.source.input.from);
} else {
return this.toUrl(this.path(node.source.input.from));
}
}
toBase64(str) {
if ("TURBOPACK compile-time truthy", 1) {
return __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$buffer$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Buffer"].from(str).toString('base64');
} else //TURBOPACK unreachable
;
}
toFileUrl(path) {
let cached = this.memoizedFileURLs.get(path);
if (cached) return cached;
if (pathToFileURL) {
let fileURL = pathToFileURL(path).toString();
this.memoizedFileURLs.set(path, fileURL);
return fileURL;
} else {
throw new Error('`map.absolute` option is not available in this PostCSS build');
}
}
toUrl(path) {
let cached = this.memoizedURLs.get(path);
if (cached) return cached;
if (sep === '\\') {
path = path.replace(/\\/g, '/');
}
let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent);
this.memoizedURLs.set(path, url);
return url;
}
}
module.exports = MapGenerator;
}),
"[project]/node_modules/postcss/lib/no-work-result.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
'use strict';
let MapGenerator = __turbopack_context__.r("[project]/node_modules/postcss/lib/map-generator.js [app-client] (ecmascript)");
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [app-client] (ecmascript)");
let Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [app-client] (ecmascript)");
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [app-client] (ecmascript)");
let warnOnce = __turbopack_context__.r("[project]/node_modules/postcss/lib/warn-once.js [app-client] (ecmascript)");
class NoWorkResult {
get content() {
return this.result.css;
}
get css() {
return this.result.css;
}
get map() {
return this.result.map;
}
get messages() {
return [];
}
get opts() {
return this.result.opts;
}
get processor() {
return this.result.processor;
}
get root() {
if (this._root) {
return this._root;
}
let root;
let parser = parse;
try {
root = parser(this._css, this._opts);
} catch (error) {
this.error = error;
}
if (this.error) {
throw this.error;
} else {
this._root = root;
return root;
}
}
get [Symbol.toStringTag]() {
return 'NoWorkResult';
}
constructor(processor, css, opts){
css = css.toString();
this.stringified = false;
this._processor = processor;
this._css = css;
this._opts = opts;
this._map = undefined;
let str = stringify;
this.result = new Result(this._processor, undefined, this._opts);
this.result.css = css;
let self = this;
Object.defineProperty(this.result, 'root', {
get () {
return self.root;
}
});
let map = new MapGenerator(str, undefined, this._opts, css);
if (map.isMap()) {
let [generatedCSS, generatedMap] = map.generate();
if (generatedCSS) {
this.result.css = generatedCSS;
}
if (generatedMap) {
this.result.map = generatedMap;
}
} else {
map.clearAnnotation();
this.result.css = map.css;
}
}
async() {
if (this.error) return Promise.reject(this.error);
return Promise.resolve(this.result);
}
catch(onRejected) {
return this.async().catch(onRejected);
}
finally(onFinally) {
return this.async().then(onFinally, onFinally);
}
sync() {
if (this.error) throw this.error;
return this.result;
}
then(onFulfilled, onRejected) {
if ("TURBOPACK compile-time truthy", 1) {
if (!('from' in this._opts)) {
warnOnce('Without `from` option PostCSS could generate wrong source map ' + 'and will not find Browserslist config. Set it to CSS file path ' + 'or to `undefined` to prevent this warning.');
}
}
return this.async().then(onFulfilled, onRejected);
}
toString() {
return this._css;
}
warnings() {
return [];
}
}
module.exports = NoWorkResult;
NoWorkResult.default = NoWorkResult;
}),
"[project]/node_modules/postcss/lib/node.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let CssSyntaxError = __turbopack_context__.r("[project]/node_modules/postcss/lib/css-syntax-error.js [app-client] (ecmascript)");
let Stringifier = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringifier.js [app-client] (ecmascript)");
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [app-client] (ecmascript)");
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [app-client] (ecmascript)");
function cloneNode(obj, parent) {
let cloned = new obj.constructor();
// An explicit stack instead of recursive calls to survive deeply
// nested trees. Each entry is [source, its clone, clone's parent].
let stack = [
[
obj,
cloned,
parent
]
];
while(stack.length > 0){
let [source, target, targetParent] = stack.pop();
for(let i in source){
if (!Object.prototype.hasOwnProperty.call(source, i)) {
continue;
}
if (i === 'proxyCache') continue;
let value = source[i];
let type = typeof value;
if (i === 'parent' && type === 'object') {
if (targetParent) target[i] = targetParent;
} else if (i === 'source') {
target[i] = value;
} else if (Array.isArray(value)) {
let children = [];
target[i] = children;
for (let j of value){
let childClone = new j.constructor();
children.push(childClone);
stack.push([
j,
childClone,
target
]);
}
} else {
if (type === 'object' && value !== null) {
let valueClone = new value.constructor();
stack.push([
value,
valueClone,
undefined
]);
value = valueClone;
}
target[i] = value;
}
}
}
return cloned;
}
function sourceOffset(inputCSS, position) {
// Not all custom syntaxes support `offset` in `source.start` and `source.end`
if (position && typeof position.offset !== 'undefined') {
return position.offset;
}
let column = 1;
let line = 1;
let offset = 0;
for(let i = 0; i < inputCSS.length; i++){
if (line === position.line && column === position.column) {
offset = i;
break;
}
if (inputCSS[i] === '\n') {
column = 1;
line += 1;
} else {
column += 1;
}
}
return offset;
}
class Node {
get proxyOf() {
return this;
}
constructor(defaults = {}){
this.raws = {};
this[isClean] = false;
this[my] = true;
for (let name of Object.keys(defaults)){
if (name === '__proto__') continue;
if (name === 'nodes') {
this.nodes = [];
for (let node of defaults[name]){
// Clone only nodes that already belong to another tree, so passing a
// freshly created (parent-less) node adopts that instance instead of
// a copy and keeps the caller's reference usable. See #1987.
if (typeof node.clone === 'function' && node.parent) {
this.append(node.clone());
} else {
this.append(node);
}
}
} else {
this[name] = defaults[name];
}
}
}
addToError(error) {
error.postcssNode = this;
if (error.stack && this.source && /\n\s{4}at /.test(error.stack)) {
let s = this.source;
error.stack = error.stack.replace(/\n\s{4}at /, `$&${s.input.from}:${s.start.line}:${s.start.column}$&`);
}
return error;
}
after(add) {
this.parent.insertAfter(this, add);
return this;
}
assign(overrides = {}) {
for(let name in overrides){
this[name] = overrides[name];
}
return this;
}
before(add) {
this.parent.insertBefore(this, add);
return this;
}
cleanRaws(keepBetween) {
delete this.raws.before;
delete this.raws.after;
if (!keepBetween) delete this.raws.between;
}
clone(overrides = {}) {
let cloned = cloneNode(this);
for(let name in overrides){
cloned[name] = overrides[name];
}
return cloned;
}
cloneAfter(overrides = {}) {
let cloned = this.clone(overrides);
this.parent.insertAfter(this, cloned);
return cloned;
}
cloneBefore(overrides = {}) {
let cloned = this.clone(overrides);
this.parent.insertBefore(this, cloned);
return cloned;
}
error(message, opts = {}) {
if (this.source) {
let { end, start } = this.rangeBy(opts);
return this.source.input.error(message, {
column: start.column,
line: start.line
}, {
column: end.column,
line: end.line
}, opts);
}
return new CssSyntaxError(message);
}
getProxyProcessor() {
return {
get (node, prop) {
if (prop === 'proxyOf') {
return node;
} else if (prop === 'root') {
return ()=>node.root().toProxy();
} else {
return node[prop];
}
},
set (node, prop, value) {
if (node[prop] === value) return true;
node[prop] = value;
if (prop === 'prop' || prop === 'value' || prop === 'name' || prop === 'params' || prop === 'important' || /* c8 ignore next */ prop === 'text') {
node.markDirty();
}
return true;
}
};
}
/* c8 ignore next 3 */ markClean() {
this[isClean] = true;
}
markDirty() {
if (this[isClean]) {
this[isClean] = false;
let next = this;
while(next = next.parent){
next[isClean] = false;
}
}
}
next() {
if (!this.parent) return undefined;
let index = this.parent.index(this);
return this.parent.nodes[index + 1];
}
positionBy(opts = {}) {
let inputString = 'document' in this.source.input ? this.source.input.document : this.source.input.css;
let pos = {
column: this.source.start.column,
line: this.source.start.line,
offset: sourceOffset(inputString, this.source.start)
};
if (opts.index) {
pos = this.positionInside(opts.index);
} else if (opts.word) {
let stringRepresentation = inputString.slice(sourceOffset(inputString, this.source.start), sourceOffset(inputString, this.source.end));
let index = stringRepresentation.indexOf(opts.word);
if (index !== -1) pos = this.positionInside(index);
}
return pos;
}
positionInside(index) {
let column = this.source.start.column;
let line = this.source.start.line;
let inputString = 'document' in this.source.input ? this.source.input.document : this.source.input.css;
let offset = sourceOffset(inputString, this.source.start);
let end = offset + index;
for(let i = offset; i < end; i++){
if (inputString[i] === '\n') {
column = 1;
line += 1;
} else {
column += 1;
}
}
return {
column,
line,
offset: end
};
}
prev() {
if (!this.parent) return undefined;
let index = this.parent.index(this);
return this.parent.nodes[index - 1];
}
rangeBy(opts = {}) {
let inputString = 'document' in this.source.input ? this.source.input.document : this.source.input.css;
let start = {
column: this.source.start.column,
line: this.source.start.line,
offset: sourceOffset(inputString, this.source.start)
};
let end = this.source.end ? {
column: this.source.end.column + 1,
line: this.source.end.line,
offset: typeof this.source.end.offset === 'number' ? this.source.end.offset : // the `sourceOffset(... , this.source.end)` returns an inclusive offset.
// So, we add 1 to convert it to exclusive.
sourceOffset(inputString, this.source.end) + 1
} : {
column: start.column + 1,
line: start.line,
offset: start.offset + 1
};
if (opts.word) {
let stringRepresentation = inputString.slice(sourceOffset(inputString, this.source.start), sourceOffset(inputString, this.source.end));
let index = stringRepresentation.indexOf(opts.word);
if (index !== -1) {
start = this.positionInside(index);
end = this.positionInside(index + opts.word.length);
}
} else {
if (opts.start) {
start = {
column: opts.start.column,
line: opts.start.line,
offset: sourceOffset(inputString, opts.start)
};
} else if (typeof opts.index === 'number') {
start = this.positionInside(opts.index);
}
if (opts.end) {
end = {
column: opts.end.column,
line: opts.end.line,
offset: sourceOffset(inputString, opts.end)
};
} else if (typeof opts.endIndex === 'number') {
end = this.positionInside(opts.endIndex);
} else if (typeof opts.index === 'number') {
end = this.positionInside(opts.index + 1);
}
}
if (end.line < start.line || end.line === start.line && end.column <= start.column) {
end = {
column: start.column + 1,
line: start.line,
offset: start.offset + 1
};
}
return {
end,
start
};
}
raw(prop, defaultType) {
let str = new Stringifier();
return str.raw(this, prop, defaultType);
}
remove() {
if (this.parent) {
this.parent.removeChild(this);
}
this.parent = undefined;
return this;
}
replaceWith(...nodes) {
if (this.parent) {
let bookmark = this;
let foundSelf = false;
for (let node of nodes){
if (node === this) {
foundSelf = true;
} else if (foundSelf) {
this.parent.insertAfter(bookmark, node);
bookmark = node;
} else {
this.parent.insertBefore(bookmark, node);
}
}
if (!foundSelf) {
this.remove();
}
}
return this;
}
root() {
let result = this;
while(result.parent && result.parent.type !== 'document'){
result = result.parent;
}
return result;
}
toJSON(_, inputs) {
let emitInputs = inputs == null;
inputs = inputs || new Map();
// A worklist instead of recursive `toJSON()` calls to survive deeply
// nested trees. Each entry converts one node and writes the result
// into the already converted parent by [holder, key].
let holderOfRoot = [];
let queue = [
[
this,
holderOfRoot,
0
]
];
for(let step = 0; step < queue.length; step++){
let [node, holder, key] = queue[step];
let fixed = {};
holder[key] = fixed;
for(let name in node){
if (!Object.prototype.hasOwnProperty.call(node, name)) {
continue;
}
if (name === 'parent' || name === 'proxyCache') continue;
let value = node[name];
if (Array.isArray(value)) {
let fixedArray = [];
fixed[name] = fixedArray;
for(let i = 0; i < value.length; i++){
let item = value[i];
if (typeof item === 'object' && item.toJSON) {
if (item.toJSON === Node.prototype.toJSON) {
queue.push([
item,
fixedArray,
i
]);
} else {
fixedArray[i] = item.toJSON(null, inputs);
}
} else {
fixedArray[i] = item;
}
}
} else if (typeof value === 'object' && value.toJSON) {
if (value.toJSON === Node.prototype.toJSON) {
queue.push([
value,
fixed,
name
]);
} else {
fixed[name] = value.toJSON(null, inputs);
}
} else if (name === 'source') {
if (value == null) continue;
let inputId = inputs.get(value.input);
if (inputId == null) {
inputId = inputs.size;
inputs.set(value.input, inputId);
}
fixed[name] = {
end: value.end,
inputId,
start: value.start
};
} else {
fixed[name] = value;
}
}
}
let fixed = holderOfRoot[0];
if (emitInputs) {
fixed.inputs = [
...inputs.keys()
].map((input)=>input.toJSON());
}
return fixed;
}
toProxy() {
if (!this.proxyCache) {
this.proxyCache = new Proxy(this, this.getProxyProcessor());
}
return this.proxyCache;
}
toString(stringifier = stringify) {
if (stringifier.stringify) stringifier = stringifier.stringify;
let result = '';
stringifier(this, (i)=>{
result += i;
});
return result;
}
warn(result, text, opts = {}) {
let data = {
node: this
};
for(let i in opts)data[i] = opts[i];
return result.warn(text, data);
}
}
module.exports = Node;
Node.default = Node;
}),
"[project]/node_modules/postcss/lib/parse.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
'use strict';
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)");
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [app-client] (ecmascript)");
let Parser = __turbopack_context__.r("[project]/node_modules/postcss/lib/parser.js [app-client] (ecmascript)");
function parse(css, opts) {
let input = new Input(css, opts);
let parser = new Parser(input);
try {
parser.parse();
} catch (e) {
if ("TURBOPACK compile-time truthy", 1) {
if (e.name === 'CssSyntaxError' && opts && opts.from) {
if (/\.scss$/i.test(opts.from)) {
e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser';
} else if (/\.sass/i.test(opts.from)) {
e.message += '\nYou tried to parse Sass with ' + 'the standard CSS parser; ' + 'try again with the postcss-sass parser';
} else if (/\.less$/i.test(opts.from)) {
e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser';
}
}
}
throw e;
}
return parser.root;
}
module.exports = parse;
parse.default = parse;
Container.registerParse(parse);
}),
"[project]/node_modules/postcss/lib/parser.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let AtRule = __turbopack_context__.r("[project]/node_modules/postcss/lib/at-rule.js [app-client] (ecmascript)");
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [app-client] (ecmascript)");
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [app-client] (ecmascript)");
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [app-client] (ecmascript)");
let Rule = __turbopack_context__.r("[project]/node_modules/postcss/lib/rule.js [app-client] (ecmascript)");
let tokenizer = __turbopack_context__.r("[project]/node_modules/postcss/lib/tokenize.js [app-client] (ecmascript)");
const SAFE_COMMENT_NEIGHBOR = {
empty: true,
space: true
};
function findLastWithPosition(tokens) {
for(let i = tokens.length - 1; i >= 0; i--){
let token = tokens[i];
let pos = token[3] || token[2];
if (pos) return pos;
}
}
function tokensToString(tokens, from, to) {
let result = '';
for(let i = from; i < to; i++)result += tokens[i][1];
return result;
}
class Parser {
constructor(input){
this.input = input;
this.root = new Root();
this.current = this.root;
this.spaces = '';
this.semicolon = false;
this.createTokenizer();
this.root.source = {
input,
start: {
column: 1,
line: 1,
offset: 0
}
};
}
atrule(token) {
let node = new AtRule();
node.name = token[1].slice(1);
if (node.name === '') {
this.unnamedAtrule(node, token);
}
this.init(node, token[2]);
let type;
let prev;
let shift;
let last = false;
let open = false;
let params = [];
let brackets = [];
while(!this.tokenizer.endOfFile()){
token = this.tokenizer.nextToken();
type = token[0];
if (type === '(' || type === '[') {
brackets.push(type === '(' ? ')' : ']');
} else if (type === '{' && brackets.length > 0) {
brackets.push('}');
} else if (type === brackets[brackets.length - 1]) {
brackets.pop();
}
if (brackets.length === 0) {
if (type === ';') {
node.source.end = this.getPosition(token[2]);
node.source.end.offset++;
this.semicolon = true;
break;
} else if (type === '{') {
open = true;
break;
} else if (type === '}') {
if (params.length > 0) {
shift = params.length - 1;
prev = params[shift];
while(prev && prev[0] === 'space'){
prev = params[--shift];
}
if (prev) {
node.source.end = this.getPosition(prev[3] || prev[2]);
node.source.end.offset++;
}
}
this.end(token);
break;
} else {
params.push(token);
}
} else {
params.push(token);
}
if (this.tokenizer.endOfFile()) {
last = true;
break;
}
}
node.raws.between = this.spacesAndCommentsFromEnd(params);
if (params.length) {
node.raws.afterName = this.spacesAndCommentsFromStart(params);
this.raw(node, 'params', params);
if (last) {
token = params[params.length - 1];
node.source.end = this.getPosition(token[3] || token[2]);
node.source.end.offset++;
this.spaces = node.raws.between;
node.raws.between = '';
}
} else {
node.raws.afterName = '';
node.params = '';
}
if (open) {
node.nodes = [];
this.current = node;
}
}
checkMissedSemicolon(tokens) {
let colon = this.colon(tokens);
if (colon === false) return;
let founded = 0;
let token;
for(let j = colon - 1; j >= 0; j--){
token = tokens[j];
if (token[0] !== 'space') {
founded += 1;
if (founded === 2) break;
}
}
// If the token is a word, e.g. `!important`, `red` or any other valid
// property's value. Then we need to return the colon after that word
// token. [3] is the "end" colon of that word. And because we need it
// after that one we do +1 to get the next one.
throw this.input.error('Missed semicolon', token[0] === 'word' ? token[3] + 1 : token[2]);
}
colon(tokens) {
let brackets = 0;
let prev, token, type;
for (let [i, element] of tokens.entries()){
token = element;
type = token[0];
if (type === '(') {
brackets += 1;
}
if (type === ')') {
brackets -= 1;
}
if (brackets === 0 && type === ':') {
if (!prev) {
this.doubleColon(token);
} else if (prev[0] === 'word' && prev[1] === 'progid') {
continue;
} else {
return i;
}
}
prev = token;
}
return false;
}
comment(token) {
let node = new Comment();
this.init(node, token[2]);
node.source.end = this.getPosition(token[3] || token[2]);
node.source.end.offset++;
let text = token[1].slice(2, -2);
if (!text.trim()) {
node.text = '';
node.raws.left = text;
node.raws.right = '';
} else {
let match = text.match(/^(\s*)([^]*\S)(\s*)$/);
node.text = match[2];
node.raws.left = match[1];
node.raws.right = match[3];
}
}
createTokenizer() {
this.tokenizer = tokenizer(this.input);
}
decl(tokens, customProperty) {
let node = new Declaration();
this.init(node, tokens[0][2]);
let last = tokens[tokens.length - 1];
if (last[0] === ';') {
this.semicolon = true;
tokens.pop();
}
node.source.end = this.getPosition(last[3] || last[2] || findLastWithPosition(tokens));
node.source.end.offset++;
let start = 0;
while(tokens[start][0] !== 'word'){
if (start === tokens.length - 1) this.unknownWord([
tokens[start]
]);
start++;
}
node.raws.before += tokensToString(tokens, 0, start);
node.source.start = this.getPosition(tokens[start][2]);
let propStart = start;
while(start < tokens.length){
let type = tokens[start][0];
if (type === ':' || type === 'space' || type === 'comment') {
break;
}
start++;
}
node.prop = tokensToString(tokens, propStart, start);
let betweenStart = start;
let token;
while(start < tokens.length){
token = tokens[start];
start++;
if (token[0] === ':') break;
if (token[0] === 'word' && /\w/.test(token[1])) {
this.unknownWord([
token
]);
}
}
node.raws.between = tokensToString(tokens, betweenStart, start);
if (node.prop[0] === '_' || node.prop[0] === '*') {
node.raws.before += node.prop[0];
node.prop = node.prop.slice(1);
}
let firstSpacesStart = start;
while(start < tokens.length){
let next = tokens[start][0];
if (next !== 'space' && next !== 'comment') break;
start++;
}
let firstSpaces = tokens.slice(firstSpacesStart, start);
tokens = tokens.slice(start);
this.precheckMissedSemicolon(tokens);
for(let i = tokens.length - 1; i >= 0; i--){
token = tokens[i];
if (token[1].toLowerCase() === '!important') {
node.important = true;
let string = this.stringFrom(tokens, i);
string = this.spacesFromEnd(tokens) + string;
if (string !== ' !important') node.raws.important = string;
break;
} else if (token[1].toLowerCase() === 'important') {
let cache = tokens.slice(0);
let str = '';
for(let j = i; j > 0; j--){
let type = cache[j][0];
if (str.trim().startsWith('!') && type !== 'space') {
break;
}
str = cache.pop()[1] + str;
}
if (str.trim().startsWith('!')) {
node.important = true;
node.raws.important = str;
tokens = cache;
}
}
if (token[0] !== 'space' && token[0] !== 'comment') {
break;
}
}
let hasWord = tokens.some((i)=>i[0] !== 'space' && i[0] !== 'comment');
if (hasWord) {
node.raws.between += firstSpaces.map((i)=>i[1]).join('');
firstSpaces = [];
}
this.raw(node, 'value', firstSpaces.concat(tokens), customProperty);
if (node.value.includes(':') && !customProperty) {
this.checkMissedSemicolon(tokens);
}
}
doubleColon(token) {
throw this.input.error('Double colon', {
offset: token[2]
}, {
offset: token[2] + token[1].length
});
}
emptyRule(token) {
let node = new Rule();
this.init(node, token[2]);
node.selector = '';
node.raws.between = '';
this.current = node;
}
end(token) {
if (this.current.nodes && this.current.nodes.length) {
this.current.raws.semicolon = this.semicolon;
}
this.semicolon = false;
this.current.raws.after = (this.current.raws.after || '') + this.spaces;
this.spaces = '';
if (this.current.parent) {
this.current.source.end = this.getPosition(token[2]);
this.current.source.end.offset++;
this.current = this.current.parent;
} else {
this.unexpectedClose(token);
}
}
endFile() {
if (this.current.parent) this.unclosedBlock();
if (this.current.nodes && this.current.nodes.length) {
this.current.raws.semicolon = this.semicolon;
}
this.current.raws.after = (this.current.raws.after || '') + this.spaces;
this.root.source.end = this.getPosition(this.tokenizer.position());
}
freeSemicolon(token) {
this.spaces += token[1];
if (this.current.nodes) {
let prev = this.current.nodes[this.current.nodes.length - 1];
if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
prev.raws.ownSemicolon = this.spaces;
this.spaces = '';
prev.source.end = this.getPosition(token[2]);
prev.source.end.offset += prev.raws.ownSemicolon.length;
}
}
}
// Helpers
getPosition(offset) {
let pos = this.input.fromOffset(offset);
return {
column: pos.col,
line: pos.line,
offset
};
}
init(node, offset) {
this.current.push(node);
node.source = {
input: this.input,
start: this.getPosition(offset)
};
node.raws.before = this.spaces;
this.spaces = '';
if (node.type !== 'comment') this.semicolon = false;
}
other(start) {
let end = false;
let type = null;
let colon = false;
let bracket = null;
let brackets = [];
let customProperty = start[1].startsWith('--');
let tokens = [];
let token = start;
while(token){
type = token[0];
tokens.push(token);
if (type === '(' || type === '[') {
if (!bracket) bracket = token;
brackets.push(type === '(' ? ')' : ']');
} else if (customProperty && colon && type === '{') {
if (!bracket) bracket = token;
brackets.push('}');
} else if (brackets.length === 0) {
if (type === ';') {
if (colon) {
this.decl(tokens, customProperty);
return;
} else {
break;
}
} else if (type === '{') {
this.rule(tokens);
return;
} else if (type === '}') {
this.tokenizer.back(tokens.pop());
end = true;
break;
} else if (type === ':') {
colon = true;
}
} else if (type === brackets[brackets.length - 1]) {
brackets.pop();
if (brackets.length === 0) bracket = null;
}
token = this.tokenizer.nextToken();
}
if (this.tokenizer.endOfFile()) end = true;
if (brackets.length > 0) this.unclosedBracket(bracket);
if (end && colon) {
if (!customProperty) {
while(tokens.length){
token = tokens[tokens.length - 1][0];
if (token !== 'space' && token !== 'comment') break;
this.tokenizer.back(tokens.pop());
}
}
this.decl(tokens, customProperty);
} else {
this.unknownWord(tokens);
}
}
parse() {
let token;
while(!this.tokenizer.endOfFile()){
token = this.tokenizer.nextToken();
switch(token[0]){
case 'space':
this.spaces += token[1];
break;
case ';':
this.freeSemicolon(token);
break;
case '}':
this.end(token);
break;
case 'comment':
this.comment(token);
break;
case 'at-word':
this.atrule(token);
break;
case '{':
this.emptyRule(token);
break;
default:
this.other(token);
break;
}
}
this.endFile();
}
precheckMissedSemicolon() {
// Hook for Safe Parser
}
raw(node, prop, tokens, customProperty) {
let token, type;
let length = tokens.length;
let value = '';
let clean = true;
let next, prev;
for(let i = 0; i < length; i += 1){
token = tokens[i];
type = token[0];
if (type === 'space' && i === length - 1 && !customProperty) {
clean = false;
} else if (type === 'comment') {
prev = tokens[i - 1] ? tokens[i - 1][0] : 'empty';
next = tokens[i + 1] ? tokens[i + 1][0] : 'empty';
if (!SAFE_COMMENT_NEIGHBOR[prev] && !SAFE_COMMENT_NEIGHBOR[next]) {
if (value.slice(-1) === ',') {
clean = false;
} else {
value += token[1];
}
} else {
clean = false;
}
} else {
value += token[1];
}
}
if (!clean) {
let raw = tokens.reduce((all, i)=>all + i[1], '');
node.raws[prop] = {
raw,
value
};
}
node[prop] = value;
}
rule(tokens) {
tokens.pop();
let node = new Rule();
this.init(node, tokens[0][2]);
node.raws.between = this.spacesAndCommentsFromEnd(tokens);
this.raw(node, 'selector', tokens);
this.current = node;
}
spacesAndCommentsFromEnd(tokens) {
let lastTokenType;
let spaces = '';
while(tokens.length){
lastTokenType = tokens[tokens.length - 1][0];
if (lastTokenType !== 'space' && lastTokenType !== 'comment') break;
spaces = tokens.pop()[1] + spaces;
}
return spaces;
}
// Errors
spacesAndCommentsFromStart(tokens) {
let next;
let spaces = '';
while(tokens.length){
next = tokens[0][0];
if (next !== 'space' && next !== 'comment') break;
spaces += tokens.shift()[1];
}
return spaces;
}
spacesFromEnd(tokens) {
let lastTokenType;
let spaces = '';
while(tokens.length){
lastTokenType = tokens[tokens.length - 1][0];
if (lastTokenType !== 'space') break;
spaces = tokens.pop()[1] + spaces;
}
return spaces;
}
stringFrom(tokens, from) {
let result = '';
for(let i = from; i < tokens.length; i++){
result += tokens[i][1];
}
tokens.splice(from, tokens.length - from);
return result;
}
unclosedBlock() {
let pos = this.current.source.start;
throw this.input.error('Unclosed block', pos.line, pos.column);
}
unclosedBracket(bracket) {
throw this.input.error('Unclosed bracket', {
offset: bracket[2]
}, {
offset: bracket[2] + 1
});
}
unexpectedClose(token) {
throw this.input.error('Unexpected }', {
offset: token[2]
}, {
offset: token[2] + 1
});
}
unknownWord(tokens) {
throw this.input.error('Unknown word ' + tokens[0][1], {
offset: tokens[0][2]
}, {
offset: tokens[0][2] + tokens[0][1].length
});
}
unnamedAtrule(node, token) {
throw this.input.error('At-rule without name', {
offset: token[2]
}, {
offset: token[2] + token[1].length
});
}
}
module.exports = Parser;
}),
"[project]/node_modules/postcss/lib/postcss.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
'use strict';
let AtRule = __turbopack_context__.r("[project]/node_modules/postcss/lib/at-rule.js [app-client] (ecmascript)");
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [app-client] (ecmascript)");
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)");
let CssSyntaxError = __turbopack_context__.r("[project]/node_modules/postcss/lib/css-syntax-error.js [app-client] (ecmascript)");
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [app-client] (ecmascript)");
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [app-client] (ecmascript)");
let fromJSON = __turbopack_context__.r("[project]/node_modules/postcss/lib/fromJSON.js [app-client] (ecmascript)");
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [app-client] (ecmascript)");
let LazyResult = __turbopack_context__.r("[project]/node_modules/postcss/lib/lazy-result.js [app-client] (ecmascript)");
let list = __turbopack_context__.r("[project]/node_modules/postcss/lib/list.js [app-client] (ecmascript)");
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [app-client] (ecmascript)");
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [app-client] (ecmascript)");
let Processor = __turbopack_context__.r("[project]/node_modules/postcss/lib/processor.js [app-client] (ecmascript)");
let Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [app-client] (ecmascript)");
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [app-client] (ecmascript)");
let Rule = __turbopack_context__.r("[project]/node_modules/postcss/lib/rule.js [app-client] (ecmascript)");
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [app-client] (ecmascript)");
let Warning = __turbopack_context__.r("[project]/node_modules/postcss/lib/warning.js [app-client] (ecmascript)");
function postcss(...plugins) {
if (plugins.length === 1 && Array.isArray(plugins[0])) {
plugins = plugins[0];
}
return new Processor(plugins);
}
postcss.plugin = function plugin(name, initializer) {
let warningPrinted = false;
function creator(...args) {
// eslint-disable-next-line no-console
if (console && console.warn && !warningPrinted) {
warningPrinted = true;
// eslint-disable-next-line no-console
console.warn(name + ': postcss.plugin was deprecated. Migration guide:\n' + 'https://evilmartians.com/chronicles/postcss-8-plugin-migration');
if (__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"].env.LANG && __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"].env.LANG.startsWith('cn')) {
/* c8 ignore next 7 */ // eslint-disable-next-line no-console
console.warn(name + ': 里面 postcss.plugin 被弃用. 迁移指南:\n' + 'https://www.w3ctech.com/topic/2226');
}
}
let transformer = initializer(...args);
transformer.postcssPlugin = name;
transformer.postcssVersion = new Processor().version;
return transformer;
}
let cache;
Object.defineProperty(creator, 'postcss', {
get () {
if (!cache) cache = creator();
return cache;
}
});
creator.process = function(css, processOpts, pluginOpts) {
return postcss([
creator(pluginOpts)
]).process(css, processOpts);
};
return creator;
};
postcss.stringify = stringify;
postcss.parse = parse;
postcss.fromJSON = fromJSON;
postcss.list = list;
postcss.comment = (defaults)=>new Comment(defaults);
postcss.atRule = (defaults)=>new AtRule(defaults);
postcss.decl = (defaults)=>new Declaration(defaults);
postcss.rule = (defaults)=>new Rule(defaults);
postcss.root = (defaults)=>new Root(defaults);
postcss.document = (defaults)=>new Document(defaults);
postcss.CssSyntaxError = CssSyntaxError;
postcss.Declaration = Declaration;
postcss.Container = Container;
postcss.Processor = Processor;
postcss.Document = Document;
postcss.Comment = Comment;
postcss.Warning = Warning;
postcss.AtRule = AtRule;
postcss.Result = Result;
postcss.Input = Input;
postcss.Rule = Rule;
postcss.Root = Root;
postcss.Node = Node;
LazyResult.registerPostcss(postcss);
module.exports = postcss;
postcss.default = postcss;
}),
"[project]/node_modules/postcss/lib/previous-map.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$buffer$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/compiled/buffer/index.js [app-client] (ecmascript)");
'use strict';
let { existsSync, readFileSync } = {};
let { dirname, isAbsolute, join, relative, sep } = {};
let { SourceMapConsumer, SourceMapGenerator } = {};
function fromBase64(str) {
if ("TURBOPACK compile-time truthy", 1) {
return __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$buffer$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Buffer"].from(str, 'base64').toString();
} else //TURBOPACK unreachable
;
}
class PreviousMap {
constructor(css, opts){
if (opts.map === false) return;
if (opts.unsafeMap) this.unsafeMap = true;
this.loadAnnotation(css);
this.inline = this.startWith(this.annotation, 'data:');
let prev = opts.map ? opts.map.prev : undefined;
let text = this.loadMap(opts.from, prev);
if (!this.mapFile && opts.from) {
this.mapFile = opts.from;
}
if (this.mapFile) this.root = dirname(this.mapFile);
if (text) this.text = text;
}
consumer() {
if (!this.consumerCache) {
this.consumerCache = new SourceMapConsumer(this.json || this.text);
}
return this.consumerCache;
}
decodeInline(text) {
let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/;
let baseUri = /^data:application\/json;base64,/;
let charsetUri = /^data:application\/json;charset=utf-?8,/;
let uri = /^data:application\/json,/;
let uriMatch = text.match(charsetUri) || text.match(uri);
if (uriMatch) {
return decodeURIComponent(text.substr(uriMatch[0].length));
}
let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri);
if (baseUriMatch) {
return fromBase64(text.substr(baseUriMatch[0].length));
}
let encoding = text.slice('data:application/json;'.length);
encoding = encoding.slice(0, encoding.indexOf(','));
throw new Error('Unsupported source map encoding ' + encoding);
}
getAnnotationURL(sourceMapString) {
return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, '').trim();
}
isMap(map) {
if (typeof map !== 'object') return false;
return typeof map.mappings === 'string' || typeof map._mappings === 'string' || Array.isArray(map.sections);
}
loadAnnotation(css) {
let comments = css.match(/\/\*\s*# sourceMappingURL=/g);
if (!comments) return;
// sourceMappingURLs from comments, strings, etc.
let start = css.lastIndexOf(comments.pop());
let end = css.indexOf('*/', start);
if (start > -1 && end > -1) {
// Locate the last sourceMappingURL to avoid pickin
this.annotation = this.getAnnotationURL(css.substring(start, end));
}
}
loadFile(path, cssFile, trusted) {
if (!trusted && !this.unsafeMap) {
if (!/\.map$/i.test(path)) return undefined;
if (!cssFile) return undefined;
let rel = relative(dirname(cssFile), path);
if (rel === '..' || rel.startsWith('..' + sep) || isAbsolute(rel)) {
return undefined;
}
}
this.root = dirname(path);
if (existsSync(path)) {
this.mapFile = path;
return readFileSync(path, 'utf-8').toString().trim();
}
}
loadMap(file, prev) {
if (prev === false) return false;
if (prev) {
if (typeof prev === 'string') {
return prev;
} else if (typeof prev === 'function') {
let prevPath = prev(file);
if (prevPath) {
let map = this.loadFile(prevPath, file, true);
if (!map) {
throw new Error('Unable to load previous source map: ' + prevPath.toString());
}
return map;
}
} else if (prev instanceof SourceMapConsumer) {
return SourceMapGenerator.fromSourceMap(prev).toString();
} else if (prev instanceof SourceMapGenerator) {
return prev.toString();
} else if (this.isMap(prev)) {
return JSON.stringify(prev);
} else {
throw new Error('Unsupported previous source map format: ' + prev.toString());
}
} else if (this.inline) {
return this.decodeInline(this.annotation);
} else if (this.annotation) {
let map = this.annotation;
if (file) map = join(dirname(file), map);
let unknown = this.loadFile(map, file, false);
if (unknown) {
try {
/* c8 ignore next 4 */ this.json = JSON.parse(unknown.replace(/^\)]}'[^\n]*\n/, ''));
} catch {
return undefined;
}
}
return unknown;
}
}
startWith(string, start) {
if (!string) return false;
return string.substr(0, start.length) === start;
}
withContent() {
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
}
}
module.exports = PreviousMap;
PreviousMap.default = PreviousMap;
}),
"[project]/node_modules/postcss/lib/processor.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
'use strict';
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [app-client] (ecmascript)");
let LazyResult = __turbopack_context__.r("[project]/node_modules/postcss/lib/lazy-result.js [app-client] (ecmascript)");
let NoWorkResult = __turbopack_context__.r("[project]/node_modules/postcss/lib/no-work-result.js [app-client] (ecmascript)");
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [app-client] (ecmascript)");
class Processor {
constructor(plugins = []){
this.version = '8.5.23';
this.plugins = this.normalize(plugins);
}
normalize(plugins) {
let normalized = [];
for (let i of plugins){
if (i.postcss === true) {
i = i();
} else if (i.postcss) {
i = i.postcss;
}
if (typeof i === 'object' && Array.isArray(i.plugins)) {
normalized = normalized.concat(i.plugins);
} else if (typeof i === 'object' && i.postcssPlugin) {
normalized.push(i);
} else if (typeof i === 'function') {
normalized.push(i);
} else if (typeof i === 'object' && (i.parse || i.stringify)) {
if ("TURBOPACK compile-time truthy", 1) {
throw new Error('PostCSS syntaxes cannot be used as plugins. Instead, please use ' + 'one of the syntax/parser/stringifier options as outlined ' + 'in your PostCSS runner documentation.');
}
} else {
throw new Error(i + ' is not a PostCSS plugin');
}
}
return normalized;
}
process(css, opts = {}) {
if (!this.plugins.length && !opts.parser && !opts.stringifier && !opts.syntax) {
return new NoWorkResult(this, css, opts);
} else {
return new LazyResult(this, css, opts);
}
}
use(plugin) {
this.plugins = this.plugins.concat(this.normalize([
plugin
]));
return this;
}
}
module.exports = Processor;
Processor.default = Processor;
Root.registerProcessor(Processor);
Document.registerProcessor(Processor);
}),
"[project]/node_modules/postcss/lib/result.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Warning = __turbopack_context__.r("[project]/node_modules/postcss/lib/warning.js [app-client] (ecmascript)");
class Result {
get content() {
return this.css;
}
constructor(processor, root, opts){
this.processor = processor;
this.messages = [];
this.root = root;
this.opts = opts;
this.css = '';
this.map = undefined;
}
toString() {
return this.css;
}
warn(text, opts = {}) {
if (!opts.plugin) {
if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
opts.plugin = this.lastPlugin.postcssPlugin;
}
}
let warning = new Warning(text, opts);
this.messages.push(warning);
return warning;
}
warnings() {
return this.messages.filter((i)=>i.type === 'warning');
}
}
module.exports = Result;
Result.default = Result;
}),
"[project]/node_modules/postcss/lib/root.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)");
let LazyResult, Processor;
class Root extends Container {
constructor(defaults){
super(defaults);
this.type = 'root';
if (!this.nodes) this.nodes = [];
}
normalize(child, sample, type) {
let keepBefore = new Set();
for (let node of Array.isArray(child) ? child : [
child
]){
if (node && typeof node === 'object' && !node.parent && node.raws && typeof node.raws.before !== 'undefined') {
keepBefore.add(node.raws);
}
}
let nodes = super.normalize(child);
if (sample) {
if (type === 'prepend') {
if (this.nodes.length > 1) {
sample.raws.before = this.nodes[1].raws.before;
} else {
delete sample.raws.before;
}
} else if (this.first !== sample) {
for (let node of nodes){
if (!keepBefore.has(node.raws)) {
node.raws.before = sample.raws.before;
}
}
}
}
return nodes;
}
removeChild(child, ignore) {
let index = this.index(child);
if (!ignore && index === 0 && this.nodes.length > 1) {
this.nodes[1].raws.before = this.nodes[index].raws.before;
}
return super.removeChild(child);
}
toResult(opts = {}) {
let lazy = new LazyResult(new Processor(), this, opts);
return lazy.stringify();
}
}
Root.registerLazyResult = (dependant)=>{
LazyResult = dependant;
};
Root.registerProcessor = (dependant)=>{
Processor = dependant;
};
module.exports = Root;
Root.default = Root;
Container.registerRoot(Root);
}),
"[project]/node_modules/postcss/lib/rule.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [app-client] (ecmascript)");
let list = __turbopack_context__.r("[project]/node_modules/postcss/lib/list.js [app-client] (ecmascript)");
class Rule extends Container {
get selectors() {
return list.comma(this.selector);
}
set selectors(values) {
let match = this.selector ? this.selector.match(/,\s*/) : null;
let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen');
this.selector = values.join(sep);
}
constructor(defaults){
super(defaults);
this.type = 'rule';
if (!this.nodes) this.nodes = [];
}
}
module.exports = Rule;
Rule.default = Rule;
Container.registerRule(Rule);
}),
"[project]/node_modules/postcss/lib/stringifier.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
// Escapes sequences that could break out of an HTML