From db60d064aa453f649d097fd2383aca8b9a84cf68 Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Mon, 12 Feb 2024 09:45:34 -0700 Subject: [PATCH] Revert "Revert "update ansi_up. Closes #3741"" This reverts commit 46b020a240754a60cd5965a07ff63ad87934cd29. --- src/dev_import_map.json | 8 +- src/import_map.json | 2 +- .../optimized/ansi_up.js | 424 ----------------- .../optimized/ansi_up.js | 427 ++++++++++++++++++ src/vendor/cdn.skypack.dev/ansi_up@v5.1.0.js | 16 - src/vendor/cdn.skypack.dev/ansi_up@v6.0.2.js | 16 + src/vendor/import_map.json | 8 +- 7 files changed, 452 insertions(+), 449 deletions(-) delete mode 100644 src/vendor/cdn.skypack.dev/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js create mode 100644 src/vendor/cdn.skypack.dev/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js delete mode 100644 src/vendor/cdn.skypack.dev/ansi_up@v5.1.0.js create mode 100644 src/vendor/cdn.skypack.dev/ansi_up@v6.0.2.js diff --git a/src/dev_import_map.json b/src/dev_import_map.json index aed3591f892..f1af9bfb26d 100644 --- a/src/dev_import_map.json +++ b/src/dev_import_map.json @@ -35,7 +35,7 @@ "media_types/": "./vendor/deno.land/x/media_types@v2.10.1/", "dayjs/": "./vendor/cdn.skypack.dev/dayjs@1.8.21/", "moment-guess": "./vendor/cdn.skypack.dev/moment-guess@1.2.4.js", - "ansi_up": "./vendor/cdn.skypack.dev/ansi_up@v5.1.0.js", + "ansi_up": "./vendor/cdn.skypack.dev/ansi_up@v6.0.2.js", "lodash/": "./vendor/cdn.skypack.dev/lodash@4.17.21/", "acorn-class-fields": "./vendor/cdn.skypack.dev/acorn-class-fields@1.0.0.js", "acorn/acorn": "./vendor/cdn.skypack.dev/acorn@8.4.0.js", @@ -58,10 +58,10 @@ "https://dev.jspm.io/": "./vendor/../resources/vendor/dev-jspm-io/", "https://dev.jspm.io/jszip@3.5.0": "./vendor/../resources/vendor/dev-jspm-io/jszip@3.5.0.js", "puppeteer/": "./vendor/../resources/vendor/deno-land/x/puppeteer@9-0-2/", - "cliffy/command/mod.ts": "./vendor/deno.land/x/cliffy@v0.25.4/command/mod.ts", "log/mod.ts": "./vendor/deno.land/std@0.204.0/log/mod.ts", - "path/mod.ts": "./vendor/deno.land/std@0.204.0/path/mod.ts", "streams/write_all.ts": "./vendor/deno.land/std@0.204.0/streams/write_all.ts", + "cliffy/command/mod.ts": "./vendor/deno.land/x/cliffy@v0.25.4/command/mod.ts", + "path/mod.ts": "./vendor/deno.land/std@0.204.0/path/mod.ts", "semver/mod.ts": "./vendor/deno.land/x/semver@v1.4.0/mod.ts", "fs/mod.ts": "./vendor/deno.land/std@0.204.0/fs/mod.ts", "yaml/mod.ts": "./vendor/deno.land/std@0.204.0/yaml/mod.ts", @@ -288,7 +288,7 @@ "/-/@observablehq/parser@v4.5.0-rWZiNfab8flhVomtfVvr/dist=es2019,mode=imports/optimized/@observablehq/parser.js": "./vendor/cdn.skypack.dev/-/@observablehq/parser@v4.5.0-rWZiNfab8flhVomtfVvr/dist=es2019,mode=imports/optimized/@observablehq/parser.js", "/-/acorn-class-fields@v1.0.0-VEggkLxq9gMrdwRuKkzZ/dist=es2019,mode=imports/optimized/acorn-class-fields.js": "./vendor/cdn.skypack.dev/-/acorn-class-fields@v1.0.0-VEggkLxq9gMrdwRuKkzZ/dist=es2019,mode=imports/optimized/acorn-class-fields.js", "/-/acorn-walk@v8.2.0-X811aiix0R2fkBGq305v/dist=es2019,mode=imports/optimized/acorn-walk.js": "./vendor/cdn.skypack.dev/-/acorn-walk@v8.2.0-X811aiix0R2fkBGq305v/dist=es2019,mode=imports/optimized/acorn-walk.js", - "/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js": "./vendor/cdn.skypack.dev/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js", + "/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js": "./vendor/cdn.skypack.dev/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js", "/-/binary-search-bounds@v2.0.5-c8IgO4OqUhed8ANHQXKv/dist=es2019,mode=imports/optimized/binary-search-bounds.js": "./vendor/cdn.skypack.dev/-/binary-search-bounds@v2.0.5-c8IgO4OqUhed8ANHQXKv/dist=es2019,mode=imports/optimized/binary-search-bounds.js", "/-/blueimp-md5@v2.19.0-FsBtHB6ITwdC3L5Giq4Q/dist=es2019,mode=imports/optimized/blueimp-md5.js": "./vendor/cdn.skypack.dev/-/blueimp-md5@v2.19.0-FsBtHB6ITwdC3L5Giq4Q/dist=es2019,mode=imports/optimized/blueimp-md5.js", "/-/dayjs@v1.8.21-6syVEc6qGP8frQXKlmJD/dist=es2019,mode=imports/optimized/dayjs.js": "./vendor/cdn.skypack.dev/-/dayjs@v1.8.21-6syVEc6qGP8frQXKlmJD/dist=es2019,mode=imports/optimized/dayjs.js", diff --git a/src/import_map.json b/src/import_map.json index 7c00cf0b2c8..6be83ff3679 100644 --- a/src/import_map.json +++ b/src/import_map.json @@ -35,7 +35,7 @@ "media_types/": "https://deno.land/x/media_types@v2.10.1/", "dayjs/": "https://cdn.skypack.dev/dayjs@1.8.21/", "moment-guess": "https://cdn.skypack.dev/moment-guess@1.2.4", - "ansi_up": "https://cdn.skypack.dev/ansi_up@v5.1.0", + "ansi_up": "https://cdn.skypack.dev/ansi_up@v6.0.2", "lodash/": "https://cdn.skypack.dev/lodash@4.17.21/", "acorn-class-fields": "https://cdn.skypack.dev/acorn-class-fields@1.0.0", "acorn/acorn": "https://cdn.skypack.dev/acorn@8.4.0", diff --git a/src/vendor/cdn.skypack.dev/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js b/src/vendor/cdn.skypack.dev/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js deleted file mode 100644 index b0f6d9ce91e..00000000000 --- a/src/vendor/cdn.skypack.dev/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js +++ /dev/null @@ -1,424 +0,0 @@ -var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; -function getDefaultExportFromCjs(x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; -} -function createCommonjsModule(fn, basedir, module) { - return module = { - path: basedir, - exports: {}, - require: function(path, base) { - return commonjsRequire(path, base === void 0 || base === null ? module.path : base); - } - }, fn(module, module.exports), module.exports; -} -function commonjsRequire() { - throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs"); -} -var ansi_up = createCommonjsModule(function(module, exports) { - (function(root, factory) { - if (typeof exports.nodeName !== "string") { - factory(exports); - } else { - var exp = {}; - factory(exp); - root.AnsiUp = exp.default; - } - })(commonjsGlobal, function(exports2) { - var __makeTemplateObject = this && this.__makeTemplateObject || function(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, "raw", {value: raw}); - } else { - cooked.raw = raw; - } - return cooked; - }; - var PacketKind; - (function(PacketKind2) { - PacketKind2[PacketKind2["EOS"] = 0] = "EOS"; - PacketKind2[PacketKind2["Text"] = 1] = "Text"; - PacketKind2[PacketKind2["Incomplete"] = 2] = "Incomplete"; - PacketKind2[PacketKind2["ESC"] = 3] = "ESC"; - PacketKind2[PacketKind2["Unknown"] = 4] = "Unknown"; - PacketKind2[PacketKind2["SGR"] = 5] = "SGR"; - PacketKind2[PacketKind2["OSCURL"] = 6] = "OSCURL"; - })(PacketKind || (PacketKind = {})); - var AnsiUp = function() { - function AnsiUp2() { - this.VERSION = "5.1.0"; - this.setup_palettes(); - this._use_classes = false; - this.bold = false; - this.italic = false; - this.underline = false; - this.fg = this.bg = null; - this._buffer = ""; - this._url_whitelist = {http: 1, https: 1}; - } - Object.defineProperty(AnsiUp2.prototype, "use_classes", { - get: function() { - return this._use_classes; - }, - set: function(arg) { - this._use_classes = arg; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(AnsiUp2.prototype, "url_whitelist", { - get: function() { - return this._url_whitelist; - }, - set: function(arg) { - this._url_whitelist = arg; - }, - enumerable: false, - configurable: true - }); - AnsiUp2.prototype.setup_palettes = function() { - var _this = this; - this.ansi_colors = [ - [ - {rgb: [0, 0, 0], class_name: "ansi-black"}, - {rgb: [187, 0, 0], class_name: "ansi-red"}, - {rgb: [0, 187, 0], class_name: "ansi-green"}, - {rgb: [187, 187, 0], class_name: "ansi-yellow"}, - {rgb: [0, 0, 187], class_name: "ansi-blue"}, - {rgb: [187, 0, 187], class_name: "ansi-magenta"}, - {rgb: [0, 187, 187], class_name: "ansi-cyan"}, - {rgb: [255, 255, 255], class_name: "ansi-white"} - ], - [ - {rgb: [85, 85, 85], class_name: "ansi-bright-black"}, - {rgb: [255, 85, 85], class_name: "ansi-bright-red"}, - {rgb: [0, 255, 0], class_name: "ansi-bright-green"}, - {rgb: [255, 255, 85], class_name: "ansi-bright-yellow"}, - {rgb: [85, 85, 255], class_name: "ansi-bright-blue"}, - {rgb: [255, 85, 255], class_name: "ansi-bright-magenta"}, - {rgb: [85, 255, 255], class_name: "ansi-bright-cyan"}, - {rgb: [255, 255, 255], class_name: "ansi-bright-white"} - ] - ]; - this.palette_256 = []; - this.ansi_colors.forEach(function(palette) { - palette.forEach(function(rec) { - _this.palette_256.push(rec); - }); - }); - var levels = [0, 95, 135, 175, 215, 255]; - for (var r = 0; r < 6; ++r) { - for (var g = 0; g < 6; ++g) { - for (var b = 0; b < 6; ++b) { - var col = {rgb: [levels[r], levels[g], levels[b]], class_name: "truecolor"}; - this.palette_256.push(col); - } - } - } - var grey_level = 8; - for (var i = 0; i < 24; ++i, grey_level += 10) { - var gry = {rgb: [grey_level, grey_level, grey_level], class_name: "truecolor"}; - this.palette_256.push(gry); - } - }; - AnsiUp2.prototype.escape_txt_for_html = function(txt) { - return txt.replace(/[&<>"']/gm, function(str) { - if (str === "&") - return "&"; - if (str === "<") - return "<"; - if (str === ">") - return ">"; - if (str === '"') - return """; - if (str === "'") - return "'"; - }); - }; - AnsiUp2.prototype.append_buffer = function(txt) { - var str = this._buffer + txt; - this._buffer = str; - }; - AnsiUp2.prototype.get_next_packet = function() { - var pkt = { - kind: PacketKind.EOS, - text: "", - url: "" - }; - var len = this._buffer.length; - if (len == 0) - return pkt; - var pos = this._buffer.indexOf(""); - if (pos == -1) { - pkt.kind = PacketKind.Text; - pkt.text = this._buffer; - this._buffer = ""; - return pkt; - } - if (pos > 0) { - pkt.kind = PacketKind.Text; - pkt.text = this._buffer.slice(0, pos); - this._buffer = this._buffer.slice(pos); - return pkt; - } - if (pos == 0) { - if (len == 1) { - pkt.kind = PacketKind.Incomplete; - return pkt; - } - var next_char = this._buffer.charAt(1); - if (next_char != "[" && next_char != "]") { - pkt.kind = PacketKind.ESC; - pkt.text = this._buffer.slice(0, 1); - this._buffer = this._buffer.slice(1); - return pkt; - } - if (next_char == "[") { - if (!this._csi_regex) { - this._csi_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n [ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n [ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "])); - } - var match = this._buffer.match(this._csi_regex); - if (match === null) { - pkt.kind = PacketKind.Incomplete; - return pkt; - } - if (match[4]) { - pkt.kind = PacketKind.ESC; - pkt.text = this._buffer.slice(0, 1); - this._buffer = this._buffer.slice(1); - return pkt; - } - if (match[1] != "" || match[3] != "m") - pkt.kind = PacketKind.Unknown; - else - pkt.kind = PacketKind.SGR; - pkt.text = match[2]; - var rpos = match[0].length; - this._buffer = this._buffer.slice(rpos); - return pkt; - } - if (next_char == "]") { - if (len < 4) { - pkt.kind = PacketKind.Incomplete; - return pkt; - } - if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") { - pkt.kind = PacketKind.ESC; - pkt.text = this._buffer.slice(0, 1); - this._buffer = this._buffer.slice(1); - return pkt; - } - if (!this._osc_st) { - this._osc_st = rgxG(__makeTemplateObject(["\n (?: # legal sequence\n (\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])); - } - this._osc_st.lastIndex = 0; - { - var match_1 = this._osc_st.exec(this._buffer); - if (match_1 === null) { - pkt.kind = PacketKind.Incomplete; - return pkt; - } - if (match_1[3]) { - pkt.kind = PacketKind.ESC; - pkt.text = this._buffer.slice(0, 1); - this._buffer = this._buffer.slice(1); - return pkt; - } - } - { - var match_2 = this._osc_st.exec(this._buffer); - if (match_2 === null) { - pkt.kind = PacketKind.Incomplete; - return pkt; - } - if (match_2[3]) { - pkt.kind = PacketKind.ESC; - pkt.text = this._buffer.slice(0, 1); - this._buffer = this._buffer.slice(1); - return pkt; - } - } - if (!this._osc_regex) { - this._osc_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n ]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n ]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "])); - } - var match = this._buffer.match(this._osc_regex); - if (match === null) { - pkt.kind = PacketKind.ESC; - pkt.text = this._buffer.slice(0, 1); - this._buffer = this._buffer.slice(1); - return pkt; - } - pkt.kind = PacketKind.OSCURL; - pkt.url = match[1]; - pkt.text = match[2]; - var rpos = match[0].length; - this._buffer = this._buffer.slice(rpos); - return pkt; - } - } - }; - AnsiUp2.prototype.ansi_to_html = function(txt) { - this.append_buffer(txt); - var blocks = []; - while (true) { - var packet = this.get_next_packet(); - if (packet.kind == PacketKind.EOS || packet.kind == PacketKind.Incomplete) - break; - if (packet.kind == PacketKind.ESC || packet.kind == PacketKind.Unknown) - continue; - if (packet.kind == PacketKind.Text) - blocks.push(this.transform_to_html(this.with_state(packet))); - else if (packet.kind == PacketKind.SGR) - this.process_ansi(packet); - else if (packet.kind == PacketKind.OSCURL) - blocks.push(this.process_hyperlink(packet)); - } - return blocks.join(""); - }; - AnsiUp2.prototype.with_state = function(pkt) { - return {bold: this.bold, italic: this.italic, underline: this.underline, fg: this.fg, bg: this.bg, text: pkt.text}; - }; - AnsiUp2.prototype.process_ansi = function(pkt) { - var sgr_cmds = pkt.text.split(";"); - while (sgr_cmds.length > 0) { - var sgr_cmd_str = sgr_cmds.shift(); - var num = parseInt(sgr_cmd_str, 10); - if (isNaN(num) || num === 0) { - this.fg = this.bg = null; - this.bold = false; - this.italic = false; - this.underline = false; - } else if (num === 1) { - this.bold = true; - } else if (num === 3) { - this.italic = true; - } else if (num === 4) { - this.underline = true; - } else if (num === 22) { - this.bold = false; - } else if (num === 23) { - this.italic = false; - } else if (num === 24) { - this.underline = false; - } else if (num === 39) { - this.fg = null; - } else if (num === 49) { - this.bg = null; - } else if (num >= 30 && num < 38) { - this.fg = this.ansi_colors[0][num - 30]; - } else if (num >= 40 && num < 48) { - this.bg = this.ansi_colors[0][num - 40]; - } else if (num >= 90 && num < 98) { - this.fg = this.ansi_colors[1][num - 90]; - } else if (num >= 100 && num < 108) { - this.bg = this.ansi_colors[1][num - 100]; - } else if (num === 38 || num === 48) { - if (sgr_cmds.length > 0) { - var is_foreground = num === 38; - var mode_cmd = sgr_cmds.shift(); - if (mode_cmd === "5" && sgr_cmds.length > 0) { - var palette_index = parseInt(sgr_cmds.shift(), 10); - if (palette_index >= 0 && palette_index <= 255) { - if (is_foreground) - this.fg = this.palette_256[palette_index]; - else - this.bg = this.palette_256[palette_index]; - } - } - if (mode_cmd === "2" && sgr_cmds.length > 2) { - var r = parseInt(sgr_cmds.shift(), 10); - var g = parseInt(sgr_cmds.shift(), 10); - var b = parseInt(sgr_cmds.shift(), 10); - if (r >= 0 && r <= 255 && (g >= 0 && g <= 255) && (b >= 0 && b <= 255)) { - var c = {rgb: [r, g, b], class_name: "truecolor"}; - if (is_foreground) - this.fg = c; - else - this.bg = c; - } - } - } - } - } - }; - AnsiUp2.prototype.transform_to_html = function(fragment) { - var txt = fragment.text; - if (txt.length === 0) - return txt; - txt = this.escape_txt_for_html(txt); - if (!fragment.bold && !fragment.italic && !fragment.underline && fragment.fg === null && fragment.bg === null) - return txt; - var styles = []; - var classes = []; - var fg = fragment.fg; - var bg = fragment.bg; - if (fragment.bold) - styles.push("font-weight:bold"); - if (fragment.italic) - styles.push("font-style:italic"); - if (fragment.underline) - styles.push("text-decoration:underline"); - if (!this._use_classes) { - if (fg) - styles.push("color:rgb(" + fg.rgb.join(",") + ")"); - if (bg) - styles.push("background-color:rgb(" + bg.rgb + ")"); - } else { - if (fg) { - if (fg.class_name !== "truecolor") { - classes.push(fg.class_name + "-fg"); - } else { - styles.push("color:rgb(" + fg.rgb.join(",") + ")"); - } - } - if (bg) { - if (bg.class_name !== "truecolor") { - classes.push(bg.class_name + "-bg"); - } else { - styles.push("background-color:rgb(" + bg.rgb.join(",") + ")"); - } - } - } - var class_string = ""; - var style_string = ""; - if (classes.length) - class_string = ' class="' + classes.join(" ") + '"'; - if (styles.length) - style_string = ' style="' + styles.join(";") + '"'; - return "" + txt + ""; - }; - AnsiUp2.prototype.process_hyperlink = function(pkt) { - var parts = pkt.url.split(":"); - if (parts.length < 1) - return ""; - if (!this._url_whitelist[parts[0]]) - return ""; - var result = '' + this.escape_txt_for_html(pkt.text) + ""; - return result; - }; - return AnsiUp2; - }(); - function rgx(tmplObj) { - var subst = []; - for (var _i = 1; _i < arguments.length; _i++) { - subst[_i - 1] = arguments[_i]; - } - var regexText = tmplObj.raw[0]; - var wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm; - var txt2 = regexText.replace(wsrgx, ""); - return new RegExp(txt2); - } - function rgxG(tmplObj) { - var subst = []; - for (var _i = 1; _i < arguments.length; _i++) { - subst[_i - 1] = arguments[_i]; - } - var regexText = tmplObj.raw[0]; - var wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm; - var txt2 = regexText.replace(wsrgx, ""); - return new RegExp(txt2, "g"); - } - Object.defineProperty(exports2, "__esModule", {value: true}); - exports2.default = AnsiUp; - }); -}); -var ansi_up$1 = /* @__PURE__ */ getDefaultExportFromCjs(ansi_up); -export default ansi_up$1; diff --git a/src/vendor/cdn.skypack.dev/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js b/src/vendor/cdn.skypack.dev/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js new file mode 100644 index 00000000000..2ff619d9767 --- /dev/null +++ b/src/vendor/cdn.skypack.dev/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js @@ -0,0 +1,427 @@ +var __makeTemplateObject = function(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, "raw", {value: raw}); + } else { + cooked.raw = raw; + } + return cooked; +}; +var PacketKind; +(function(PacketKind2) { + PacketKind2[PacketKind2["EOS"] = 0] = "EOS"; + PacketKind2[PacketKind2["Text"] = 1] = "Text"; + PacketKind2[PacketKind2["Incomplete"] = 2] = "Incomplete"; + PacketKind2[PacketKind2["ESC"] = 3] = "ESC"; + PacketKind2[PacketKind2["Unknown"] = 4] = "Unknown"; + PacketKind2[PacketKind2["SGR"] = 5] = "SGR"; + PacketKind2[PacketKind2["OSCURL"] = 6] = "OSCURL"; +})(PacketKind || (PacketKind = {})); +class AnsiUp { + constructor() { + this.VERSION = "6.0.2"; + this.setup_palettes(); + this._use_classes = false; + this.bold = false; + this.faint = false; + this.italic = false; + this.underline = false; + this.fg = this.bg = null; + this._buffer = ""; + this._url_allowlist = {http: 1, https: 1}; + this._escape_html = true; + this.boldStyle = "font-weight:bold"; + this.faintStyle = "opacity:0.7"; + this.italicStyle = "font-style:italic"; + this.underlineStyle = "text-decoration:underline"; + } + set use_classes(arg) { + this._use_classes = arg; + } + get use_classes() { + return this._use_classes; + } + set url_allowlist(arg) { + this._url_allowlist = arg; + } + get url_allowlist() { + return this._url_allowlist; + } + set escape_html(arg) { + this._escape_html = arg; + } + get escape_html() { + return this._escape_html; + } + set boldStyle(arg) { + this._boldStyle = arg; + } + get boldStyle() { + return this._boldStyle; + } + set faintStyle(arg) { + this._faintStyle = arg; + } + get faintStyle() { + return this._faintStyle; + } + set italicStyle(arg) { + this._italicStyle = arg; + } + get italicStyle() { + return this._italicStyle; + } + set underlineStyle(arg) { + this._underlineStyle = arg; + } + get underlineStyle() { + return this._underlineStyle; + } + setup_palettes() { + this.ansi_colors = [ + [ + {rgb: [0, 0, 0], class_name: "ansi-black"}, + {rgb: [187, 0, 0], class_name: "ansi-red"}, + {rgb: [0, 187, 0], class_name: "ansi-green"}, + {rgb: [187, 187, 0], class_name: "ansi-yellow"}, + {rgb: [0, 0, 187], class_name: "ansi-blue"}, + {rgb: [187, 0, 187], class_name: "ansi-magenta"}, + {rgb: [0, 187, 187], class_name: "ansi-cyan"}, + {rgb: [255, 255, 255], class_name: "ansi-white"} + ], + [ + {rgb: [85, 85, 85], class_name: "ansi-bright-black"}, + {rgb: [255, 85, 85], class_name: "ansi-bright-red"}, + {rgb: [0, 255, 0], class_name: "ansi-bright-green"}, + {rgb: [255, 255, 85], class_name: "ansi-bright-yellow"}, + {rgb: [85, 85, 255], class_name: "ansi-bright-blue"}, + {rgb: [255, 85, 255], class_name: "ansi-bright-magenta"}, + {rgb: [85, 255, 255], class_name: "ansi-bright-cyan"}, + {rgb: [255, 255, 255], class_name: "ansi-bright-white"} + ] + ]; + this.palette_256 = []; + this.ansi_colors.forEach((palette) => { + palette.forEach((rec) => { + this.palette_256.push(rec); + }); + }); + let levels = [0, 95, 135, 175, 215, 255]; + for (let r = 0; r < 6; ++r) { + for (let g = 0; g < 6; ++g) { + for (let b = 0; b < 6; ++b) { + let col = {rgb: [levels[r], levels[g], levels[b]], class_name: "truecolor"}; + this.palette_256.push(col); + } + } + } + let grey_level = 8; + for (let i = 0; i < 24; ++i, grey_level += 10) { + let gry = {rgb: [grey_level, grey_level, grey_level], class_name: "truecolor"}; + this.palette_256.push(gry); + } + } + escape_txt_for_html(txt) { + if (!this._escape_html) + return txt; + return txt.replace(/[&<>"']/gm, (str) => { + if (str === "&") + return "&"; + if (str === "<") + return "<"; + if (str === ">") + return ">"; + if (str === '"') + return """; + if (str === "'") + return "'"; + }); + } + append_buffer(txt) { + var str = this._buffer + txt; + this._buffer = str; + } + get_next_packet() { + var pkt = { + kind: PacketKind.EOS, + text: "", + url: "" + }; + var len = this._buffer.length; + if (len == 0) + return pkt; + var pos = this._buffer.indexOf(""); + if (pos == -1) { + pkt.kind = PacketKind.Text; + pkt.text = this._buffer; + this._buffer = ""; + return pkt; + } + if (pos > 0) { + pkt.kind = PacketKind.Text; + pkt.text = this._buffer.slice(0, pos); + this._buffer = this._buffer.slice(pos); + return pkt; + } + if (pos == 0) { + if (len < 3) { + pkt.kind = PacketKind.Incomplete; + return pkt; + } + var next_char = this._buffer.charAt(1); + if (next_char != "[" && next_char != "]" && next_char != "(") { + pkt.kind = PacketKind.ESC; + pkt.text = this._buffer.slice(0, 1); + this._buffer = this._buffer.slice(1); + return pkt; + } + if (next_char == "[") { + if (!this._csi_regex) { + this._csi_regex = rgx(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n [ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n [ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))); + } + let match = this._buffer.match(this._csi_regex); + if (match === null) { + pkt.kind = PacketKind.Incomplete; + return pkt; + } + if (match[4]) { + pkt.kind = PacketKind.ESC; + pkt.text = this._buffer.slice(0, 1); + this._buffer = this._buffer.slice(1); + return pkt; + } + if (match[1] != "" || match[3] != "m") + pkt.kind = PacketKind.Unknown; + else + pkt.kind = PacketKind.SGR; + pkt.text = match[2]; + var rpos = match[0].length; + this._buffer = this._buffer.slice(rpos); + return pkt; + } else if (next_char == "]") { + if (len < 4) { + pkt.kind = PacketKind.Incomplete; + return pkt; + } + if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") { + pkt.kind = PacketKind.ESC; + pkt.text = this._buffer.slice(0, 1); + this._buffer = this._buffer.slice(1); + return pkt; + } + if (!this._osc_st) { + this._osc_st = rgxG(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n (?: # legal sequence\n (\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]))); + } + this._osc_st.lastIndex = 0; + { + let match2 = this._osc_st.exec(this._buffer); + if (match2 === null) { + pkt.kind = PacketKind.Incomplete; + return pkt; + } + if (match2[3]) { + pkt.kind = PacketKind.ESC; + pkt.text = this._buffer.slice(0, 1); + this._buffer = this._buffer.slice(1); + return pkt; + } + } + { + let match2 = this._osc_st.exec(this._buffer); + if (match2 === null) { + pkt.kind = PacketKind.Incomplete; + return pkt; + } + if (match2[3]) { + pkt.kind = PacketKind.ESC; + pkt.text = this._buffer.slice(0, 1); + this._buffer = this._buffer.slice(1); + return pkt; + } + } + if (!this._osc_regex) { + this._osc_regex = rgx(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ^ # beginning of line\n #\n ]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n ]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))); + } + let match = this._buffer.match(this._osc_regex); + if (match === null) { + pkt.kind = PacketKind.ESC; + pkt.text = this._buffer.slice(0, 1); + this._buffer = this._buffer.slice(1); + return pkt; + } + pkt.kind = PacketKind.OSCURL; + pkt.url = match[1]; + pkt.text = match[2]; + var rpos = match[0].length; + this._buffer = this._buffer.slice(rpos); + return pkt; + } else if (next_char == "(") { + pkt.kind = PacketKind.Unknown; + this._buffer = this._buffer.slice(3); + return pkt; + } + } + } + ansi_to_html(txt) { + this.append_buffer(txt); + var blocks = []; + while (true) { + var packet = this.get_next_packet(); + if (packet.kind == PacketKind.EOS || packet.kind == PacketKind.Incomplete) + break; + if (packet.kind == PacketKind.ESC || packet.kind == PacketKind.Unknown) + continue; + if (packet.kind == PacketKind.Text) + blocks.push(this.transform_to_html(this.with_state(packet))); + else if (packet.kind == PacketKind.SGR) + this.process_ansi(packet); + else if (packet.kind == PacketKind.OSCURL) + blocks.push(this.process_hyperlink(packet)); + } + return blocks.join(""); + } + with_state(pkt) { + return {bold: this.bold, faint: this.faint, italic: this.italic, underline: this.underline, fg: this.fg, bg: this.bg, text: pkt.text}; + } + process_ansi(pkt) { + let sgr_cmds = pkt.text.split(";"); + while (sgr_cmds.length > 0) { + let sgr_cmd_str = sgr_cmds.shift(); + let num = parseInt(sgr_cmd_str, 10); + if (isNaN(num) || num === 0) { + this.fg = null; + this.bg = null; + this.bold = false; + this.faint = false; + this.italic = false; + this.underline = false; + } else if (num === 1) { + this.bold = true; + } else if (num === 2) { + this.faint = true; + } else if (num === 3) { + this.italic = true; + } else if (num === 4) { + this.underline = true; + } else if (num === 21) { + this.bold = false; + } else if (num === 22) { + this.faint = false; + this.bold = false; + } else if (num === 23) { + this.italic = false; + } else if (num === 24) { + this.underline = false; + } else if (num === 39) { + this.fg = null; + } else if (num === 49) { + this.bg = null; + } else if (num >= 30 && num < 38) { + this.fg = this.ansi_colors[0][num - 30]; + } else if (num >= 40 && num < 48) { + this.bg = this.ansi_colors[0][num - 40]; + } else if (num >= 90 && num < 98) { + this.fg = this.ansi_colors[1][num - 90]; + } else if (num >= 100 && num < 108) { + this.bg = this.ansi_colors[1][num - 100]; + } else if (num === 38 || num === 48) { + if (sgr_cmds.length > 0) { + let is_foreground = num === 38; + let mode_cmd = sgr_cmds.shift(); + if (mode_cmd === "5" && sgr_cmds.length > 0) { + let palette_index = parseInt(sgr_cmds.shift(), 10); + if (palette_index >= 0 && palette_index <= 255) { + if (is_foreground) + this.fg = this.palette_256[palette_index]; + else + this.bg = this.palette_256[palette_index]; + } + } + if (mode_cmd === "2" && sgr_cmds.length > 2) { + let r = parseInt(sgr_cmds.shift(), 10); + let g = parseInt(sgr_cmds.shift(), 10); + let b = parseInt(sgr_cmds.shift(), 10); + if (r >= 0 && r <= 255 && (g >= 0 && g <= 255) && (b >= 0 && b <= 255)) { + let c = {rgb: [r, g, b], class_name: "truecolor"}; + if (is_foreground) + this.fg = c; + else + this.bg = c; + } + } + } + } + } + } + transform_to_html(fragment) { + let txt = fragment.text; + if (txt.length === 0) + return txt; + txt = this.escape_txt_for_html(txt); + if (!fragment.bold && !fragment.italic && !fragment.underline && fragment.fg === null && fragment.bg === null) + return txt; + let styles = []; + let classes = []; + let fg = fragment.fg; + let bg = fragment.bg; + if (fragment.bold) + styles.push(this._boldStyle); + if (fragment.faint) + styles.push(this._faintStyle); + if (fragment.italic) + styles.push(this._italicStyle); + if (fragment.underline) + styles.push(this._underlineStyle); + if (!this._use_classes) { + if (fg) + styles.push(`color:rgb(${fg.rgb.join(",")})`); + if (bg) + styles.push(`background-color:rgb(${bg.rgb})`); + } else { + if (fg) { + if (fg.class_name !== "truecolor") { + classes.push(`${fg.class_name}-fg`); + } else { + styles.push(`color:rgb(${fg.rgb.join(",")})`); + } + } + if (bg) { + if (bg.class_name !== "truecolor") { + classes.push(`${bg.class_name}-bg`); + } else { + styles.push(`background-color:rgb(${bg.rgb.join(",")})`); + } + } + } + let class_string = ""; + let style_string = ""; + if (classes.length) + class_string = ` class="${classes.join(" ")}"`; + if (styles.length) + style_string = ` style="${styles.join(";")}"`; + return `${txt}`; + } + process_hyperlink(pkt) { + let parts = pkt.url.split(":"); + if (parts.length < 1) + return ""; + if (!this._url_allowlist[parts[0]]) + return ""; + let result = `${this.escape_txt_for_html(pkt.text)}`; + return result; + } +} +function rgx(tmplObj, ...subst) { + let regexText = tmplObj.raw[0]; + let wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm; + let txt2 = regexText.replace(wsrgx, ""); + return new RegExp(txt2); +} +function rgxG(tmplObj, ...subst) { + let regexText = tmplObj.raw[0]; + let wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm; + let txt2 = regexText.replace(wsrgx, ""); + return new RegExp(txt2, "g"); +} +var templateObject_1, templateObject_2, templateObject_3; +export {AnsiUp}; +export default null; diff --git a/src/vendor/cdn.skypack.dev/ansi_up@v5.1.0.js b/src/vendor/cdn.skypack.dev/ansi_up@v5.1.0.js deleted file mode 100644 index 7e78c4207c1..00000000000 --- a/src/vendor/cdn.skypack.dev/ansi_up@v5.1.0.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Skypack CDN - ansi_up@5.1.0 - * - * Learn more: - * 📙 Package Documentation: https://www.skypack.dev/view/ansi_up - * 📘 Skypack Documentation: https://www.skypack.dev/docs - * - * Pinned URL: (Optimized for Production) - * ▶️ Normal: https://cdn.skypack.dev/pin/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/mode=imports/optimized/ansi_up.js - * ⏩ Minified: https://cdn.skypack.dev/pin/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/mode=imports,min/optimized/ansi_up.js - * - */ - -// Browser-Optimized Imports (Don't directly import the URLs below in your application!) -export * from '/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js'; -export {default} from '/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js'; diff --git a/src/vendor/cdn.skypack.dev/ansi_up@v6.0.2.js b/src/vendor/cdn.skypack.dev/ansi_up@v6.0.2.js new file mode 100644 index 00000000000..6e60aca7e86 --- /dev/null +++ b/src/vendor/cdn.skypack.dev/ansi_up@v6.0.2.js @@ -0,0 +1,16 @@ +/* + * Skypack CDN - ansi_up@6.0.2 + * + * Learn more: + * 📙 Package Documentation: https://www.skypack.dev/view/ansi_up + * 📘 Skypack Documentation: https://www.skypack.dev/docs + * + * Pinned URL: (Optimized for Production) + * ▶️ Normal: https://cdn.skypack.dev/pin/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/mode=imports/optimized/ansi_up.js + * ⏩ Minified: https://cdn.skypack.dev/pin/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/mode=imports,min/optimized/ansi_up.js + * + */ + +// Browser-Optimized Imports (Don't directly import the URLs below in your application!) +export * from '/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js'; +export {default} from '/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js'; diff --git a/src/vendor/import_map.json b/src/vendor/import_map.json index d90847ba26c..547bc3707bd 100644 --- a/src/vendor/import_map.json +++ b/src/vendor/import_map.json @@ -5,13 +5,13 @@ "https://dev.jspm.io/": "../resources/vendor/dev-jspm-io/", "https://deno.land/x/cache@0.2.12/": "../resources/vendor/deno-land/x/cache@0-2-12/", "https://deno.land/std@0.91.0/hash/": "../resources/vendor/deno-land/std@0-91-0/hash/", - "cliffy/command/mod.ts": "./deno.land/x/cliffy@v0.25.4/command/mod.ts", "log/mod.ts": "./deno.land/std@0.204.0/log/mod.ts", + "streams/write_all.ts": "./deno.land/std@0.204.0/streams/write_all.ts", + "cliffy/command/mod.ts": "./deno.land/x/cliffy@v0.25.4/command/mod.ts", "acorn/walk": "./cdn.skypack.dev/acorn-walk@8.2.0.js", "acorn/acorn": "./cdn.skypack.dev/acorn@8.4.0.js", "acorn-class-fields": "./cdn.skypack.dev/acorn-class-fields@1.0.0.js", "path/mod.ts": "./deno.land/std@0.204.0/path/mod.ts", - "streams/write_all.ts": "./deno.land/std@0.204.0/streams/write_all.ts", "semver/mod.ts": "./deno.land/x/semver@v1.4.0/mod.ts", "fs/mod.ts": "./deno.land/std@0.204.0/fs/mod.ts", "yaml/mod.ts": "./deno.land/std@0.204.0/yaml/mod.ts", @@ -28,7 +28,7 @@ "fs/expand_glob.ts": "./deno.land/std@0.204.0/fs/expand_glob.ts", "fs/exists.ts": "./deno.land/std@0.204.0/fs/exists.ts", "fs/_util.ts": "./deno.land/std@0.204.0/fs/_util.ts", - "ansi_up": "./cdn.skypack.dev/ansi_up@v5.1.0.js", + "ansi_up": "./cdn.skypack.dev/ansi_up@v6.0.2.js", "cliffy/ansi/mod.ts": "./deno.land/x/cliffy@v0.25.4/ansi/mod.ts", "streams/read_all.ts": "./deno.land/std@0.204.0/streams/read_all.ts", "fs/walk.ts": "./deno.land/std@0.204.0/fs/walk.ts", @@ -175,7 +175,7 @@ "/-/@observablehq/parser@v4.5.0-rWZiNfab8flhVomtfVvr/dist=es2019,mode=imports/optimized/@observablehq/parser.js": "./cdn.skypack.dev/-/@observablehq/parser@v4.5.0-rWZiNfab8flhVomtfVvr/dist=es2019,mode=imports/optimized/@observablehq/parser.js", "/-/acorn-class-fields@v1.0.0-VEggkLxq9gMrdwRuKkzZ/dist=es2019,mode=imports/optimized/acorn-class-fields.js": "./cdn.skypack.dev/-/acorn-class-fields@v1.0.0-VEggkLxq9gMrdwRuKkzZ/dist=es2019,mode=imports/optimized/acorn-class-fields.js", "/-/acorn-walk@v8.2.0-X811aiix0R2fkBGq305v/dist=es2019,mode=imports/optimized/acorn-walk.js": "./cdn.skypack.dev/-/acorn-walk@v8.2.0-X811aiix0R2fkBGq305v/dist=es2019,mode=imports/optimized/acorn-walk.js", - "/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js": "./cdn.skypack.dev/-/ansi_up@v5.1.0-ifIRWFhqTFJbTEKi2tZH/dist=es2019,mode=imports/optimized/ansi_up.js", + "/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js": "./cdn.skypack.dev/-/ansi_up@v6.0.2-g4dqbE85eEEqdCLbVzfu/dist=es2019,mode=imports/optimized/ansi_up.js", "/-/binary-search-bounds@v2.0.5-c8IgO4OqUhed8ANHQXKv/dist=es2019,mode=imports/optimized/binary-search-bounds.js": "./cdn.skypack.dev/-/binary-search-bounds@v2.0.5-c8IgO4OqUhed8ANHQXKv/dist=es2019,mode=imports/optimized/binary-search-bounds.js", "/-/blueimp-md5@v2.19.0-FsBtHB6ITwdC3L5Giq4Q/dist=es2019,mode=imports/optimized/blueimp-md5.js": "./cdn.skypack.dev/-/blueimp-md5@v2.19.0-FsBtHB6ITwdC3L5Giq4Q/dist=es2019,mode=imports/optimized/blueimp-md5.js", "/-/dayjs@v1.8.21-6syVEc6qGP8frQXKlmJD/dist=es2019,mode=imports/optimized/dayjs.js": "./cdn.skypack.dev/-/dayjs@v1.8.21-6syVEc6qGP8frQXKlmJD/dist=es2019,mode=imports/optimized/dayjs.js",