(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined, "[project]/node_modules/dayjs/dayjs.min.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => { !function(t, e) { ("TURBOPACK compile-time truthy", 1) ? module.exports = e() : "TURBOPACK unreachable"; }(/*TURBOPACK member replacement*/ __turbopack_context__.e, function() { "use strict"; var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t) { var e = [ "th", "st", "nd", "rd" ], n = t % 100; return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]"; } }, m = function(t, e, n) { var r = String(t); return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t; }, v = { s: m, z: function(t) { var e = -t.utcOffset(), n = Math.abs(e), r = Math.floor(n / 60), i = n % 60; return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0"); }, m: function t(e, n) { if (e.date() < n.date()) return -t(n, e); var r = 12 * (n.year() - e.year()) + (n.month() - e.month()), i = e.clone().add(r, c), s = n - i < 0, u = e.clone().add(r + (s ? -1 : 1), c); return +(-(r + (n - i) / (s ? i - u : u - i)) || 0); }, a: function(t) { return t < 0 ? Math.ceil(t) || 0 : Math.floor(t); }, p: function(t) { return ({ M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f })[t] || String(t || "").toLowerCase().replace(/s$/, ""); }, u: function(t) { return void 0 === t; } }, g = "en", D = {}; D[g] = M; var p = "$isDayjsObject", S = function(t) { return t instanceof _ || !(!t || !t[p]); }, w = function t(e, n, r) { var i; if (!e) return g; if ("string" == typeof e) { var s = e.toLowerCase(); D[s] && (i = s), n && (D[s] = n, i = s); var u = e.split("-"); if (!i && u.length > 1) return t(u[0]); } else { var a = e.name; D[a] = e, i = a; } return !r && i && (g = i), i || !r && g; }, O = function(t, e) { if (S(t)) return t.clone(); var n = "object" == typeof e ? e : {}; return n.date = t, n.args = arguments, new _(n); }, b = v; b.l = w, b.i = S, b.w = function(t, e) { return O(t, { locale: e.$L, utc: e.$u, x: e.$x, $offset: e.$offset }); }; var _ = function() { function M(t) { this.$L = w(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[p] = !0; } var m = M.prototype; return m.parse = function(t) { this.$d = function(t) { var e = t.date, n = t.utc; if (null === e) return new Date(NaN); if (b.u(e)) return new Date; if (e instanceof Date) return new Date(e); if ("string" == typeof e && !/Z$/i.test(e)) { var r = e.match($); if (r) { var i = r[2] - 1 || 0, s = (r[7] || "0").substring(0, 3); return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s); } } return new Date(e); }(t), this.init(); }, m.init = function() { var t = this.$d; this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds(); }, m.$utils = function() { return b; }, m.isValid = function() { return !(this.$d.toString() === l); }, m.isSame = function(t, e) { var n = O(t); return this.startOf(e) <= n && n <= this.endOf(e); }, m.isAfter = function(t, e) { return O(t) < this.startOf(e); }, m.isBefore = function(t, e) { return this.endOf(e) < O(t); }, m.$g = function(t, e, n) { return b.u(t) ? this[e] : this.set(n, t); }, m.unix = function() { return Math.floor(this.valueOf() / 1e3); }, m.valueOf = function() { return this.$d.getTime(); }, m.startOf = function(t, e) { var n = this, r = !!b.u(e) || e, f = b.p(t), l = function(t, e) { var i = b.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n); return r ? i : i.endOf(a); }, $ = function(t, e) { return b.w(n.toDate()[t].apply(n.toDate("s"), (r ? [ 0, 0, 0, 0 ] : [ 23, 59, 59, 999 ]).slice(e)), n); }, y = this.$W, M = this.$M, m = this.$D, v = "set" + (this.$u ? "UTC" : ""); switch(f){ case h: return r ? l(1, 0) : l(31, 11); case c: return r ? l(1, M) : l(0, M + 1); case o: var g = this.$locale().weekStart || 0, D = (y < g ? y + 7 : y) - g; return l(r ? m - D : m + (6 - D), M); case a: case d: return $(v + "Hours", 0); case u: return $(v + "Minutes", 1); case s: return $(v + "Seconds", 2); case i: return $(v + "Milliseconds", 3); default: return this.clone(); } }, m.endOf = function(t) { return this.startOf(t, !1); }, m.$set = function(t, e) { var n, o = b.p(t), f = "set" + (this.$u ? "UTC" : ""), l = (n = {}, n[a] = f + "Date", n[d] = f + "Date", n[c] = f + "Month", n[h] = f + "FullYear", n[u] = f + "Hours", n[s] = f + "Minutes", n[i] = f + "Seconds", n[r] = f + "Milliseconds", n)[o], $ = o === a ? this.$D + (e - this.$W) : e; if (o === c || o === h) { var y = this.clone().set(d, 1); y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d; } else l && this.$d[l]($); return this.init(), this; }, m.set = function(t, e) { return this.clone().$set(t, e); }, m.get = function(t) { return this[b.p(t)](); }, m.add = function(r, f) { var d, l = this; r = Number(r); var $ = b.p(f), y = function(t) { var e = O(l); return b.w(e.date(e.date() + Math.round(t * r)), l); }; if ($ === c) return this.set(c, this.$M + r); if ($ === h) return this.set(h, this.$y + r); if ($ === a) return y(1); if ($ === o) return y(7); var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1, m = this.$d.getTime() + r * M; return b.w(m, this); }, m.subtract = function(t, e) { return this.add(-1 * t, e); }, m.format = function(t) { var e = this, n = this.$locale(); if (!this.isValid()) return n.invalidDate || l; var r = t || "YYYY-MM-DDTHH:mm:ssZ", i = b.z(this), s = this.$H, u = this.$m, a = this.$M, o = n.weekdays, c = n.months, f = n.meridiem, h = function(t, n, i, s) { return t && (t[n] || t(e, r)) || i[n].slice(0, s); }, d = function(t) { return b.s(s % 12 || 12, t, "0"); }, $ = f || function(t, e, n) { var r = t < 12 ? "AM" : "PM"; return n ? r.toLowerCase() : r; }; return r.replace(y, function(t, r) { return r || function(t) { switch(t){ case "YY": return String(e.$y).slice(-2); case "YYYY": return b.s(e.$y, 4, "0"); case "M": return a + 1; case "MM": return b.s(a + 1, 2, "0"); case "MMM": return h(n.monthsShort, a, c, 3); case "MMMM": return h(c, a); case "D": return e.$D; case "DD": return b.s(e.$D, 2, "0"); case "d": return String(e.$W); case "dd": return h(n.weekdaysMin, e.$W, o, 2); case "ddd": return h(n.weekdaysShort, e.$W, o, 3); case "dddd": return o[e.$W]; case "H": return String(s); case "HH": return b.s(s, 2, "0"); case "h": return d(1); case "hh": return d(2); case "a": return $(s, u, !0); case "A": return $(s, u, !1); case "m": return String(u); case "mm": return b.s(u, 2, "0"); case "s": return String(e.$s); case "ss": return b.s(e.$s, 2, "0"); case "SSS": return b.s(e.$ms, 3, "0"); case "Z": return i; } return null; }(t) || i.replace(":", ""); }); }, m.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, m.diff = function(r, d, l) { var $, y = this, M = b.p(d), m = O(r), v = (m.utcOffset() - this.utcOffset()) * e, g = this - m, D = function() { return b.m(y, m); }; switch(M){ case h: $ = D() / 12; break; case c: $ = D(); break; case f: $ = D() / 3; break; case o: $ = (g - v) / 6048e5; break; case a: $ = (g - v) / 864e5; break; case u: $ = g / n; break; case s: $ = g / e; break; case i: $ = g / t; break; default: $ = g; } return l ? $ : b.a($); }, m.daysInMonth = function() { return this.endOf(c).$D; }, m.$locale = function() { return D[this.$L]; }, m.locale = function(t, e) { if (!t) return this.$L; var n = this.clone(), r = w(t, e, !0); return r && (n.$L = r), n; }, m.clone = function() { return b.w(this.$d, this); }, m.toDate = function() { return new Date(this.valueOf()); }, m.toJSON = function() { return this.isValid() ? this.toISOString() : null; }, m.toISOString = function() { return this.$d.toISOString(); }, m.toString = function() { return this.$d.toUTCString(); }, M; }(), Y = _.prototype; return O.prototype = Y, [ [ "$ms", r ], [ "$s", i ], [ "$m", s ], [ "$H", u ], [ "$W", a ], [ "$M", c ], [ "$y", h ], [ "$D", d ] ].forEach(function(t) { Y[t[1]] = function(e) { return this.$g(e, t[0], t[1]); }; }), O.extend = function(t, e) { return t.$i || (t(e, _, O), t.$i = !0), O; }, O.locale = w, O.isDayjs = S, O.unix = function(t) { return O(1e3 * t); }, O.en = D[g], O.Ls = D, O.p = {}, O; }); }), "[project]/node_modules/deepmerge/dist/cjs.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => { "use strict"; var isMergeableObject = function isMergeableObject(value) { return isNonNullObject(value) && !isSpecial(value); }; function isNonNullObject(value) { return !!value && typeof value === 'object'; } function isSpecial(value) { var stringValue = Object.prototype.toString.call(value); return stringValue === '[object RegExp]' || stringValue === '[object Date]' || isReactElement(value); } // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 var canUseSymbol = typeof Symbol === 'function' && Symbol.for; var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; function isReactElement(value) { return value.$$typeof === REACT_ELEMENT_TYPE; } function emptyTarget(val) { return Array.isArray(val) ? [] : {}; } function cloneUnlessOtherwiseSpecified(value, options) { return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value; } function defaultArrayMerge(target, source, options) { return target.concat(source).map(function(element) { return cloneUnlessOtherwiseSpecified(element, options); }); } function getMergeFunction(key, options) { if (!options.customMerge) { return deepmerge; } var customMerge = options.customMerge(key); return typeof customMerge === 'function' ? customMerge : deepmerge; } function getEnumerableOwnPropertySymbols(target) { return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) { return Object.propertyIsEnumerable.call(target, symbol); }) : []; } function getKeys(target) { return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target)); } function propertyIsOnObject(object, property) { try { return property in object; } catch (_) { return false; } } // Protects from prototype poisoning and unexpected merging up the prototype chain. function propertyIsUnsafe(target, key) { return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet, && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain, && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable. ; } function mergeObject(target, source, options) { var destination = {}; if (options.isMergeableObject(target)) { getKeys(target).forEach(function(key) { destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); }); } getKeys(source).forEach(function(key) { if (propertyIsUnsafe(target, key)) { return; } if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) { destination[key] = getMergeFunction(key, options)(target[key], source[key], options); } else { destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); } }); return destination; } function deepmerge(target, source, options) { options = options || {}; options.arrayMerge = options.arrayMerge || defaultArrayMerge; options.isMergeableObject = options.isMergeableObject || isMergeableObject; // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge() // implementations can use it. The caller may not replace it. options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified; var sourceIsArray = Array.isArray(source); var targetIsArray = Array.isArray(target); var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; if (!sourceAndTargetTypesMatch) { return cloneUnlessOtherwiseSpecified(source, options); } else if (sourceIsArray) { return options.arrayMerge(target, source, options); } else { return mergeObject(target, source, options); } } deepmerge.all = function deepmergeAll(array, options) { if (!Array.isArray(array)) { throw new Error('first argument should be an array'); } return array.reduce(function(prev, next) { return deepmerge(prev, next, options); }, {}); }; var deepmerge_1 = deepmerge; module.exports = deepmerge_1; }), "[project]/node_modules/dom-serializer/dist/foreign-names.js [app-client] (ecmascript)", ((__turbopack_context__) => { "use strict"; /** * Mixed-case SVG and MathML element names recognized in foreign content. * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign */ __turbopack_context__.s([ "attributeNames", ()=>attributeNames, "elementNames", ()=>elementNames ]); const elementNames = new Map("altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath".split(" ").map((name)=>[ name.toLowerCase(), name ])); const attributeNames = new Map("definitionURL attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits diffuseConstant edgeMode filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" ").map((name)=>[ name.toLowerCase(), name ])); }), "[project]/node_modules/dom-serializer/dist/index.js [app-client] (ecmascript)", ((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ "default", ()=>__TURBOPACK__default__export__, "render", ()=>render ]); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/domelementtype/dist/index.js [app-client] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$escape$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/entities/dist/escape.js [app-client] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$dom$2d$serializer$2f$dist$2f$foreign$2d$names$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/dom-serializer/dist/foreign-names.js [app-client] (ecmascript)"); ; ; ; // ── Constants ──────────────────────────────────────────────────────── /** Elements whose text content is never entity-encoded. */ const unencodedElements = new Set("style script xmp iframe noembed noframes plaintext noscript".split(" ")); /** HTML void elements — they cannot have children. */ const voidElements = new Set("area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr".split(" ")); /** Elements that switch the parser into foreign (XML-like) mode. */ const foreignElements = new Set([ "svg", "math" ]); /** * Foreign-mode integration points: children of these elements are parsed * as HTML again, not as foreign content. */ const foreignModeIntegrationPoints = new Set("mi mo mn ms mtext annotation-xml foreignObject desc title".split(" ")); function render(node, options = {}) { const nodes = "length" in node ? node : [ node ]; /* * `xmlMode` is threaded as a separate argument through the internal * functions so that foreign-mode transitions (svg/mathml ↔ html) can * adjust it without copying the options object on every element. */ const xmlMode = options.xmlMode ?? false; let output = ""; // eslint-disable-next-line unicorn/no-for-loop for(let index = 0; index < nodes.length; index++){ output += renderNode(nodes[index], options, xmlMode); } return output; } const __TURBOPACK__default__export__ = render; // ── Internal rendering ─────────────────────────────────────────────── /** * Render an array of child nodes (skips the single-node wrapping in `render`). * @param children The child nodes to render. * @param options The serialization options. * @param xmlMode The XML mode to use. */ function renderChildren(children, options, xmlMode) { let output = ""; // eslint-disable-next-line unicorn/no-for-loop for(let index = 0; index < children.length; index++){ output += renderNode(children[index], options, xmlMode); } return output; } function renderNode(node, options, xmlMode) { switch(node.type){ case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Root"]: { return renderChildren(node.children, options, xmlMode); } case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Directive"]: { return `<${node.data}>`; } case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Comment"]: { return ``; } case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["CDATA"]: { return ``; } case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Script"]: case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Style"]: case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Tag"]: { return renderTag(node, options, xmlMode); } case __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Text"]: { const element = node; const data = element.data || ""; /* * Skip encoding when entities weren't decoded on input, or when * inside a raw-text element (script, style, etc.) in HTML mode. */ if ((options.encodeEntities ?? options.decodeEntities) !== false && !(!xmlMode && element.parent && unencodedElements.has(element.parent.name))) { // `xmlMode: "foreign"` is truthy return xmlMode || options.encodeEntities !== "utf8" ? (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$escape$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["encodeXML"])(data) : (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$escape$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["escapeText"])(data); } return data; } } } function renderTag(element, options, xmlMode) { if (xmlMode === "foreign") { // Correct lowercase element names back to their canonical mixed-case form element.name = __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$dom$2d$serializer$2f$dist$2f$foreign$2d$names$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["elementNames"].get(element.name) ?? element.name; // Integration points exit foreign mode: their children are HTML if (element.parent && foreignModeIntegrationPoints.has(element.parent.name)) { xmlMode = false; } } if (!xmlMode && foreignElements.has(element.name)) { xmlMode = "foreign"; } const { name, children } = element; // Cache the void-element check — used for both self-closing and closing-tag logic const isVoid = !xmlMode && voidElements.has(name); let tag = `<${name}${formatAttributes(element.attribs, options, xmlMode)}`; if (children.length === 0 && (xmlMode ? options.selfClosingTags !== false : options.selfClosingTags && isVoid)) { // XML: `
`, HTML: `
` tag += xmlMode ? "/>" : " />"; } else { tag += ">"; if (children.length > 0) { tag += renderChildren(children, options, xmlMode); } if (!isVoid) { tag += ``; } } return tag; } // ── Attribute formatting ───────────────────────────────────────────── function replaceQuotes(value) { return value.replaceAll('"', """); } /** * Serialize an element's attribute map to a string. * * Returns a string with a leading space before each attribute, or an * empty string if there are no attributes. This convention lets the * caller unconditionally concatenate the result onto the tag name. * @param attributes * @param options * @param xmlMode */ function formatAttributes(attributes, options, xmlMode) { if (!attributes) return ""; /* * Pick the right encoder: * - Encoding disabled → only escape double-quotes (for valid attributes) * - XML / non-utf8 → full numeric entity encoding (encodeXML) * - HTML + utf8 → minimal escaping (escapeAttribute) */ const encode = (options.encodeEntities ?? options.decodeEntities) === false ? replaceQuotes : xmlMode || options.encodeEntities !== "utf8" ? __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$escape$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["encodeXML"] : __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$escape$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["escapeAttribute"]; const isForeign = xmlMode === "foreign"; const showEmpty = !!(options.emptyAttrs ?? xmlMode); let result = ""; for(const key in attributes){ if (!Object.hasOwn(attributes, key)) continue; const value = attributes[key]; const k = isForeign ? __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$dom$2d$serializer$2f$dist$2f$foreign$2d$names$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["attributeNames"].get(key) ?? key : key; result += !showEmpty && (value == null || value === "") ? ` ${k}` : ` ${k}="${encode(value == null ? "" : String(value))}"`; } return result; } }), "[project]/node_modules/domelementtype/dist/index.js [app-client] (ecmascript)", ((__turbopack_context__) => { "use strict"; /** Types of elements found in htmlparser2's DOM */ __turbopack_context__.s([ "CDATA", ()=>CDATA, "Comment", ()=>Comment, "Directive", ()=>Directive, "Doctype", ()=>Doctype, "ElementType", ()=>ElementType, "Root", ()=>Root, "Script", ()=>Script, "Style", ()=>Style, "Tag", ()=>Tag, "Text", ()=>Text, "isTag", ()=>isTag ]); var ElementType; (function(ElementType) { /** Type for the root element of a document */ ElementType["Root"] = "root"; /** Type for Text */ ElementType["Text"] = "text"; /** Type for */ ElementType["Directive"] = "directive"; /** Type for */ ElementType["Comment"] = "comment"; /** Type for `. this.sequenceIndex = Number(c === CharCodes.Lt); } } stateBeforeTagName(c) { if (c === CharCodes.ExclamationMark) { this.state = State.BeforeDeclaration; this.sectionStart = this.index + 1; } else if (c === CharCodes.Questionmark) { if (this.xmlMode) { this.state = State.InProcessingInstruction; this.sequenceIndex = 0; this.sectionStart = this.index + 1; } else { this.state = State.InSpecialComment; this.sectionStart = this.index; } } else if (this.isTagStartChar(c)) { this.sectionStart = this.index; const special = this.xmlMode || this.cbs.isInForeignContext?.() ? undefined : specialStartSequences.get(c | 0x20); if (special === undefined) { this.state = State.InTagName; } else { this.isSpecial = true; this.currentSequence = special; this.sequenceIndex = 3; this.state = State.SpecialStartSequence; } } else if (c === CharCodes.Slash) { this.state = State.BeforeClosingTagName; } else { this.state = State.Text; this.stateText(c); } } stateInTagName(c) { if (isEndOfTagSection(c)) { this.cbs.onopentagname(this.sectionStart, this.index); this.sectionStart = -1; this.state = State.BeforeAttributeName; this.stateBeforeAttributeName(c); } } stateBeforeClosingTagName(c) { if (isWhitespace(c)) { if (this.xmlMode) { // Ignore } else { this.state = State.InSpecialComment; this.sectionStart = this.index; } } else if (c === CharCodes.Gt) { this.state = State.Text; if (!this.xmlMode) { this.sectionStart = this.index + 1; } } else { this.state = this.isTagStartChar(c) ? State.InClosingTagName : State.InSpecialComment; this.sectionStart = this.index; } } stateInClosingTagName(c) { if (isEndOfTagSection(c)) { this.cbs.onclosetag(this.sectionStart, this.index); this.sectionStart = -1; this.state = State.AfterClosingTagName; this.stateAfterClosingTagName(c); } } stateAfterClosingTagName(c) { // Skip everything until ">" if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) { this.state = State.Text; this.sectionStart = this.index + 1; } } stateBeforeAttributeName(c) { if (c === CharCodes.Gt) { this.cbs.onopentagend(this.index); this.enterTagBody(); this.sectionStart = this.index + 1; } else if (c === CharCodes.Slash) { this.state = State.InSelfClosingTag; } else if (!isWhitespace(c)) { this.state = State.InAttributeName; this.sectionStart = this.index; } } /** * Handle `/` before `>` in an opening tag. * * In HTML mode, text-only tags ignore the self-closing flag and still enter * their raw-text/RCDATA/plaintext state unless self-closing tags are being * recognized. In XML mode, or for ordinary tags, the tokenizer returns to * regular text parsing after emitting the self-closing callback. * @param c Current character code point. */ stateInSelfClosingTag(c) { if (c === CharCodes.Gt) { this.cbs.onselfclosingtag(this.index); this.sectionStart = this.index + 1; if (!this.recognizeSelfClosing) { this.enterTagBody(); return; } this.state = State.Text; this.isSpecial = false; // Reset special state, in case of self-closing special tags this.currentSequence = Sequences.Empty; } else if (!isWhitespace(c)) { this.state = State.BeforeAttributeName; this.stateBeforeAttributeName(c); } } stateInAttributeName(c) { if (c === CharCodes.Eq || isEndOfTagSection(c)) { this.cbs.onattribname(this.sectionStart, this.index); this.sectionStart = this.index; this.state = State.AfterAttributeName; this.stateAfterAttributeName(c); } } stateAfterAttributeName(c) { if (c === CharCodes.Eq) { this.state = State.BeforeAttributeValue; } else if (c === CharCodes.Slash || c === CharCodes.Gt) { this.cbs.onattribend(QuoteType.NoValue, this.sectionStart); this.sectionStart = -1; this.state = State.BeforeAttributeName; this.stateBeforeAttributeName(c); } else if (!isWhitespace(c)) { this.cbs.onattribend(QuoteType.NoValue, this.sectionStart); this.state = State.InAttributeName; this.sectionStart = this.index; } } stateBeforeAttributeValue(c) { if (c === CharCodes.DoubleQuote) { this.state = State.InAttributeValueDq; this.sectionStart = this.index + 1; } else if (c === CharCodes.SingleQuote) { this.state = State.InAttributeValueSq; this.sectionStart = this.index + 1; } else if (!isWhitespace(c)) { this.sectionStart = this.index; this.state = State.InAttributeValueNq; this.stateInAttributeValueNoQuotes(c); // Reconsume token } } handleInAttributeValue(c, quote) { if (c === quote || !this.decodeEntities && this.fastForwardTo(quote)) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = -1; this.cbs.onattribend(quote === CharCodes.DoubleQuote ? QuoteType.Double : QuoteType.Single, this.index + 1); this.state = State.BeforeAttributeName; } else if (this.decodeEntities && c === CharCodes.Amp) { this.startEntity(); } } stateInAttributeValueDoubleQuotes(c) { this.handleInAttributeValue(c, CharCodes.DoubleQuote); } stateInAttributeValueSingleQuotes(c) { this.handleInAttributeValue(c, CharCodes.SingleQuote); } stateInAttributeValueNoQuotes(c) { if (isWhitespace(c) || c === CharCodes.Gt) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = -1; this.cbs.onattribend(QuoteType.Unquoted, this.index); this.state = State.BeforeAttributeName; this.stateBeforeAttributeName(c); } else if (this.decodeEntities && c === CharCodes.Amp) { this.startEntity(); } } /** * Distinguish between CDATA, declarations, HTML comments, and HTML bogus * comments after ``. * @param c Current character code point. */ stateBeforeDeclaration(c) { if (c === CharCodes.OpeningSquareBracket) { this.state = State.CDATASequence; this.sequenceIndex = 0; } else if (this.xmlMode) { this.state = c === CharCodes.Dash ? State.BeforeComment : State.InDeclaration; } else if ((c | 0x20) === Sequences.Doctype[0]) { this.state = State.DeclarationSequence; this.currentSequence = Sequences.Doctype; this.sequenceIndex = 1; } else if (c === CharCodes.Gt) { this.cbs.oncomment(this.sectionStart, this.index, 0); this.state = State.Text; this.sectionStart = this.index + 1; } else if (c === CharCodes.Dash) { this.state = State.BeforeComment; } else { this.state = State.InSpecialComment; } } /** * Continue matching `doctype` after `` constructs. * @param c Current character code point. */ stateDeclarationSequence(c) { if (this.sequenceIndex === this.currentSequence.length) { this.state = State.InDeclaration; this.stateInDeclaration(c); } else if ((c | 0x20) === this.currentSequence[this.sequenceIndex]) { this.sequenceIndex += 1; } else if (c === CharCodes.Gt) { this.cbs.oncomment(this.sectionStart, this.index, 0); this.state = State.Text; this.sectionStart = this.index + 1; } else { this.state = State.InSpecialComment; } } stateInDeclaration(c) { if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) { this.cbs.ondeclaration(this.sectionStart, this.index); this.state = State.Text; this.sectionStart = this.index + 1; } } /** * XML processing instructions (``). * * In HTML mode `` closes the PI. this.sequenceIndex = 1; } else if (c === CharCodes.Gt && this.sequenceIndex === 1) { this.cbs.onprocessinginstruction(this.sectionStart, this.index - 1); this.sequenceIndex = 0; this.state = State.Text; this.sectionStart = this.index + 1; } else { // Keep scanning for the next `?`, which can start a closing `?>`. this.sequenceIndex = Number(this.fastForwardTo(CharCodes.Questionmark)); } } stateBeforeComment(c) { if (c === CharCodes.Dash) { this.state = State.InCommentLike; this.currentSequence = Sequences.CommentEnd; this.sequenceIndex = 0; this.sectionStart = this.index + 1; } else if (this.xmlMode) { this.state = State.InDeclaration; } else if (c === CharCodes.Gt) { this.cbs.oncomment(this.sectionStart, this.index, 0); this.state = State.Text; this.sectionStart = this.index + 1; } else { this.state = State.InSpecialComment; } } stateInSpecialComment(c) { if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) { this.cbs.oncomment(this.sectionStart, this.index, 0); this.state = State.Text; this.sectionStart = this.index + 1; } } startEntity() { this.baseState = this.state; this.state = State.InEntity; this.entityStart = this.index; this.entityDecoder.startEntity(this.xmlMode ? __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$decode$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["DecodingMode"].Strict : this.baseState === State.Text || this.baseState === State.InSpecialTag ? __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$decode$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["DecodingMode"].Legacy : __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$entities$2f$dist$2f$decode$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["DecodingMode"].Attribute); } stateInEntity() { const indexInBuffer = this.index - this.offset; const length = this.entityDecoder.write(this.buffer, indexInBuffer); // If `length` is positive, we are done with the entity. if (length >= 0) { this.state = this.baseState; if (length === 0) { this.index -= 1; } } else { if (indexInBuffer < this.buffer.length && this.buffer.charCodeAt(indexInBuffer) === CharCodes.Amp) { this.state = this.baseState; this.index -= 1; return; } // Mark buffer as consumed. this.index = this.offset + this.buffer.length - 1; } } /** * Remove data that has already been consumed from the buffer. */ cleanup() { // If we are inside of text or attributes, emit what we already have. if (this.running && this.sectionStart !== this.index) { if (this.state === State.Text || this.state === State.InPlainText || this.state === State.InSpecialTag && this.sequenceIndex === 0) { this.cbs.ontext(this.sectionStart, this.index); this.sectionStart = this.index; } else if (this.state === State.InAttributeValueDq || this.state === State.InAttributeValueSq || this.state === State.InAttributeValueNq) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = this.index; } } } shouldContinue() { return this.index < this.buffer.length + this.offset && this.running; } /** * Iterates through the buffer, calling the function corresponding to the current state. * * States that are more likely to be hit are higher up, as a performance improvement. */ parse() { while(this.shouldContinue()){ const c = this.buffer.charCodeAt(this.index - this.offset); switch(this.state){ case State.Text: { this.stateText(c); break; } case State.InPlainText: { // Skip to end of buffer; cleanup() emits the text. this.index = this.buffer.length + this.offset - 1; break; } case State.SpecialStartSequence: { this.stateSpecialStartSequence(c); break; } case State.InSpecialTag: { this.stateInSpecialTag(c); break; } case State.CDATASequence: { this.stateCDATASequence(c); break; } case State.DeclarationSequence: { this.stateDeclarationSequence(c); break; } case State.InAttributeValueDq: { this.stateInAttributeValueDoubleQuotes(c); break; } case State.InAttributeName: { this.stateInAttributeName(c); break; } case State.InCommentLike: { this.stateInCommentLike(c); break; } case State.InSpecialComment: { this.stateInSpecialComment(c); break; } case State.BeforeAttributeName: { this.stateBeforeAttributeName(c); break; } case State.InTagName: { this.stateInTagName(c); break; } case State.InClosingTagName: { this.stateInClosingTagName(c); break; } case State.BeforeTagName: { this.stateBeforeTagName(c); break; } case State.AfterAttributeName: { this.stateAfterAttributeName(c); break; } case State.InAttributeValueSq: { this.stateInAttributeValueSingleQuotes(c); break; } case State.BeforeAttributeValue: { this.stateBeforeAttributeValue(c); break; } case State.BeforeClosingTagName: { this.stateBeforeClosingTagName(c); break; } case State.AfterClosingTagName: { this.stateAfterClosingTagName(c); break; } case State.InAttributeValueNq: { this.stateInAttributeValueNoQuotes(c); break; } case State.InSelfClosingTag: { this.stateInSelfClosingTag(c); break; } case State.InDeclaration: { this.stateInDeclaration(c); break; } case State.BeforeDeclaration: { this.stateBeforeDeclaration(c); break; } case State.BeforeComment: { this.stateBeforeComment(c); break; } case State.InProcessingInstruction: { this.stateInProcessingInstruction(c); break; } case State.InEntity: { this.stateInEntity(); break; } } this.index++; } this.cleanup(); } finish() { if (this.state === State.InEntity) { this.entityDecoder.end(); this.state = this.baseState; } this.handleTrailingData(); this.cbs.onend(); } handleTrailingCommentLikeData(endIndex) { if (this.state !== State.InCommentLike) { return false; } if (this.currentSequence === Sequences.CdataEnd) { if (this.xmlMode) { if (this.sectionStart < endIndex) { this.cbs.oncdata(this.sectionStart, endIndex, 0); } } else { /* In HTML mode, unclosed CDATA is a bogus comment. */ const cdataStart = this.sectionStart - Sequences.Cdata.length - 1; this.cbs.oncomment(cdataStart, endIndex, 0); } } else { const offset = this.xmlMode ? 0 : Math.min(this.sequenceIndex, Sequences.CommentEnd.length - 1); this.cbs.oncomment(this.sectionStart, endIndex, offset); } return true; } handleTrailingMarkupDeclaration(endIndex) { if (this.xmlMode) { switch(this.state){ case State.InSpecialComment: case State.BeforeComment: case State.CDATASequence: case State.DeclarationSequence: case State.InDeclaration: { this.cbs.ontext(this.sectionStart, endIndex); return true; } default: { return false; } } } switch(this.state){ case State.BeforeDeclaration: case State.InSpecialComment: case State.BeforeComment: case State.CDATASequence: { this.cbs.oncomment(this.sectionStart, endIndex, 0); return true; } case State.DeclarationSequence: { if (this.sequenceIndex !== Sequences.Doctype.length) { this.cbs.oncomment(this.sectionStart, endIndex, 0); } return true; } case State.InDeclaration: { return true; } default: { return false; } } } /** Handle any trailing data. */ handleTrailingData() { const endIndex = this.buffer.length + this.offset; if (this.handleTrailingCommentLikeData(endIndex) || this.handleTrailingMarkupDeclaration(endIndex)) { return; } // If there is no remaining data, we are done. if (this.sectionStart >= endIndex) { return; } switch(this.state){ case State.InTagName: case State.BeforeAttributeName: case State.BeforeAttributeValue: case State.AfterAttributeName: case State.InAttributeName: case State.InAttributeValueSq: case State.InAttributeValueDq: case State.InAttributeValueNq: case State.InClosingTagName: { break; } default: { this.cbs.ontext(this.sectionStart, endIndex); } } } emitCodePoint(cp, consumed) { if (this.baseState !== State.Text && this.baseState !== State.InSpecialTag) { if (this.sectionStart < this.entityStart) { this.cbs.onattribdata(this.sectionStart, this.entityStart); } this.sectionStart = this.entityStart + consumed; this.index = this.sectionStart - 1; this.cbs.onattribentity(cp); } else { if (this.sectionStart < this.entityStart) { this.cbs.ontext(this.sectionStart, this.entityStart); } this.sectionStart = this.entityStart + consumed; this.index = this.sectionStart - 1; this.cbs.ontextentity(cp, this.sectionStart); } } } }), "[project]/node_modules/htmlparser2/dist/index.js [app-client] (ecmascript)", ((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ "DefaultHandler", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domhandler$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["DomHandler"], "DomHandler", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domhandler$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["DomHandler"], "DomUtils", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domutils$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__, "ElementType", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__, "Parser", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Parser$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Parser"], "QuoteType", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Tokenizer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["QuoteType"], "Tokenizer", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Tokenizer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"], "createDocumentStream", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["createDocumentStream"], "getFeed", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domutils$2f$dist$2f$feeds$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["getFeed"], "parseDocument", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["parseDocument"], "parseFeed", ()=>__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["parseFeed"] ]); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__ = __turbopack_context__.i("[project]/node_modules/htmlparser2/dist/index.js [app-client] (ecmascript) "); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Parser$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/htmlparser2/dist/Parser.js [app-client] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domhandler$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__ = __turbopack_context__.i("[project]/node_modules/domhandler/dist/index.js [app-client] (ecmascript) "); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domelementtype$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/domelementtype/dist/index.js [app-client] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Tokenizer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/htmlparser2/dist/Tokenizer.js [app-client] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domutils$2f$dist$2f$feeds$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/domutils/dist/feeds.js [app-client] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domutils$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/domutils/dist/index.js [app-client] (ecmascript)"); }), "[project]/node_modules/htmlparser2/dist/index.js [app-client] (ecmascript) ", ((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ "createDocumentStream", ()=>createDocumentStream, "parseDocument", ()=>parseDocument, "parseFeed", ()=>parseFeed ]); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Parser$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/htmlparser2/dist/Parser.js [app-client] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domhandler$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__ = __turbopack_context__.i("[project]/node_modules/domhandler/dist/index.js [app-client] (ecmascript) "); var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domutils$2f$dist$2f$feeds$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/domutils/dist/feeds.js [app-client] (ecmascript)"); ; ; ; ; function parseDocument(data, options) { const handler = new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domhandler$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["DomHandler"](undefined, options); new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Parser$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Parser"](handler, options).end(data); return handler.root; } function createDocumentStream(callback, options, elementCallback) { const handler = new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domhandler$2f$dist$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__$3c$locals$3e$__["DomHandler"]((error)=>callback(error, handler.root), options, elementCallback); return new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$htmlparser2$2f$dist$2f$Parser$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Parser"](handler, options); } ; ; ; ; const parseFeedDefaultOptions = { xmlMode: true }; function parseFeed(feed, options = parseFeedDefaultOptions) { return (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$domutils$2f$dist$2f$feeds$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["getFeed"])(parseDocument(feed, options).children); } ; }), "[project]/node_modules/is-plain-object/dist/is-plain-object.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ function isObject(o) { return Object.prototype.toString.call(o) === '[object Object]'; } function isPlainObject(o) { var ctor, prot; if (isObject(o) === false) return false; // If has modified constructor ctor = o.constructor; if (ctor === undefined) return true; // If has modified prototype prot = ctor.prototype; if (isObject(prot) === false) return false; // If constructor does not have an Object-specific method if (prot.hasOwnProperty('isPrototypeOf') === false) { return false; } // Most likely a plain Object return true; } exports.isPlainObject = isPlainObject; }), "[project]/node_modules/launder/index.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => { const dayjs = __turbopack_context__.r("[project]/node_modules/dayjs/dayjs.min.js [app-client] (ecmascript)"); // Strip characters browsers ignore inside URLs (control chars and // embedded HTML comments) that are commonly used to sneak XSS // payloads past simple scheme checks. function cleanHref(href) { // Browsers ignore character codes of 32 (space) and below in a surprising // number of situations. Start reading here: // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Embedded_tab // eslint-disable-next-line no-control-regex href = href.replace(/[\x00-\x20]+/g, ''); // Clobber any comments in URLs, which the browser might // interpret inside an XML data island, allowing // a javascript: URL to be snuck through while(true){ const firstIndex = href.indexOf('', firstIndex + 4); if (lastIndex === -1) { break; } href = href.substring(0, firstIndex) + href.substring(lastIndex + 3); } return href; } // Returns true if `href` should be rejected as unsafe. Used to block // `javascript:`, `data:` and other dangerous schemes both when // validating URL fields and when sanitizing HTML attribute values. // // `options.allowedSchemes` is an array of permitted URL schemes // (defaults to the schemes long permitted by `launder().url`). // `options.allowProtocolRelative` controls whether protocol-relative // URLs (e.g. `//example.com`) are permitted. Defaults to true. function naughtyHref(href, options) { options = options || {}; const allowedSchemes = options.allowedSchemes || [ 'http', 'https', 'ftp', 'mailto', 'tel', 'sms' ]; const allowProtocolRelative = options.allowProtocolRelative !== false; if (typeof href !== 'string') { return false; } href = cleanHref(href); // Case insensitive so we don't get faked out by JAVASCRIPT #1 // Allow more characters after the first so we don't get faked // out by certain schemes browsers accept const matches = href.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/); if (!matches) { // Protocol-relative URL starting with any combination of '/' and '\' if (href.match(/^[/\\]{2}/)) { return !allowProtocolRelative; } // No scheme return false; } const scheme = matches[1].toLowerCase(); return allowedSchemes.indexOf(scheme) === -1; } module.exports = function(options) { const self = {}; self.options = options || {}; self.filterTag = self.options.filterTag || function(tag) { tag = tag.trim(); return tag.toLowerCase(); }; self.string = function(s, def) { if (typeof s !== 'string') { if (typeof s === 'number' || typeof s === 'boolean') { s += ''; } else { s = ''; } } s = s.trim(); if (def !== undefined) { if (s === '') { s = def; } } return s; }; self.strings = function(strings) { if (!Array.isArray(strings)) { return []; } return strings.map(function(s) { return self.string(s); }); }; self.integer = function(i, def, min, max) { if (def === undefined) { def = 0; } if (typeof i === 'number') { i = Math.floor(i); } else { try { i = parseInt(i, 10); if (isNaN(i)) { i = def; } } catch (e) { i = def; } } if (typeof min === 'number' && i < min) { i = min; } if (typeof max === 'number' && i > max) { i = max; } return i; }; self.padInteger = function(i, places) { let s = i + ''; while(s.length < places){ s = '0' + s; } return s; }; self.float = function(i, def, min, max) { if (def === undefined) { def = 0; } if (!(typeof i === 'number')) { try { i = parseFloat(i, 10); if (isNaN(i)) { i = def; } } catch (e) { i = def; } } if (typeof min === 'number' && i < min) { i = min; } if (typeof max === 'number' && i > max) { i = max; } return i; }; self.naughtyHref = naughtyHref; self.url = function(s, def, httpsFix) { s = self.string(s, def); // Allow the default to be undefined, null, false, etc. if (s === def) { return s; } // Strip characters browsers ignore that are commonly used to // smuggle dangerous schemes past validation. s = cleanHref(s); // Reject naughty URLs (e.g. `javascript:`, `data:`) before fixUrl // runs. Otherwise fixUrl could mask such schemes by prepending // `https://` to anything containing a `.`, turning // `javascript:alert(document.domain)` into a syntactically odd // but accepted `https://...` URL. if (naughtyHref(s)) { return def; } s = fixUrl(s); if (s === null) { return def; } return s; //TURBOPACK unreachable ; function fixUrl(href) { if (href.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)) { // All good - no change required return href; } else if (href.match(/^[^/.]+\.[^/.]+/)) { // Smells like a domain name. Educated guess: they left off http:// const protocol = httpsFix ? 'https://' : 'http://'; return protocol + href; } else { return null; } } }; self.select = function(s, choices, def) { s = self.string(s); if (!choices || !choices.length) { return def; } let choice; if (typeof choices[0] === 'object') { choice = choices.find(function(choice) { if (choice.value === null || choice.value === undefined) { // Don't crash on invalid choices return false; } return choice.value.toString() === s; }); if (choice != null) { return choice.value; } return def; } choice = choices.find(function(choice) { if (choice === null || choice === undefined) { // Don't crash on invalid choices return false; } return choice.toString() === s; }); if (choice !== undefined) { return choice; } return def; }; self.boolean = function(b, def) { if (b === true) { return true; } if (b === false) { return false; } b = self.string(b, def); if (b === def) { if (b === undefined) { return false; } return b; } b = b.toLowerCase().charAt(0); if (b === '' || b === 'n' || b === '0' || b === 'f') { return false; } if (b === 't' || b === 'y' || b === '1') { return true; } return false; }; // Given an `options` object in which options[name] is a string // set to '0', '1', or 'any', this method adds mongodb criteria // to the `criteria` object. // // '0' or false means "the property must be false or absent," '1' or true // means "the property must be true," and 'any' or null means "we don't care // what the property is." // // See `booleanOrNull` for additional synonyms accepted for the // three possible values. // // An empty string is considered equivalent to '0'. // // This is not the same as apos.sanitizeBoolean which is concerned only with // true or false and does not address "any." // // `def` defaults to `any`. // // This method is most often used with REST API parameters and forms. self.addBooleanFilterToCriteria = function(options, name, criteria, def) { // if any or null, we aren't changing criteria if (def === undefined) { def = null; } // allow object or boolean let value = typeof options === 'object' && options !== null ? options[name] : options; value = value === undefined ? def : value; value = self.booleanOrNull(value); if (value === null) { // Don't care, show all } else if (!value) { // Must be absent or false. Hooray for $ne criteria[name] = { $ne: true }; } else { // Must be true criteria[name] = true; } }; // This method is used for tristate filters, i.e. "published," // "unpublished", and "show me both". // // Accepts `true`, `false`, or `null` and returns them exactly // as such; if the parameter is none of those or their synonyms // below, returns `def`. // // Also accepts the strings `'yes'` (or starting with y), `'no'` (or // starting with n), `'true'` (or starting with t), `'false'` // (or starting with f), `'1'`, `'0'` and the strings `'any'` and // `'null'`. The string `'null'` must be an exact match, anything // else starting with `n` is taken as `no` (false). // // These various synonyms are useful for string input, such as from // a user friendly query string. self.booleanOrNull = function(b, def) { if (b === true) { return b; } if (b === false) { return b; } if (b === null) { return b; } b = self.string(b, def); if (b === def) { if (def === undefined) { return null; } return b; } // String 'null' must match as a full string to disambiguate from string 'n' for 'no' if (b === 'null') { return null; } b = b.toLowerCase().charAt(0); if (b === '' || b === 'n' || b === '0' || b === 'f') { return false; } if (b === 't' || b === 'y' || b === '1') { return true; } if (b === 'a') { return null; } return def; }; // Accept a user-entered string in YYYY-MM-DD, MM/DD, MM/DD/YY, or MM/DD/YYYY format // (tolerates missing leading zeroes on MM and DD). Also accepts a Date object. // Returns YYYY-MM-DD. // // The current year is assumed when MM/DD is used. If there is no explicit default // any unparseable date is returned as today's date. // // If the default is explicitly `null` (not `undefined`) then `null` is returned for // any unparseable date. // // The `now` argument can be passed for performance if you prefer to call // `new Date()` just once before many calls to this method and pass that single // value to all of them. self.date = function(date, def, now) { let components; function returnDefault() { if (def === undefined) { def = dayjs().format('YYYY-MM-DD'); } return def; } if (typeof date === 'string') { if (date.match(/\//)) { components = date.split('/'); if (components.length === 2) { // Convert mm/dd to yyyy-mm-dd return (now || new Date()).getFullYear() + '-' + self.padInteger(components[0], 2) + '-' + self.padInteger(components[1], 2); } else if (components.length === 3) { // Convert mm/dd/yy to mm/dd/yyyy if (components[2] < 100) { // Add the current century. If the result is more than // 50 years in the future, assume they meant the // previous century. Thus in 2015, we find that // we get the intuitive result for both 1/1/75, // 1/1/99 and 1/1/25. It's a nasty habit among // us imprecise humans. -Tom const d = now || new Date(); const nowYear = d.getFullYear() % 100; const nowCentury = d.getFullYear() - nowYear; let theirYear = parseInt(components[2]) + nowCentury; if (theirYear - d.getFullYear() > 50) { theirYear -= 100; } components[2] = theirYear; } // Convert mm/dd/yyyy to yyyy-mm-dd return self.padInteger(components[2], 4) + '-' + self.padInteger(components[0], 2) + '-' + self.padInteger(components[1], 2); } else { return returnDefault(); } } else if (date.match(/-/)) { components = date.split('-'); if (components.length === 2) { // Convert mm-dd to yyyy-mm-dd return (now || new Date()).getFullYear() + '-' + self.padInteger(components[0], 2) + '-' + self.padInteger(components[1], 2); } else if (components.length === 3) { // Convert yyyy-mm-dd (with questionable padding) to yyyy-mm-dd return self.padInteger(components[0], 4) + '-' + self.padInteger(components[1], 2) + '-' + self.padInteger(components[2], 2); } else { return returnDefault(); } } } try { if (date === null) { return returnDefault(); } date = now || new Date(date); if (isNaN(date.getTime())) { return returnDefault(); } return date.getFullYear() + '-' + self.padInteger(date.getMonth() + 1, 2) + '-' + self.padInteger(date.getDate(), 2); } catch (e) { return returnDefault(); } }; // This is likely not relevent to you unless you're using Apostrophe // Given a date object, return a date string in Apostrophe's preferred sortable, // comparable, JSON-able format, which is YYYY-MM-DD. If `date` is undefined // the current date is used. self.formatDate = function(date) { return dayjs(date).format('YYYY-MM-DD'); }; // Accepts a user-entered string in 12-hour or 24-hour time and returns a string // in 24-hour time. This method is tolerant of syntax such as `4pm`; minutes and // seconds are optional. // // If `def` is not set the default is the current time. self.time = function(time, def) { time = self.string(time).toLowerCase(); time = time.trim(); const components = time.match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/); if (components) { let hours = parseInt(components[1], 10); const minutes = components[3] !== undefined ? parseInt(components[3], 10) : 0; const seconds = components[5] !== undefined ? parseInt(components[5], 10) : 0; let ampm = components[6] ? components[6].toLowerCase() : components[6]; ampm = ampm && ampm.charAt(0); if (hours === 12 && ampm === 'a') { hours -= 12; } else if (hours === 12 && ampm === 'p') { // Leave it be } else if (ampm === 'p') { hours += 12; } if (hours === 24 || hours === '24') { hours = 0; } return self.padInteger(hours, 2) + ':' + self.padInteger(minutes, 2) + ':' + self.padInteger(seconds, 2); } else { if (def !== undefined) { return def; } return dayjs().format('HH:mm'); } }; // This is likely not relevent to you unless you're using Apostrophe // Given a JavaScript Date object, return a time string in // Apostrophe's preferred sortable, comparable, JSON-able format: // 24-hour time, with seconds. // // If `date` is missing the current time is used. self.formatTime = function(date) { return dayjs(date).format('HH:mm:ss'); }; // Sanitize tags. Tags should be submitted as an array of strings, // or a comma-separated string. // // This method ensures the input is an array or string and, if // an array, that the elements of the array are strings. // // If a filterTag function is passed as an option when initializing // Launder, then all tags are passed through it (as individual // strings, one per call) and the return value is used instead. You // may also pass a filterTag when calling this function self.tags = function(tags, filter) { if (typeof tags === 'string') { tags = tags.split(/,\s*/); } if (!Array.isArray(tags)) { return []; } const strings = tags.map((tag)=>self.string(tag)); const rewritten = strings.map(filter || self.filterTag); const filtered = rewritten.filter((tag)=>tag.length > 0); return filtered; }; // Sanitize an id. IDs must consist solely of upper and lower case // letters, numbers, and digits unless options.idRegExp is set. self.idRegExp = self.options.idRegExp || /^[A-Za-z0-9_]+$/; self.id = function(s, def) { const id = self.string(s, def); if (id === def) { return id; } if (!id.match(self.idRegExp)) { return def; } return id; }; // Sanitize an array of IDs. IDs must consist solely of upper and lower case // letters and numbers, digits, and underscores. Any elements that are not // IDs are omitted from the final array. self.ids = function(ids) { if (!Array.isArray(ids)) { return []; } const result = ids.filter(function(id) { return self.id(id) !== undefined; }); return result; }; return self; }; // Expose `naughtyHref` statically so callers (notably sanitize-html) // can use it without instantiating a launder. module.exports.naughtyHref = naughtyHref; }), "[project]/node_modules/marked/lib/marked.esm.js [app-client] (ecmascript)", ((__turbopack_context__) => { "use strict"; __turbopack_context__.s([ "Hooks", ()=>S, "Lexer", ()=>x, "Marked", ()=>Z, "Parser", ()=>b, "Renderer", ()=>P, "TextRenderer", ()=>L, "Tokenizer", ()=>y, "defaults", ()=>R, "getDefaults", ()=>C, "lexer", ()=>pn, "marked", ()=>f, "options", ()=>nn, "parse", ()=>an, "parseInline", ()=>on, "parser", ()=>ln, "setOptions", ()=>rn, "use", ()=>kt, "walkTokens", ()=>sn ]); /** * marked v18.0.9 - a markdown parser * Copyright (c) 2018-2026, MarkedJS. (MIT License) * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License) * https://github.com/markedjs/marked */ /** * DO NOT EDIT THIS FILE * The code in this file is generated from files in ./src/ */ function C() { return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null }; } var R = C(); function j(l) { R = l; } var z = { exec: ()=>null }; function A(l) { let e = []; return (t)=>{ let n = Math.max(0, Math.min(3, t - 1)), s = e[n]; return s || (s = l(n), e[n] = s), s; }; } function k(l, e = "") { let t = typeof l == "string" ? l : l.source, n = { replace: (s, r)=>{ let i = typeof r == "string" ? r : r.source; return i = i.replace(m.caret, "$1"), t = t.replace(s, i), n; }, getRegex: ()=>new RegExp(t, e) }; return n; } var Te = ((l = "")=>{ try { return !!new RegExp("(?<=1)(?/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l)=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: A((l)=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: A((l)=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: A((l)=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)), headingBeginRegex: A((l)=>new RegExp(`^ {0,${l}}#`)), htmlBeginRegex: A((l)=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: A((l)=>new RegExp(`^ {0,${l}}>`)) }, Oe = /^(?:[ \t]*(?:\n|$))+/, we = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ye = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, q = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Pe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, U = / {0,3}(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ae = k(oe).replace(/bull/g, U).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Se = k(oe).replace(/bull/g, U).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), K = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, _e = /^[^\n]+/, W = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", W).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Le = k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, U).getRegex(), Q = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", X = /|$))/, Me = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", X).replace("tag", Q).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), le = (l)=>k(K).replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", l).replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", Q).getRegex(), ze = le(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Ee = le(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Ce = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ee).getRegex(), J = { blockquote: Ce, code: we, def: $e, fences: ye, heading: Pe, hr: q, html: Me, lheading: ae, list: Le, newline: Oe, paragraph: ze, table: z, text: _e }, se = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", Q).getRegex(), Ae = { ...J, lheading: Se, table: se, paragraph: k(K).replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", se).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", Q).getRegex() }, Ie = { ...J, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", X).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: z, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(K).replace("hr", q).replace("heading", ` *#{1,6} *[^ ]`).replace("lheading", ae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Be = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, De = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, qe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Te ? "(?`+)[^`]+\k(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ne = k(ce, "u").replace(/punct/g, _).getRegex(), je = k(ce, "u").replace(/punct/g, ue).getRegex(), Fe = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Ue = k(Fe, "u").replace(/openQuote/g, He).replace(/punct/g, _).getRegex(), he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ke = k(he, "gu").replace(/notPunctSpace/g, v).replace(/punctSpace/g, I).replace(/punct/g, _).getRegex(), We = k(he, "gu").replace(/notPunctSpace/g, Ge).replace(/punctSpace/g, Ze).replace(/punct/g, ue).getRegex(), Xe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Je = k(Xe, "gu").replace(/notPunctSpace/g, v).replace(/punctSpace/g, I).replace(/punct/g, _).getRegex(), Ve = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, v).replace(/punctSpace/g, I).replace(/punct/g, _).getRegex(), Ye = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", et = k(Ye, "gu").replace(/notPunctSpace/g, v).replace(/punctSpace/g, I).replace(/punct/g, _).getRegex(), tt = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, _).getRegex(), nt = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", rt = k(nt, "gu").replace(/notPunctSpace/g, v).replace(/punctSpace/g, I).replace(/punct/g, _).getRegex(), st = k(/\\(punct)/, "gu").replace(/punct/g, _).getRegex(), it = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ot = k(X).replace("(?:-->|$)", "-->").getRegex(), at = k("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", ot).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), G = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, lt = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", G).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = k(/^!?\[(label)\]\[(ref)\]/).replace("label", G).replace("ref", W).getRegex(), ke = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", W).getRegex(), pt = k("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), ie = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, V = { _backpedal: z, anyPunctuation: st, autolink: it, blockSkip: Qe, br: pe, code: De, del: z, delLDelim: z, delRDelim: z, emStrongLDelim: Ne, emStrongRDelimAst: Ke, emStrongRDelimUnd: Ve, escape: Be, link: lt, nolink: ke, punctuation: ve, reflink: de, reflinkSearch: pt, tag: at, text: qe, url: z }, ut = { ...V, emStrongLDelim: Ue, emStrongRDelimAst: Je, emStrongRDelimUnd: et, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", G).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", G).getRegex() }, F = { ...V, emStrongRDelimAst: We, emStrongLDelim: je, delLDelim: tt, delRDelim: rt, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ie).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\": ">", '"': """, "'": "'" }, ge = (l)=>ht[l]; function O(l, e) { if (e) { if (m.escapeTest.test(l)) return l.replace(m.escapeReplace, ge); } else if (m.escapeTestNoEncode.test(l)) return l.replace(m.escapeReplaceNoEncode, ge); return l; } function Y(l) { try { l = encodeURI(l).replace(m.percentDecode, "%"); } catch { return null; } return l; } function ee(l, e) { let t = l.replace(m.findPipe, (r, i, o)=>{ let p = !1, a = i; for(; --a >= 0 && o[a] === "\\";)p = !p; return p ? "|" : " |"; }), n = t.split(m.splitPipe), s = 0; if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e); else for(; n.length < e;)n.push(""); for(; s < n.length; s++)n[s] = n[s].trim().replace(m.slashPipe, "|"); return n; } function $(l, e, t) { let n = l.length; if (n === 0) return ""; let s = 0; for(; s < n;){ let r = l.charAt(n - s - 1); if (r === e && !t) s++; else if (r !== e && t) s++; else break; } return l.slice(0, n - s); } function te(l) { let e = l.split(` `), t = e.length - 1; for(; t >= 0 && m.blankLine.test(e[t]);)t--; return e.length - t <= 2 ? l : e.slice(0, t + 1).join(` `); } function fe(l, e) { if (l.indexOf(e[1]) === -1) return -1; let t = 0; for(let n = 0; n < l.length; n++)if (l[n] === "\\") n++; else if (l[n] === e[0]) t++; else if (l[n] === e[1] && (t--, t < 0)) return n; return t > 0 ? -2 : -1; } function me(l, e = 0) { let t = e, n = ""; for (let s of l)if (s === " ") { let r = 4 - t % 4; n += " ".repeat(r), t += r; } else n += s, t++; return n; } function xe(l, e, t, n, s) { let r = e.href, i = e.title || null, o = l[1].replace(s.other.outputLinkReplace, "$1"); n.state.inLink = !0; let p = { type: l[0].charAt(0) === "!" ? "image" : "link", raw: t, href: r, title: i, text: o, tokens: n.inlineTokens(o) }; return n.state.inLink = !1, p; } function dt(l, e, t) { let n = l.match(t.other.indentCodeCompensation); if (n === null) return e; let s = n[1]; return e.split(` `).map((r)=>{ let i = r.match(t.other.beginningSpace); if (i === null) return r; let [o] = i; return o.length >= s.length ? r.slice(s.length) : r; }).join(` `); } var y = class { options; rules; lexer; constructor(e){ this.options = e || R; } space(e) { let t = this.rules.block.newline.exec(e); if (t && t[0].length > 0) return { type: "space", raw: t[0] }; } code(e) { let t = this.rules.block.code.exec(e); if (t) { let n = this.options.pedantic ? t[0] : te(t[0]), s = n.replace(this.rules.other.codeRemoveIndent, ""); return { type: "code", raw: n, codeBlockStyle: "indented", text: s }; } } fences(e) { let t = this.rules.block.fences.exec(e); if (t) { let n = t[0], s = dt(n, t[3] || "", this.rules); return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: s }; } } heading(e) { let t = this.rules.block.heading.exec(e); if (t) { let n = t[2].trim(); if (this.rules.other.endingHash.test(n)) { let s = $(n, "#"); (this.options.pedantic || !s || this.rules.other.endingSpaceChar.test(s)) && (n = s.trim()); } return { type: "heading", raw: $(t[0], ` `), depth: t[1].length, text: n, tokens: this.lexer.inline(n) }; } } hr(e) { let t = this.rules.block.hr.exec(e); if (t) return { type: "hr", raw: $(t[0], ` `) }; } blockquote(e) { let t = this.rules.block.blockquote.exec(e); if (t) { let n = $(t[0], ` `).split(` `), s = "", r = "", i = []; for(; n.length > 0;){ let o = !1, p = [], a; for(a = 0; a < n.length; a++)if (this.rules.other.blockquoteStart.test(n[a])) p.push(n[a]), o = !0; else if (!o) p.push(n[a]); else break; n = n.slice(a); let u = p.join(` `), c = u.replace(this.rules.other.blockquoteSetextReplace, ` $1`).replace(this.rules.other.blockquoteSetextReplace2, ""); s = s ? `${s} ${u}` : u, r = r ? `${r} ${c}` : c; let h = this.lexer.state.top; if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = h, n.length === 0) break; let d = i.at(-1); if (d?.type === "code") break; if (d?.type === "blockquote") { let T = d, g = n.join(` `), w = T.raw + ` ` + g.replace(this.rules.other.blockquoteSetextReplace2, ""), M = this.blockquote(w); i[i.length - 1] = M, s = `${s} ${g}`, r = r.substring(0, r.length - T.text.length) + M.text; break; } else if (d?.type === "list") { let T = d, g = T.raw + ` ` + n.join(` `), w = this.list(g); i[i.length - 1] = w, s = s.substring(0, s.length - d.raw.length) + w.raw, r = r.substring(0, r.length - T.raw.length) + w.raw, n = g.substring(i.at(-1).raw.length).split(` `); continue; } } return { type: "blockquote", raw: s, tokens: i, text: r }; } } list(e) { let t = this.rules.block.list.exec(e); if (t) { let n = t[1].trim(), s = n.length > 1, r = { type: "list", raw: "", ordered: s, start: s ? +n.slice(0, -1) : "", loose: !1, items: [] }; n = s ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = s ? n : "[*+-]"); let i = this.rules.other.listItemRegex(n), o = !1; for(; e;){ let a = !1, u = "", c = ""; if (!(t = i.exec(e)) || this.rules.block.hr.test(e)) break; u = t[0], e = e.substring(u.length); let h = me(t[2].split(` `, 1)[0], t[1].length), d = e.split(` `, 1)[0], T = !h.trim(), g = 0; if (this.options.pedantic ? (g = 2, c = h.trimStart()) : T ? g = t[1].length + 1 : (g = h.search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c = h.slice(g), g += t[1].length), T && this.rules.other.blankLine.test(d) && (u += d + ` `, e = e.substring(d.length + 1), a = !0), !a) { let w = this.rules.other.nextBulletRegex(g), M = this.rules.other.hrRegex(g), ne = this.rules.other.fencesBeginRegex(g), re = this.rules.other.headingBeginRegex(g), be = this.rules.other.htmlBeginRegex(g), Re = this.rules.other.blockquoteBeginRegex(g); for(; e;){ let N = e.split(` `, 1)[0], D; if (d = N, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), D = d) : D = d.replace(this.rules.other.tabCharGlobal, " "), ne.test(d) || re.test(d) || be.test(d) || Re.test(d) || w.test(d) || M.test(d)) break; if (D.search(this.rules.other.nonSpaceChar) >= g || !d.trim()) c += ` ` + D.slice(g); else { if (T || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ne.test(h) || re.test(h) || M.test(h)) break; c += ` ` + d; } T = !d.trim(), u += N + ` `, e = e.substring(N.length + 1), h = D.slice(g); } } r.loose || (o ? r.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (o = !0)), r.items.push({ type: "list_item", raw: u, task: !!this.options.gfm && this.rules.other.listIsTask.test(c), loose: !1, text: c, tokens: [] }), r.raw += u; } let p = r.items.at(-1); if (p) p.raw = p.raw.trimEnd(), p.text = p.text.trimEnd(); else return; r.raw = r.raw.trimEnd(); for (let a of r.items){ this.lexer.state.top = !1, a.tokens = this.lexer.blockTokens(a.text, []); let u = a.tokens[0]; if (a.task && (u?.type === "text" || u?.type === "paragraph")) { a.text = a.text.replace(this.rules.other.listReplaceTask, ""), u.raw = u.raw.replace(this.rules.other.listReplaceTask, ""), u.text = u.text.replace(this.rules.other.listReplaceTask, ""); for(let h = this.lexer.inlineQueue.length - 1; h >= 0; h--)if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)) { this.lexer.inlineQueue[h].src = this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask, ""); break; } let c = this.rules.other.listTaskCheckbox.exec(a.raw); if (c) { let h = { type: "checkbox", raw: c[0] + " ", checked: c[0] !== "[ ]" }; a.checked = h.checked, r.loose ? a.tokens[0] && [ "paragraph", "text" ].includes(a.tokens[0].type) && "tokens" in a.tokens[0] && a.tokens[0].tokens ? (a.tokens[0].raw = h.raw + a.tokens[0].raw, a.tokens[0].text = h.raw + a.tokens[0].text, a.tokens[0].tokens.unshift(h)) : a.tokens.unshift({ type: "paragraph", raw: h.raw, text: h.raw, tokens: [ h ] }) : a.tokens.unshift(h); } } else a.task && (a.task = !1); if (!r.loose) { let c = a.tokens.filter((d)=>d.type === "space"), h = c.length > 0 && c.some((d)=>this.rules.other.anyLine.test(d.raw)); r.loose = h; } } if (r.loose) for (let a of r.items){ a.loose = !0; for (let u of a.tokens)u.type === "text" && (u.type = "paragraph"); } return r; } } html(e) { let t = this.rules.block.html.exec(e); if (t) { let n = te(t[0]); return { type: "html", block: !0, raw: n, pre: t[1] === "pre" || t[1] === "script" || t[1] === "style", text: n }; } } def(e) { let t = this.rules.block.def.exec(e); if (t) { let n = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), s = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3]; return { type: "def", tag: n, raw: $(t[0], ` `), href: s, title: r }; } } table(e) { let t = this.rules.block.table.exec(e); if (!t || !this.rules.other.tableDelimiter.test(t[2])) return; let n = ee(t[1]), s = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), r = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(` `) : [], i = { type: "table", raw: $(t[0], ` `), header: [], align: [], rows: [] }; if (n.length === s.length) { for (let o of s)this.rules.other.tableAlignRight.test(o) ? i.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? i.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? i.align.push("left") : i.align.push(null); for(let o = 0; o < n.length; o++)i.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: !0, align: i.align[o] }); for (let o of r)i.rows.push(ee(o, i.header.length).map((p, a)=>({ text: p, tokens: this.lexer.inline(p), header: !1, align: i.align[a] }))); return i; } } lheading(e) { let t = this.rules.block.lheading.exec(e); if (t) { let n = t[1].trim(); return { type: "heading", raw: $(t[0], ` `), depth: t[2].charAt(0) === "=" ? 1 : 2, text: n, tokens: this.lexer.inline(n) }; } } paragraph(e) { let t = this.rules.block.paragraph.exec(e); if (t) { let n = t[1].charAt(t[1].length - 1) === ` ` ? t[1].slice(0, -1) : t[1]; return { type: "paragraph", raw: t[0], text: n, tokens: this.lexer.inline(n) }; } } text(e) { let t = this.rules.block.text.exec(e); if (t) return { type: "text", raw: t[0], text: t[0], tokens: this.lexer.inline(t[0]) }; } escape(e) { let t = this.rules.inline.escape.exec(e); if (t) return { type: "escape", raw: t[0], text: t[1] }; } tag(e) { let t = this.rules.inline.tag.exec(e); if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), { type: "html", raw: t[0], inLink: this.lexer.state.inLink, inRawBlock: this.lexer.state.inRawBlock, block: !1, text: t[0] }; } link(e) { let t = this.rules.inline.link.exec(e); if (t) { let n = t[2].trim(); if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) { if (!this.rules.other.endAngleBracket.test(n)) return; let i = $(n.slice(0, -1), "\\"); if ((n.length - i.length) % 2 === 0) return; } else { let i = fe(t[2], "()"); if (i === -2) return; if (i > -1) { let p = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + i; t[2] = t[2].substring(0, i), t[0] = t[0].substring(0, p).trim(), t[3] = ""; } } let s = t[2], r = ""; if (this.options.pedantic) { let i = this.rules.other.pedanticHrefTitle.exec(s); i && (s = i[1], r = i[3]); } else r = t[3] ? t[3].slice(1, -1) : ""; return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? s = s.slice(1) : s = s.slice(1, -1)), xe(t, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: r && r.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules); } } reflink(e, t) { let n; if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) { let s = (n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " "), r = t[s.toLowerCase()]; if (!r) { let i = n[0].charAt(0); return { type: "text", raw: i, text: i }; } return xe(n, r, n[0], this.lexer, this.rules); } } emStrong(e, t, n = "") { let s = this.rules.inline.emStrongLDelim.exec(e); if (!s || !s[1] && !s[2] && !s[3] && !s[4] || s[4] && n.match(this.rules.other.unicodeAlphaNumeric)) return; if (!(s[1] || s[3] || "") || !n || this.rules.inline.punctuation.exec(n)) { let i = [ ...s[0] ].length - 1, o, p, a = i, u = 0, c = s[0][0], h = n === c, d = c === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd; for(d.lastIndex = 0, t = t.slice(-1 * e.length + i); (s = d.exec(t)) !== null;){ if (o = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !o) continue; if (p = [ ...o ].length, s[3] || s[4]) { a += p; continue; } else if (s[5] || s[6]) { if (i % 3 && !((i + p) % 3)) { u += p; continue; } if (h) break; } if (a -= p, a > 0) continue; p = Math.min(p, p + a + u); let T = [ ...s[0] ][0].length, g = e.slice(0, i + s.index + T + p); if (Math.min(i, p) % 2) { let M = g.slice(1, -1); return { type: "em", raw: g, text: M, tokens: this.lexer.inlineTokens(M) }; } let w = g.slice(2, -2); return { type: "strong", raw: g, text: w, tokens: this.lexer.inlineTokens(w) }; } } } codespan(e) { let t = this.rules.inline.code.exec(e); if (t) { let n = t[2].replace(this.rules.other.newLineCharGlobal, " "), s = this.rules.other.nonSpaceChar.test(n), r = this.rules.other.startingSpaceChar.test(n) && this.rules.other.endingSpaceChar.test(n); return s && r && (n = n.substring(1, n.length - 1)), { type: "codespan", raw: t[0], text: n }; } } br(e) { let t = this.rules.inline.br.exec(e); if (t) return { type: "br", raw: t[0] }; } del(e, t, n = "") { let s = this.rules.inline.delLDelim.exec(e); if (!s) return; if (!(s[1] || "") || !n || this.rules.inline.punctuation.exec(n)) { let i = [ ...s[0] ].length - 1, o, p, a = i, u = this.rules.inline.delRDelim; for(u.lastIndex = 0, t = t.slice(-1 * e.length + i); (s = u.exec(t)) !== null;){ if (o = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !o || (p = [ ...o ].length, p !== i)) continue; if (s[3] || s[4]) { a += p; continue; } if (a -= p, a > 0) continue; p = Math.min(p, p + a); let c = [ ...s[0] ][0].length, h = e.slice(0, i + s.index + c + p), d = h.slice(i, -i); return { type: "del", raw: h, text: d, tokens: this.lexer.inlineTokens(d) }; } } } autolink(e) { let t = this.rules.inline.autolink.exec(e); if (t) { let n, s; return t[2] === "@" ? (n = t[1], s = "mailto:" + n) : (n = t[1], s = n), { type: "link", raw: t[0], text: n, href: s, tokens: [ { type: "text", raw: n, text: n } ] }; } } url(e) { let t; if (t = this.rules.inline.url.exec(e)) { let n, s; if (t[2] === "@") n = t[0], s = "mailto:" + n; else { let r; do r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? ""; while (r !== t[0]) n = t[0], t[1] === "www." ? s = "http://" + t[0] : s = t[0]; } return { type: "link", raw: t[0], text: n, href: s, tokens: [ { type: "text", raw: n, text: n } ] }; } } inlineText(e) { let t = this.rules.inline.text.exec(e); if (t) { let n = this.lexer.state.inRawBlock; return { type: "text", raw: t[0], text: t[0], escaped: n }; } } }; var x = class l { tokens; options; state; inlineQueue; tokenizer; constructor(e){ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || R, this.options.tokenizer = this.options.tokenizer || new y, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 }; let t = { other: m, block: H.normal, inline: B.normal }; this.options.pedantic ? (t.block = H.pedantic, t.inline = B.pedantic) : this.options.gfm && (t.block = H.gfm, this.options.breaks ? t.inline = B.breaks : t.inline = B.gfm), this.tokenizer.rules = t; } static get rules() { return { block: H, inline: B }; } static lex(e, t) { return new l(t).lex(e); } static lexInline(e, t) { return new l(t).inlineTokens(e); } lex(e) { e = e.replace(m.carriageReturn, ` `), this.blockTokens(e, this.tokens); for(let t = 0; t < this.inlineQueue.length; t++){ let n = this.inlineQueue[t]; this.inlineTokens(n.src, n.tokens); } return this.inlineQueue = [], this.tokens; } blockTokens(e, t = [], n = !1) { this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); let s = 1 / 0; for(; e;){ if (e.length < s) s = e.length; else { this.infiniteLoopError(e.charCodeAt(0)); break; } let r; if (this.options.extensions?.block?.some((o)=>(r = o.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue; if (r = this.tokenizer.space(e)) { e = e.substring(r.raw.length); let o = t.at(-1); r.raw.length === 1 && o !== void 0 ? o.raw += ` ` : t.push(r); continue; } if (r = this.tokenizer.code(e)) { e = e.substring(r.raw.length); let o = t.at(-1); o?.type === "paragraph" || o?.type === "text" ? (o.raw += (o.raw.endsWith(` `) ? "" : ` `) + r.raw, o.text += ` ` + r.text, this.inlineQueue.at(-1).src = o.text) : t.push(r); continue; } if (r = this.tokenizer.fences(e)) { e = e.substring(r.raw.length), t.push(r); continue; } if (r = this.tokenizer.heading(e)) { e = e.substring(r.raw.length), t.push(r); continue; } if (r = this.tokenizer.hr(e)) { e = e.substring(r.raw.length), t.push(r); continue; } if (r = this.tokenizer.blockquote(e)) { e = e.substring(r.raw.length), t.push(r); continue; } if (r = this.tokenizer.list(e)) { e = e.substring(r.raw.length), t.push(r); continue; } if (r = this.tokenizer.html(e)) { e = e.substring(r.raw.length), t.push(r); continue; } if (r = this.tokenizer.def(e)) { e = e.substring(r.raw.length); let o = t.at(-1); o?.type === "paragraph" || o?.type === "text" ? (o.raw += (o.raw.endsWith(` `) ? "" : ` `) + r.raw, o.text += ` ` + r.raw, this.inlineQueue.at(-1).src = o.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = { href: r.href, title: r.title }, t.push(r)); continue; } if (r = this.tokenizer.table(e)) { e = e.substring(r.raw.length), t.push(r); continue; } if (r = this.tokenizer.lheading(e)) { e = e.substring(r.raw.length), t.push(r); continue; } let i = e; if (this.options.extensions?.startBlock) { let o = 1 / 0, p = e.slice(1), a; this.options.extensions.startBlock.forEach((u)=>{ a = u.call({ lexer: this }, p), typeof a == "number" && a >= 0 && (o = Math.min(o, a)); }), o < 1 / 0 && o >= 0 && (i = e.substring(0, o + 1)); } if (this.state.top && (r = this.tokenizer.paragraph(i))) { let o = t.at(-1); n && o?.type === "paragraph" ? (o.raw += (o.raw.endsWith(` `) ? "" : ` `) + r.raw, o.text += ` ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = o.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length); continue; } if (r = this.tokenizer.text(e)) { e = e.substring(r.raw.length); let o = t.at(-1); o?.type === "text" ? (o.raw += (o.raw.endsWith(` `) ? "" : ` `) + r.raw, o.text += ` ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = o.text) : t.push(r); continue; } if (e) { this.infiniteLoopError(e.charCodeAt(0)); break; } } return this.state.top = !0, t; } inline(e, t = []) { return this.inlineQueue.push({ src: e, tokens: t }), t; } inlineTokens(e, t = []) { this.tokenizer.lexer = this; let n = e; if (this.tokens.links) { let o = Object.keys(this.tokens.links); o.length > 0 && (n = n.replace(this.tokenizer.rules.inline.reflinkSearch, (p)=>o.includes(p.slice(p.lastIndexOf("[") + 1, -1)) ? "[" + "a".repeat(p.length - 2) + "]" : p)); } n = n.replace(this.tokenizer.rules.inline.anyPunctuation, "++"), n = n.replace(this.tokenizer.rules.inline.blockSkip, (o, p, a)=>{ let u = a ? a.length : 0; return o.slice(0, u) + "[" + "a".repeat(o.length - u - 2) + "]"; }), n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n; let s = !1, r = "", i = 1 / 0; for(; e;){ if (e.length < i) i = e.length; else { this.infiniteLoopError(e.charCodeAt(0)); break; } s || (r = ""), s = !1; let o; if (this.options.extensions?.inline?.some((a)=>(o = a.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), !0) : !1)) continue; if (o = this.tokenizer.escape(e)) { e = e.substring(o.raw.length), t.push(o); continue; } if (o = this.tokenizer.tag(e)) { e = e.substring(o.raw.length), t.push(o); continue; } if (o = this.tokenizer.link(e)) { e = e.substring(o.raw.length), t.push(o); continue; } if (o = this.tokenizer.reflink(e, this.tokens.links)) { e = e.substring(o.raw.length); let a = t.at(-1); o.type === "text" && a?.type === "text" ? (a.raw += o.raw, a.text += o.text) : t.push(o); continue; } if (o = this.tokenizer.emStrong(e, n, r)) { e = e.substring(o.raw.length), t.push(o); continue; } if (o = this.tokenizer.codespan(e)) { e = e.substring(o.raw.length), t.push(o); continue; } if (o = this.tokenizer.br(e)) { e = e.substring(o.raw.length), t.push(o); continue; } if (o = this.tokenizer.del(e, n, r)) { e = e.substring(o.raw.length), t.push(o); continue; } if (o = this.tokenizer.autolink(e)) { e = e.substring(o.raw.length), t.push(o); continue; } if (!this.state.inLink && (o = this.tokenizer.url(e))) { e = e.substring(o.raw.length), t.push(o); continue; } let p = e; if (this.options.extensions?.startInline) { let a = 1 / 0, u = e.slice(1), c; this.options.extensions.startInline.forEach((h)=>{ c = h.call({ lexer: this }, u), typeof c == "number" && c >= 0 && (a = Math.min(a, c)); }), a < 1 / 0 && a >= 0 && (p = e.substring(0, a + 1)); } if (o = this.tokenizer.inlineText(p)) { e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (r = o.raw.slice(-1)), s = !0; let a = t.at(-1); a?.type === "text" ? (a.raw += o.raw, a.text += o.text) : t.push(o); continue; } if (e) { this.infiniteLoopError(e.charCodeAt(0)); break; } } return t; } infiniteLoopError(e) { let t = "Infinite loop on byte: " + e; if (this.options.silent) console.error(t); else throw new Error(t); } }; var P = class { options; parser; constructor(e){ this.options = e || R; } space(e) { return ""; } code({ text: e, lang: t, escaped: n }) { let s = (t || "").match(m.notSpaceStart)?.[0], r = e.replace(m.endingNewline, "") + ` `; return s ? '
' + (n ? r : O(r, !0)) + `
` : "
" + (n ? r : O(r, !0)) + `
`; } blockquote({ tokens: e }) { return `
${this.parser.parse(e)}
`; } html({ text: e }) { return e; } def(e) { return ""; } heading({ tokens: e, depth: t }) { return `${this.parser.parseInline(e)} `; } hr(e) { return `
`; } list(e) { let t = e.ordered, n = e.start, s = ""; for(let o = 0; o < e.items.length; o++){ let p = e.items[o]; s += this.listitem(p); } let r = t ? "ol" : "ul", i = t && n !== 1 ? ' start="' + n + '"' : ""; return "<" + r + i + `> ` + s + " `; } listitem(e) { return `
  • ${this.parser.parse(e.tokens)}
  • `; } checkbox({ checked: e }) { return " '; } paragraph({ tokens: e }) { return `

    ${this.parser.parseInline(e)}

    `; } table(e) { let t = "", n = ""; for(let r = 0; r < e.header.length; r++)n += this.tablecell(e.header[r]); t += this.tablerow({ text: n }); let s = ""; for(let r = 0; r < e.rows.length; r++){ let i = e.rows[r]; n = ""; for(let o = 0; o < i.length; o++)n += this.tablecell(i[o]); s += this.tablerow({ text: n }); } return s && (s = `${s}`), ` ` + t + ` ` + s + `
    `; } tablerow({ text: e }) { return ` ${e} `; } tablecell(e) { let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td"; return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + ` `; } 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 = '
    ", 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 = `${O(n)}{ 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