1import { o as e, t } from "./rolldown-runtime-DAXXjFlN.js"; 2import { i as n, n as r, r as i, t as a } from "./source-map-generator-DnTvOCwo.js"; 3import { n as o, t as s } from "./dist-DUC9kpkj.js"; 4import { i as c, n as l, o as u, t as d } from "./default-map-Yw_evXzB.js"; 5import { l as f } from "./cssesc-BusMg9uA.js"; 6import { n as p, r as m, t as h } from "./lightningcss-wasm-Csd1CqIr.js"; 7var g = { Nesting: 1, NotSelectorList: 2, DirSelector: 4, LangSelectorList: 8, IsSelector: 16, TextDecorationThicknessPercent: 32, MediaIntervalSyntax: 64, MediaRangeSyntax: 128, CustomMediaQueries: 256, ClampFunction: 512, ColorFunction: 1024, OklabColors: 2048, LabColors: 4096, P3Colors: 8192, HexAlphaColors: 16384, SpaceSeparatedColorNotation: 32768, FontFamilySystemUi: 65536, DoublePositionGradients: 131072, VendorPrefixes: 262144, LogicalProperties: 524288, LightDark: 1048576, Selectors: 31, MediaQueries: 448, Colors: 1113088 }; 8o(); 9var _ = 44, v = 59, y = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`, b = new Uint8Array(64), x = new Uint8Array(128); 10for (let e5 = 0; e5 < y.length; e5++) { 11 let t2 = y.charCodeAt(e5); 12 b[e5] = t2, x[t2] = e5; 13} 14function S(e5, t2) { 15 let n2 = 0, r2 = 0, i2 = 0; 16 do 17 i2 = x[e5.next()], n2 |= (i2 & 31) << r2, r2 += 5; 18 while (i2 & 32); 19 let a2 = n2 & 1; 20 return n2 >>>= 1, a2 && (n2 = -2147483648 | -n2), t2 + n2; 21} 22function C(e5, t2, n2) { 23 let r2 = t2 - n2; 24 r2 = r2 < 0 ? -r2 << 1 | 1 : r2 << 1; 25 do { 26 let t3 = r2 & 31; 27 r2 >>>= 5, r2 > 0 && (t3 |= 32), e5.write(b[t3]); 28 } while (r2 > 0); 29 return t2; 30} 31function w(e5, t2) { 32 return e5.pos >= t2 ? false : e5.peek() !== _; 33} 34var ee = 1024 * 16, te = typeof TextDecoder < `u` ? new TextDecoder() : s === void 0 ? { decode(e5) { 35 let t2 = ``; 36 for (let n2 = 0; n2 < e5.length; n2++) t2 += String.fromCharCode(e5[n2]); 37 return t2; 38} } : { decode(e5) { 39 return s.from(e5.buffer, e5.byteOffset, e5.byteLength).toString(); 40} }, ne = class { 41 constructor() { 42 this.pos = 0, this.out = ``, this.buffer = new Uint8Array(ee); 43 } 44 write(e5) { 45 let { buffer: t2 } = this; 46 t2[this.pos++] = e5, this.pos === ee && (this.out += te.decode(t2), this.pos = 0); 47 } 48 flush() { 49 let { buffer: e5, out: t2, pos: n2 } = this; 50 return n2 > 0 ? t2 + te.decode(e5.subarray(0, n2)) : t2; 51 } 52}, re = class { 53 constructor(e5) { 54 this.pos = 0, this.buffer = e5; 55 } 56 next() { 57 return this.buffer.charCodeAt(this.pos++); 58 } 59 peek() { 60 return this.buffer.charCodeAt(this.pos); 61 } 62 indexOf(e5) { 63 let { buffer: t2, pos: n2 } = this, r2 = t2.indexOf(e5, n2); 64 return r2 === -1 ? t2.length : r2; 65 } 66}; 67function ie(e5) { 68 let { length: t2 } = e5, n2 = new re(e5), r2 = [], i2 = 0, a2 = 0, o2 = 0, s2 = 0, c2 = 0; 69 do { 70 let e6 = n2.indexOf(`;`), t3 = [], l2 = true, u2 = 0; 71 for (i2 = 0; n2.pos < e6; ) { 72 let r3; 73 i2 = S(n2, i2), i2 < u2 && (l2 = false), u2 = i2, w(n2, e6) ? (a2 = S(n2, a2), o2 = S(n2, o2), s2 = S(n2, s2), w(n2, e6) ? (c2 = S(n2, c2), r3 = [i2, a2, o2, s2, c2]) : r3 = [i2, a2, o2, s2]) : r3 = [i2], t3.push(r3), n2.pos++; 74 } 75 l2 || ae(t3), r2.push(t3), n2.pos = e6 + 1; 76 } while (n2.pos <= t2); 77 return r2; 78} 79function ae(e5) { 80 e5.sort(oe); 81} 82function oe(e5, t2) { 83 return e5[0] - t2[0]; 84} 85function T(e5) { 86 let t2 = new ne(), n2 = 0, r2 = 0, i2 = 0, a2 = 0; 87 for (let o2 = 0; o2 < e5.length; o2++) { 88 let s2 = e5[o2]; 89 if (o2 > 0 && t2.write(v), s2.length === 0) continue;
90 let c2 = 0; 91 for (let e6 = 0; e6 < s2.length; e6++) { 92 let o3 = s2[e6]; 93 e6 > 0 && t2.write(_), c2 = C(t2, o3[0], c2), o3.length !== 1 && (n2 = C(t2, o3[1], n2), r2 = C(t2, o3[2], r2), i2 = C(t2, o3[3], i2), o3.length !== 4 && (a2 = C(t2, o3[4], a2))); 94 } 95 } 96 return t2.flush(); 97} 98var E = class e2 { 99 constructor(t2) { 100 this.bits = t2 instanceof e2 ? t2.bits.slice() : []; 101 } 102 add(e5) { 103 this.bits[e5 >> 5] |= 1 << (e5 & 31); 104 } 105 has(e5) { 106 return !!(this.bits[e5 >> 5] & 1 << (e5 & 31)); 107 } 108}, D = class e3 { 109 constructor(e5, t2, n2) { 110 this.start = e5, this.end = t2, this.original = n2, this.intro = ``, this.outro = ``, this.content = n2, this.storeName = false, this.edited = false, this.previous = null, this.next = null; 111 } 112 appendLeft(e5) { 113 this.outro += e5; 114 } 115 appendRight(e5) { 116 this.intro += e5; 117 } 118 clone() { 119 let t2 = new e3(this.start, this.end, this.original); 120 return t2.intro = this.intro, t2.outro = this.outro, t2.content = this.content, t2.storeName = this.storeName, t2.edited = this.edited, t2; 121 } 122 contains(e5) { 123 return this.start < e5 && e5 < this.end; 124 } 125 eachNext(e5) { 126 e5(this); 127 let t2 = this.next; 128 for (; t2; ) e5(t2), t2 = t2.next; 129 } 130 eachPrevious(e5) { 131 e5(this); 132 let t2 = this.previous; 133 for (; t2; ) e5(t2), t2 = t2.previous; 134 } 135 edit(e5, t2, n2) { 136 return this.content = e5, n2 || (this.intro = ``, this.outro = ``), this.storeName = t2, this.edited = true, this; 137 } 138 prependLeft(e5) { 139 this.outro = e5 + this.outro; 140 } 141 prependRight(e5) { 142 this.intro = e5 + this.intro; 143 } 144 reset() { 145 this.intro = ``, this.outro = ``, this.edited && (this.edited = (this.content = this.original, this.storeName = false, false)); 146 } 147 split(t2) { 148 let n2 = t2 - this.start, r2 = this.original.slice(0, n2), i2 = this.original.slice(n2); 149 this.original = r2; 150 let a2 = new e3(t2, this.end, i2); 151 return a2.outro = this.outro, this.outro = ``, this.end = t2, this.edited ? (a2.edit(``, false), this.content = ``) : this.content = r2, a2.next = this.next, a2.next && (a2.next.previous = a2), a2.previous = this, this.next = a2, a2; 152 } 153 toString() { 154 return this.intro + this.content + this.outro; 155 } 156 trimEnd(e5) { 157 if (this.outro = this.outro.replace(e5, ``), this.outro.length) return true; 158 let t2 = this.content.replace(e5, ``); 159 if (t2.length) return t2 !== this.content && (this.split(this.start + t2.length).edit(``, void 0, true), this.edited && this.edit(t2, this.storeName, true)), true; 160 if (this.edit(``, void 0, true), this.intro = this.intro.replace(e5, ``), this.intro.length) return true; 161 } 162 trimStart(e5) { 163 if (this.intro = this.intro.replace(e5, ``), this.intro.length) return true; 164 let t2 = this.content.replace(e5, ``); 165 if (t2.length) { 166 if (t2 !== this.content) { 167 let e6 = this.split(this.end - t2.length); 168 this.edited && e6.edit(t2, this.storeName, true), this.edit(``, void 0, true); 169 } 170 return true; 171 } else if (this.edit(``, void 0, true), this.outro = this.outro.replace(e5, ``), this.outro.length) return true; 172 } 173}; 174function se() { 175 if (typeof globalThis < `u` && typeof globalThis.btoa == `function`) return (e6) => globalThis.btoa(unescape(encodeURIComponent(e6))); 176 let e5 = globalThis.Buffer; 177 return e5 ? (t2) => e5.from(t2, `utf-8`).toString(`base64`) : () => { 178 throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported."); 179 }; 180} 181var ce = se(), le = class { 182 constructor(e5) { 183 this.version = 3, this.file = e5.file, this.sources = e5.sources, this.sourcesContent = e5.sourcesContent, this.names = e5.names, this.mappings = T(e5.mappings), e5.x_google_ignoreList !== void 0 && (this.x_google_ignoreList = e5.x_google_ignoreList), e5.debugId !== void 0 && (this.debugId = e5.debugId); 184 } 185 toString() { 186 return JSON.stringify(this); 187 } 188 toUrl() { 189 return `data:application/json;charset=utf-8;base64,${ce(this.toString())}`; 190 } 191}; 192function O(e5) { 193 let t2 = e5.split(` 194`), n2 = []; 195 for (let e6 = 0, r2 = 0; e6 < t2.length; e6++) n2.push(r2), r2 += t2[e6].length + 1; 196 return function(e6) { 197 let t3 = 0, r2 = n2.length; 198 for (; t3 < r2; ) { 199 let i3 = t3 + r2 >> 1; 200 e6 < n2[i3] ? r2 = i3 : t3 = i3 + 1; 201 } 202 let i2 = t3 - 1; 203 return { line: i2, column: e6 - n2[i2] }; 204 }; 205} 206function ue(e5, t2) { 207 let n2 = e5.split(/[/\\]/), r2 = t2.split(/[/\\]/); 208 for (n2.pop(); n2[0] === r2[0]; ) n2.shift(), r2.shift(); 209 if (n2.length) { 210 let e6 = n2.length; 211 for (; e6--; ) n2[e6] = `..`; 212 } 213 return n2.concat(r2).join(`/`); 214} 215function de(e5) { 216 let t2 = e5.split(` 217`), n2 = t2.filter((e6) => /^\t+/.test(e6)), r2 = t2.filter((e6) => /^ {2,}/.test(e6)); 218 if (n2.length === 0 && r2.length === 0) return null; 219 if (n2.length >= r2.length) return ` `; 220 let i2 = r2.reduce((e6, t3) => { 221 let n3 = /^ +/.exec(t3)[0].length; 222 return Math.min(n3, e6); 223 }, 1 / 0); 224 return ` `.repeat(i2); 225} 226var fe = Object.prototype.toString; 227function pe(e5) { 228 return fe.call(e5) === `[object Object]`; 229} 230var me = /\w/, he = class { 231 constructor(e5) { 232 this.hires = e5, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null; 233 } 234 addEdit(e5, t2, n2, r2) { 235 if (t2.length) { 236 let i2 = t2.length - 1, a2 = t2.indexOf(` 237`, 0), o2 = -1; 238 for (; a2 >= 0 && i2 > a2; ) { 239 let i3 = [this.generatedCodeColumn, e5, n2.line, n2.column]; 240 r2 >= 0 && i3.push(r2), this.rawSegments.push(i3), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, o2 = a2, a2 = t2.indexOf(` 241`, a2 + 1); 242 } 243 let s2 = [this.generatedCodeColumn, e5, n2.line, n2.column]; 244 r2 >= 0 && s2.push(r2), this.rawSegments.push(s2), this.advance(t2.slice(o2 + 1)); 245 } else this.pending && (this.rawSegments.push(this.pending), this.advance(t2)); 246 this.pending = null; 247 } 248 addUneditedChunk(e5, t2, n2, r2, i2) { 249 let a2 = t2.start, o2 = true, s2 = false;
250 for (; a2 < t2.end; ) { 251 if (n2[a2] === ` 252`) r2.line += 1, r2.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, o2 = true, s2 = false; 253 else { 254 if (this.hires || o2 || i2.has(a2)) { 255 let t3 = [this.generatedCodeColumn, e5, r2.line, r2.column]; 256 this.hires === `boundary` ? me.test(n2[a2]) ? s2 || (s2 = (this.rawSegments.push(t3), true)) : (this.rawSegments.push(t3), s2 = false) : this.rawSegments.push(t3); 257 } 258 r2.column += 1, this.generatedCodeColumn += 1, o2 = false; 259 } 260 a2 += 1; 261 } 262 this.pending = null; 263 } 264 advance(e5) { 265 if (!e5) return; 266 let t2 = e5.split(` 267`); 268 if (t2.length > 1) { 269 for (let e6 = 0; e6 < t2.length - 1; e6++) this.generatedCodeLine++, this.raw[this.generatedCodeLine] = this.rawSegments = []; 270 this.generatedCodeColumn = 0; 271 } 272 this.generatedCodeColumn += t2[t2.length - 1].length; 273 } 274}, k = ` 275`, A = 10, j = 13, M = { insertLeft: false, insertRight: false, storeName: false }, ge = class e4 { 276 constructor(e5, t2 = {}) { 277 let n2 = new D(0, e5.length, e5); 278 Object.defineProperties(this, { original: { writable: true, value: e5 }, outro: { writable: true, value: `` }, intro: { writable: true, value: `` }, firstChunk: { writable: true, value: n2 }, lastChunk: { writable: true, value: n2 }, lastSearchedChunk: { writable: true, value: n2 }, byStart: { writable: true, value: {} }, byEnd: { writable: true, value: {} }, filename: { writable: true, value: t2.filename }, indentExclusionRanges: { writable: true, value: t2.indentExclusionRanges }, sourcemapLocations: { writable: true, value: new E() }, storedNames: { writable: true, value: {} }, indentStr: { writable: true, value: void 0 }, ignoreList: { writable: true, value: t2.ignoreList }, offset: { writable: true, value: t2.offset || 0 } }), this.byStart[0] = n2, this.byEnd[e5.length] = n2; 279 } 280 addSourcemapLocation(e5) { 281 this.sourcemapLocations.add(e5); 282 } 283 append(e5) { 284 if (typeof e5 != `string`) throw TypeError(`outro content must be a string`); 285 return this.outro += e5, this; 286 } 287 appendLeft(e5, t2) { 288 if (e5 += this.offset, typeof t2 != `string`) throw TypeError(`inserted content must be a string`); 289 this._split(e5); 290 let n2 = this.byEnd[e5]; 291 return n2 ? n2.appendLeft(t2) : this.intro += t2, this; 292 } 293 appendRight(e5, t2) { 294 if (e5 += this.offset, typeof t2 != `string`) throw TypeError(`inserted content must be a string`); 295 this._split(e5); 296 let n2 = this.byStart[e5]; 297 return n2 ? n2.appendRight(t2) : this.outro += t2, this; 298 } 299 clone() { 300 let t2 = new e4(this.original, { filename: this.filename, offset: this.offset }), n2 = this.firstChunk, r2 = t2.firstChunk = t2.lastSearchedChunk = n2.clone(); 301 for (; n2; ) { 302 t2.byStart[r2.start] = r2, t2.byEnd[r2.end] = r2; 303 let e5 = n2.next, i2 = e5 && e5.clone(); 304 i2 && (r2.next = i2, i2.previous = r2, r2 = i2), n2 = e5; 305 } 306 return t2.lastChunk = r2, this.indentExclusionRanges && (t2.indentExclusionRanges = this.indentExclusionRanges.slice()), t2.sourcemapLocations = new E(this.sourcemapLocations), t2.intro = this.intro, t2.outro = this.outro, t2; 307 } 308 generateDecodedMap(e5) { 309 e5 || (e5 = {}); 310 let t2 = Object.keys(this.storedNames), n2 = new he(e5.hires), r2 = O(this.original); 311 return this.intro && n2.advance(this.intro), this.firstChunk.eachNext((e6) => { 312 let i2 = r2(e6.start); 313 e6.intro.length && n2.advance(e6.intro), e6.edited ? n2.addEdit(0, e6.content, i2, e6.storeName ? t2.indexOf(e6.original) : -1) : n2.addUneditedChunk(0, e6, this.original, i2, this.sourcemapLocations), e6.outro.length && n2.advance(e6.outro); 314 }), this.outro && n2.advance(this.outro), { file: e5.file ? e5.file.split(/[/\\]/).pop() : void 0, sources: [e5.source ? ue(e5.file || ``, e5.source) : e5.file || ``], sourcesContent: e5.includeContent ? [this.original] : void 0, names: t2, mappings: n2.raw, x_google_ignoreList: this.ignoreList ? [0] : void 0 }; 315 } 316 generateMap(e5) { 317 return new le(this.generateDecodedMap(e5)); 318 } 319 _ensureindentStr() { 320 this.indentStr === void 0 && (this.indentStr = de(this.original)); 321 }
322 _getRawIndentString() { 323 return this._ensureindentStr(), this.indentStr; 324 } 325 getIndentString() { 326 return this._ensureindentStr(), this.indentStr === null ? ` ` : this.indentStr; 327 } 328 indent(e5, t2) { 329 let n2 = /^[^\r\n]/gm; 330 if (pe(e5) && (t2 = e5, e5 = void 0), e5 === void 0 && (this._ensureindentStr(), e5 = this.indentStr || ` `), e5 === ``) return this; 331 let r2 = e5; 332 t2 || (t2 = {}); 333 let i2 = {}; 334 t2.exclude && (typeof t2.exclude[0] == `number` ? [t2.exclude] : t2.exclude).forEach((e6) => { 335 for (let t3 = e6[0]; t3 < e6[1]; t3 += 1) i2[t3] = true; 336 }); 337 let a2 = t2.indentStart !== false, o2 = (e6) => a2 ? `${r2}${e6}` : (a2 = true, e6); 338 this.intro = this.intro.replace(n2, o2); 339 let s2 = 0, c2 = this.firstChunk, l2 = (e6) => { 340 a2 = false, e6 === c2.start ? c2.prependRight(r2) : (this._splitChunk(c2, e6), c2 = c2.next, c2.prependRight(r2)); 341 }; 342 for (; c2; ) { 343 let e6 = c2.end; 344 if (c2.edited) i2[s2] || (c2.content = c2.content.replace(n2, o2), c2.content.length && (a2 = c2.content[c2.content.length - 1] === ` 345`)); 346 else if (t2.exclude) for (s2 = c2.start; s2 < e6; ) { 347 if (!i2[s2]) { 348 let e7 = this.original.charCodeAt(s2); 349 e7 === A ? a2 = true : e7 !== j && a2 && l2(s2); 350 } 351 s2 += 1; 352 } 353 else for (s2 = c2.start; s2 < e6; ) { 354 if (!a2) { 355 let t4 = this.original.indexOf(k, s2); 356 if (t4 === -1 || t4 >= e6) break; 357 a2 = true, s2 = t4 + 1; 358 continue; 359 } 360 let t3 = this.original.charCodeAt(s2); 361 if (t3 === A || t3 === j) { 362 s2 += 1; 363 continue; 364 } 365 l2(s2), s2 += 1; 366 } 367 s2 = c2.end, c2 = c2.next; 368 } 369 return this.outro = this.outro.replace(n2, o2), this; 370 } 371 insert() { 372 throw Error(`magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)`); 373 } 374 insertLeft(e5, t2) { 375 return M.insertLeft || (M.insertLeft = (console.warn(`magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead`), true)), this.appendLeft(e5, t2); 376 } 377 insertRight(e5, t2) { 378 return M.insertRight || (M.insertRight = (console.warn(`magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead`), true)), this.prependRight(e5, t2); 379 } 380 move(e5, t2, n2) { 381 if (e5 += this.offset, t2 += this.offset, n2 += this.offset, e5 === t2) return this; 382 if (n2 >= e5 && n2 <= t2) throw Error(`Cannot move a selection inside itself`); 383 this._split(e5), this._split(t2), this._split(n2); 384 let r2 = this.byStart[e5], i2 = this.byEnd[t2], a2 = r2.previous, o2 = i2.next, s2 = this.byStart[n2]; 385 if (!s2 && i2 === this.lastChunk) return this; 386 let c2 = s2 ? s2.previous : this.lastChunk; 387 return a2 && (a2.next = o2), o2 && (o2.previous = a2), c2 && (c2.next = r2), s2 && (s2.previous = i2), r2.previous || (this.firstChunk = i2.next), i2.next || (this.lastChunk = r2.previous, this.lastChunk.next = null), r2.previous = c2, i2.next = s2 || null, c2 || (this.firstChunk = r2), s2 || (this.lastChunk = i2), this; 388 } 389 overwrite(e5, t2, n2, r2) { 390 let i2 = typeof r2 == `object` && r2 ? r2 : {}; 391 return this.update(e5, t2, n2, { ...i2, overwrite: !i2.contentOnly }); 392 } 393 update(e5, t2, n2, r2) { 394 if (e5 += this.offset, t2 += this.offset, typeof n2 != `string`) throw TypeError(`replacement content must be a string`); 395 if (this.original.length !== 0) { 396 for (; e5 < 0; ) e5 += this.original.length; 397 for (; t2 < 0; ) t2 += this.original.length; 398 } 399 if (t2 > this.original.length) throw Error(`end is out of bounds`); 400 if (e5 === t2) throw Error(`Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead`); 401 this._split(e5), this._split(t2), r2 === true && (M.storeName || (M.storeName = (console.warn(`The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string`), true)), r2 = { storeName: true }); 402 let i2 = typeof r2 == `object` && r2 ? r2 : {}, a2 = i2.storeName || false, o2 = i2.overwrite || false; 403 if (a2) { 404 let n3 = this.original.slice(e5, t2); 405 Object.defineProperty(this.storedNames, n3, { writable: true, value: true, enumerable: true }); 406 } 407 let s2 = this.byStart[e5], c2 = this.byEnd[t2]; 408 if (s2) { 409 let e6 = s2; 410 for (; e6 !== c2; ) { 411 if (e6.next !== this.byStart[e6.end]) throw Error(`Cannot over
411write across a split point`); 412 e6 = e6.next, e6.edit(``, false); 413 } 414 s2.edit(n2, a2, !o2); 415 } else { 416 let r3 = new D(e5, t2, ``).edit(n2, a2); 417 c2.next = r3, r3.previous = c2; 418 } 419 return this; 420 } 421 prepend(e5) { 422 if (typeof e5 != `string`) throw TypeError(`outro content must be a string`); 423 return this.intro = e5 + this.intro, this; 424 } 425 prependLeft(e5, t2) { 426 if (e5 += this.offset, typeof t2 != `string`) throw TypeError(`inserted content must be a string`); 427 this._split(e5); 428 let n2 = this.byEnd[e5]; 429 return n2 ? n2.prependLeft(t2) : this.intro = t2 + this.intro, this; 430 } 431 prependRight(e5, t2) { 432 if (e5 += this.offset, typeof t2 != `string`) throw TypeError(`inserted content must be a string`); 433 this._split(e5); 434 let n2 = this.byStart[e5]; 435 return n2 ? n2.prependRight(t2) : this.outro = t2 + this.outro, this; 436 } 437 remove(e5, t2) { 438 if (e5 += this.offset, t2 += this.offset, this.original.length !== 0) { 439 for (; e5 < 0; ) e5 += this.original.length; 440 for (; t2 < 0; ) t2 += this.original.length; 441 } 442 if (e5 === t2) return this; 443 if (e5 < 0 || t2 > this.original.length) throw Error(`Character is out of bounds`); 444 if (e5 > t2) throw Error(`end must be greater than start`); 445 this._split(e5), this._split(t2); 446 let n2 = this.byStart[e5]; 447 for (; n2; ) n2.intro = ``, n2.outro = ``, n2.edit(``), n2 = t2 > n2.end ? this.byStart[n2.end] : null; 448 return this; 449 } 450 reset(e5, t2) { 451 if (e5 += this.offset, t2 += this.offset, this.original.length !== 0) { 452 for (; e5 < 0; ) e5 += this.original.length; 453 for (; t2 < 0; ) t2 += this.original.length; 454 } 455 if (e5 === t2) return this; 456 if (e5 < 0 || t2 > this.original.length) throw Error(`Character is out of bounds`); 457 if (e5 > t2) throw Error(`end must be greater than start`); 458 this._split(e5), this._split(t2); 459 let n2 = this.byStart[e5]; 460 for (; n2; ) n2.reset(), n2 = t2 > n2.end ? this.byStart[n2.end] : null; 461 return this; 462 } 463 lastChar() { 464 if (this.outro.length) return this.outro[this.outro.length - 1]; 465 let e5 = this.lastChunk; 466 for (; e5; ) { 467 if (e5.outro.length) return e5.outro[e5.outro.length - 1]; 468 if (e5.content.length) return e5.content[e5.content.length - 1]; 469 if (e5.intro.length) return e5.intro[e5.intro.length - 1]; 470 e5 = e5.previous; 471 } 472 return this.intro.length ? this.intro[this.intro.length - 1] : ``; 473 } 474 lastLine() { 475 let e5 = this.outro.lastIndexOf(k); 476 if (e5 !== -1) return this.outro.substr(e5 + 1); 477 let t2 = this.outro, n2 = this.lastChunk; 478 for (; n2; ) { 479 if (n2.outro.length > 0) { 480 if (e5 = n2.outro.lastIndexOf(k), e5 !== -1) return n2.outro.substr(e5 + 1) + t2; 481 t2 = n2.outro + t2; 482 } 483 if (n2.content.length > 0) { 484 if (e5 = n2.content.lastIndexOf(k), e5 !== -1) return n2.content.substr(e5 + 1) + t2; 485 t2 = n2.content + t2; 486 } 487 if (n2.intro.length > 0) { 488 if (e5 = n2.intro.lastIndexOf(k), e5 !== -1) return n2.intro.substr(e5 + 1) + t2; 489 t2 = n2.intro + t2; 490 } 491 n2 = n2.previous; 492 } 493 return e5 = this.intro.lastIndexOf(k), e5 === -1 ? this.intro + t2 : this.intro.substr(e5 + 1) + t2; 494 } 495 slice(e5 = 0, t2 = this.original.length - this.offset) { 496 if (e5 += this.offset, t2 += this.offset, this.original.length !== 0) { 497 for (; e5 < 0; ) e5 += this.original.length; 498 for (; t2 < 0; ) t2 += this.original.length; 499 } 500 let n2 = ``, r2 = this.firstChunk; 501 for (; r2 && (r2.start > e5 || r2.end <= e5); ) { 502 if (r2.start < t2 && r2.end >= t2) return n2; 503 r2 = r2.next; 504 } 505 if (r2 && r2.edited && r2.start !== e5) throw Error(`Cannot use replaced character ${e5} as slice start anchor.`); 506 let i2 = r2; 507 for (; r2; ) { 508 r2.intro && (i2 !== r2 || r2.start === e5) && (n2 += r2.intro); 509 let a2 = r2.start < t2 && r2.end >= t2; 510 if (a2 && r2.edited && r2.end !== t2) throw Error(`Cannot use replaced character ${t2} as slice end anchor.`); 511 let o2 = i2 === r2 ? e5 - r2.start : 0, s2 = a2 ? r2.content.length + t2 - r2.end : r2.content.length; 512 if (n2 += r2.content.slice(o2, s2), r2.outro && (!a2 || r2.end === t2) && (n2 += r2.outro), a2) break; 513 r2 = r2.next; 514 } 515 return n2; 516 } 517 snip(e5, t2) { 518 let n2 = this.clone(); 519 return n2.remove(0, e5), n2.remove(t2, n2.original.length), n2; 520 } 521 _split(e5) { 522 if (this.byStart[e5] || this.byEnd[e5]) return; 523 let t2 = this.lastSearchedChunk, n2 = t2, r2 = e5 > t2.end; 524 for (; t2; ) { 525 if (t2.contains(e5)) return this._splitChunk(t2, e5); 526 if (t2 = r2 ? this.byStart[t2.end] : this.byEnd[t2.start], t2 === n2) return; 527 n2 = t2; 528 } 529 } 530 _splitChunk(e5, t2) { 531 if (e5.edited && e5.content.length) { 532 let n3 = O(this.original)(t2); 533 throw Error(`Cannot split a chunk that has already been edited (${n3.line}:${n3.column} \u2013 "${e5.original}")`); 534 } 535 let n2 = e5.split(t2); 536 return this.byEnd[t2] = e5, this.byStart[t2] = n2, this.byEnd[n2.end] = n2, e5 === this.lastChunk && (this.lastChunk = n2), this.lastSearchedChunk = e5, true; 537 } 538 toString() { 539 let e5 = this.intro, t2 = this.firstChunk; 540 for (; t2; ) e5 += t2.toString(), t2 = t2.next; 541 return e5 + this.outro; 542 } 543 isEmpty() { 544 let e5 = this.firstChunk; 545 for (; e5; ) {
546 if (e5.intro.length && e5.intro.trim() || e5.content.length && e5.content.trim() || e5.outro.length && e5.outro.trim()) return false; 547 e5 = e5.next; 548 } 549 return true; 550 } 551 length() { 552 let e5 = this.firstChunk, t2 = 0; 553 for (; e5; ) t2 += e5.intro.length + e5.content.length + e5.outro.length, e5 = e5.next; 554 return t2; 555 } 556 trimLines() { 557 return this.trim(`[\\r\\n]`); 558 } 559 trim(e5) { 560 return this.trimStart(e5).trimEnd(e5); 561 } 562 trimEndAborted(e5) { 563 let t2 = RegExp(`${e5 || `\\s`}+$`); 564 if (this.outro = this.outro.replace(t2, ``), this.outro.length) return true; 565 let n2 = this.lastChunk; 566 do { 567 let e6 = n2.end, r2 = n2.trimEnd(t2); 568 if (n2.end !== e6 && (this.lastChunk === n2 && (this.lastChunk = n2.next), this.byEnd[n2.end] = n2, this.byStart[n2.next.start] = n2.next, this.byEnd[n2.next.end] = n2.next), r2) return true; 569 n2 = n2.previous; 570 } while (n2); 571 return false; 572 } 573 trimEnd(e5) { 574 return this.trimEndAborted(e5), this; 575 } 576 trimStartAborted(e5) { 577 let t2 = RegExp(`^${e5 || `\\s`}+`); 578 if (this.intro = this.intro.replace(t2, ``), this.intro.length) return true; 579 let n2 = this.firstChunk; 580 do { 581 let e6 = n2.end, r2 = n2.trimStart(t2); 582 if (n2.end !== e6 && (n2 === this.lastChunk && (this.lastChunk = n2.next), this.byEnd[n2.end] = n2, this.byStart[n2.next.start] = n2.next, this.byEnd[n2.next.end] = n2.next), r2) return true; 583 n2 = n2.next; 584 } while (n2); 585 return false; 586 } 587 trimStart(e5) { 588 return this.trimStartAborted(e5), this; 589 } 590 hasChanged() { 591 return this.original !== this.toString(); 592 } 593 _replaceRegexp(e5, t2) { 594 function n2(e6, n3) { 595 return typeof t2 == `string` ? t2.replace(/\$(\$|&|\d+)/g, (t3, n4) => n4 === `$` ? `$` : n4 === `&` ? e6[0] : +n4 < e6.length ? e6[+n4] : `$${n4}`) : t2(e6[0], ...e6.slice(1), e6.index, n3, e6.groups); 596 } 597 function r2(e6, t3) { 598 let n3 = []; 599 for (; ; ) { 600 let r3 = e6.exec(t3); 601 if (!r3) break; 602 n3.push(r3); 603 } 604 return n3; 605 } 606 if (e5.global) r2(e5, this.original).forEach((e6) => { 607 if (e6.index != null) { 608 let t3 = n2(e6, this.original); 609 t3 !== e6[0] && this.overwrite(e6.index, e6.index + e6[0].length, t3); 610 } 611 }); 612 else { 613 let t3 = this.original.match(e5); 614 if (t3 && t3.index != null) { 615 let e6 = n2(t3, this.original); 616 e6 !== t3[0] && this.overwrite(t3.index, t3.index + t3[0].length, e6); 617 } 618 } 619 return this; 620 } 621 _replaceString(e5, t2) { 622 let { original: n2 } = this, r2 = n2.indexOf(e5); 623 return r2 !== -1 && (typeof t2 == `function` && (t2 = t2(e5, r2, n2)), e5 !== t2 && this.overwrite(r2, r2 + e5.length, t2)), this; 624 } 625 replace(e5, t2) { 626 return typeof e5 == `string` ? this._replaceString(e5, t2) : this._replaceRegexp(e5, t2); 627 } 628 _replaceAllString(e5, t2) { 629 let { original: n2 } = this, r2 = e5.length; 630 for (let i2 = n2.indexOf(e5); i2 !== -1; i2 = n2.indexOf(e5, i2 + r2)) { 631 let e6 = n2.slice(i2, i2 + r2), a2 = typeof t2 == `function` ? t2(e6, i2, n2) : t2; 632 e6 !== a2 && this.overwrite(i2, i2 + r2, a2); 633 } 634 return this; 635 } 636 replaceAll(e5, t2) { 637 if (typeof e5 == `string`) return this._replaceAllString(e5, t2); 638 if (!e5.global) throw TypeError(`MagicString.prototype.replaceAll called with a non-global RegExp argument`); 639 return this._replaceRegexp(e5, t2); 640 } 641}, _e = e(t(((e5, t2) => { 642 (function(n2, r2) { 643 typeof e5 == `object` && t2 !== void 0 ? t2.exports = r2() : typeof define == `function` && define.amd ? define(r2) : (n2 = typeof globalThis < `u` ? globalThis : n2 || self, n2.resolveURI = r2()); 644 })(e5, (function() { 645 let e6 = /^[\w+.-]+:\/\//, t3 = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, n2 = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; 646 function r2(t4) { 647 return e6.test(t4); 648 } 649 function i2(e7) { 650 return e7.startsWith(`//`); 651 } 652 function a2(e7) { 653 return e7.startsWith(`/`); 654 } 655 function o2(e7) { 656 return e7.startsWith(`file:`); 657 } 658 function s2(e7) { 659 return /^[.?#]/.test(e7); 660 } 661 function c2(e7) { 662 let n3 = t3.exec(e7); 663 return u2(n3[1], n3[2] || ``, n3[3], n3[4] || ``, n3[5] || `/`, n3[6] || ``, n3[7] || ``); 664 } 665 function l2(e7) { 666 let t4 = n2.exec(e7), r3 = t4[2]; 667 return u2(`file:`, ``, t4[1] || ``, ``, a2(r3) ? r3 : `/` + r3, t4[3] || ``, t4[4] || ``); 668 } 669 function u2(e7, t4, n3, r3, i3, a3, o3) { 670 return { scheme: e7, user: t4, host: n3, port: r3, path: i3, query: a3, hash: o3, type: 7 }; 671 } 672 function d2(e7) { 673 if (i2(e7)) {
674 let t5 = c2(`http:` + e7); 675 return t5.scheme = ``, t5.type = 6, t5; 676 } 677 if (a2(e7)) { 678 let t5 = c2(`http://foo.com` + e7); 679 return t5.scheme = ``, t5.host = ``, t5.type = 5, t5; 680 } 681 if (o2(e7)) return l2(e7); 682 if (r2(e7)) return c2(e7); 683 let t4 = c2(`http://foo.com/` + e7); 684 return t4.scheme = ``, t4.host = ``, t4.type = e7 ? e7.startsWith(`?`) ? 3 : e7.startsWith(`#`) ? 2 : 4 : 1, t4; 685 } 686 function f2(e7) { 687 if (e7.endsWith(`/..`)) return e7; 688 let t4 = e7.lastIndexOf(`/`); 689 return e7.slice(0, t4 + 1); 690 } 691 function p2(e7, t4) { 692 m2(t4, t4.type), e7.path === `/` ? e7.path = t4.path : e7.path = f2(t4.path) + e7.path; 693 } 694 function m2(e7, t4) { 695 let n3 = t4 <= 4, r3 = e7.path.split(`/`), i3 = 1, a3 = 0, o3 = false; 696 for (let e8 = 1; e8 < r3.length; e8++) { 697 let t5 = r3[e8]; 698 if (!t5) { 699 o3 = true; 700 continue; 701 } 702 if (o3 = false, t5 !== `.`) { 703 if (t5 === `..`) { 704 a3 ? (o3 = true, a3--, i3--) : n3 && (r3[i3++] = t5); 705 continue; 706 } 707 r3[i3++] = t5, a3++; 708 } 709 } 710 let s3 = ``; 711 for (let e8 = 1; e8 < i3; e8++) s3 += `/` + r3[e8]; 712 (!s3 || o3 && !s3.endsWith(`/..`)) && (s3 += `/`), e7.path = s3; 713 } 714 function h2(e7, t4) { 715 if (!e7 && !t4) return ``; 716 let n3 = d2(e7), r3 = n3.type; 717 if (t4 && r3 !== 7) { 718 let e8 = d2(t4), i4 = e8.type; 719 switch (r3) { 720 case 1: 721 n3.hash = e8.hash; 722 case 2: 723 n3.query = e8.query; 724 case 3: 725 case 4: 726 p2(n3, e8); 727 case 5: 728 n3.user = e8.user, n3.host = e8.host, n3.port = e8.port; 729 case 6: 730 n3.scheme = e8.scheme; 731 } 732 i4 > r3 && (r3 = i4); 733 } 734 m2(n3, r3); 735 let i3 = n3.query + n3.hash; 736 switch (r3) { 737 case 2: 738 case 3: 739 return i3; 740 case 4: { 741 let r4 = n3.path.slice(1); 742 return r4 ? s2(t4 || e7) && !s2(r4) ? `./` + r4 + i3 : r4 + i3 : i3 || `.`; 743 } 744 case 5: 745 return n3.path + i3; 746 default: 747 return n3.scheme + `//` + n3.user + n3.host + n3.port + n3.path + i3; 748 } 749 } 750 return h2; 751 })); 752}))(), 1); 753function ve(e5) { 754 if (!e5) return ``; 755 let t2 = e5.lastIndexOf(`/`); 756 return e5.slice(0, t2 + 1); 757} 758function ye(e5, t2) { 759 let n2 = ve(e5), r2 = t2 ? t2 + `/` : ``; 760 return (e6) => (0, _e.default)(r2 + (e6 || ``), n2); 761} 762var N = 0; 763function be(e5, t2) { 764 let n2 = P(e5, 0); 765 if (n2 === e5.length) return e5; 766 t2 || (e5 = e5.slice()); 767 for (let r2 = n2; r2 < e5.length; r2 = P(e5, r2 + 1)) e5[r2] = Se(e5[r2], t2); 768 return e5; 769} 770function P(e5, t2) { 771 for (let n2 = t2; n2 < e5.length; n2++) if (!xe(e5[n2])) return n2; 772 return e5.length; 773} 774function xe(e5) { 775 for (let t2 = 1; t2 < e5.length; t2++) if (e5[t2][N] < e5[t2 - 1][N]) return false; 776 return true; 777} 778function Se(e5, t2) { 779 return t2 || (e5 = e5.slice()), e5.sort(Ce); 780} 781function Ce(e5, t2) { 782 return e5[N] - t2[N]; 783} 784var F = false; 785function we(e5, t2, n2, r2) { 786 for (; n2 <= r2; ) { 787 let i2 = n2 + (r2 - n2 >> 1), a2 = e5[i2][N] - t2; 788 if (a2 === 0) return F = true, i2; 789 a2 < 0 ? n2 = i2 + 1 : r2 = i2 - 1; 790 } 791 return F = false, n2 - 1; 792} 793function Te(e5, t2, n2) { 794 for (let r2 = n2 + 1; r2 < e5.length && e5[r2][N] === t2; n2 = r2++) ; 795 return n2; 796} 797function Ee(e5, t2, n2) { 798 for (let r2 = n2 - 1; r2 >= 0 && e5[r2][N] === t2; n2 = r2--) ; 799 return n2; 800} 801function De() { 802 return { lastKey: -1, lastNeedle: -1, lastIndex: -1 }; 803} 804function Oe(e5, t2, n2, r2) { 805 let { lastKey: i2, lastNeedle: a2, lastIndex: o2 } = n2, s2 = 0, c2 = e5.length - 1; 806 if (r2 === i2) { 807 if (t2 === a2) return F = o2 !== -1 && e5[o2][N] === t2, o2; 808 t2 >= a2 ? s2 = o2 === -1 ? 0 : o2 : c2 = o2; 809 } 810 return n2.lastKey = r2, n2.lastNeedle = t2, n2.lastIndex = we(e5, t2, s2, c2); 811} 812function ke(e5) { 813 return typeof e5 == `string` ? JSON.parse(e5) : e5; 814} 815var I = class { 816 constructor(e5, t2) { 817 let n2 = typeof e5 == `string`; 818 if (!n2 && e5._decodedMemo) return e5; 819 let r2 = ke(e5), { version: i2, file: a2, names: o2, sourceRoot: s2, sources: c2, sourcesContent: l2 }
819 = r2; 820 this.version = i2, this.file = a2, this.names = o2 || [], this.sourceRoot = s2, this.sources = c2, this.sourcesContent = l2, this.ignoreList = r2.ignoreList || r2.x_google_ignoreList || void 0; 821 let u2 = ye(t2, s2); 822 this.resolvedSources = c2.map(u2); 823 let { mappings: d2 } = r2; 824 if (typeof d2 == `string`) this._encoded = d2, this._decoded = void 0; 825 else if (Array.isArray(d2)) this._encoded = void 0, this._decoded = be(d2, n2); 826 else if (r2.sections) throw Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`); 827 else throw Error(`invalid source map: ${JSON.stringify(r2)}`); 828 this._decodedMemo = De(), this._bySources = void 0, this._bySourceMemos = void 0; 829 } 830}; 831function L(e5) { 832 return e5; 833} 834function R(e5) { 835 var t2; 836 return (t2 = L(e5))._decoded || (t2._decoded = ie(L(e5)._encoded)); 837} 838function Ae(e5, t2, n2) { 839 let r2 = R(e5); 840 if (t2 >= r2.length) return null; 841 let i2 = r2[t2], a2 = je(i2, L(e5)._decodedMemo, t2, n2, 1); 842 return a2 === -1 ? null : i2[a2]; 843} 844function je(e5, t2, n2, r2, i2) { 845 let a2 = Oe(e5, r2, t2, n2); 846 return F ? a2 = (i2 === -1 ? Te : Ee)(e5, r2, a2) : i2 === -1 && a2++, a2 === -1 || a2 === e5.length ? -1 : a2; 847} 848var z = class { 849 constructor() { 850 this._indexes = { __proto__: null }, this.array = []; 851 } 852}; 853function B(e5) { 854 return e5; 855} 856function V(e5, t2) { 857 return B(e5)._indexes[t2]; 858} 859function H(e5, t2) { 860 let n2 = V(e5, t2); 861 if (n2 !== void 0) return n2; 862 let { array: r2, _indexes: i2 } = B(e5); 863 return i2[t2] = r2.push(t2) - 1; 864} 865function Me(e5, t2) { 866 let n2 = V(e5, t2); 867 if (n2 === void 0) return; 868 let { array: r2, _indexes: i2 } = B(e5); 869 for (let e6 = n2 + 1; e6 < r2.length; e6++) { 870 let t3 = r2[e6]; 871 r2[e6 - 1] = t3, i2[t3]--; 872 } 873 i2[t2] = void 0, r2.pop(); 874} 875var Ne = 0, Pe = 1, Fe = 2, Ie = 3, Le = 4, U = -1, Re = class { 876 constructor({ file: e5, sourceRoot: t2 } = {}) { 877 this._names = new z(), this._sources = new z(), this._sourcesContent = [], this._mappings = [], this.file = e5, this.sourceRoot = t2, this._ignoreList = new z(); 878 } 879}; 880function W(e5) { 881 return e5; 882} 883var ze = (e5, t2, n2, r2, i2, a2, o2, s2) => Ue(true, e5, t2, n2, r2, i2, a2, o2, s2); 884function Be(e5, t2, n2) { 885 let { _sources: r2, _sourcesContent: i2 } = W(e5), a2 = H(r2, t2); 886 i2[a2] = n2; 887} 888function Ve(e5, t2, n2 = true) { 889 let { _sources: r2, _sourcesContent: i2, _ignoreList: a2 } = W(e5), o2 = H(r2, t2); 890 o2 === i2.length && (i2[o2] = null), n2 ? H(a2, o2) : Me(a2, o2); 891} 892function G(e5) { 893 let { _mappings: t2, _sources: n2, _sourcesContent: r2, _names: i2, _ignoreList: a2 } = W(e5); 894 return Ke(t2), { version: 3, file: e5.file || void 0, names: i2.array, sourceRoot: e5.sourceRoot || void 0, sources: n2.array, sourcesContent: r2, mappings: t2, ignoreList: a2.array }; 895} 896function He(e5) { 897 let t2 = G(e5); 898 return Object.assign({}, t2, { mappings: T(t2.mappings) }); 899} 900function Ue(e5, t2, n2, r2, i2, a2, o2, s2, c2) { 901 let { _mappings: l2, _sources: u2, _sourcesContent: d2, _names: f2 } = W(t2), p2 = We(l2, n2), m2 = Ge(p2, r2); 902 if (!i2) return e5 && qe(p2, m2) ? void 0 : K(p2, m2, [r2]); 903 let h2 = H(u2, i2), g2 = s2 ? H(f2, s2) : U; 904 if (h2 === d2.length && (d2[h2] = c2 ?? null), !(e5 && Je(p2, m2, h2, a2, o2, g2))) return K(p2, m2, s2 ? [r2, h2, a2, o2, g2] : [r2, h2, a2, o2]); 905} 906function We(e5, t2) { 907 for (let n2 = e5.length; n2 <= t2; n2++) e5[n2] = []; 908 return e5[t2]; 909} 910function Ge(e5, t2) { 911 let n2 = e5.length; 912 for (let r2 = n2 - 1; r2 >= 0 && !(t2 >= e5[r2][Ne]); n2 = r2--) ; 913 return n2; 914} 915function K(e5, t2, n2) { 916 for (let n3 = e5.length; n3 > t2; n3--) e5[n3] = e5[n3 - 1]; 917 e5[t2] = n2; 918} 919function Ke(e5) { 920 let { length: t2 } = e5, n2 = t2; 921 for (let t3 = n2 - 1; t3 >= 0 && !(e5[t3].length > 0); n2 = t3, t3--) ; 922 n2 < t2 && (e5.length = n2); 923} 924function qe(e5, t2) { 925 return t2 === 0 || e5[t2 - 1].length === 1; 926} 927function Je(e5, t2, n2, r2, i2, a2) { 928 if (t2 === 0) return false; 929 let o2 = e5[t2 - 1]; 930 return o2.length !== 1 && n2 === o2[Pe] && r2 === o2[Fe] && i2 === o2[Ie] && a2 === (o2.length === 5 ? o2[Le] : U); 931} 932var q = J(``, -1, -1, ``, null, false), Ye = []; 933function J(e5, t2, n2, r2, i2, a2) { 934 return { source: e5, line: t2, column: n2, name: r2, content: i2, ignore: a2 }; 935} 936function Y(e5, t2, n2, r2, i2) { 937 return { map: e5, sources: t2, source: n2, content: r2, ignore: i2 }; 938} 939function X(e5, t2) { 940 return Y(e5, t2, ``, null, false); 941} 942function Xe(e5, t2, n2) { 943 return Y(null, Ye, e5, t2, n2); 944} 945function Ze(e5) { 946 let t2 = new Re({ file: e5.map.file }), { sources: n2, map: r2 } = e5, i2 = r2.names, a2 = R(r2); 947 for (let e6 = 0; e6 < a2.length; e6++) { 948 let r3 = a2[e6]; 949 for (let a3 = 0; a3 < r3.length; a3++) { 950 let o2 = r3[a3], s2 = o2[0], c2 = q; 951 if (o2.length !== 1) {
952 let e7 = n2[o2[1]]; 953 if (c2 = Z(e7, o2[2], o2[3], o2.length === 5 ? i2[o2[4]] : ``), c2 == null) continue; 954 } 955 let { column: l2, line: u2, name: d2, content: f2, source: p2, ignore: m2 } = c2; 956 ze(t2, e6, s2, p2, u2, l2, d2), p2 && f2 != null && Be(t2, p2, f2), m2 && Ve(t2, p2, true); 957 } 958 } 959 return t2; 960} 961function Z(e5, t2, n2, r2) { 962 if (!e5.map) return J(e5.source, t2, n2, r2, e5.content, e5.ignore); 963 let i2 = Ae(e5.map, t2, n2); 964 return i2 == null ? null : i2.length === 1 ? q : Z(e5.sources[i2[1]], i2[2], i2[3], i2.length === 5 ? e5.map.names[i2[4]] : r2); 965} 966function Qe(e5) { 967 return Array.isArray(e5) ? e5 : [e5]; 968} 969function $e(e5, t2) { 970 let n2 = Qe(e5).map((e6) => new I(e6, ``)), r2 = n2.pop(); 971 for (let e6 = 0; e6 < n2.length; e6++) if (n2[e6].sources.length > 1) throw Error(`Transformation map ${e6} must have exactly one source file. 972Did you specify these with the most recent transformation maps first?`); 973 let i2 = Q(r2, t2, ``, 0); 974 for (let e6 = n2.length - 1; e6 >= 0; e6--) i2 = X(n2[e6], [i2]); 975 return i2; 976} 977function Q(e5, t2, n2, r2) { 978 let { resolvedSources: i2, sourcesContent: a2, ignoreList: o2 } = e5, s2 = r2 + 1; 979 return X(e5, i2.map((e6, r3) => { 980 let i3 = { importer: n2, depth: s2, source: e6 || ``, content: void 0, ignore: void 0 }, c2 = t2(i3.source, i3), { source: l2, content: u2, ignore: d2 } = i3; 981 return c2 ? Q(new I(c2, l2), t2, l2, s2) : Xe(l2, u2 === void 0 ? a2 ? a2[r3] : null : u2, d2 === void 0 ? o2 ? o2.includes(r3) : false : d2); 982 })); 983} 984var et = class { 985 constructor(e5, t2) { 986 let n2 = t2.decodedMappings ? G(e5) : He(e5); 987 this.version = n2.version, this.file = n2.file, this.mappings = n2.mappings, this.names = n2.names, this.ignoreList = n2.ignoreList, this.sourceRoot = n2.sourceRoot, this.sources = n2.sources, t2.excludeContent || (this.sourcesContent = n2.sourcesContent); 988 } 989 toString() { 990 return JSON.stringify(this); 991 } 992}; 993function tt(e5, t2, n2) { 994 let r2 = typeof n2 == `object` ? n2 : { excludeContent: !!n2, decodedMappings: false }; 995 return new et(Ze($e(e5, t2)), r2); 996} 997var nt = t(((e5) => { 998 e5.GREATEST_LOWER_BOUND = 1, e5.LEAST_UPPER_BOUND = 2; 999 function t2(n2, r2, i2, a2, o2, s2) { 1000 var c2 = Math.floor((r2 - n2) / 2) + n2, l2 = o2(i2, a2[c2], true); 1001 return l2 === 0 ? c2 : l2 > 0 ? r2 - c2 > 1 ? t2(c2, r2, i2, a2, o2, s2) : s2 == e5.LEAST_UPPER_BOUND ? r2 < a2.length ? r2 : -1 : c2 : c2 - n2 > 1 ? t2(n2, c2, i2, a2, o2, s2) : s2 == e5.LEAST_UPPER_BOUND ? c2 : n2 < 0 ? -1 : n2; 1002 } 1003 e5.search = function(n2, r2, i2, a2) { 1004 if (r2.length === 0) return -1; 1005 var o2 = t2(-1, r2.length, n2, r2, i2, a2 || e5.GREATEST_LOWER_BOUND); 1006 if (o2 < 0) return -1; 1007 for (; o2 - 1 >= 0 && i2(r2[o2], r2[o2 - 1], true) === 0; ) --o2; 1008 return o2; 1009 }; 1010})), rt = t(((e5) => { 1011 function t2(e6) { 1012 function t3(e7, t4, n4) { 1013 var r4 = e7[t4]; 1014 e7[t4] = e7[n4], e7[n4] = r4; 1015 } 1016 function n3(e7, t4) { 1017 return Math.round(e7 + Math.random() * (t4 - e7)); 1018 } 1019 function r3(e7, i2, a2, o2) { 1020 if (a2 < o2) { 1021 var s2 = n3(a2, o2), c2 = a2 - 1; 1022 t3(e7, s2, o2); 1023 for (var l2 = e7[o2], u2 = a2; u2 < o2; u2++) i2(e7[u2], l2, false) <= 0 && (c2 += 1, t3(e7, c2, u2)); 1024 t3(e7, c2 + 1, u2); 1025 var d2 = c2 + 1; 1026 r3(e7, i2, a2, d2 - 1), r3(e7, i2, d2 + 1, o2); 1027 } 1028 } 1029 return r3; 1030 } 1031 function n2(e6) { 1032 let n3 = t2.toString(); 1033 return Function(`return ${n3}`)()(e6); 1034 } 1035 var r2 = /* @__PURE__ */ new WeakMap(); 1036 e5.quickSort = function(e6, t3, i2 = 0) { 1037 let a2 = r2.get(t3); 1038 a2 === void 0 && (a2 = n2(t3), r2.set(t3, a2)), a2(e6, t3, i2, e6.length - 1); 1039 }; 1040})), it = t(((e5) => { 1041 var t2 = i(), a2 = nt(), o2 = r().ArraySet, s2 = n(), c2 = rt().quickSort; 1042 function l2(e6, n2) { 1043 var r2 = e6; 1044 return typeof e6 == `string` && (r2 = t2.parseSourceMapInput(e6)), r2.sections == null ? new u2(r2, n2) : new m2(r2, n2); 1045 } 1046 l2.fromSourceMap = function(e6, t3) { 1047 return u2.fromSourceMap(e6, t3); 1048 }, l2.prototype._version = 3, l2.prototype.__generatedMappings = null, Object.defineProperty(l2.prototype, "_generatedMappings", { configurable: true, enumerable: true, get: function() { 1049 return this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings; 1050 } }), l2.prototype.__originalMappings = null, Object.defineProperty(l2.prototype, "_originalMappings", { configurable: true, enumerable: true, get: function() { 1051 return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings; 1052 } }), l2.prototype._charIsMappingSeparator = function(e6, t3) { 1053 var n2 = e6.charAt(t3); 1054 return n2 === `;` || n2 === `,`; 1055 }, l2.prototype._parseMappings = function(e6, t3) { 1056 throw Error(`Subclasses must implement _parseMappings`); 1057 }, l2.GENERATED_ORDER = 1, l2.ORIGINAL_ORDER = 2, l2.GREATEST_LOWER_BOUND = 1, l2.LEAST_UPPER_BOUND = 2, l2.prototype.eachMapping = function(e6, n2, r2) { 1058 var i2 = n2 || null, a3 = r2 || l2.GENERATED_ORDER, o3; 1059 switch (a3) { 1060 case l2.GENERATED_ORDER: 1061 o3 = this._generatedMappings; 1062 break; 1063 case l2.ORIGINAL_ORDER: 1064 o3 = this._originalMappings; 1065 break; 1066 default: 1067 throw Error(`Unknown order of iteration.`); 1068 } 1069 for (var s3 = this.sourceRoot, c3 = e6.bind(i2), u3 = this._names, d3 = this._sources, f3 = this._sourceMapURL, p3 = 0, m3 = o3.length; p3 < m3; p3++) { 1070 var h2 = o3[p3], g2 = h2.source === null ? null : d3.at(h2.source); 1071 g2 !== null && (g2 = t2.computeSourceURL(s3, g2, f3)), c3({ source: g2, generatedLine: h2.generatedLine, generatedColumn: h2.generatedColumn, originalLine: h2.originalLine, originalColumn: h2.originalColumn, name: h2.name === null ? null : u3.at(h2.name) }); 1072 } 1073 }, l2.prototype.allGeneratedPositionsFor = function(e6) { 1074 var n2 = t2.getArg(e6, `line`), r2 = { source: t2.getArg(e6, `source`), originalLine: n2, originalColumn: t2.getArg(e6, `column`, 0) }; 1075 if (r2.source = this._findSourceIndex(r2.source), r2.source < 0) return []; 1076 var i2 = [], o3 = this._findMapping(r2, this._originalMappings, `originalLine`, `originalColumn`, t2.compareByOriginalPositions, a2.LEAST_UPPER_BOUND); 1077 if (o3 >= 0) { 1078 var s3 = this._originalMappings[o3]; 1079 if (e6.column === void 0) for (var c3 = s3.originalLine; s3 && s3.originalLine === c3; ) i2.push({ line: t2.getArg(s3, `generatedLine`, null), column: t2.getArg(s3, `generatedColumn`, null), lastColumn: t2.getArg(s3, `lastGeneratedColumn`, null) }), s3 = this._originalMappings[++o3]; 1080 else for (var l3 = s3.originalColumn; s3 && s3.originalLine === n2 && s3.originalColumn == l3; ) i2.push({ line: t2.getArg(s3, `generatedLine`, null), column: t2.getArg(s3, `generatedColumn`, null), lastColumn: t2.getArg(s3, `lastGeneratedColumn`, null) }), s3 = this._originalMappings[++o3]; 1081 } 1082 return i2; 1083 }, e5.SourceMapConsumer = l2; 1084 function u2(e6, n2) { 1085 var r2 = e6; 1086 typeof e6 == `string` && (r2 = t2.parseSourceMapInput(e6)); 1087 var i2 = t2.getArg(r2, `version`), a3 = t2.getArg(r2, `sources`), s3 = t2.getArg(r2, `names`, []), c3 = t2.getArg(r2, `sourceRoot`, null), l3 = t2.getArg(r2, `sourcesContent`, null), u3 = t2.getArg(r2, `mappings`), d3 = t2.getArg(r2, `file`, null); 1088 if (i2 != this._version) throw Error(`Unsupported version: ` + i2); 1089 c3 && (c3 = t2.normalize(c3)), a3 = a3.map(String).map(t2.normalize).map(function(e7) { 1090 return c3 && t2.isAbsolute(c3) && t2.isAbsolute(e7) ? t2.relative(c3, e7) : e7; 1091 }), this._names = o2.fromArray(s3.map(String), true), this._sources = o2.fromArray(a3, true), this._absoluteSources = this._sources.toArray().map(function(e7) { 1092 return t2.computeSourceURL(c3, e7, n2); 1093 }), this.sourceRoot = c3, this.sourcesContent = l3, this._mappings = u3, this._sourceMapURL = n2, this.file = d3; 1094 } 1095 u2.prototype = Object.create(l2.prototype), u2.prototype.consumer = l2, u2.prototype._findSourceIndex = function(e6) { 1096 var n2 = e6; 1097 if (this.sourceRoot != null && (n2 = t2.relative(this.sourceRoot, n2)), this._sources.has(n2)) return this._sources.indexOf(n2); 1098 var r2; 1099 for (r2 = 0; r2 < this._absoluteSources.length; ++r2) if (this._absoluteSources[r2] == e6) return r2; 1100 return -1; 1101 }, u2.fromSourceMap = function(e6, n2) { 1102 var r2 = Object.create(u2.prototype), i2 = r2._names = o2.fromArray(e6._names.toArray(), true), a3 = r2._sources = o2.fromArray(e6._sources.toArray(), true); 1103 r2.sourceRoot = e6._sourceRoot, r2.sourcesContent = e6._generateSourcesContent(r2._sources.toArray(), r2.sourceRoot), r2.file = e6._file, r2._sourceMapURL = n2, r2._absoluteSources = r2._sources.toArray().map(function(e7) { 1104 return t2.computeSourceURL(r2.sourceRoot, e7, n2); 1105 }); 1106 for (var s3 = e6._mappings.toArray().slice(), l3 = r2.__generatedMappings = [], f3 = r2.__originalMappings = [], p3 = 0, m3 = s3.length; p3 < m3; p3++) { 1107 var h2 = s3[p3], g2 = new d2(); 1108 g2.generatedLine = h2.generatedLine, g2.generatedColumn = h2.generatedColumn, h2.source && (g2.source = a3.indexOf(h2.source), g2.originalLine = h2.originalLine, g2.originalColumn = h2.originalColumn, h2.name && (g2.name = i2.indexOf(h2.name)), f3.push(g2)), l3.push(g2); 1109 } 1110 return c2(r2.__originalMappings, t2.compareByOriginalPositions), r2; 1111 }, u2.prototype._version = 3, Object.defineProperty(u2.prototype, "sources", { get: function() { 1112 return this._absoluteSources.slice(); 1113 } }); 1114 function d2() { 1115 this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null; 1116 } 1117 var f2 = t2.compareByGeneratedPositionsDeflatedNoLine; 1118 function p2(e6, t3) { 1119 let n2 = e6.length, r2 = e6.length - t3; 1120 if (!(r2 <= 1)) if (r2 == 2) { 1121 let n3 = e6[t3], r3 = e6[t3 + 1]; 1122 f2(n3, r3) > 0 && (e6[t3] = r3, e6[t3 + 1] = n3); 1123 }
1123 else if (r2 < 20) for (let r3 = t3; r3 < n2; r3++) for (let n3 = r3; n3 > t3; n3--) { 1124 let t4 = e6[n3 - 1], r4 = e6[n3]; 1125 if (f2(t4, r4) <= 0) break; 1126 e6[n3 - 1] = r4, e6[n3] = t4; 1127 } 1128 else c2(e6, f2, t3); 1129 } 1130 u2.prototype._parseMappings = function(e6, n2) { 1131 var r2 = 1, i2 = 0, a3 = 0, o3 = 0, l3 = 0, u3 = 0, f3 = e6.length, m3 = 0, h2 = {}, g2 = [], _2 = [], v2, y2, b2, x2; 1132 let S2 = 0; 1133 for (; m3 < f3; ) if (e6.charAt(m3) === `;`) r2++, m3++, i2 = 0, p2(_2, S2), S2 = _2.length; 1134 else if (e6.charAt(m3) === `,`) m3++; 1135 else { 1136 for (v2 = new d2(), v2.generatedLine = r2, b2 = m3; b2 < f3 && !this._charIsMappingSeparator(e6, b2); b2++) ; 1137 for (e6.slice(m3, b2), y2 = []; m3 < b2; ) s2.decode(e6, m3, h2), x2 = h2.value, m3 = h2.rest, y2.push(x2); 1138 if (y2.length === 2) throw Error(`Found a source, but no line and column`); 1139 if (y2.length === 3) throw Error(`Found a source and line, but no column`); 1140 if (v2.generatedColumn = i2 + y2[0], i2 = v2.generatedColumn, y2.length > 1 && (v2.source = l3 + y2[1], l3 += y2[1], v2.originalLine = a3 + y2[2], a3 = v2.originalLine, v2.originalLine += 1, v2.originalColumn = o3 + y2[3], o3 = v2.originalColumn, y2.length > 4 && (v2.name = u3 + y2[4], u3 += y2[4])), _2.push(v2), typeof v2.originalLine == `number`) { 1141 let e7 = v2.source; 1142 for (; g2.length <= e7; ) g2.push(null); 1143 g2[e7] === null && (g2[e7] = []), g2[e7].push(v2); 1144 } 1145 } 1146 p2(_2, S2), this.__generatedMappings = _2; 1147 for (var C2 = 0; C2 < g2.length; C2++) g2[C2] != null && c2(g2[C2], t2.compareByOriginalPositionsNoSource); 1148 this.__originalMappings = [].concat(...g2); 1149 }, u2.prototype._findMapping = function(e6, t3, n2, r2, i2, o3) { 1150 if (e6[n2] <= 0) throw TypeError(`Line must be greater than or equal to 1, got ` + e6[n2]); 1151 if (e6[r2] < 0) throw TypeError(`Column must be greater than or equal to 0, got ` + e6[r2]); 1152 return a2.search(e6, t3, i2, o3); 1153 }, u2.prototype.computeColumnSpans = function() { 1154 for (var e6 = 0; e6 < this._generatedMappings.length; ++e6) { 1155 var t3 = this._generatedMappings[e6]; 1156 if (e6 + 1 < this._generatedMappings.length) { 1157 var n2 = this._generatedMappings[e6 + 1]; 1158 if (t3.generatedLine === n2.generatedLine) { 1159 t3.lastGeneratedColumn = n2.generatedColumn - 1; 1160 continue; 1161 } 1162 } 1163 t3.lastGeneratedColumn = 1 / 0; 1164 } 1165 }, u2.prototype.originalPositionFor = function(e6) { 1166 var n2 = { generatedLine: t2.getArg(e6, `line`), generatedColumn: t2.getArg(e6, `column`) }, r2 = this._findMapping(n2, this._generatedMappings, `generatedLine`, `generatedColumn`, t2.compareByGeneratedPositionsDeflated, t2.getArg(e6, `bias`, l2.GREATEST_LOWER_BOUND)); 1167 if (r2 >= 0) { 1168 var i2 = this._generatedMappings[r2]; 1169 if (i2.generatedLine === n2.generatedLine) { 1170 var a3 = t2.getArg(i2, `source`, null); 1171 a3 !== null && (a3 = this._sources.at(a3), a3 = t2.computeSourceURL(this.sourceRoot, a3, this._sourceMapURL)); 1172 var o3 = t2.getArg(i2, `name`, null); 1173 return o3 !== null && (o3 = this._names.at(o3)), { source: a3, line: t2.getArg(i2, `originalLine`, null), column: t2.getArg(i2, `originalColumn`, null), name: o3 }; 1174 } 1175 } 1176 return { source: null, line: null, column: null, name: null }; 1177 }, u2.prototype.hasContentsOfAllSources = function() { 1178 return this.sourcesContent ? this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(e6) { 1179 return e6 == null; 1180 }) : false; 1181 }, u2.prototype.sourceContentFor = function(e6, n2) { 1182 if (!this.sourcesContent) return null; 1183 var r2 = this._findSourceIndex(e6); 1184 if (r2 >= 0) return this.sourcesContent[r2]; 1185 var i2 = e6; 1186 this.sourceRoot != null && (i2 = t2.relative(this.sourceRoot, i2)); 1187 var a3; 1188 if (this.sourceRoot != null && (a3 = t2.urlParse(this.sourceRoot))) { 1189 var o3 = i2.replace(/^file:\/\//, ``); 1190 if (a3.scheme == `file` && this._sources.has(o3)) return this.sourcesContent[this._sources.indexOf(o3)]; 1191 if ((!a3.path || a3.path == `/`) && this._sources.has(`/` + i2)) return this.sourcesContent[this._sources.indexOf(`/` + i2)]; 1192 } 1193 if (n2) return null; 1194 throw Error(`"` + i2 + `" is not in the SourceMap.`); 1195 }, u2.prototype.generatedPositionFor = function(e6) { 1196 var n2 = t2.getArg(e6, `source`); 1197 if (n2 = this._findSourceIndex(n2), n2 < 0) return { line: null, column: null, lastColumn: null }; 1198 var r2 = { source: n2, originalLine: t2.getArg(e6, `line`), originalColumn: t2.getArg(e6, `column`) }, i2 = this._findMapping(r2, this._originalMappings, `originalLine`, `originalColumn`, t2.compareByOriginalPositions, t2.getArg(e6, `bias`, l2.GREATEST_LOWER_BOUND)); 1199 if (i2 >= 0) { 1200 var a3 = this._originalMappings[i2];
1201 if (a3.source === r2.source) return { line: t2.getArg(a3, `generatedLine`, null), column: t2.getArg(a3, `generatedColumn`, null), lastColumn: t2.getArg(a3, `lastGeneratedColumn`, null) }; 1202 } 1203 return { line: null, column: null, lastColumn: null }; 1204 }, e5.BasicSourceMapConsumer = u2; 1205 function m2(e6, n2) { 1206 var r2 = e6; 1207 typeof e6 == `string` && (r2 = t2.parseSourceMapInput(e6)); 1208 var i2 = t2.getArg(r2, `version`), a3 = t2.getArg(r2, `sections`); 1209 if (i2 != this._version) throw Error(`Unsupported version: ` + i2); 1210 this._sources = new o2(), this._names = new o2(); 1211 var s3 = { line: -1, column: 0 }; 1212 this._sections = a3.map(function(e7) { 1213 if (e7.url) throw Error(`Support for url field in sections not implemented.`); 1214 var r3 = t2.getArg(e7, `offset`), i3 = t2.getArg(r3, `line`), a4 = t2.getArg(r3, `column`); 1215 if (i3 < s3.line || i3 === s3.line && a4 < s3.column) throw Error(`Section offsets must be ordered and non-overlapping.`); 1216 return s3 = r3, { generatedOffset: { generatedLine: i3 + 1, generatedColumn: a4 + 1 }, consumer: new l2(t2.getArg(e7, `map`), n2) }; 1217 }); 1218 } 1219 m2.prototype = Object.create(l2.prototype), m2.prototype.constructor = l2, m2.prototype._version = 3, Object.defineProperty(m2.prototype, "sources", { get: function() { 1220 for (var e6 = [], t3 = 0; t3 < this._sections.length; t3++) for (var n2 = 0; n2 < this._sections[t3].consumer.sources.length; n2++) e6.push(this._sections[t3].consumer.sources[n2]); 1221 return e6; 1222 } }), m2.prototype.originalPositionFor = function(e6) { 1223 var n2 = { generatedLine: t2.getArg(e6, `line`), generatedColumn: t2.getArg(e6, `column`) }, r2 = a2.search(n2, this._sections, function(e7, t3) { 1224 return e7.generatedLine - t3.generatedOffset.generatedLine || e7.generatedColumn - t3.generatedOffset.generatedColumn; 1225 }), i2 = this._sections[r2]; 1226 return i2 ? i2.consumer.originalPositionFor({ line: n2.generatedLine - (i2.generatedOffset.generatedLine - 1), column: n2.generatedColumn - (i2.generatedOffset.generatedLine === n2.generatedLine ? i2.generatedOffset.generatedColumn - 1 : 0), bias: e6.bias }) : { source: null, line: null, column: null, name: null }; 1227 }, m2.prototype.hasContentsOfAllSources = function() { 1228 return this._sections.every(function(e6) { 1229 return e6.consumer.hasContentsOfAllSources(); 1230 }); 1231 }, m2.prototype.sourceContentFor = function(e6, t3) { 1232 for (var n2 = 0; n2 < this._sections.length; n2++) { 1233 var r2 = this._sections[n2].consumer.sourceContentFor(e6, true); 1234 if (r2 || r2 === ``) return r2; 1235 } 1236 if (t3) return null; 1237 throw Error(`"` + e6 + `" is not in the SourceMap.`); 1238 }, m2.prototype.generatedPositionFor = function(e6) { 1239 for (var n2 = 0; n2 < this._sections.length; n2++) { 1240 var r2 = this._sections[n2]; 1241 if (r2.consumer._findSourceIndex(t2.getArg(e6, `source`)) !== -1) { 1242 var i2 = r2.consumer.generatedPositionFor(e6); 1243 if (i2) return { line: i2.line + (r2.generatedOffset.generatedLine - 1), column: i2.column + (r2.generatedOffset.generatedLine === i2.line ? r2.generatedOffset.generatedColumn - 1 : 0) }; 1244 } 1245 } 1246 return { line: null, column: null }; 1247 }, m2.prototype._parseMappings = function(e6, n2) { 1248 this.__generatedMappings = [], this.__originalMappings = []; 1249 for (var r2 = 0; r2 < this._sections.length; r2++) for (var i2 = this._sections[r2], a3 = i2.consumer._generatedMappings, o3 = 0; o3 < a3.length; o3++) { 1250 var s3 = a3[o3], l3 = i2.consumer._sources.at(s3.source); 1251 l3 !== null && (l3 = t2.computeSourceURL(i2.consumer.sourceRoot, l3, this._sourceMapURL)), this._sources.add(l3), l3 = this._sources.indexOf(l3); 1252 var u3 = null; 1253 s3.name && (u3 = i2.consumer._names.at(s3.name), this._names.add(u3), u3 = this._names.indexOf(u3)); 1254 var d3 = { source: l3, generatedLine: s3.generatedLine + (i2.generatedOffset.generatedLine - 1), generatedColumn: s3.generatedColumn + (i2.generatedOffset.generatedLine === s3.generatedLine ? i2.generatedOffset.generatedColumn - 1 : 0), originalLine: s3.originalLine, originalColumn: s3.originalColumn, name: u3 }; 1255 this.__generatedMappings.push(d3), typeof d3.originalLine == `number` && this.__originalMappings.push(d3); 1256 } 1257 c2(this.__generatedMappings, t2.compareByGeneratedPositionsDeflated), c2(this.__originalMappings, t2.compareByOriginalPositions); 1258 }, e5.IndexedSourceMapConsumer = m2; 1259})), at = t(((e5) => { 1260 var t2 = a().SourceMapGenerator, n2 = i(), r2 = /(\r?\n)/, o2 = 10, s2 = `$$$isSourceNode$$$`; 1261 function c2(e6, t3, n3, r3, i2) { 1262 this.children = [], this.sourceContents = {}, this.line = e6 ?? null, this.column = t3 ?? null, this.source = n3 ?? null, this.name = i2 ?? null, this[s2] = true, r3 != null && this.add(r3); 1263 } 1264 c2.fromStringWithSourceMap = function(e6, t3, i2) { 1265 var a2 = new c2(), o3 = e6.split(r2), s3 = 0, l2 = function() { 1266 return e7() + (e7() || ``); 1267 function e7() { 1268 return s3 < o3.length ? o3[s3++] : void 0; 1269 } 1270 }, u2 = 1, d2 = 0, f2 = null; 1271 return t3.eachMapping(function(e7) { 1272 if (f2 !== null) if (u2 < e7.generatedLine) p2(f2, l2()), u2++, d2 = 0; 1273 else { 1274 var t4 = o3[s3] || ``, n3 = t4.substr(0, e7.generatedColumn - d2); 1275 o3[s3] = t4.substr(e7.generatedColumn - d2), d2 = e7.generatedColumn, p2(f2, n3), f2 = e7; 1276 return; 1277 } 1278 for (; u2 < e7.generatedLine; ) a2.add(l2()), u2++; 1279 if (d2 < e7.generatedColumn) { 1280 var t4 = o3[s3] || ``; 1281 a2.add(t4.substr(0, e7.generatedColumn)), o3[s3] = t4.substr(e7.generatedColumn), d2 = e7.generatedColumn; 1282 } 1283 f2 = e7; 1284 }, this), s3 < o3.length && (f2 && p2(f2, l2()), a2.add(o3.splice(s3).join(``))), t3.sources.forEac
1284h(function(e7) { 1285 var r3 = t3.sourceContentFor(e7); 1286 r3 != null && (i2 != null && (e7 = n2.join(i2, e7)), a2.setSourceContent(e7, r3)); 1287 }), a2; 1288 function p2(e7, t4) { 1289 if (e7 === null || e7.source === void 0) a2.add(t4); 1290 else { 1291 var r3 = i2 ? n2.join(i2, e7.source) : e7.source; 1292 a2.add(new c2(e7.originalLine, e7.originalColumn, r3, t4, e7.name)); 1293 } 1294 } 1295 }, c2.prototype.add = function(e6) { 1296 if (Array.isArray(e6)) e6.forEach(function(e7) { 1297 this.add(e7); 1298 }, this); 1299 else if (e6[s2] || typeof e6 == `string`) e6 && this.children.push(e6); 1300 else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got ` + e6); 1301 return this; 1302 }, c2.prototype.prepend = function(e6) { 1303 if (Array.isArray(e6)) for (var t3 = e6.length - 1; t3 >= 0; t3--) this.prepend(e6[t3]); 1304 else if (e6[s2] || typeof e6 == `string`) this.children.unshift(e6); 1305 else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got ` + e6); 1306 return this; 1307 }, c2.prototype.walk = function(e6) { 1308 for (var t3, n3 = 0, r3 = this.children.length; n3 < r3; n3++) t3 = this.children[n3], t3[s2] ? t3.walk(e6) : t3 !== `` && e6(t3, { source: this.source, line: this.line, column: this.column, name: this.name }); 1309 }, c2.prototype.join = function(e6) { 1310 var t3, n3, r3 = this.children.length; 1311 if (r3 > 0) { 1312 for (t3 = [], n3 = 0; n3 < r3 - 1; n3++) t3.push(this.children[n3]), t3.push(e6); 1313 t3.push(this.children[n3]), this.children = t3; 1314 } 1315 return this; 1316 }, c2.prototype.replaceRight = function(e6, t3) { 1317 var n3 = this.children[this.children.length - 1]; 1318 return n3[s2] ? n3.replaceRight(e6, t3) : typeof n3 == `string` ? this.children[this.children.length - 1] = n3.replace(e6, t3) : this.children.push(``.replace(e6, t3)), this; 1319 }, c2.prototype.setSourceContent = function(e6, t3) { 1320 this.sourceContents[n2.toSetString(e6)] = t3; 1321 }, c2.prototype.walkSourceContents = function(e6) { 1322 for (var t3 = 0, r3 = this.children.length; t3 < r3; t3++) this.children[t3][s2] && this.children[t3].walkSourceContents(e6); 1323 for (var i2 = Object.keys(this.sourceContents), t3 = 0, r3 = i2.length; t3 < r3; t3++) e6(n2.fromSetString(i2[t3]), this.sourceContents[i2[t3]]); 1324 }, c2.prototype.toString = function() { 1325 var e6 = ``; 1326 return this.walk(function(t3) { 1327 e6 += t3; 1328 }), e6; 1329 }, c2.prototype.toStringWithSourceMap = function(e6) { 1330 var n3 = { code: ``, line: 1, column: 0 }, r3 = new t2(e6), i2 = false, a2 = null, s3 = null, c3 = null, l2 = null; 1331 return this.walk(function(e7, t3) { 1332 n3.code += e7, t3.source !== null && t3.line !== null && t3.column !== null ? ((a2 !== t3.source || s3 !== t3.line || c3 !== t3.column || l2 !== t3.name) && r3.addMapping({ source: t3.source, original: { line: t3.line, column: t3.column }, generated: { line: n3.line, column: n3.column }, name: t3.name }), a2 = t3.source, s3 = t3.line, c3 = t3.column, l2 = t3.name, i2 = true) : i2 && (i2 = (r3.addMapping({ generated: { line: n3.line, column: n3.column } }), a2 = null, false)); 1333 for (var u2 = 0, d2 = e7.length; u2 < d2; u2++) e7.charCodeAt(u2) === o2 ? (n3.line++, n3.column = 0, u2 + 1 === d2 ? (a2 = null, i2 = false) : i2 && r3.addMapping({ source: t3.source, original: { line: t3.line, column: t3.column }, generated: { line: n3.line, column: n3.column }, name: t3.name })) : n3.column++; 1334 }), this.walkSourceContents(function(e7, t3) { 1335 r3.setSourceContent(e7, t3); 1336 }), { code: n3.code, map: r3 }; 1337 }, e5.SourceNode = c2; 1338})), ot = t(((e5) => { 1339 e5.SourceMapGenerator = a().SourceMapGenerator, e5.SourceMapConsumer = it().SourceMapConsumer, e5.SourceNode = at().SourceNode; 1340})); 1341o(); 1342var st = ot(); 1343function ct(e5) { 1344 let t2 = new st.SourceMapGenerator(), n2 = 1, r2 = new d((e6) => ({ url: e6?.url ?? `<unknown ${n2++}>`, content: e6?.content ?? `<none>` })); 1345 for (let n3 of e5.mappings) { 1346 let e6 = r2.get(n3.originalPosition?.source ?? null); 1347 t2.addMapping({ generated: n3.generatedPosition, original: n3.originalPosition, source: e6.url, name: n3.name }), t2.setSourceContent(e6.url, e6.content); 1348 } 1349 return t2.toString(); 1350} 1351function lt(e5) { 1352 let t2 = typeof e5 == `string` ? e5 : ct(e5); 1353 function n2(e6) { 1354 return `/*# sourceMappingURL=${e6} */ 1355`; 1356 }
1357 return { raw: t2, get inline() { 1358 return n2(`data:application/json;base64,${s.from(t2, `utf-8`).toString(`base64`)}`); 1359 }, comment: n2 }; 1360} 1361async function ut({ candidates: e5 = [], entrypoint: t2 = `/main.css`, volume: n2 = {}, ...r2 }) { 1362 return r2 = { candidates: e5, entrypoint: t2, volume: n2, ...r2 }, r2.volume[r2.entrypoint] = (await l(r2)).css, await u(r2.volume[r2.entrypoint], { loadModule: async (e6, t3, n3) => f(e6, t3, n3, r2.volume), loadStylesheet: async (e6, t3) => c(e6, t3, r2.volume), from: r2.entrypoint }); 1363} 1364async function dt(e5, { file: t2 = `main.css`, minify: n2 = false, map: r2 } = {}) { 1365 if (await h(m), r2 !== void 0) try { 1366 r2 = typeof r2 == `string` ? r2 : lt(r2).raw; 1367 } catch { 1368 r2 = void 0; 1369 } 1370 function i2(e6, r3) { 1371 return p({ filename: t2, code: typeof e6 == `string` ? new TextEncoder().encode(e6) : e6, minify: n2, sourceMap: r3 !== void 0, inputSourceMap: r3, drafts: { customMedia: true }, nonStandard: { deepSelectorCombinator: true }, include: g.Nesting | g.MediaQueries, exclude: g.LogicalProperties | g.DirSelector | g.LightDark, targets: { safari: 1049600, ios_saf: 1049600, firefox: 8388608, chrome: 7274496 }, errorRecovery: true }); 1372 } 1373 let a2 = i2(e5, r2); 1374 if (r2 = a2.map ? new TextDecoder().decode(a2.map) : void 0, a2.warnings = a2.warnings.filter((e6) => !/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(e6.message)), a2.warnings.length > 0) { 1375 let t3 = e5.split(` 1376`), n3 = [`Found ${a2.warnings.length} ${a2.warnings.length === 1 ? `warning` : `warnings`} while optimizing generated CSS:`]; 1377 for (let [e6, r3] of a2.warnings.entries()) { 1378 n3.push(``), a2.warnings.length > 1 && n3.push(`Issue #${e6 + 1}:`); 1379 let i3 = Math.max(0, r3.loc.line - 2 - 1), o3 = Math.min(t3.length, r3.loc.line + 2), s3 = t3.slice(i3, o3).map((e7, t4) => i3 + t4 + 1 === r3.loc.line ? `${$(`\u2502`)} ${e7}` : $(`\u2502 ${e7}`)); 1380 s3.splice(r3.loc.line - i3, 0, `${$(`\u2506`)}${` `.repeat(r3.loc.column - 1)} ${ft(`${$(`^--`)} ${r3.message}`)}`, `${$(`\u2506`)}`), n3.push(...s3); 1381 } 1382 n3.push(``), console.warn(n3.join(` 1383`)); 1384 } 1385 a2 = i2(a2.code, r2), r2 = a2.map ? new TextDecoder().decode(a2.map) : void 0; 1386 let o2 = new TextDecoder().decode(a2.code), s2 = new ge(o2); 1387 return s2.replaceAll(`@media not (`, `@media not all and (`), r2 !== void 0 && s2.hasChanged() && (r2 = tt([s2.generateMap({ source: `original`, hires: `boundary` }).toString(), r2], () => null).toString()), o2 = s2.toString(), { code: o2, map: r2 }; 1388} 1389function $(e5) { 1390 return `\x1B[2m${e5}\x1B[22m`; 1391} 1392function ft(e5) { 1393 return `\x1B[33m${e5}\x1B[39m`; 1394} 1395export { 1396 dt as n, 1397 ut as t 1398};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.