better-mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
1,257 lines (1,227 loc) • 5.48 MB
JavaScript
"use strict";
var __esbuild_esm_mermaid = (() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value2) => __defProp(target, "name", { value: value2, configurable: true });
var __esm = (fn, res) => function __init() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (target, all2) => {
for (var name in all2)
__defProp(target, name, { get: all2[name], enumerable: true });
};
var __copyProps = (to, from2, except, desc) => {
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
for (let key of __getOwnPropNames(from2))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
}
return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// ../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js
function dedent(templ) {
var values2 = [];
for (var _i = 1; _i < arguments.length; _i++) {
values2[_i - 1] = arguments[_i];
}
var strings = Array.from(typeof templ === "string" ? [templ] : templ);
strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
var indentLengths = strings.reduce(function(arr, str2) {
var matches = str2.match(/\n([\t ]+|(?!\s).)/g);
if (matches) {
return arr.concat(matches.map(function(match) {
var _a, _b;
return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
}));
}
return arr;
}, []);
if (indentLengths.length) {
var pattern_1 = new RegExp("\n[ ]{" + Math.min.apply(Math, indentLengths) + "}", "g");
strings = strings.map(function(str2) {
return str2.replace(pattern_1, "\n");
});
}
strings[0] = strings[0].replace(/^\r?\n/, "");
var string3 = strings[0];
values2.forEach(function(value2, i) {
var endentations = string3.match(/(?:^|\n)( *)$/);
var endentation = endentations ? endentations[1] : "";
var indentedValue = value2;
if (typeof value2 === "string" && value2.includes("\n")) {
indentedValue = String(value2).split("\n").map(function(str2, i2) {
return i2 === 0 ? str2 : "" + endentation + str2;
}).join("\n");
}
string3 += indentedValue + strings[i + 1];
});
return string3;
}
var init_esm = __esm({
"../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"() {
"use strict";
__name(dedent, "dedent");
}
});
// ../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js
var require_dayjs_min = __commonJS({
"../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js"(exports2, module2) {
"use strict";
!function(t, e) {
"object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
}(exports2, function() {
"use strict";
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c2 = "month", f2 = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y3 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t4) {
var e3 = ["th", "st", "nd", "rd"], n2 = t4 % 100;
return "[" + t4 + (e3[(n2 - 20) % 10] || e3[n2] || e3[0]) + "]";
} }, m = /* @__PURE__ */ __name(function(t4, e3, n2) {
var r2 = String(t4);
return !r2 || r2.length >= e3 ? t4 : "" + Array(e3 + 1 - r2.length).join(n2) + t4;
}, "m"), v = { s: m, z: function(t4) {
var e3 = -t4.utcOffset(), n2 = Math.abs(e3), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
return (e3 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
}, m: /* @__PURE__ */ __name(function t4(e3, n2) {
if (e3.date() < n2.date())
return -t4(n2, e3);
var r2 = 12 * (n2.year() - e3.year()) + (n2.month() - e3.month()), i2 = e3.clone().add(r2, c2), s2 = n2 - i2 < 0, u2 = e3.clone().add(r2 + (s2 ? -1 : 1), c2);
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
}, "t"), a: function(t4) {
return t4 < 0 ? Math.ceil(t4) || 0 : Math.floor(t4);
}, p: function(t4) {
return { M: c2, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f2 }[t4] || String(t4 || "").toLowerCase().replace(/s$/, "");
}, u: function(t4) {
return void 0 === t4;
} }, g = "en", D2 = {};
D2[g] = M;
var p = "$isDayjsObject", S2 = /* @__PURE__ */ __name(function(t4) {
return t4 instanceof _ || !(!t4 || !t4[p]);
}, "S"), w2 = /* @__PURE__ */ __name(function t4(e3, n2, r2) {
var i2;
if (!e3)
return g;
if ("string" == typeof e3) {
var s2 = e3.toLowerCase();
D2[s2] && (i2 = s2), n2 && (D2[s2] = n2, i2 = s2);
var u2 = e3.split("-");
if (!i2 && u2.length > 1)
return t4(u2[0]);
} else {
var a2 = e3.name;
D2[a2] = e3, i2 = a2;
}
return !r2 && i2 && (g = i2), i2 || !r2 && g;
}, "t"), O = /* @__PURE__ */ __name(function(t4, e3) {
if (S2(t4))
return t4.clone();
var n2 = "object" == typeof e3 ? e3 : {};
return n2.date = t4, n2.args = arguments, new _(n2);
}, "O"), b = v;
b.l = w2, b.i = S2, b.w = function(t4, e3) {
return O(t4, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
};
var _ = function() {
function M2(t4) {
this.$L = w2(t4.locale, null, true), this.parse(t4), this.$x = this.$x || t4.x || {}, this[p] = true;
}
__name(M2, "M");
var m2 = M2.prototype;
return m2.parse = function(t4) {
this.$d = function(t5) {
var e3 = t5.date, n2 = t5.utc;
if (null === e3)
return /* @__PURE__ */ new Date(NaN);
if (b.u(e3))
return /* @__PURE__ */ new Date();
if (e3 instanceof Date)
return new Date(e3);
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
var r2 = e3.match($);
if (r2) {
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
}
}
return new Date(e3);
}(t4), this.init();
}, m2.init = function() {
var t4 = this.$d;
this.$y = t4.getFullYear(), this.$M = t4.getMonth(), this.$D = t4.getDate(), this.$W = t4.getDay(), this.$H = t4.getHours(), this.$m = t4.getMinutes(), this.$s = t4.getSeconds(), this.$ms = t4.getMilliseconds();
}, m2.$utils = function() {
return b;
}, m2.isValid = function() {
return !(this.$d.toString() === l);
}, m2.isSame = function(t4, e3) {
var n2 = O(t4);
return this.startOf(e3) <= n2 && n2 <= this.endOf(e3);
}, m2.isAfter = function(t4, e3) {
return O(t4) < this.startOf(e3);
}, m2.isBefore = function(t4, e3) {
return this.endOf(e3) < O(t4);
}, m2.$g = function(t4, e3, n2) {
return b.u(t4) ? this[e3] : this.set(n2, t4);
}, m2.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, m2.valueOf = function() {
return this.$d.getTime();
}, m2.startOf = function(t4, e3) {
var n2 = this, r2 = !!b.u(e3) || e3, f3 = b.p(t4), l2 = /* @__PURE__ */ __name(function(t5, e4) {
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e4, t5) : new Date(n2.$y, e4, t5), n2);
return r2 ? i2 : i2.endOf(a);
}, "l"), $2 = /* @__PURE__ */ __name(function(t5, e4) {
return b.w(n2.toDate()[t5].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n2);
}, "$"), y4 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
switch (f3) {
case h:
return r2 ? l2(1, 0) : l2(31, 11);
case c2:
return r2 ? l2(1, M3) : l2(0, M3 + 1);
case o:
var g2 = this.$locale().weekStart || 0, D3 = (y4 < g2 ? y4 + 7 : y4) - g2;
return l2(r2 ? m3 - D3 : m3 + (6 - D3), M3);
case a:
case d:
return $2(v2 + "Hours", 0);
case u:
return $2(v2 + "Minutes", 1);
case s:
return $2(v2 + "Seconds", 2);
case i:
return $2(v2 + "Milliseconds", 3);
default:
return this.clone();
}
}, m2.endOf = function(t4) {
return this.startOf(t4, false);
}, m2.$set = function(t4, e3) {
var n2, o2 = b.p(t4), f3 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f3 + "Date", n2[d] = f3 + "Date", n2[c2] = f3 + "Month", n2[h] = f3 + "FullYear", n2[u] = f3 + "Hours", n2[s] = f3 + "Minutes", n2[i] = f3 + "Seconds", n2[r] = f3 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
if (o2 === c2 || o2 === h) {
var y4 = this.clone().set(d, 1);
y4.$d[l2]($2), y4.init(), this.$d = y4.set(d, Math.min(this.$D, y4.daysInMonth())).$d;
} else
l2 && this.$d[l2]($2);
return this.init(), this;
}, m2.set = function(t4, e3) {
return this.clone().$set(t4, e3);
}, m2.get = function(t4) {
return this[b.p(t4)]();
}, m2.add = function(r2, f3) {
var d2, l2 = this;
r2 = Number(r2);
var $2 = b.p(f3), y4 = /* @__PURE__ */ __name(function(t4) {
var e3 = O(l2);
return b.w(e3.date(e3.date() + Math.round(t4 * r2)), l2);
}, "y");
if ($2 === c2)
return this.set(c2, this.$M + r2);
if ($2 === h)
return this.set(h, this.$y + r2);
if ($2 === a)
return y4(1);
if ($2 === o)
return y4(7);
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
return b.w(m3, this);
}, m2.subtract = function(t4, e3) {
return this.add(-1 * t4, e3);
}, m2.format = function(t4) {
var e3 = this, n2 = this.$locale();
if (!this.isValid())
return n2.invalidDate || l;
var r2 = t4 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c3 = n2.months, f3 = n2.meridiem, h2 = /* @__PURE__ */ __name(function(t5, n3, i3, s3) {
return t5 && (t5[n3] || t5(e3, r2)) || i3[n3].slice(0, s3);
}, "h"), d2 = /* @__PURE__ */ __name(function(t5) {
return b.s(s2 % 12 || 12, t5, "0");
}, "d"), $2 = f3 || function(t5, e4, n3) {
var r3 = t5 < 12 ? "AM" : "PM";
return n3 ? r3.toLowerCase() : r3;
};
return r2.replace(y3, function(t5, r3) {
return r3 || function(t6) {
switch (t6) {
case "YY":
return String(e3.$y).slice(-2);
case "YYYY":
return b.s(e3.$y, 4, "0");
case "M":
return a2 + 1;
case "MM":
return b.s(a2 + 1, 2, "0");
case "MMM":
return h2(n2.monthsShort, a2, c3, 3);
case "MMMM":
return h2(c3, a2);
case "D":
return e3.$D;
case "DD":
return b.s(e3.$D, 2, "0");
case "d":
return String(e3.$W);
case "dd":
return h2(n2.weekdaysMin, e3.$W, o2, 2);
case "ddd":
return h2(n2.weekdaysShort, e3.$W, o2, 3);
case "dddd":
return o2[e3.$W];
case "H":
return String(s2);
case "HH":
return b.s(s2, 2, "0");
case "h":
return d2(1);
case "hh":
return d2(2);
case "a":
return $2(s2, u2, true);
case "A":
return $2(s2, u2, false);
case "m":
return String(u2);
case "mm":
return b.s(u2, 2, "0");
case "s":
return String(e3.$s);
case "ss":
return b.s(e3.$s, 2, "0");
case "SSS":
return b.s(e3.$ms, 3, "0");
case "Z":
return i2;
}
return null;
}(t5) || i2.replace(":", "");
});
}, m2.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, m2.diff = function(r2, d2, l2) {
var $2, y4 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D3 = /* @__PURE__ */ __name(function() {
return b.m(y4, m3);
}, "D");
switch (M3) {
case h:
$2 = D3() / 12;
break;
case c2:
$2 = D3();
break;
case f2:
$2 = D3() / 3;
break;
case o:
$2 = (g2 - v2) / 6048e5;
break;
case a:
$2 = (g2 - v2) / 864e5;
break;
case u:
$2 = g2 / n;
break;
case s:
$2 = g2 / e;
break;
case i:
$2 = g2 / t;
break;
default:
$2 = g2;
}
return l2 ? $2 : b.a($2);
}, m2.daysInMonth = function() {
return this.endOf(c2).$D;
}, m2.$locale = function() {
return D2[this.$L];
}, m2.locale = function(t4, e3) {
if (!t4)
return this.$L;
var n2 = this.clone(), r2 = w2(t4, e3, true);
return r2 && (n2.$L = r2), n2;
}, m2.clone = function() {
return b.w(this.$d, this);
}, m2.toDate = function() {
return new Date(this.valueOf());
}, m2.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, m2.toISOString = function() {
return this.$d.toISOString();
}, m2.toString = function() {
return this.$d.toUTCString();
}, M2;
}(), k = _.prototype;
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t4) {
k[t4[1]] = function(e3) {
return this.$g(e3, t4[0], t4[1]);
};
}), O.extend = function(t4, e3) {
return t4.$i || (t4(e3, _, O), t4.$i = true), O;
}, O.locale = w2, O.isDayjs = S2, O.unix = function(t4) {
return O(1e3 * t4);
}, O.en = D2[g], O.Ls = D2, O.p = {}, O;
});
}
});
// src/logger.ts
var import_dayjs, LEVELS, log, setLogLevel, format;
var init_logger = __esm({
"src/logger.ts"() {
"use strict";
import_dayjs = __toESM(require_dayjs_min(), 1);
LEVELS = {
trace: 0,
debug: 1,
info: 2,
warn: 3,
error: 4,
fatal: 5
};
log = {
trace: (..._args) => {
},
debug: (..._args) => {
},
info: (..._args) => {
},
warn: (..._args) => {
},
error: (..._args) => {
},
fatal: (..._args) => {
}
};
setLogLevel = /* @__PURE__ */ __name(function(level = "fatal") {
let numericLevel = LEVELS.fatal;
if (typeof level === "string") {
level = level.toLowerCase();
if (level in LEVELS) {
numericLevel = LEVELS[level];
}
} else if (typeof level === "number") {
numericLevel = level;
}
log.trace = () => {
};
log.debug = () => {
};
log.info = () => {
};
log.warn = () => {
};
log.error = () => {
};
log.fatal = () => {
};
if (numericLevel <= LEVELS.fatal) {
log.fatal = console.error ? console.error.bind(console, format("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", format("FATAL"));
}
if (numericLevel <= LEVELS.error) {
log.error = console.error ? console.error.bind(console, format("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", format("ERROR"));
}
if (numericLevel <= LEVELS.warn) {
log.warn = console.warn ? console.warn.bind(console, format("WARN"), "color: orange") : console.log.bind(console, `\x1B[33m`, format("WARN"));
}
if (numericLevel <= LEVELS.info) {
log.info = console.info ? console.info.bind(console, format("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", format("INFO"));
}
if (numericLevel <= LEVELS.debug) {
log.debug = console.debug ? console.debug.bind(console, format("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", format("DEBUG"));
}
if (numericLevel <= LEVELS.trace) {
log.trace = console.debug ? console.debug.bind(console, format("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", format("TRACE"));
}
}, "setLogLevel");
format = /* @__PURE__ */ __name((level) => {
const time3 = (0, import_dayjs.default)().format("ss.SSS");
return `%c${time3} : ${level} : `;
}, "format");
}
});
// ../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/constants.js
var require_constants = __commonJS({
"../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/constants.js"(exports2) {
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.BLANK_URL = exports2.relativeFirstCharacters = exports2.urlSchemeRegex = exports2.ctrlCharactersRegex = exports2.htmlCtrlEntityRegex = exports2.htmlEntitiesRegex = exports2.invalidProtocolRegex = void 0;
exports2.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im;
exports2.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g;
exports2.htmlCtrlEntityRegex = /&(newline|tab);/gi;
exports2.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
exports2.urlSchemeRegex = /^.+(:|:)/gim;
exports2.relativeFirstCharacters = [".", "/"];
exports2.BLANK_URL = "about:blank";
}
});
// ../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/index.js
var require_dist = __commonJS({
"../../node_modules/.pnpm/@braintree+sanitize-url@7.0.1/node_modules/@braintree/sanitize-url/dist/index.js"(exports2) {
"use strict";
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.sanitizeUrl = void 0;
var constants_1 = require_constants();
function isRelativeUrlWithoutProtocol(url) {
return constants_1.relativeFirstCharacters.indexOf(url[0]) > -1;
}
__name(isRelativeUrlWithoutProtocol, "isRelativeUrlWithoutProtocol");
function decodeHtmlCharacters(str2) {
var removedNullByte = str2.replace(constants_1.ctrlCharactersRegex, "");
return removedNullByte.replace(constants_1.htmlEntitiesRegex, function(match, dec) {
return String.fromCharCode(dec);
});
}
__name(decodeHtmlCharacters, "decodeHtmlCharacters");
function sanitizeUrl6(url) {
if (!url) {
return constants_1.BLANK_URL;
}
var charsToDecode;
var decodedUrl = url;
do {
decodedUrl = decodeHtmlCharacters(decodedUrl).replace(constants_1.htmlCtrlEntityRegex, "").replace(constants_1.ctrlCharactersRegex, "").trim();
charsToDecode = decodedUrl.match(constants_1.ctrlCharactersRegex) || decodedUrl.match(constants_1.htmlEntitiesRegex) || decodedUrl.match(constants_1.htmlCtrlEntityRegex);
} while (charsToDecode && charsToDecode.length > 0);
var sanitizedUrl = decodedUrl;
if (!sanitizedUrl) {
return constants_1.BLANK_URL;
}
if (isRelativeUrlWithoutProtocol(sanitizedUrl)) {
return sanitizedUrl;
}
var urlSchemeParseResults = sanitizedUrl.match(constants_1.urlSchemeRegex);
if (!urlSchemeParseResults) {
return sanitizedUrl;
}
var urlScheme = urlSchemeParseResults[0];
if (constants_1.invalidProtocolRegex.test(urlScheme)) {
return constants_1.BLANK_URL;
}
return sanitizedUrl;
}
__name(sanitizeUrl6, "sanitizeUrl");
exports2.sanitizeUrl = sanitizeUrl6;
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
function ascending(a, b) {
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
}
var init_ascending = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js"() {
"use strict";
__name(ascending, "ascending");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js
function descending(a, b) {
return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
}
var init_descending = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js"() {
"use strict";
__name(descending, "descending");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js
function bisector(f2) {
let compare1, compare2, delta;
if (f2.length !== 2) {
compare1 = ascending;
compare2 = /* @__PURE__ */ __name((d, x3) => ascending(f2(d), x3), "compare2");
delta = /* @__PURE__ */ __name((d, x3) => f2(d) - x3, "delta");
} else {
compare1 = f2 === ascending || f2 === descending ? f2 : zero;
compare2 = f2;
delta = f2;
}
function left3(a, x3, lo = 0, hi = a.length) {
if (lo < hi) {
if (compare1(x3, x3) !== 0)
return hi;
do {
const mid = lo + hi >>> 1;
if (compare2(a[mid], x3) < 0)
lo = mid + 1;
else
hi = mid;
} while (lo < hi);
}
return lo;
}
__name(left3, "left");
function right3(a, x3, lo = 0, hi = a.length) {
if (lo < hi) {
if (compare1(x3, x3) !== 0)
return hi;
do {
const mid = lo + hi >>> 1;
if (compare2(a[mid], x3) <= 0)
lo = mid + 1;
else
hi = mid;
} while (lo < hi);
}
return lo;
}
__name(right3, "right");
function center3(a, x3, lo = 0, hi = a.length) {
const i = left3(a, x3, lo, hi - 1);
return i > lo && delta(a[i - 1], x3) > -delta(a[i], x3) ? i - 1 : i;
}
__name(center3, "center");
return { left: left3, center: center3, right: right3 };
}
function zero() {
return 0;
}
var init_bisector = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js"() {
"use strict";
init_ascending();
init_descending();
__name(bisector, "bisector");
__name(zero, "zero");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js
function number(x3) {
return x3 === null ? NaN : +x3;
}
var init_number = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js"() {
"use strict";
__name(number, "number");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js
var ascendingBisect, bisectRight, bisectLeft, bisectCenter, bisect_default;
var init_bisect = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js"() {
"use strict";
init_ascending();
init_bisector();
init_number();
ascendingBisect = bisector(ascending);
bisectRight = ascendingBisect.right;
bisectLeft = ascendingBisect.left;
bisectCenter = bisector(number).center;
bisect_default = bisectRight;
}
});
// ../../node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js
function intern_get({ _intern, _key }, value2) {
const key = _key(value2);
return _intern.has(key) ? _intern.get(key) : value2;
}
function intern_set({ _intern, _key }, value2) {
const key = _key(value2);
if (_intern.has(key))
return _intern.get(key);
_intern.set(key, value2);
return value2;
}
function intern_delete({ _intern, _key }, value2) {
const key = _key(value2);
if (_intern.has(key)) {
value2 = _intern.get(key);
_intern.delete(key);
}
return value2;
}
function keyof(value2) {
return value2 !== null && typeof value2 === "object" ? value2.valueOf() : value2;
}
var InternMap;
var init_src = __esm({
"../../node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js"() {
"use strict";
InternMap = class extends Map {
static {
__name(this, "InternMap");
}
constructor(entries, key = keyof) {
super();
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key } });
if (entries != null)
for (const [key2, value2] of entries)
this.set(key2, value2);
}
get(key) {
return super.get(intern_get(this, key));
}
has(key) {
return super.has(intern_get(this, key));
}
set(key, value2) {
return super.set(intern_set(this, key), value2);
}
delete(key) {
return super.delete(intern_delete(this, key));
}
};
__name(intern_get, "intern_get");
__name(intern_set, "intern_set");
__name(intern_delete, "intern_delete");
__name(keyof, "keyof");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js
function tickSpec(start3, stop, count) {
const step = (stop - start3) / Math.max(0, count), power = Math.floor(Math.log10(step)), error = step / Math.pow(10, power), factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;
let i1, i2, inc;
if (power < 0) {
inc = Math.pow(10, -power) / factor;
i1 = Math.round(start3 * inc);
i2 = Math.round(stop * inc);
if (i1 / inc < start3)
++i1;
if (i2 / inc > stop)
--i2;
inc = -inc;
} else {
inc = Math.pow(10, power) * factor;
i1 = Math.round(start3 / inc);
i2 = Math.round(stop / inc);
if (i1 * inc < start3)
++i1;
if (i2 * inc > stop)
--i2;
}
if (i2 < i1 && 0.5 <= count && count < 2)
return tickSpec(start3, stop, count * 2);
return [i1, i2, inc];
}
function ticks(start3, stop, count) {
stop = +stop, start3 = +start3, count = +count;
if (!(count > 0))
return [];
if (start3 === stop)
return [start3];
const reverse = stop < start3, [i1, i2, inc] = reverse ? tickSpec(stop, start3, count) : tickSpec(start3, stop, count);
if (!(i2 >= i1))
return [];
const n = i2 - i1 + 1, ticks2 = new Array(n);
if (reverse) {
if (inc < 0)
for (let i = 0; i < n; ++i)
ticks2[i] = (i2 - i) / -inc;
else
for (let i = 0; i < n; ++i)
ticks2[i] = (i2 - i) * inc;
} else {
if (inc < 0)
for (let i = 0; i < n; ++i)
ticks2[i] = (i1 + i) / -inc;
else
for (let i = 0; i < n; ++i)
ticks2[i] = (i1 + i) * inc;
}
return ticks2;
}
function tickIncrement(start3, stop, count) {
stop = +stop, start3 = +start3, count = +count;
return tickSpec(start3, stop, count)[2];
}
function tickStep(start3, stop, count) {
stop = +stop, start3 = +start3, count = +count;
const reverse = stop < start3, inc = reverse ? tickIncrement(stop, start3, count) : tickIncrement(start3, stop, count);
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
}
var e10, e5, e2;
var init_ticks = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js"() {
"use strict";
e10 = Math.sqrt(50);
e5 = Math.sqrt(10);
e2 = Math.sqrt(2);
__name(tickSpec, "tickSpec");
__name(ticks, "ticks");
__name(tickIncrement, "tickIncrement");
__name(tickStep, "tickStep");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.js
function max(values2, valueof) {
let max6;
if (valueof === void 0) {
for (const value2 of values2) {
if (value2 != null && (max6 < value2 || max6 === void 0 && value2 >= value2)) {
max6 = value2;
}
}
} else {
let index2 = -1;
for (let value2 of values2) {
if ((value2 = valueof(value2, ++index2, values2)) != null && (max6 < value2 || max6 === void 0 && value2 >= value2)) {
max6 = value2;
}
}
}
return max6;
}
var init_max = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.js"() {
"use strict";
__name(max, "max");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.js
function min(values2, valueof) {
let min6;
if (valueof === void 0) {
for (const value2 of values2) {
if (value2 != null && (min6 > value2 || min6 === void 0 && value2 >= value2)) {
min6 = value2;
}
}
} else {
let index2 = -1;
for (let value2 of values2) {
if ((value2 = valueof(value2, ++index2, values2)) != null && (min6 > value2 || min6 === void 0 && value2 >= value2)) {
min6 = value2;
}
}
}
return min6;
}
var init_min = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.js"() {
"use strict";
__name(min, "min");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.js
function range(start3, stop, step) {
start3 = +start3, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start3, start3 = 0, 1) : n < 3 ? 1 : +step;
var i = -1, n = Math.max(0, Math.ceil((stop - start3) / step)) | 0, range3 = new Array(n);
while (++i < n) {
range3[i] = start3 + i * step;
}
return range3;
}
var init_range = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.js"() {
"use strict";
__name(range, "range");
}
});
// ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/index.js
var init_src2 = __esm({
"../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/index.js"() {
"use strict";
init_bisect();
init_bisector();
init_max();
init_min();
init_range();
init_ticks();
init_src();
}
});
// ../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.js
function identity_default(x3) {
return x3;
}
var init_identity = __esm({
"../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.js"() {
"use strict";
__name(identity_default, "default");
}
});
// ../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.js
function translateX(x3) {
return "translate(" + x3 + ",0)";
}
function translateY(y3) {
return "translate(0," + y3 + ")";
}
function number2(scale) {
return (d) => +scale(d);
}
function center(scale, offset) {
offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
if (scale.round())
offset = Math.round(offset);
return (d) => +scale(d) + offset;
}
function entering() {
return !this.__axis;
}
function axis(orient, scale) {
var tickArguments = [], tickValues = null, tickFormat2 = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5, k = orient === top || orient === left ? -1 : 1, x3 = orient === left || orient === right ? "x" : "y", transform2 = orient === top || orient === bottom ? translateX : translateY;
function axis2(context) {
var values2 = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain() : tickValues, format3 = tickFormat2 == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity_default : tickFormat2, spacing2 = Math.max(tickSizeInner, 0) + tickPadding, range3 = scale.range(), range0 = +range3[0] + offset, range1 = +range3[range3.length - 1] + offset, position4 = (scale.bandwidth ? center : number2)(scale.copy(), offset), selection2 = context.selection ? context.selection() : context, path4 = selection2.selectAll(".domain").data([null]), tick = selection2.selectAll(".tick").data(values2, scale).order(), tickExit = tick.exit(), tickEnter = tick.enter().append("g").attr("class", "tick"), line2 = tick.select("line"), text4 = tick.select("text");
path4 = path4.merge(path4.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
tick = tick.merge(tickEnter);
line2 = line2.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x3 + "2", k * tickSizeInner));
text4 = text4.merge(tickEnter.append("text").attr("fill", "currentColor").attr(x3, k * spacing2).attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
if (context !== selection2) {
path4 = path4.transition(context);
tick = tick.transition(context);
line2 = line2.transition(context);
text4 = text4.transition(context);
tickExit = tickExit.transition(context).attr("opacity", epsilon).attr("transform", function(d) {
return isFinite(d = position4(d)) ? transform2(d + offset) : this.getAttribute("transform");
});
tickEnter.attr("opacity", epsilon).attr("transform", function(d) {
var p = this.parentNode.__axis;
return transform2((p && isFinite(p = p(d)) ? p : position4(d)) + offset);
});
}
tickExit.remove();
path4.attr("d", orient === left || orient === right ? tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H" + offset + "V" + range1 + "H" + k * tickSizeOuter : "M" + offset + "," + range0 + "V" + range1 : tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V" + offset + "H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + "," + offset + "H" + range1);
tick.attr("opacity", 1).attr("transform", function(d) {
return transform2(position4(d) + offset);
});
line2.attr(x3 + "2", k * tickSizeInner);
text4.attr(x3, k * spacing2).text(format3);
selection2.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
selection2.each(function() {
this.__axis = position4;
});
}
__name(axis2, "axis");
axis2.scale = function(_) {
return arguments.length ? (scale = _, axis2) : scale;
};
axis2.ticks = function() {
return tickArguments = Array.from(arguments), axis2;
};
axis2.tickArguments = function(_) {
return arguments.length ? (tickArguments = _ == null ? [] : Array.from(_), axis2) : tickArguments.slice();
};
axis2.tickValues = function(_) {
return arguments.length ? (tickValues = _ == null ? null : Array.from(_), axis2) : tickValues && tickValues.slice();
};
axis2.tickFormat = function(_) {
return arguments.length ? (tickFormat2 = _, axis2) : tickFormat2;
};
axis2.tickSize = function(_) {
return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis2) : tickSizeInner;
};
axis2.tickSizeInner = function(_) {
return arguments.length ? (tickSizeInner = +_, axis2) : tickSizeInner;
};
axis2.tickSizeOuter = function(_) {
return arguments.length ? (tickSizeOuter = +_, axis2) : tickSizeOuter;
};
axis2.tickPadding = function(_) {
return arguments.length ? (tickPadding = +_, axis2) : tickPadding;
};
axis2.offset = function(_) {
return arguments.length ? (offset = +_, axis2) : offset;
};
return axis2;
}
function axisTop(scale) {
return axis(top, scale);
}
function axisBottom(scale) {
return axis(bottom, scale);
}
var top, right, bottom, left, epsilon;
var init_axis = __esm({
"../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.js"() {
"use strict";
init_identity();
top = 1;
right = 2;
bottom = 3;
left = 4;
epsilon = 1e-6;
__name(translateX, "translateX");
__name(translateY, "translateY");
__name(number2, "number");
__name(center, "center");
__name(entering, "entering");
__name(axis, "axis");
__name(axisTop, "axisTop");
__name(axisBottom, "axisBottom");
}
});
// ../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/index.js
var init_src3 = __esm({
"../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/index.js"() {
"use strict";
init_axis();
}
});
// ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js
function dispatch() {
for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
if (!(t = arguments[i] + "") || t in _ || /[\s.]/.test(t))
throw new Error("illegal type: " + t);
_[t] = [];
}
return new Dispatch(_);
}
function Dispatch(_) {
this._ = _;
}
function parseTypenames(typenames, types) {
return typenames.trim().split(/^|\s+/).map(function(t) {
var name = "", i = t.indexOf(".");
if (i >= 0)
name = t.slice(i + 1), t = t.slice(0, i);
if (t && !types.hasOwnProperty(t))
throw new Error("unknown type: " + t);
return { type: t, name };
});
}
function get(type3, name) {
for (var i = 0, n = type3.length, c2; i < n; ++i) {
if ((c2 = type3[i]).name === name) {
return c2.value;
}
}
}
function set(type3, name, callback) {
for (var i = 0, n = type3.length; i < n; ++i) {
if (type3[i].name === name) {
type3[i] = noop, type3 = type3.slice(0, i).concat(type3.slice(i + 1));
break;
}
}
if (callback != null)
type3.push({ name, value: callback });
return type3;
}
var noop, dispatch_default;
var init_dispatch = __esm({
"../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"() {
"use strict";
noop = { value: () => {
} };
__name(dispatch, "dispatch");
__name(Dispatch, "Dispatch");
__name(parseTypenames, "parseTypenames");
Dispatch.prototype = dispatch.prototype = {
constructor: Dispatch,
on: function(typename, callback) {
var _ = this._, T2 = parseTypenames(typename + "", _), t, i = -1, n = T2.length;
if (arguments.length < 2) {
while (++i < n)
if ((t = (typename = T2[i]).type) && (t = get(_[t], typename.name)))
return t;
return;
}
if (callback != null && typeof callback !== "function")
throw new Error("invalid callback: " + callback);
while (++i < n) {
if (t = (typename = T2[i]).type)
_[t] = set(_[t], typename.name, callback);
else if (callback == null)
for (t in _)
_[t] = set(_[t], typename.name, null);
}
return this;
},
copy: function() {
var copy3 = {}, _ = this._;
for (var t in _)
copy3[t] = _[t].slice();
return new Dispatch(copy3);
},
call: function(type3, that) {
if ((n = arguments.length - 2) > 0)
for (var args = new Array(n), i = 0, n, t; i < n; ++i)
args[i] = arguments[i + 2];
if (!this._.hasOwnProperty(type3))
throw new Error("unknown type: " + type3);
for (t = this._[type3], i = 0, n = t.length; i < n; ++i)
t[i].value.apply(that, args);
},
apply: function(type3, that, args) {
if (!this._.hasOwnProperty(type3))
throw new Error("unknown type: " + type3);
for (var t = this._[type3], i = 0, n = t.length; i < n; ++i)
t[i].value.apply(that, args);
}
};
__name(get, "get");
__name(set, "set");
dispatch_default = dispatch;
}
});
// ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/index.js
var init_src4 = __esm({
"../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/index.js"() {
"use strict";
init_dispatch();
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.js
var xhtml, namespaces_default;
var init_namespaces = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.js"() {
"use strict";
xhtml = "http://www.w3.org/1999/xhtml";
namespaces_default = {
svg: "http://www.w3.org/2000/svg",
xhtml,
xlink: "http://www.w3.org/1999/xlink",
xml: "http://www.w3.org/XML/1998/namespace",
xmlns: "http://www.w3.org/2000/xmlns/"
};
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
function namespace_default(name) {
var prefix = name += "", i = prefix.indexOf(":");
if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns")
name = name.slice(i + 1);
return namespaces_default.hasOwnProperty(prefix) ? { space: namespaces_default[prefix], local: name } : name;
}
var init_namespace = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js"() {
"use strict";
init_namespaces();
__name(namespace_default, "default");
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
function creatorInherit(name) {
return function() {
var document4 = this.ownerDocument, uri = this.namespaceURI;
return uri === xhtml && document4.documentElement.namespaceURI === xhtml ? document4.createElement(name) : document4.createElementNS(uri, name);
};
}
function creatorFixed(fullname) {
return function() {
return this.ownerDocument.createElementNS(fullname.space, fullname.local);
};
}
function creator_default(name) {
var fullname = namespace_default(name);
return (fullname.local ? creatorFixed : creatorInherit)(fullname);
}
var init_creator = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js"() {
"use strict";
init_namespace();
init_namespaces();
__name(creatorInherit, "creatorInherit");
__name(creatorFixed, "creatorFixed");
__name(creator_default, "default");
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
function none() {
}
function selector_default(selector) {
return selector == null ? none : function() {
return this.querySelector(selector);
};
}
var init_selector = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js"() {
"use strict";
__name(none, "none");
__name(selector_default, "default");
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js
function select_default(select) {
if (typeof select !== "function")
select = selector_default(select);
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {
for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node3, subnode, i = 0; i < n; ++i) {
if ((node3 = group[i]) && (subnode = select.call(node3, node3.__data__, i, group))) {
if ("__data__" in node3)
subnode.__data__ = node3.__data__;
subgroup[i] = subnode;
}
}
}
return new Selection(subgroups, this._parents);
}
var init_select = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js"() {
"use strict";
init_selection();
init_selector();
__name(select_default, "default");
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
function array(x3) {
return x3 == null ? [] : Array.isArray(x3) ? x3 : Array.from(x3);
}
var init_array = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js"() {
"use strict";
__name(array, "array");
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js
function empty() {
return [];
}
function selectorAll_default(selector) {
return selector == null ? empty : function() {
return this.querySelectorAll(selector);
};
}
var init_selectorAll = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js"() {
"use strict";
__name(empty, "empty");
__name(selectorAll_default, "default");
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js
function arrayAll(select) {
return function() {
return array(select.apply(this, arguments));
};
}
function selectAll_default(select) {
if (typeof select === "function")
select = arrayAll(select);
else
select = selectorAll_default(select);
for (var groups = this._groups, m = groups.length, subgroups = [], parents2 = [], j = 0; j < m; ++j) {
for (var group = groups[j], n = group.length, node3, i = 0; i < n; ++i) {
if (node3 = group[i]) {
subgroups.push(select.call(node3, node3.__data__, i, group));
parents2.push(node3);
}
}
}
return new Selection(subgroups, parents2);
}
var init_selectAll = __esm({
"../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js"() {
"use strict";
init_selection();
init_array();
init_selectorAll();
__name(arrayAll, "arrayAll");
__name(selectAll_default, "default");
}
});
// ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
function matcher_default(selector) {
return function() {
return this.matches(selector);
};
}
function childMatcher(selector) {
return function(node3) {
return node3.matches(selector);
};
}
var init_matcher = __esm({
"../../node_modules/.pnpm/d3-s