@industry-theme/markdown-panels 0.2.24 → 0.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -617,7 +617,7 @@ function position$2(node2) {
617
617
  return { start, end };
618
618
  }
619
619
  }
620
- const aria$2 = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"];
620
+ const aria$1 = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"];
621
621
  const defaultSchema = {
622
622
  ancestors: {
623
623
  tbody: ["table"],
@@ -629,7 +629,7 @@ const defaultSchema = {
629
629
  },
630
630
  attributes: {
631
631
  a: [
632
- ...aria$2,
632
+ ...aria$1,
633
633
  // Note: these 3 are used by GFM footnotes, they do work on all links.
634
634
  "dataFootnoteBackref",
635
635
  "dataFootnoteRef",
@@ -643,10 +643,10 @@ const defaultSchema = {
643
643
  code: [["className", /^language-./]],
644
644
  del: ["cite"],
645
645
  div: ["itemScope", "itemType"],
646
- dl: [...aria$2],
646
+ dl: [...aria$1],
647
647
  // Note: this is used by GFM footnotes.
648
648
  h2: [["className", "sr-only"]],
649
- img: [...aria$2, "longDesc", "src"],
649
+ img: [...aria$1, "longDesc", "src"],
650
650
  // Note: `input` is not normally allowed by GH, when manually writing
651
651
  // it in markdown, they add it from tasklists some other way.
652
652
  // We can’t do that, so we have to allow it.
@@ -662,16 +662,16 @@ const defaultSchema = {
662
662
  // Note: this class is not normally allowed by GH, when manually writing
663
663
  // `ol` as HTML in markdown, they adds it some other way.
664
664
  // We can’t do that, so we have to allow it.
665
- ol: [...aria$2, ["className", "contains-task-list"]],
665
+ ol: [...aria$1, ["className", "contains-task-list"]],
666
666
  q: ["cite"],
667
667
  section: ["dataFootnotes", ["className", "footnotes"]],
668
668
  source: ["srcSet"],
669
- summary: [...aria$2],
670
- table: [...aria$2],
669
+ summary: [...aria$1],
670
+ table: [...aria$1],
671
671
  // Note: this class is not normally allowed by GH, when manually writing
672
672
  // `ol` as HTML in markdown, they adds it some other way.
673
673
  // We can’t do that, so we have to allow it.
674
- ul: [...aria$2, ["className", "contains-task-list"]],
674
+ ul: [...aria$1, ["className", "contains-task-list"]],
675
675
  "*": [
676
676
  "abbr",
677
677
  "accept",
@@ -813,7 +813,7 @@ const defaultSchema = {
813
813
  "var"
814
814
  ]
815
815
  };
816
- const own$9 = {}.hasOwnProperty;
816
+ const own$8 = {}.hasOwnProperty;
817
817
  function sanitize(node2, options) {
818
818
  let result = { type: "root", children: [] };
819
819
  const state = {
@@ -889,7 +889,7 @@ function element$6(state, unsafe) {
889
889
  let safeElement = false;
890
890
  if (name2 && name2 !== "*" && (!state.schema.tagNames || state.schema.tagNames.includes(name2))) {
891
891
  safeElement = true;
892
- if (state.schema.ancestors && own$9.call(state.schema.ancestors, name2)) {
892
+ if (state.schema.ancestors && own$8.call(state.schema.ancestors, name2)) {
893
893
  const ancestors = state.schema.ancestors[name2];
894
894
  let index2 = -1;
895
895
  safeElement = false;
@@ -952,8 +952,8 @@ function properties(state, properties2) {
952
952
  const tagName = state.stack[state.stack.length - 1];
953
953
  const attributes = state.schema.attributes;
954
954
  const required = state.schema.required;
955
- const specific = attributes && own$9.call(attributes, tagName) ? attributes[tagName] : void 0;
956
- const defaults = attributes && own$9.call(attributes, "*") ? attributes["*"] : void 0;
955
+ const specific = attributes && own$8.call(attributes, tagName) ? attributes[tagName] : void 0;
956
+ const defaults = attributes && own$8.call(attributes, "*") ? attributes["*"] : void 0;
957
957
  const properties_ = (
958
958
  /** @type {Readonly<Record<string, Readonly<unknown>>>} */
959
959
  properties2 && typeof properties2 === "object" ? properties2 : {}
@@ -961,7 +961,7 @@ function properties(state, properties2) {
961
961
  const result = {};
962
962
  let key;
963
963
  for (key in properties_) {
964
- if (own$9.call(properties_, key)) {
964
+ if (own$8.call(properties_, key)) {
965
965
  const unsafe = properties_[key];
966
966
  let safe = propertyValue(
967
967
  state,
@@ -977,10 +977,10 @@ function properties(state, properties2) {
977
977
  }
978
978
  }
979
979
  }
980
- if (required && own$9.call(required, tagName)) {
980
+ if (required && own$8.call(required, tagName)) {
981
981
  const properties3 = required[tagName];
982
982
  for (key in properties3) {
983
- if (own$9.call(properties3, key) && !own$9.call(result, key)) {
983
+ if (own$8.call(properties3, key) && !own$8.call(result, key)) {
984
984
  result[key] = properties3[key];
985
985
  }
986
986
  }
@@ -1028,7 +1028,7 @@ function propertyValuePrimitive(state, definition2, key, value) {
1028
1028
  return state.schema.clobber && state.schema.clobberPrefix && state.schema.clobber.includes(key) ? state.schema.clobberPrefix + value : value;
1029
1029
  }
1030
1030
  function safeProtocol$1(state, key, value) {
1031
- const protocols = state.schema.protocols && own$9.call(state.schema.protocols, key) ? state.schema.protocols[key] : void 0;
1031
+ const protocols = state.schema.protocols && own$8.call(state.schema.protocols, key) ? state.schema.protocols[key] : void 0;
1032
1032
  if (!protocols || protocols.length === 0) {
1033
1033
  return true;
1034
1034
  }
@@ -1123,7 +1123,7 @@ function whitespace(thing) {
1123
1123
  function empty$1(value) {
1124
1124
  return value.replace(re, "") === "";
1125
1125
  }
1126
- let Schema$1 = class Schema {
1126
+ class Schema {
1127
1127
  /**
1128
1128
  * @param {SchemaType['property']} property
1129
1129
  * Property.
@@ -1141,23 +1141,23 @@ let Schema$1 = class Schema {
1141
1141
  this.space = space2;
1142
1142
  }
1143
1143
  }
1144
- };
1145
- Schema$1.prototype.normal = {};
1146
- Schema$1.prototype.property = {};
1147
- Schema$1.prototype.space = void 0;
1148
- function merge$1(definitions, space2) {
1144
+ }
1145
+ Schema.prototype.normal = {};
1146
+ Schema.prototype.property = {};
1147
+ Schema.prototype.space = void 0;
1148
+ function merge(definitions, space2) {
1149
1149
  const property = {};
1150
1150
  const normal = {};
1151
1151
  for (const definition2 of definitions) {
1152
1152
  Object.assign(property, definition2.property);
1153
1153
  Object.assign(normal, definition2.normal);
1154
1154
  }
1155
- return new Schema$1(property, normal, space2);
1155
+ return new Schema(property, normal, space2);
1156
1156
  }
1157
- function normalize$2(value) {
1157
+ function normalize$1(value) {
1158
1158
  return value.toLowerCase();
1159
1159
  }
1160
- let Info$1 = class Info {
1160
+ class Info {
1161
1161
  /**
1162
1162
  * @param {string} property
1163
1163
  * Property.
@@ -1170,45 +1170,45 @@ let Info$1 = class Info {
1170
1170
  this.attribute = attribute;
1171
1171
  this.property = property;
1172
1172
  }
1173
- };
1174
- Info$1.prototype.attribute = "";
1175
- Info$1.prototype.booleanish = false;
1176
- Info$1.prototype.boolean = false;
1177
- Info$1.prototype.commaOrSpaceSeparated = false;
1178
- Info$1.prototype.commaSeparated = false;
1179
- Info$1.prototype.defined = false;
1180
- Info$1.prototype.mustUseProperty = false;
1181
- Info$1.prototype.number = false;
1182
- Info$1.prototype.overloadedBoolean = false;
1183
- Info$1.prototype.property = "";
1184
- Info$1.prototype.spaceSeparated = false;
1185
- Info$1.prototype.space = void 0;
1186
- let powers$1 = 0;
1187
- const boolean$1 = increment$1();
1188
- const booleanish$1 = increment$1();
1189
- const overloadedBoolean$1 = increment$1();
1190
- const number$1 = increment$1();
1191
- const spaceSeparated$1 = increment$1();
1192
- const commaSeparated$1 = increment$1();
1193
- const commaOrSpaceSeparated$1 = increment$1();
1194
- function increment$1() {
1195
- return 2 ** ++powers$1;
1196
- }
1197
- const types$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1173
+ }
1174
+ Info.prototype.attribute = "";
1175
+ Info.prototype.booleanish = false;
1176
+ Info.prototype.boolean = false;
1177
+ Info.prototype.commaOrSpaceSeparated = false;
1178
+ Info.prototype.commaSeparated = false;
1179
+ Info.prototype.defined = false;
1180
+ Info.prototype.mustUseProperty = false;
1181
+ Info.prototype.number = false;
1182
+ Info.prototype.overloadedBoolean = false;
1183
+ Info.prototype.property = "";
1184
+ Info.prototype.spaceSeparated = false;
1185
+ Info.prototype.space = void 0;
1186
+ let powers = 0;
1187
+ const boolean = increment();
1188
+ const booleanish = increment();
1189
+ const overloadedBoolean = increment();
1190
+ const number = increment();
1191
+ const spaceSeparated = increment();
1192
+ const commaSeparated = increment();
1193
+ const commaOrSpaceSeparated = increment();
1194
+ function increment() {
1195
+ return 2 ** ++powers;
1196
+ }
1197
+ const types = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1198
1198
  __proto__: null,
1199
- boolean: boolean$1,
1200
- booleanish: booleanish$1,
1201
- commaOrSpaceSeparated: commaOrSpaceSeparated$1,
1202
- commaSeparated: commaSeparated$1,
1203
- number: number$1,
1204
- overloadedBoolean: overloadedBoolean$1,
1205
- spaceSeparated: spaceSeparated$1
1199
+ boolean,
1200
+ booleanish,
1201
+ commaOrSpaceSeparated,
1202
+ commaSeparated,
1203
+ number,
1204
+ overloadedBoolean,
1205
+ spaceSeparated
1206
1206
  }, Symbol.toStringTag, { value: "Module" }));
1207
- const checks$1 = (
1207
+ const checks = (
1208
1208
  /** @type {ReadonlyArray<keyof typeof types>} */
1209
- Object.keys(types$1)
1209
+ Object.keys(types)
1210
1210
  );
1211
- let DefinedInfo$1 = class DefinedInfo extends Info$1 {
1211
+ class DefinedInfo extends Info {
1212
1212
  /**
1213
1213
  * @constructor
1214
1214
  * @param {string} property
@@ -1225,26 +1225,26 @@ let DefinedInfo$1 = class DefinedInfo extends Info$1 {
1225
1225
  constructor(property, attribute, mask, space2) {
1226
1226
  let index2 = -1;
1227
1227
  super(property, attribute);
1228
- mark$1(this, "space", space2);
1228
+ mark(this, "space", space2);
1229
1229
  if (typeof mask === "number") {
1230
- while (++index2 < checks$1.length) {
1231
- const check = checks$1[index2];
1232
- mark$1(this, checks$1[index2], (mask & types$1[check]) === types$1[check]);
1230
+ while (++index2 < checks.length) {
1231
+ const check = checks[index2];
1232
+ mark(this, checks[index2], (mask & types[check]) === types[check]);
1233
1233
  }
1234
1234
  }
1235
1235
  }
1236
- };
1237
- DefinedInfo$1.prototype.defined = true;
1238
- function mark$1(values, key, value) {
1236
+ }
1237
+ DefinedInfo.prototype.defined = true;
1238
+ function mark(values, key, value) {
1239
1239
  if (value) {
1240
1240
  values[key] = value;
1241
1241
  }
1242
1242
  }
1243
- function create$1(definition2) {
1243
+ function create(definition2) {
1244
1244
  const properties2 = {};
1245
1245
  const normals = {};
1246
1246
  for (const [property, value] of Object.entries(definition2.properties)) {
1247
- const info = new DefinedInfo$1(
1247
+ const info = new DefinedInfo(
1248
1248
  property,
1249
1249
  definition2.transform(definition2.attributes || {}, property),
1250
1250
  value,
@@ -1254,60 +1254,60 @@ function create$1(definition2) {
1254
1254
  info.mustUseProperty = true;
1255
1255
  }
1256
1256
  properties2[property] = info;
1257
- normals[normalize$2(property)] = property;
1258
- normals[normalize$2(info.attribute)] = property;
1257
+ normals[normalize$1(property)] = property;
1258
+ normals[normalize$1(info.attribute)] = property;
1259
1259
  }
1260
- return new Schema$1(properties2, normals, definition2.space);
1260
+ return new Schema(properties2, normals, definition2.space);
1261
1261
  }
1262
- const aria$1 = create$1({
1262
+ const aria = create({
1263
1263
  properties: {
1264
1264
  ariaActiveDescendant: null,
1265
- ariaAtomic: booleanish$1,
1265
+ ariaAtomic: booleanish,
1266
1266
  ariaAutoComplete: null,
1267
- ariaBusy: booleanish$1,
1268
- ariaChecked: booleanish$1,
1269
- ariaColCount: number$1,
1270
- ariaColIndex: number$1,
1271
- ariaColSpan: number$1,
1272
- ariaControls: spaceSeparated$1,
1267
+ ariaBusy: booleanish,
1268
+ ariaChecked: booleanish,
1269
+ ariaColCount: number,
1270
+ ariaColIndex: number,
1271
+ ariaColSpan: number,
1272
+ ariaControls: spaceSeparated,
1273
1273
  ariaCurrent: null,
1274
- ariaDescribedBy: spaceSeparated$1,
1274
+ ariaDescribedBy: spaceSeparated,
1275
1275
  ariaDetails: null,
1276
- ariaDisabled: booleanish$1,
1277
- ariaDropEffect: spaceSeparated$1,
1276
+ ariaDisabled: booleanish,
1277
+ ariaDropEffect: spaceSeparated,
1278
1278
  ariaErrorMessage: null,
1279
- ariaExpanded: booleanish$1,
1280
- ariaFlowTo: spaceSeparated$1,
1281
- ariaGrabbed: booleanish$1,
1279
+ ariaExpanded: booleanish,
1280
+ ariaFlowTo: spaceSeparated,
1281
+ ariaGrabbed: booleanish,
1282
1282
  ariaHasPopup: null,
1283
- ariaHidden: booleanish$1,
1283
+ ariaHidden: booleanish,
1284
1284
  ariaInvalid: null,
1285
1285
  ariaKeyShortcuts: null,
1286
1286
  ariaLabel: null,
1287
- ariaLabelledBy: spaceSeparated$1,
1288
- ariaLevel: number$1,
1287
+ ariaLabelledBy: spaceSeparated,
1288
+ ariaLevel: number,
1289
1289
  ariaLive: null,
1290
- ariaModal: booleanish$1,
1291
- ariaMultiLine: booleanish$1,
1292
- ariaMultiSelectable: booleanish$1,
1290
+ ariaModal: booleanish,
1291
+ ariaMultiLine: booleanish,
1292
+ ariaMultiSelectable: booleanish,
1293
1293
  ariaOrientation: null,
1294
- ariaOwns: spaceSeparated$1,
1294
+ ariaOwns: spaceSeparated,
1295
1295
  ariaPlaceholder: null,
1296
- ariaPosInSet: number$1,
1297
- ariaPressed: booleanish$1,
1298
- ariaReadOnly: booleanish$1,
1296
+ ariaPosInSet: number,
1297
+ ariaPressed: booleanish,
1298
+ ariaReadOnly: booleanish,
1299
1299
  ariaRelevant: null,
1300
- ariaRequired: booleanish$1,
1301
- ariaRoleDescription: spaceSeparated$1,
1302
- ariaRowCount: number$1,
1303
- ariaRowIndex: number$1,
1304
- ariaRowSpan: number$1,
1305
- ariaSelected: booleanish$1,
1306
- ariaSetSize: number$1,
1300
+ ariaRequired: booleanish,
1301
+ ariaRoleDescription: spaceSeparated,
1302
+ ariaRowCount: number,
1303
+ ariaRowIndex: number,
1304
+ ariaRowSpan: number,
1305
+ ariaSelected: booleanish,
1306
+ ariaSetSize: number,
1307
1307
  ariaSort: null,
1308
- ariaValueMax: number$1,
1309
- ariaValueMin: number$1,
1310
- ariaValueNow: number$1,
1308
+ ariaValueMax: number,
1309
+ ariaValueMin: number,
1310
+ ariaValueNow: number,
1311
1311
  ariaValueText: null,
1312
1312
  role: null
1313
1313
  },
@@ -1315,13 +1315,13 @@ const aria$1 = create$1({
1315
1315
  return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
1316
1316
  }
1317
1317
  });
1318
- function caseSensitiveTransform$1(attributes, attribute) {
1318
+ function caseSensitiveTransform(attributes, attribute) {
1319
1319
  return attribute in attributes ? attributes[attribute] : attribute;
1320
1320
  }
1321
- function caseInsensitiveTransform$1(attributes, property) {
1322
- return caseSensitiveTransform$1(attributes, property.toLowerCase());
1321
+ function caseInsensitiveTransform(attributes, property) {
1322
+ return caseSensitiveTransform(attributes, property.toLowerCase());
1323
1323
  }
1324
- const html$5 = create$1({
1324
+ const html$3 = create({
1325
1325
  attributes: {
1326
1326
  acceptcharset: "accept-charset",
1327
1327
  classname: "class",
@@ -1332,45 +1332,45 @@ const html$5 = create$1({
1332
1332
  properties: {
1333
1333
  // Standard Properties.
1334
1334
  abbr: null,
1335
- accept: commaSeparated$1,
1336
- acceptCharset: spaceSeparated$1,
1337
- accessKey: spaceSeparated$1,
1335
+ accept: commaSeparated,
1336
+ acceptCharset: spaceSeparated,
1337
+ accessKey: spaceSeparated,
1338
1338
  action: null,
1339
1339
  allow: null,
1340
- allowFullScreen: boolean$1,
1341
- allowPaymentRequest: boolean$1,
1342
- allowUserMedia: boolean$1,
1340
+ allowFullScreen: boolean,
1341
+ allowPaymentRequest: boolean,
1342
+ allowUserMedia: boolean,
1343
1343
  alt: null,
1344
1344
  as: null,
1345
- async: boolean$1,
1345
+ async: boolean,
1346
1346
  autoCapitalize: null,
1347
- autoComplete: spaceSeparated$1,
1348
- autoFocus: boolean$1,
1349
- autoPlay: boolean$1,
1350
- blocking: spaceSeparated$1,
1347
+ autoComplete: spaceSeparated,
1348
+ autoFocus: boolean,
1349
+ autoPlay: boolean,
1350
+ blocking: spaceSeparated,
1351
1351
  capture: null,
1352
1352
  charSet: null,
1353
- checked: boolean$1,
1353
+ checked: boolean,
1354
1354
  cite: null,
1355
- className: spaceSeparated$1,
1356
- cols: number$1,
1355
+ className: spaceSeparated,
1356
+ cols: number,
1357
1357
  colSpan: null,
1358
1358
  content: null,
1359
- contentEditable: booleanish$1,
1360
- controls: boolean$1,
1361
- controlsList: spaceSeparated$1,
1362
- coords: number$1 | commaSeparated$1,
1359
+ contentEditable: booleanish,
1360
+ controls: boolean,
1361
+ controlsList: spaceSeparated,
1362
+ coords: number | commaSeparated,
1363
1363
  crossOrigin: null,
1364
1364
  data: null,
1365
1365
  dateTime: null,
1366
1366
  decoding: null,
1367
- default: boolean$1,
1368
- defer: boolean$1,
1367
+ default: boolean,
1368
+ defer: boolean,
1369
1369
  dir: null,
1370
1370
  dirName: null,
1371
- disabled: boolean$1,
1372
- download: overloadedBoolean$1,
1373
- draggable: booleanish$1,
1371
+ disabled: boolean,
1372
+ download: overloadedBoolean,
1373
+ draggable: booleanish,
1374
1374
  encType: null,
1375
1375
  enterKeyHint: null,
1376
1376
  fetchPriority: null,
@@ -1378,50 +1378,50 @@ const html$5 = create$1({
1378
1378
  formAction: null,
1379
1379
  formEncType: null,
1380
1380
  formMethod: null,
1381
- formNoValidate: boolean$1,
1381
+ formNoValidate: boolean,
1382
1382
  formTarget: null,
1383
- headers: spaceSeparated$1,
1384
- height: number$1,
1385
- hidden: overloadedBoolean$1,
1386
- high: number$1,
1383
+ headers: spaceSeparated,
1384
+ height: number,
1385
+ hidden: overloadedBoolean,
1386
+ high: number,
1387
1387
  href: null,
1388
1388
  hrefLang: null,
1389
- htmlFor: spaceSeparated$1,
1390
- httpEquiv: spaceSeparated$1,
1389
+ htmlFor: spaceSeparated,
1390
+ httpEquiv: spaceSeparated,
1391
1391
  id: null,
1392
1392
  imageSizes: null,
1393
1393
  imageSrcSet: null,
1394
- inert: boolean$1,
1394
+ inert: boolean,
1395
1395
  inputMode: null,
1396
1396
  integrity: null,
1397
1397
  is: null,
1398
- isMap: boolean$1,
1398
+ isMap: boolean,
1399
1399
  itemId: null,
1400
- itemProp: spaceSeparated$1,
1401
- itemRef: spaceSeparated$1,
1402
- itemScope: boolean$1,
1403
- itemType: spaceSeparated$1,
1400
+ itemProp: spaceSeparated,
1401
+ itemRef: spaceSeparated,
1402
+ itemScope: boolean,
1403
+ itemType: spaceSeparated,
1404
1404
  kind: null,
1405
1405
  label: null,
1406
1406
  lang: null,
1407
1407
  language: null,
1408
1408
  list: null,
1409
1409
  loading: null,
1410
- loop: boolean$1,
1411
- low: number$1,
1410
+ loop: boolean,
1411
+ low: number,
1412
1412
  manifest: null,
1413
1413
  max: null,
1414
- maxLength: number$1,
1414
+ maxLength: number,
1415
1415
  media: null,
1416
1416
  method: null,
1417
1417
  min: null,
1418
- minLength: number$1,
1419
- multiple: boolean$1,
1420
- muted: boolean$1,
1418
+ minLength: number,
1419
+ multiple: boolean,
1420
+ muted: boolean,
1421
1421
  name: null,
1422
1422
  nonce: null,
1423
- noModule: boolean$1,
1424
- noValidate: boolean$1,
1423
+ noModule: boolean,
1424
+ noValidate: boolean,
1425
1425
  onAbort: null,
1426
1426
  onAfterPrint: null,
1427
1427
  onAuxClick: null,
@@ -1510,54 +1510,54 @@ const html$5 = create$1({
1510
1510
  onVolumeChange: null,
1511
1511
  onWaiting: null,
1512
1512
  onWheel: null,
1513
- open: boolean$1,
1514
- optimum: number$1,
1513
+ open: boolean,
1514
+ optimum: number,
1515
1515
  pattern: null,
1516
- ping: spaceSeparated$1,
1516
+ ping: spaceSeparated,
1517
1517
  placeholder: null,
1518
- playsInline: boolean$1,
1518
+ playsInline: boolean,
1519
1519
  popover: null,
1520
1520
  popoverTarget: null,
1521
1521
  popoverTargetAction: null,
1522
1522
  poster: null,
1523
1523
  preload: null,
1524
- readOnly: boolean$1,
1524
+ readOnly: boolean,
1525
1525
  referrerPolicy: null,
1526
- rel: spaceSeparated$1,
1527
- required: boolean$1,
1528
- reversed: boolean$1,
1529
- rows: number$1,
1530
- rowSpan: number$1,
1531
- sandbox: spaceSeparated$1,
1526
+ rel: spaceSeparated,
1527
+ required: boolean,
1528
+ reversed: boolean,
1529
+ rows: number,
1530
+ rowSpan: number,
1531
+ sandbox: spaceSeparated,
1532
1532
  scope: null,
1533
- scoped: boolean$1,
1534
- seamless: boolean$1,
1535
- selected: boolean$1,
1536
- shadowRootClonable: boolean$1,
1537
- shadowRootDelegatesFocus: boolean$1,
1533
+ scoped: boolean,
1534
+ seamless: boolean,
1535
+ selected: boolean,
1536
+ shadowRootClonable: boolean,
1537
+ shadowRootDelegatesFocus: boolean,
1538
1538
  shadowRootMode: null,
1539
1539
  shape: null,
1540
- size: number$1,
1540
+ size: number,
1541
1541
  sizes: null,
1542
1542
  slot: null,
1543
- span: number$1,
1544
- spellCheck: booleanish$1,
1543
+ span: number,
1544
+ spellCheck: booleanish,
1545
1545
  src: null,
1546
1546
  srcDoc: null,
1547
1547
  srcLang: null,
1548
1548
  srcSet: null,
1549
- start: number$1,
1549
+ start: number,
1550
1550
  step: null,
1551
1551
  style: null,
1552
- tabIndex: number$1,
1552
+ tabIndex: number,
1553
1553
  target: null,
1554
1554
  title: null,
1555
1555
  translate: null,
1556
1556
  type: null,
1557
- typeMustMatch: boolean$1,
1557
+ typeMustMatch: boolean,
1558
1558
  useMap: null,
1559
- value: booleanish$1,
1560
- width: number$1,
1559
+ value: booleanish,
1560
+ width: number,
1561
1561
  wrap: null,
1562
1562
  writingSuggestions: null,
1563
1563
  // Legacy.
@@ -1566,7 +1566,7 @@ const html$5 = create$1({
1566
1566
  // Several. Use CSS `text-align` instead,
1567
1567
  aLink: null,
1568
1568
  // `<body>`. Use CSS `a:active {color}` instead
1569
- archive: spaceSeparated$1,
1569
+ archive: spaceSeparated,
1570
1570
  // `<object>`. List of URIs to archives
1571
1571
  axis: null,
1572
1572
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -1574,11 +1574,11 @@ const html$5 = create$1({
1574
1574
  // `<body>`. Use CSS `background-image` instead
1575
1575
  bgColor: null,
1576
1576
  // `<body>` and table elements. Use CSS `background-color` instead
1577
- border: number$1,
1577
+ border: number,
1578
1578
  // `<table>`. Use CSS `border-width` instead,
1579
1579
  borderColor: null,
1580
1580
  // `<table>`. Use CSS `border-color` instead,
1581
- bottomMargin: number$1,
1581
+ bottomMargin: number,
1582
1582
  // `<body>`
1583
1583
  cellPadding: null,
1584
1584
  // `<table>`
@@ -1600,9 +1600,9 @@ const html$5 = create$1({
1600
1600
  // `<object>`
1601
1601
  color: null,
1602
1602
  // `<font>` and `<hr>`. Use CSS instead
1603
- compact: boolean$1,
1603
+ compact: boolean,
1604
1604
  // Lists. Use CSS to reduce space between items instead
1605
- declare: boolean$1,
1605
+ declare: boolean,
1606
1606
  // `<object>`
1607
1607
  event: null,
1608
1608
  // `<script>`
@@ -1612,9 +1612,9 @@ const html$5 = create$1({
1612
1612
  // `<table>`
1613
1613
  frameBorder: null,
1614
1614
  // `<iframe>`. Use CSS `border` instead
1615
- hSpace: number$1,
1615
+ hSpace: number,
1616
1616
  // `<img>` and `<object>`
1617
- leftMargin: number$1,
1617
+ leftMargin: number,
1618
1618
  // `<body>`
1619
1619
  link: null,
1620
1620
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -1622,17 +1622,17 @@ const html$5 = create$1({
1622
1622
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
1623
1623
  lowSrc: null,
1624
1624
  // `<img>`. Use a `<picture>`
1625
- marginHeight: number$1,
1625
+ marginHeight: number,
1626
1626
  // `<body>`
1627
- marginWidth: number$1,
1627
+ marginWidth: number,
1628
1628
  // `<body>`
1629
- noResize: boolean$1,
1629
+ noResize: boolean,
1630
1630
  // `<frame>`
1631
- noHref: boolean$1,
1631
+ noHref: boolean,
1632
1632
  // `<area>`. Use no href instead of an explicit `nohref`
1633
- noShade: boolean$1,
1633
+ noShade: boolean,
1634
1634
  // `<hr>`. Use background-color and height instead of borders
1635
- noWrap: boolean$1,
1635
+ noWrap: boolean,
1636
1636
  // `<td>` and `<th>`
1637
1637
  object: null,
1638
1638
  // `<applet>`
@@ -1642,13 +1642,13 @@ const html$5 = create$1({
1642
1642
  // `<isindex>`
1643
1643
  rev: null,
1644
1644
  // `<link>`
1645
- rightMargin: number$1,
1645
+ rightMargin: number,
1646
1646
  // `<body>`
1647
1647
  rules: null,
1648
1648
  // `<table>`
1649
1649
  scheme: null,
1650
1650
  // `<meta>`
1651
- scrolling: booleanish$1,
1651
+ scrolling: booleanish,
1652
1652
  // `<frame>`. Use overflow in the child context
1653
1653
  standby: null,
1654
1654
  // `<object>`
@@ -1656,7 +1656,7 @@ const html$5 = create$1({
1656
1656
  // `<table>`
1657
1657
  text: null,
1658
1658
  // `<body>`. Use CSS `color` instead
1659
- topMargin: number$1,
1659
+ topMargin: number,
1660
1660
  // `<body>`
1661
1661
  valueType: null,
1662
1662
  // `<param>`
@@ -1666,24 +1666,24 @@ const html$5 = create$1({
1666
1666
  // Several. Use CSS `vertical-align` instead
1667
1667
  vLink: null,
1668
1668
  // `<body>`. Use CSS `a:visited {color}` instead
1669
- vSpace: number$1,
1669
+ vSpace: number,
1670
1670
  // `<img>` and `<object>`
1671
1671
  // Non-standard Properties.
1672
1672
  allowTransparency: null,
1673
1673
  autoCorrect: null,
1674
1674
  autoSave: null,
1675
- disablePictureInPicture: boolean$1,
1676
- disableRemotePlayback: boolean$1,
1675
+ disablePictureInPicture: boolean,
1676
+ disableRemotePlayback: boolean,
1677
1677
  prefix: null,
1678
1678
  property: null,
1679
- results: number$1,
1679
+ results: number,
1680
1680
  security: null,
1681
1681
  unselectable: null
1682
1682
  },
1683
1683
  space: "html",
1684
- transform: caseInsensitiveTransform$1
1684
+ transform: caseInsensitiveTransform
1685
1685
  });
1686
- const svg$3 = create$1({
1686
+ const svg$1 = create({
1687
1687
  attributes: {
1688
1688
  accentHeight: "accent-height",
1689
1689
  alignmentBaseline: "alignment-baseline",
@@ -1860,29 +1860,29 @@ const svg$3 = create$1({
1860
1860
  timelineBegin: "timelinebegin"
1861
1861
  },
1862
1862
  properties: {
1863
- about: commaOrSpaceSeparated$1,
1864
- accentHeight: number$1,
1863
+ about: commaOrSpaceSeparated,
1864
+ accentHeight: number,
1865
1865
  accumulate: null,
1866
1866
  additive: null,
1867
1867
  alignmentBaseline: null,
1868
- alphabetic: number$1,
1869
- amplitude: number$1,
1868
+ alphabetic: number,
1869
+ amplitude: number,
1870
1870
  arabicForm: null,
1871
- ascent: number$1,
1871
+ ascent: number,
1872
1872
  attributeName: null,
1873
1873
  attributeType: null,
1874
- azimuth: number$1,
1874
+ azimuth: number,
1875
1875
  bandwidth: null,
1876
1876
  baselineShift: null,
1877
1877
  baseFrequency: null,
1878
1878
  baseProfile: null,
1879
1879
  bbox: null,
1880
1880
  begin: null,
1881
- bias: number$1,
1881
+ bias: number,
1882
1882
  by: null,
1883
1883
  calcMode: null,
1884
- capHeight: number$1,
1885
- className: spaceSeparated$1,
1884
+ capHeight: number,
1885
+ className: spaceSeparated,
1886
1886
  clip: null,
1887
1887
  clipPath: null,
1888
1888
  clipPathUnits: null,
@@ -1902,26 +1902,26 @@ const svg$3 = create$1({
1902
1902
  d: null,
1903
1903
  dataType: null,
1904
1904
  defaultAction: null,
1905
- descent: number$1,
1906
- diffuseConstant: number$1,
1905
+ descent: number,
1906
+ diffuseConstant: number,
1907
1907
  direction: null,
1908
1908
  display: null,
1909
1909
  dur: null,
1910
- divisor: number$1,
1910
+ divisor: number,
1911
1911
  dominantBaseline: null,
1912
- download: boolean$1,
1912
+ download: boolean,
1913
1913
  dx: null,
1914
1914
  dy: null,
1915
1915
  edgeMode: null,
1916
1916
  editable: null,
1917
- elevation: number$1,
1917
+ elevation: number,
1918
1918
  enableBackground: null,
1919
1919
  end: null,
1920
1920
  event: null,
1921
- exponent: number$1,
1921
+ exponent: number,
1922
1922
  externalResourcesRequired: null,
1923
1923
  fill: null,
1924
- fillOpacity: number$1,
1924
+ fillOpacity: number,
1925
1925
  fillRule: null,
1926
1926
  filter: null,
1927
1927
  filterRes: null,
@@ -1942,37 +1942,37 @@ const svg$3 = create$1({
1942
1942
  from: null,
1943
1943
  fx: null,
1944
1944
  fy: null,
1945
- g1: commaSeparated$1,
1946
- g2: commaSeparated$1,
1947
- glyphName: commaSeparated$1,
1945
+ g1: commaSeparated,
1946
+ g2: commaSeparated,
1947
+ glyphName: commaSeparated,
1948
1948
  glyphOrientationHorizontal: null,
1949
1949
  glyphOrientationVertical: null,
1950
1950
  glyphRef: null,
1951
1951
  gradientTransform: null,
1952
1952
  gradientUnits: null,
1953
1953
  handler: null,
1954
- hanging: number$1,
1954
+ hanging: number,
1955
1955
  hatchContentUnits: null,
1956
1956
  hatchUnits: null,
1957
1957
  height: null,
1958
1958
  href: null,
1959
1959
  hrefLang: null,
1960
- horizAdvX: number$1,
1961
- horizOriginX: number$1,
1962
- horizOriginY: number$1,
1960
+ horizAdvX: number,
1961
+ horizOriginX: number,
1962
+ horizOriginY: number,
1963
1963
  id: null,
1964
- ideographic: number$1,
1964
+ ideographic: number,
1965
1965
  imageRendering: null,
1966
1966
  initialVisibility: null,
1967
1967
  in: null,
1968
1968
  in2: null,
1969
- intercept: number$1,
1970
- k: number$1,
1971
- k1: number$1,
1972
- k2: number$1,
1973
- k3: number$1,
1974
- k4: number$1,
1975
- kernelMatrix: commaOrSpaceSeparated$1,
1969
+ intercept: number,
1970
+ k: number,
1971
+ k1: number,
1972
+ k2: number,
1973
+ k3: number,
1974
+ k4: number,
1975
+ kernelMatrix: commaOrSpaceSeparated,
1976
1976
  kernelUnitLength: null,
1977
1977
  keyPoints: null,
1978
1978
  // SEMI_COLON_SEPARATED
@@ -1985,7 +1985,7 @@ const svg$3 = create$1({
1985
1985
  lengthAdjust: null,
1986
1986
  letterSpacing: null,
1987
1987
  lightingColor: null,
1988
- limitingConeAngle: number$1,
1988
+ limitingConeAngle: number,
1989
1989
  local: null,
1990
1990
  markerEnd: null,
1991
1991
  markerMid: null,
@@ -2001,7 +2001,7 @@ const svg$3 = create$1({
2001
2001
  media: null,
2002
2002
  mediaCharacterEncoding: null,
2003
2003
  mediaContentEncodings: null,
2004
- mediaSize: number$1,
2004
+ mediaSize: number,
2005
2005
  mediaTime: null,
2006
2006
  method: null,
2007
2007
  min: null,
@@ -2107,43 +2107,43 @@ const svg$3 = create$1({
2107
2107
  origin: null,
2108
2108
  overflow: null,
2109
2109
  overlay: null,
2110
- overlinePosition: number$1,
2111
- overlineThickness: number$1,
2110
+ overlinePosition: number,
2111
+ overlineThickness: number,
2112
2112
  paintOrder: null,
2113
2113
  panose1: null,
2114
2114
  path: null,
2115
- pathLength: number$1,
2115
+ pathLength: number,
2116
2116
  patternContentUnits: null,
2117
2117
  patternTransform: null,
2118
2118
  patternUnits: null,
2119
2119
  phase: null,
2120
- ping: spaceSeparated$1,
2120
+ ping: spaceSeparated,
2121
2121
  pitch: null,
2122
2122
  playbackOrder: null,
2123
2123
  pointerEvents: null,
2124
2124
  points: null,
2125
- pointsAtX: number$1,
2126
- pointsAtY: number$1,
2127
- pointsAtZ: number$1,
2125
+ pointsAtX: number,
2126
+ pointsAtY: number,
2127
+ pointsAtZ: number,
2128
2128
  preserveAlpha: null,
2129
2129
  preserveAspectRatio: null,
2130
2130
  primitiveUnits: null,
2131
2131
  propagate: null,
2132
- property: commaOrSpaceSeparated$1,
2132
+ property: commaOrSpaceSeparated,
2133
2133
  r: null,
2134
2134
  radius: null,
2135
2135
  referrerPolicy: null,
2136
2136
  refX: null,
2137
2137
  refY: null,
2138
- rel: commaOrSpaceSeparated$1,
2139
- rev: commaOrSpaceSeparated$1,
2138
+ rel: commaOrSpaceSeparated,
2139
+ rev: commaOrSpaceSeparated,
2140
2140
  renderingIntent: null,
2141
2141
  repeatCount: null,
2142
2142
  repeatDur: null,
2143
- requiredExtensions: commaOrSpaceSeparated$1,
2144
- requiredFeatures: commaOrSpaceSeparated$1,
2145
- requiredFonts: commaOrSpaceSeparated$1,
2146
- requiredFormats: commaOrSpaceSeparated$1,
2143
+ requiredExtensions: commaOrSpaceSeparated,
2144
+ requiredFeatures: commaOrSpaceSeparated,
2145
+ requiredFonts: commaOrSpaceSeparated,
2146
+ requiredFormats: commaOrSpaceSeparated,
2147
2147
  resource: null,
2148
2148
  restart: null,
2149
2149
  result: null,
@@ -2156,8 +2156,8 @@ const svg$3 = create$1({
2156
2156
  side: null,
2157
2157
  slope: null,
2158
2158
  snapshotTime: null,
2159
- specularConstant: number$1,
2160
- specularExponent: number$1,
2159
+ specularConstant: number,
2160
+ specularExponent: number,
2161
2161
  spreadMethod: null,
2162
2162
  spacing: null,
2163
2163
  startOffset: null,
@@ -2167,30 +2167,30 @@ const svg$3 = create$1({
2167
2167
  stitchTiles: null,
2168
2168
  stopColor: null,
2169
2169
  stopOpacity: null,
2170
- strikethroughPosition: number$1,
2171
- strikethroughThickness: number$1,
2170
+ strikethroughPosition: number,
2171
+ strikethroughThickness: number,
2172
2172
  string: null,
2173
2173
  stroke: null,
2174
- strokeDashArray: commaOrSpaceSeparated$1,
2174
+ strokeDashArray: commaOrSpaceSeparated,
2175
2175
  strokeDashOffset: null,
2176
2176
  strokeLineCap: null,
2177
2177
  strokeLineJoin: null,
2178
- strokeMiterLimit: number$1,
2179
- strokeOpacity: number$1,
2178
+ strokeMiterLimit: number,
2179
+ strokeOpacity: number,
2180
2180
  strokeWidth: null,
2181
2181
  style: null,
2182
- surfaceScale: number$1,
2182
+ surfaceScale: number,
2183
2183
  syncBehavior: null,
2184
2184
  syncBehaviorDefault: null,
2185
2185
  syncMaster: null,
2186
2186
  syncTolerance: null,
2187
2187
  syncToleranceDefault: null,
2188
- systemLanguage: commaOrSpaceSeparated$1,
2189
- tabIndex: number$1,
2188
+ systemLanguage: commaOrSpaceSeparated,
2189
+ tabIndex: number,
2190
2190
  tableValues: null,
2191
2191
  target: null,
2192
- targetX: number$1,
2193
- targetY: number$1,
2192
+ targetX: number,
2193
+ targetY: number,
2194
2194
  textAnchor: null,
2195
2195
  textDecoration: null,
2196
2196
  textRendering: null,
@@ -2199,28 +2199,28 @@ const svg$3 = create$1({
2199
2199
  title: null,
2200
2200
  transformBehavior: null,
2201
2201
  type: null,
2202
- typeOf: commaOrSpaceSeparated$1,
2202
+ typeOf: commaOrSpaceSeparated,
2203
2203
  to: null,
2204
2204
  transform: null,
2205
2205
  transformOrigin: null,
2206
2206
  u1: null,
2207
2207
  u2: null,
2208
- underlinePosition: number$1,
2209
- underlineThickness: number$1,
2208
+ underlinePosition: number,
2209
+ underlineThickness: number,
2210
2210
  unicode: null,
2211
2211
  unicodeBidi: null,
2212
2212
  unicodeRange: null,
2213
- unitsPerEm: number$1,
2213
+ unitsPerEm: number,
2214
2214
  values: null,
2215
- vAlphabetic: number$1,
2216
- vMathematical: number$1,
2215
+ vAlphabetic: number,
2216
+ vMathematical: number,
2217
2217
  vectorEffect: null,
2218
- vHanging: number$1,
2219
- vIdeographic: number$1,
2218
+ vHanging: number,
2219
+ vIdeographic: number,
2220
2220
  version: null,
2221
- vertAdvY: number$1,
2222
- vertOriginX: number$1,
2223
- vertOriginY: number$1,
2221
+ vertAdvY: number,
2222
+ vertOriginX: number,
2223
+ vertOriginY: number,
2224
2224
  viewBox: null,
2225
2225
  viewTarget: null,
2226
2226
  visibility: null,
@@ -2232,7 +2232,7 @@ const svg$3 = create$1({
2232
2232
  x1: null,
2233
2233
  x2: null,
2234
2234
  xChannelSelector: null,
2235
- xHeight: number$1,
2235
+ xHeight: number,
2236
2236
  y: null,
2237
2237
  y1: null,
2238
2238
  y2: null,
@@ -2241,9 +2241,9 @@ const svg$3 = create$1({
2241
2241
  zoomAndPan: null
2242
2242
  },
2243
2243
  space: "svg",
2244
- transform: caseSensitiveTransform$1
2244
+ transform: caseSensitiveTransform
2245
2245
  });
2246
- const xlink$1 = create$1({
2246
+ const xlink = create({
2247
2247
  properties: {
2248
2248
  xLinkActuate: null,
2249
2249
  xLinkArcRole: null,
@@ -2258,13 +2258,13 @@ const xlink$1 = create$1({
2258
2258
  return "xlink:" + property.slice(5).toLowerCase();
2259
2259
  }
2260
2260
  });
2261
- const xmlns$1 = create$1({
2261
+ const xmlns = create({
2262
2262
  attributes: { xmlnsxlink: "xmlns:xlink" },
2263
2263
  properties: { xmlnsXLink: null, xmlns: null },
2264
2264
  space: "xmlns",
2265
- transform: caseInsensitiveTransform$1
2265
+ transform: caseInsensitiveTransform
2266
2266
  });
2267
- const xml$2 = create$1({
2267
+ const xml$1 = create({
2268
2268
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
2269
2269
  space: "xml",
2270
2270
  transform(_, property) {
@@ -2290,42 +2290,42 @@ const hastToReact = {
2290
2290
  xLinkType: "xlinkType",
2291
2291
  xmlnsXLink: "xmlnsXlink"
2292
2292
  };
2293
- const cap$2 = /[A-Z]/g;
2294
- const dash$1 = /-[a-z]/g;
2295
- const valid$1 = /^data[-\w.:]+$/i;
2296
- function find$1(schema, value) {
2297
- const normal = normalize$2(value);
2293
+ const cap$1 = /[A-Z]/g;
2294
+ const dash = /-[a-z]/g;
2295
+ const valid = /^data[-\w.:]+$/i;
2296
+ function find(schema, value) {
2297
+ const normal = normalize$1(value);
2298
2298
  let property = value;
2299
- let Type = Info$1;
2299
+ let Type = Info;
2300
2300
  if (normal in schema.normal) {
2301
2301
  return schema.property[schema.normal[normal]];
2302
2302
  }
2303
- if (normal.length > 4 && normal.slice(0, 4) === "data" && valid$1.test(value)) {
2303
+ if (normal.length > 4 && normal.slice(0, 4) === "data" && valid.test(value)) {
2304
2304
  if (value.charAt(4) === "-") {
2305
- const rest = value.slice(5).replace(dash$1, camelcase$1);
2305
+ const rest = value.slice(5).replace(dash, camelcase);
2306
2306
  property = "data" + rest.charAt(0).toUpperCase() + rest.slice(1);
2307
2307
  } else {
2308
2308
  const rest = value.slice(4);
2309
- if (!dash$1.test(rest)) {
2310
- let dashes = rest.replace(cap$2, kebab$1);
2309
+ if (!dash.test(rest)) {
2310
+ let dashes = rest.replace(cap$1, kebab);
2311
2311
  if (dashes.charAt(0) !== "-") {
2312
2312
  dashes = "-" + dashes;
2313
2313
  }
2314
2314
  value = "data" + dashes;
2315
2315
  }
2316
2316
  }
2317
- Type = DefinedInfo$1;
2317
+ Type = DefinedInfo;
2318
2318
  }
2319
2319
  return new Type(property, value);
2320
2320
  }
2321
- function kebab$1($0) {
2321
+ function kebab($0) {
2322
2322
  return "-" + $0.toLowerCase();
2323
2323
  }
2324
- function camelcase$1($0) {
2324
+ function camelcase($0) {
2325
2325
  return $0.charAt(1).toUpperCase();
2326
2326
  }
2327
- const html$4 = merge$1([aria$1, html$5, xlink$1, xmlns$1, xml$2], "html");
2328
- const svg$2 = merge$1([aria$1, svg$3, xlink$1, xmlns$1, xml$2], "svg");
2327
+ const html$2 = merge([aria, html$3, xlink, xmlns, xml$1], "html");
2328
+ const svg = merge([aria, svg$1, xlink, xmlns, xml$1], "svg");
2329
2329
  function parse$1(value) {
2330
2330
  const input = String(value || "").trim();
2331
2331
  return input ? input.split(/[ \t\n\r\f]+/g) : [];
@@ -2734,9 +2734,9 @@ VFileMessage.prototype.fatal = void 0;
2734
2734
  VFileMessage.prototype.place = void 0;
2735
2735
  VFileMessage.prototype.ruleId = void 0;
2736
2736
  VFileMessage.prototype.source = void 0;
2737
- const own$8 = {}.hasOwnProperty;
2737
+ const own$7 = {}.hasOwnProperty;
2738
2738
  const emptyMap = /* @__PURE__ */ new Map();
2739
- const cap$1 = /[A-Z]/g;
2739
+ const cap = /[A-Z]/g;
2740
2740
  const tableElements = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]);
2741
2741
  const tableCellElement = /* @__PURE__ */ new Set(["td", "th"]);
2742
2742
  const docs = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
@@ -2773,7 +2773,7 @@ function toJsxRuntime(tree, options) {
2773
2773
  ignoreInvalidStyle: options.ignoreInvalidStyle || false,
2774
2774
  passKeys: options.passKeys !== false,
2775
2775
  passNode: options.passNode || false,
2776
- schema: options.space === "svg" ? svg$2 : html$4,
2776
+ schema: options.space === "svg" ? svg : html$2,
2777
2777
  stylePropertyNameCase: options.stylePropertyNameCase || "dom",
2778
2778
  tableCellAlignToStyle: options.tableCellAlignToStyle !== false
2779
2779
  };
@@ -2812,7 +2812,7 @@ function element$5(state, node2, key) {
2812
2812
  const parentSchema = state.schema;
2813
2813
  let schema = parentSchema;
2814
2814
  if (node2.tagName.toLowerCase() === "svg" && parentSchema.space === "html") {
2815
- schema = svg$2;
2815
+ schema = svg;
2816
2816
  state.schema = schema;
2817
2817
  }
2818
2818
  state.ancestors.push(node2);
@@ -2855,7 +2855,7 @@ function mdxJsxElement(state, node2, key) {
2855
2855
  const parentSchema = state.schema;
2856
2856
  let schema = parentSchema;
2857
2857
  if (node2.name === "svg" && parentSchema.space === "html") {
2858
- schema = svg$2;
2858
+ schema = svg;
2859
2859
  state.schema = schema;
2860
2860
  }
2861
2861
  state.ancestors.push(node2);
@@ -2921,7 +2921,7 @@ function createElementProps(state, node2) {
2921
2921
  let alignValue;
2922
2922
  let prop;
2923
2923
  for (prop in node2.properties) {
2924
- if (prop !== "children" && own$8.call(node2.properties, prop)) {
2924
+ if (prop !== "children" && own$7.call(node2.properties, prop)) {
2925
2925
  const result = createProperty$1(state, prop, node2.properties[prop]);
2926
2926
  if (result) {
2927
2927
  const [key, value] = result;
@@ -3003,7 +3003,7 @@ function createChildren(state, node2) {
3003
3003
  return children2;
3004
3004
  }
3005
3005
  function createProperty$1(state, prop, value) {
3006
- const info = find$1(state.schema, prop);
3006
+ const info = find(state.schema, prop);
3007
3007
  if (value === null || value === void 0 || typeof value === "number" && Number.isNaN(value)) {
3008
3008
  return;
3009
3009
  }
@@ -3071,7 +3071,7 @@ function findComponentFromName(state, name$1, allowExpression) {
3071
3071
  /** @type {string | number} */
3072
3072
  result.value
3073
3073
  );
3074
- return own$8.call(state.components, name2) ? state.components[name2] : name2;
3074
+ return own$7.call(state.components, name2) ? state.components[name2] : name2;
3075
3075
  }
3076
3076
  if (state.evaluater) {
3077
3077
  return state.evaluater.evaluateExpression(result);
@@ -3096,14 +3096,14 @@ function transformStylesToCssCasing(domCasing) {
3096
3096
  const cssCasing = {};
3097
3097
  let from;
3098
3098
  for (from in domCasing) {
3099
- if (own$8.call(domCasing, from)) {
3099
+ if (own$7.call(domCasing, from)) {
3100
3100
  cssCasing[transformStyleToCssCasing(from)] = domCasing[from];
3101
3101
  }
3102
3102
  }
3103
3103
  return cssCasing;
3104
3104
  }
3105
3105
  function transformStyleToCssCasing(from) {
3106
- let to = from.replace(cap$1, toDash);
3106
+ let to = from.replace(cap, toDash);
3107
3107
  if (to.slice(0, 3) === "ms-") to = "-" + to;
3108
3108
  return to;
3109
3109
  }
@@ -3173,11 +3173,7 @@ function decodeNamedCharacterReference(value) {
3173
3173
  const characterReference2 = "&" + value + ";";
3174
3174
  element$4.innerHTML = characterReference2;
3175
3175
  const character = element$4.textContent;
3176
- if (
3177
- // @ts-expect-error: TypeScript is wrong that `textContent` on elements can
3178
- // yield `null`.
3179
- character.charCodeAt(character.length - 1) === 59 && value !== "semi"
3180
- ) {
3176
+ if (character.charCodeAt(character.length - 1) === 59 && value !== "semi") {
3181
3177
  return false;
3182
3178
  }
3183
3179
  return character === characterReference2 ? false : character;
@@ -7142,7 +7138,7 @@ function decode($0, $1, $2) {
7142
7138
  }
7143
7139
  return decodeNamedCharacterReference($2) || $0;
7144
7140
  }
7145
- const own$7 = {}.hasOwnProperty;
7141
+ const own$6 = {}.hasOwnProperty;
7146
7142
  function fromMarkdown(value, encoding, options) {
7147
7143
  if (typeof encoding !== "string") {
7148
7144
  options = encoding;
@@ -7282,7 +7278,7 @@ function compiler(options) {
7282
7278
  index2 = -1;
7283
7279
  while (++index2 < events.length) {
7284
7280
  const handler = config[events[index2][0]];
7285
- if (own$7.call(handler, events[index2][1].type)) {
7281
+ if (own$6.call(handler, events[index2][1].type)) {
7286
7282
  handler[events[index2][1].type].call(Object.assign({
7287
7283
  sliceSerialize: events[index2][2].sliceSerialize
7288
7284
  }, context), events[index2][1]);
@@ -7805,7 +7801,7 @@ function configure(combined, extensions) {
7805
7801
  function extension(combined, extension2) {
7806
7802
  let key;
7807
7803
  for (key in extension2) {
7808
- if (own$7.call(extension2, key)) {
7804
+ if (own$6.call(extension2, key)) {
7809
7805
  switch (key) {
7810
7806
  case "canContainEols": {
7811
7807
  const right = extension2[key];
@@ -7882,8 +7878,9 @@ function hardBreak$1(state, node2) {
7882
7878
  function code$2(state, node2) {
7883
7879
  const value = node2.value ? node2.value + "\n" : "";
7884
7880
  const properties2 = {};
7885
- if (node2.lang) {
7886
- properties2.className = ["language-" + node2.lang];
7881
+ const language2 = node2.lang ? node2.lang.split(/\s+/) : [];
7882
+ if (language2.length > 0) {
7883
+ properties2.className = ["language-" + language2[0]];
7887
7884
  }
7888
7885
  let result = {
7889
7886
  type: "element",
@@ -7967,7 +7964,7 @@ function heading$1(state, node2) {
7967
7964
  state.patch(node2, result);
7968
7965
  return state.applyData(node2, result);
7969
7966
  }
7970
- function html$3(state, node2) {
7967
+ function html$1(state, node2) {
7971
7968
  if (state.options.allowDangerousHtml) {
7972
7969
  const result = { type: "raw", value: node2.value };
7973
7970
  state.patch(node2, result);
@@ -8320,7 +8317,7 @@ const handlers = {
8320
8317
  emphasis: emphasis$1,
8321
8318
  footnoteReference: footnoteReference$1,
8322
8319
  heading: heading$1,
8323
- html: html$3,
8320
+ html: html$1,
8324
8321
  imageReference: imageReference$1,
8325
8322
  image: image$1,
8326
8323
  inlineCode: inlineCode$1,
@@ -8648,7 +8645,7 @@ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
8648
8645
  return visitor(node2, index2, parent);
8649
8646
  }
8650
8647
  }
8651
- const own$6 = {}.hasOwnProperty;
8648
+ const own$5 = {}.hasOwnProperty;
8652
8649
  const emptyOptions$5 = {};
8653
8650
  function createState$1(tree, options) {
8654
8651
  const settings = options || emptyOptions$5;
@@ -8682,7 +8679,7 @@ function createState$1(tree, options) {
8682
8679
  function one2(node2, parent) {
8683
8680
  const type = node2.type;
8684
8681
  const handle2 = state.handlers[type];
8685
- if (own$6.call(state.handlers, type) && handle2) {
8682
+ if (own$5.call(state.handlers, type) && handle2) {
8686
8683
  return handle2(state, node2, parent);
8687
8684
  }
8688
8685
  if (state.options.passThrough && state.options.passThrough.includes(type)) {
@@ -8755,7 +8752,7 @@ function applyData(from, to) {
8755
8752
  }
8756
8753
  function defaultUnknownHandler(state, node2) {
8757
8754
  const data = node2.data || {};
8758
- const result = "value" in node2 && !(own$6.call(data, "hProperties") || own$6.call(data, "hChildren")) ? { type: "text", value: node2.value } : {
8755
+ const result = "value" in node2 && !(own$5.call(data, "hProperties") || own$5.call(data, "hChildren")) ? { type: "text", value: node2.value } : {
8759
8756
  type: "element",
8760
8757
  tagName: "div",
8761
8758
  properties: {},
@@ -9128,9 +9125,9 @@ function join(...segments) {
9128
9125
  joined = joined === void 0 ? segments[index2] : joined + "/" + segments[index2];
9129
9126
  }
9130
9127
  }
9131
- return joined === void 0 ? "." : normalize$1(joined);
9128
+ return joined === void 0 ? "." : normalize(joined);
9132
9129
  }
9133
- function normalize$1(path2) {
9130
+ function normalize(path2) {
9134
9131
  assertPath$1(path2);
9135
9132
  const absolute = path2.codePointAt(0) === 47;
9136
9133
  let value = normalizeString(path2, !absolute);
@@ -9745,7 +9742,7 @@ const CallableInstance = (
9745
9742
  return apply;
9746
9743
  })
9747
9744
  );
9748
- const own$5 = {}.hasOwnProperty;
9745
+ const own$4 = {}.hasOwnProperty;
9749
9746
  class Processor extends CallableInstance {
9750
9747
  /**
9751
9748
  * Create a processor.
@@ -9852,7 +9849,7 @@ class Processor extends CallableInstance {
9852
9849
  this.namespace[key] = value;
9853
9850
  return this;
9854
9851
  }
9855
- return own$5.call(this.namespace, key) && this.namespace[key] || void 0;
9852
+ return own$4.call(this.namespace, key) && this.namespace[key] || void 0;
9856
9853
  }
9857
9854
  if (key) {
9858
9855
  assertUnfrozen("data", this.frozen);
@@ -23666,7 +23663,7 @@ function wasm(hljs) {
23666
23663
  ]
23667
23664
  };
23668
23665
  }
23669
- function xml$1(hljs) {
23666
+ function xml(hljs) {
23670
23667
  const regex2 = hljs.regex;
23671
23668
  const TAG_NAME_RE = regex2.concat(/[\p{L}_]/u, regex2.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u);
23672
23669
  const XML_IDENT_RE = /[\p{L}0-9._:-]+/u;
@@ -24125,7 +24122,7 @@ const grammars = {
24125
24122
  typescript,
24126
24123
  vbnet,
24127
24124
  wasm,
24128
- xml: xml$1,
24125
+ xml,
24129
24126
  yaml
24130
24127
  };
24131
24128
  var core;
@@ -26077,7 +26074,7 @@ function isChild(value) {
26077
26074
  return false;
26078
26075
  }
26079
26076
  function addProperty(schema, properties2, key, value) {
26080
- const info = find$1(schema, key);
26077
+ const info = find(schema, key);
26081
26078
  let result;
26082
26079
  if (value === null || value === void 0) return;
26083
26080
  if (typeof value === "number") {
@@ -26141,7 +26138,7 @@ function parsePrimitive(info, name2, value) {
26141
26138
  if (info.number && value && !Number.isNaN(Number(value))) {
26142
26139
  return Number(value);
26143
26140
  }
26144
- if ((info.boolean || info.overloadedBoolean) && (value === "" || normalize$2(value) === normalize$2(name2))) {
26141
+ if ((info.boolean || info.overloadedBoolean) && (value === "" || normalize$1(value) === normalize$1(name2))) {
26145
26142
  return true;
26146
26143
  }
26147
26144
  }
@@ -26202,8 +26199,8 @@ const svgCaseSensitiveTagNames = [
26202
26199
  "textArea",
26203
26200
  "textPath"
26204
26201
  ];
26205
- const h = createH(html$4, "div");
26206
- const s = createH(svg$2, "g", svgCaseSensitiveTagNames);
26202
+ const h = createH(html$2, "div");
26203
+ const s = createH(svg, "g", svgCaseSensitiveTagNames);
26207
26204
  function location(file) {
26208
26205
  const value = String(file);
26209
26206
  const indices = [];
@@ -26258,7 +26255,7 @@ const webNamespaces = {
26258
26255
  xml: "http://www.w3.org/XML/1998/namespace",
26259
26256
  xmlns: "http://www.w3.org/2000/xmlns/"
26260
26257
  };
26261
- const own$4 = {}.hasOwnProperty;
26258
+ const own$3 = {}.hasOwnProperty;
26262
26259
  const proto = Object.prototype;
26263
26260
  function fromParse5(tree, options) {
26264
26261
  const settings = options || {};
@@ -26266,7 +26263,7 @@ function fromParse5(tree, options) {
26266
26263
  {
26267
26264
  file: settings.file || void 0,
26268
26265
  location: false,
26269
- schema: settings.space === "svg" ? svg$2 : html$4,
26266
+ schema: settings.space === "svg" ? svg : html$2,
26270
26267
  verbose: settings.verbose || false
26271
26268
  },
26272
26269
  tree
@@ -26348,13 +26345,13 @@ function all$3(state, nodes) {
26348
26345
  }
26349
26346
  function element$2(state, node2) {
26350
26347
  const schema = state.schema;
26351
- state.schema = node2.namespaceURI === webNamespaces.svg ? svg$2 : html$4;
26348
+ state.schema = node2.namespaceURI === webNamespaces.svg ? svg : html$2;
26352
26349
  let index2 = -1;
26353
26350
  const properties2 = {};
26354
26351
  while (++index2 < node2.attrs.length) {
26355
26352
  const attribute = node2.attrs[index2];
26356
26353
  const name2 = (attribute.prefix ? attribute.prefix + ":" : "") + attribute.name;
26357
- if (!own$4.call(proto, name2)) {
26354
+ if (!own$3.call(proto, name2)) {
26358
26355
  properties2[name2] = attribute.value;
26359
26356
  }
26360
26357
  }
@@ -26402,8 +26399,8 @@ function createLocation(state, node2, location2) {
26402
26399
  let key;
26403
26400
  if (location2.attrs) {
26404
26401
  for (key in location2.attrs) {
26405
- if (own$4.call(location2.attrs, key)) {
26406
- properties2[find$1(state.schema, key).property] = position(
26402
+ if (own$3.call(location2.attrs, key)) {
26403
+ properties2[find(state.schema, key).property] = position(
26407
26404
  location2.attrs[key]
26408
26405
  );
26409
26406
  }
@@ -26436,1340 +26433,168 @@ function position(loc) {
26436
26433
  function point(point2) {
26437
26434
  return point2.line && point2.column ? point2 : void 0;
26438
26435
  }
26439
- class Schema2 {
26440
- /**
26441
- * @constructor
26442
- * @param {Properties} property
26443
- * @param {Normal} normal
26444
- * @param {string} [space]
26445
- */
26446
- constructor(property, normal, space2) {
26447
- this.property = property;
26448
- this.normal = normal;
26449
- if (space2) {
26450
- this.space = space2;
26436
+ const own$2 = {}.hasOwnProperty;
26437
+ function zwitch(key, options) {
26438
+ const settings = options || {};
26439
+ function one2(value, ...parameters) {
26440
+ let fn = one2.invalid;
26441
+ const handlers2 = one2.handlers;
26442
+ if (value && own$2.call(value, key)) {
26443
+ const id = String(value[key]);
26444
+ fn = own$2.call(handlers2, id) ? handlers2[id] : one2.unknown;
26445
+ }
26446
+ if (fn) {
26447
+ return fn.call(this, value, ...parameters);
26451
26448
  }
26452
26449
  }
26450
+ one2.handlers = settings.handlers || {};
26451
+ one2.invalid = settings.invalid;
26452
+ one2.unknown = settings.unknown;
26453
+ return one2;
26453
26454
  }
26454
- Schema2.prototype.property = {};
26455
- Schema2.prototype.normal = {};
26456
- Schema2.prototype.space = null;
26457
- function merge(definitions, space2) {
26458
- const property = {};
26459
- const normal = {};
26460
- let index2 = -1;
26461
- while (++index2 < definitions.length) {
26462
- Object.assign(property, definitions[index2].property);
26463
- Object.assign(normal, definitions[index2].normal);
26464
- }
26465
- return new Schema2(property, normal, space2);
26455
+ const emptyOptions$2 = {};
26456
+ const own$1 = {}.hasOwnProperty;
26457
+ const one$1 = zwitch("type", { handlers: { root: root$2, element: element$1, text: text$3, comment: comment$1, doctype: doctype$1 } });
26458
+ function toParse5(tree, options) {
26459
+ const settings = options || emptyOptions$2;
26460
+ const space2 = settings.space;
26461
+ return one$1(tree, space2 === "svg" ? svg : html$2);
26466
26462
  }
26467
- function normalize(value) {
26468
- return value.toLowerCase();
26463
+ function root$2(node2, schema) {
26464
+ const result = {
26465
+ nodeName: "#document",
26466
+ // @ts-expect-error: `parse5` uses enums, which are actually strings.
26467
+ mode: (node2.data || {}).quirksMode ? "quirks" : "no-quirks",
26468
+ childNodes: []
26469
+ };
26470
+ result.childNodes = all$2(node2.children, result, schema);
26471
+ patch(node2, result);
26472
+ return result;
26469
26473
  }
26470
- class Info2 {
26471
- /**
26472
- * @constructor
26473
- * @param {string} property
26474
- * @param {string} attribute
26475
- */
26476
- constructor(property, attribute) {
26477
- this.property = property;
26478
- this.attribute = attribute;
26479
- }
26474
+ function fragment(node2, schema) {
26475
+ const result = { nodeName: "#document-fragment", childNodes: [] };
26476
+ result.childNodes = all$2(node2.children, result, schema);
26477
+ patch(node2, result);
26478
+ return result;
26480
26479
  }
26481
- Info2.prototype.space = null;
26482
- Info2.prototype.boolean = false;
26483
- Info2.prototype.booleanish = false;
26484
- Info2.prototype.overloadedBoolean = false;
26485
- Info2.prototype.number = false;
26486
- Info2.prototype.commaSeparated = false;
26487
- Info2.prototype.spaceSeparated = false;
26488
- Info2.prototype.commaOrSpaceSeparated = false;
26489
- Info2.prototype.mustUseProperty = false;
26490
- Info2.prototype.defined = false;
26491
- let powers = 0;
26492
- const boolean = increment();
26493
- const booleanish = increment();
26494
- const overloadedBoolean = increment();
26495
- const number = increment();
26496
- const spaceSeparated = increment();
26497
- const commaSeparated = increment();
26498
- const commaOrSpaceSeparated = increment();
26499
- function increment() {
26500
- return 2 ** ++powers;
26480
+ function doctype$1(node2) {
26481
+ const result = {
26482
+ nodeName: "#documentType",
26483
+ name: "html",
26484
+ publicId: "",
26485
+ systemId: "",
26486
+ parentNode: null
26487
+ };
26488
+ patch(node2, result);
26489
+ return result;
26501
26490
  }
26502
- const types = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26503
- __proto__: null,
26504
- boolean,
26505
- booleanish,
26506
- commaOrSpaceSeparated,
26507
- commaSeparated,
26508
- number,
26509
- overloadedBoolean,
26510
- spaceSeparated
26511
- }, Symbol.toStringTag, { value: "Module" }));
26512
- const checks = Object.keys(types);
26513
- class DefinedInfo2 extends Info2 {
26514
- /**
26515
- * @constructor
26516
- * @param {string} property
26517
- * @param {string} attribute
26518
- * @param {number|null} [mask]
26519
- * @param {string} [space]
26520
- */
26521
- constructor(property, attribute, mask, space2) {
26522
- let index2 = -1;
26523
- super(property, attribute);
26524
- mark(this, "space", space2);
26525
- if (typeof mask === "number") {
26526
- while (++index2 < checks.length) {
26527
- const check = checks[index2];
26528
- mark(this, checks[index2], (mask & types[check]) === types[check]);
26491
+ function text$3(node2) {
26492
+ const result = {
26493
+ nodeName: "#text",
26494
+ value: node2.value,
26495
+ parentNode: null
26496
+ };
26497
+ patch(node2, result);
26498
+ return result;
26499
+ }
26500
+ function comment$1(node2) {
26501
+ const result = {
26502
+ nodeName: "#comment",
26503
+ data: node2.value,
26504
+ parentNode: null
26505
+ };
26506
+ patch(node2, result);
26507
+ return result;
26508
+ }
26509
+ function element$1(node2, schema) {
26510
+ const parentSchema = schema;
26511
+ let currentSchema = parentSchema;
26512
+ if (node2.type === "element" && node2.tagName.toLowerCase() === "svg" && parentSchema.space === "html") {
26513
+ currentSchema = svg;
26514
+ }
26515
+ const attrs = [];
26516
+ let prop;
26517
+ if (node2.properties) {
26518
+ for (prop in node2.properties) {
26519
+ if (prop !== "children" && own$1.call(node2.properties, prop)) {
26520
+ const result2 = createProperty(
26521
+ currentSchema,
26522
+ prop,
26523
+ node2.properties[prop]
26524
+ );
26525
+ if (result2) {
26526
+ attrs.push(result2);
26527
+ }
26529
26528
  }
26530
26529
  }
26531
26530
  }
26532
- }
26533
- DefinedInfo2.prototype.defined = true;
26534
- function mark(values, key, value) {
26535
- if (value) {
26536
- values[key] = value;
26531
+ const space2 = currentSchema.space;
26532
+ const result = {
26533
+ nodeName: node2.tagName,
26534
+ tagName: node2.tagName,
26535
+ attrs,
26536
+ // @ts-expect-error: `parse5` types are wrong.
26537
+ namespaceURI: webNamespaces[space2],
26538
+ childNodes: [],
26539
+ parentNode: null
26540
+ };
26541
+ result.childNodes = all$2(node2.children, result, currentSchema);
26542
+ patch(node2, result);
26543
+ if (node2.tagName === "template" && node2.content) {
26544
+ result.content = fragment(node2.content, currentSchema);
26537
26545
  }
26546
+ return result;
26538
26547
  }
26539
- const own$3 = {}.hasOwnProperty;
26540
- function create(definition2) {
26541
- const property = {};
26542
- const normal = {};
26543
- let prop;
26544
- for (prop in definition2.properties) {
26545
- if (own$3.call(definition2.properties, prop)) {
26546
- const value = definition2.properties[prop];
26547
- const info = new DefinedInfo2(
26548
- prop,
26549
- definition2.transform(definition2.attributes || {}, prop),
26550
- value,
26551
- definition2.space
26552
- );
26553
- if (definition2.mustUseProperty && definition2.mustUseProperty.includes(prop)) {
26554
- info.mustUseProperty = true;
26555
- }
26556
- property[prop] = info;
26557
- normal[normalize(prop)] = prop;
26558
- normal[normalize(info.attribute)] = prop;
26548
+ function createProperty(schema, prop, value) {
26549
+ const info = find(schema, prop);
26550
+ if (value === false || value === null || value === void 0 || typeof value === "number" && Number.isNaN(value) || !value && info.boolean) {
26551
+ return;
26552
+ }
26553
+ if (Array.isArray(value)) {
26554
+ value = info.commaSeparated ? stringify$1(value) : stringify(value);
26555
+ }
26556
+ const attribute = {
26557
+ name: info.attribute,
26558
+ value: value === true ? "" : String(value)
26559
+ };
26560
+ if (info.space && info.space !== "html" && info.space !== "svg") {
26561
+ const index2 = attribute.name.indexOf(":");
26562
+ if (index2 < 0) {
26563
+ attribute.prefix = "";
26564
+ } else {
26565
+ attribute.name = attribute.name.slice(index2 + 1);
26566
+ attribute.prefix = info.attribute.slice(0, index2);
26559
26567
  }
26568
+ attribute.namespace = webNamespaces[info.space];
26560
26569
  }
26561
- return new Schema2(property, normal, definition2.space);
26570
+ return attribute;
26562
26571
  }
26563
- const xlink = create({
26564
- space: "xlink",
26565
- transform(_, prop) {
26566
- return "xlink:" + prop.slice(5).toLowerCase();
26567
- },
26568
- properties: {
26569
- xLinkActuate: null,
26570
- xLinkArcRole: null,
26571
- xLinkHref: null,
26572
- xLinkRole: null,
26573
- xLinkShow: null,
26574
- xLinkTitle: null,
26575
- xLinkType: null
26572
+ function all$2(children2, parentNode, schema) {
26573
+ let index2 = -1;
26574
+ const results = [];
26575
+ if (children2) {
26576
+ while (++index2 < children2.length) {
26577
+ const child = one$1(children2[index2], schema);
26578
+ child.parentNode = parentNode;
26579
+ results.push(child);
26580
+ }
26576
26581
  }
26577
- });
26578
- const xml = create({
26579
- space: "xml",
26580
- transform(_, prop) {
26581
- return "xml:" + prop.slice(3).toLowerCase();
26582
- },
26583
- properties: { xmlLang: null, xmlBase: null, xmlSpace: null }
26584
- });
26585
- function caseSensitiveTransform(attributes, attribute) {
26586
- return attribute in attributes ? attributes[attribute] : attribute;
26582
+ return results;
26587
26583
  }
26588
- function caseInsensitiveTransform(attributes, property) {
26589
- return caseSensitiveTransform(attributes, property.toLowerCase());
26590
- }
26591
- const xmlns = create({
26592
- space: "xmlns",
26593
- attributes: { xmlnsxlink: "xmlns:xlink" },
26594
- transform: caseInsensitiveTransform,
26595
- properties: { xmlns: null, xmlnsXLink: null }
26596
- });
26597
- const aria = create({
26598
- transform(_, prop) {
26599
- return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase();
26600
- },
26601
- properties: {
26602
- ariaActiveDescendant: null,
26603
- ariaAtomic: booleanish,
26604
- ariaAutoComplete: null,
26605
- ariaBusy: booleanish,
26606
- ariaChecked: booleanish,
26607
- ariaColCount: number,
26608
- ariaColIndex: number,
26609
- ariaColSpan: number,
26610
- ariaControls: spaceSeparated,
26611
- ariaCurrent: null,
26612
- ariaDescribedBy: spaceSeparated,
26613
- ariaDetails: null,
26614
- ariaDisabled: booleanish,
26615
- ariaDropEffect: spaceSeparated,
26616
- ariaErrorMessage: null,
26617
- ariaExpanded: booleanish,
26618
- ariaFlowTo: spaceSeparated,
26619
- ariaGrabbed: booleanish,
26620
- ariaHasPopup: null,
26621
- ariaHidden: booleanish,
26622
- ariaInvalid: null,
26623
- ariaKeyShortcuts: null,
26624
- ariaLabel: null,
26625
- ariaLabelledBy: spaceSeparated,
26626
- ariaLevel: number,
26627
- ariaLive: null,
26628
- ariaModal: booleanish,
26629
- ariaMultiLine: booleanish,
26630
- ariaMultiSelectable: booleanish,
26631
- ariaOrientation: null,
26632
- ariaOwns: spaceSeparated,
26633
- ariaPlaceholder: null,
26634
- ariaPosInSet: number,
26635
- ariaPressed: booleanish,
26636
- ariaReadOnly: booleanish,
26637
- ariaRelevant: null,
26638
- ariaRequired: booleanish,
26639
- ariaRoleDescription: spaceSeparated,
26640
- ariaRowCount: number,
26641
- ariaRowIndex: number,
26642
- ariaRowSpan: number,
26643
- ariaSelected: booleanish,
26644
- ariaSetSize: number,
26645
- ariaSort: null,
26646
- ariaValueMax: number,
26647
- ariaValueMin: number,
26648
- ariaValueNow: number,
26649
- ariaValueText: null,
26650
- role: null
26651
- }
26652
- });
26653
- const html$2 = create({
26654
- space: "html",
26655
- attributes: {
26656
- acceptcharset: "accept-charset",
26657
- classname: "class",
26658
- htmlfor: "for",
26659
- httpequiv: "http-equiv"
26660
- },
26661
- transform: caseInsensitiveTransform,
26662
- mustUseProperty: ["checked", "multiple", "muted", "selected"],
26663
- properties: {
26664
- // Standard Properties.
26665
- abbr: null,
26666
- accept: commaSeparated,
26667
- acceptCharset: spaceSeparated,
26668
- accessKey: spaceSeparated,
26669
- action: null,
26670
- allow: null,
26671
- allowFullScreen: boolean,
26672
- allowPaymentRequest: boolean,
26673
- allowUserMedia: boolean,
26674
- alt: null,
26675
- as: null,
26676
- async: boolean,
26677
- autoCapitalize: null,
26678
- autoComplete: spaceSeparated,
26679
- autoFocus: boolean,
26680
- autoPlay: boolean,
26681
- blocking: spaceSeparated,
26682
- capture: null,
26683
- charSet: null,
26684
- checked: boolean,
26685
- cite: null,
26686
- className: spaceSeparated,
26687
- cols: number,
26688
- colSpan: null,
26689
- content: null,
26690
- contentEditable: booleanish,
26691
- controls: boolean,
26692
- controlsList: spaceSeparated,
26693
- coords: number | commaSeparated,
26694
- crossOrigin: null,
26695
- data: null,
26696
- dateTime: null,
26697
- decoding: null,
26698
- default: boolean,
26699
- defer: boolean,
26700
- dir: null,
26701
- dirName: null,
26702
- disabled: boolean,
26703
- download: overloadedBoolean,
26704
- draggable: booleanish,
26705
- encType: null,
26706
- enterKeyHint: null,
26707
- fetchPriority: null,
26708
- form: null,
26709
- formAction: null,
26710
- formEncType: null,
26711
- formMethod: null,
26712
- formNoValidate: boolean,
26713
- formTarget: null,
26714
- headers: spaceSeparated,
26715
- height: number,
26716
- hidden: boolean,
26717
- high: number,
26718
- href: null,
26719
- hrefLang: null,
26720
- htmlFor: spaceSeparated,
26721
- httpEquiv: spaceSeparated,
26722
- id: null,
26723
- imageSizes: null,
26724
- imageSrcSet: null,
26725
- inert: boolean,
26726
- inputMode: null,
26727
- integrity: null,
26728
- is: null,
26729
- isMap: boolean,
26730
- itemId: null,
26731
- itemProp: spaceSeparated,
26732
- itemRef: spaceSeparated,
26733
- itemScope: boolean,
26734
- itemType: spaceSeparated,
26735
- kind: null,
26736
- label: null,
26737
- lang: null,
26738
- language: null,
26739
- list: null,
26740
- loading: null,
26741
- loop: boolean,
26742
- low: number,
26743
- manifest: null,
26744
- max: null,
26745
- maxLength: number,
26746
- media: null,
26747
- method: null,
26748
- min: null,
26749
- minLength: number,
26750
- multiple: boolean,
26751
- muted: boolean,
26752
- name: null,
26753
- nonce: null,
26754
- noModule: boolean,
26755
- noValidate: boolean,
26756
- onAbort: null,
26757
- onAfterPrint: null,
26758
- onAuxClick: null,
26759
- onBeforeMatch: null,
26760
- onBeforePrint: null,
26761
- onBeforeToggle: null,
26762
- onBeforeUnload: null,
26763
- onBlur: null,
26764
- onCancel: null,
26765
- onCanPlay: null,
26766
- onCanPlayThrough: null,
26767
- onChange: null,
26768
- onClick: null,
26769
- onClose: null,
26770
- onContextLost: null,
26771
- onContextMenu: null,
26772
- onContextRestored: null,
26773
- onCopy: null,
26774
- onCueChange: null,
26775
- onCut: null,
26776
- onDblClick: null,
26777
- onDrag: null,
26778
- onDragEnd: null,
26779
- onDragEnter: null,
26780
- onDragExit: null,
26781
- onDragLeave: null,
26782
- onDragOver: null,
26783
- onDragStart: null,
26784
- onDrop: null,
26785
- onDurationChange: null,
26786
- onEmptied: null,
26787
- onEnded: null,
26788
- onError: null,
26789
- onFocus: null,
26790
- onFormData: null,
26791
- onHashChange: null,
26792
- onInput: null,
26793
- onInvalid: null,
26794
- onKeyDown: null,
26795
- onKeyPress: null,
26796
- onKeyUp: null,
26797
- onLanguageChange: null,
26798
- onLoad: null,
26799
- onLoadedData: null,
26800
- onLoadedMetadata: null,
26801
- onLoadEnd: null,
26802
- onLoadStart: null,
26803
- onMessage: null,
26804
- onMessageError: null,
26805
- onMouseDown: null,
26806
- onMouseEnter: null,
26807
- onMouseLeave: null,
26808
- onMouseMove: null,
26809
- onMouseOut: null,
26810
- onMouseOver: null,
26811
- onMouseUp: null,
26812
- onOffline: null,
26813
- onOnline: null,
26814
- onPageHide: null,
26815
- onPageShow: null,
26816
- onPaste: null,
26817
- onPause: null,
26818
- onPlay: null,
26819
- onPlaying: null,
26820
- onPopState: null,
26821
- onProgress: null,
26822
- onRateChange: null,
26823
- onRejectionHandled: null,
26824
- onReset: null,
26825
- onResize: null,
26826
- onScroll: null,
26827
- onScrollEnd: null,
26828
- onSecurityPolicyViolation: null,
26829
- onSeeked: null,
26830
- onSeeking: null,
26831
- onSelect: null,
26832
- onSlotChange: null,
26833
- onStalled: null,
26834
- onStorage: null,
26835
- onSubmit: null,
26836
- onSuspend: null,
26837
- onTimeUpdate: null,
26838
- onToggle: null,
26839
- onUnhandledRejection: null,
26840
- onUnload: null,
26841
- onVolumeChange: null,
26842
- onWaiting: null,
26843
- onWheel: null,
26844
- open: boolean,
26845
- optimum: number,
26846
- pattern: null,
26847
- ping: spaceSeparated,
26848
- placeholder: null,
26849
- playsInline: boolean,
26850
- popover: null,
26851
- popoverTarget: null,
26852
- popoverTargetAction: null,
26853
- poster: null,
26854
- preload: null,
26855
- readOnly: boolean,
26856
- referrerPolicy: null,
26857
- rel: spaceSeparated,
26858
- required: boolean,
26859
- reversed: boolean,
26860
- rows: number,
26861
- rowSpan: number,
26862
- sandbox: spaceSeparated,
26863
- scope: null,
26864
- scoped: boolean,
26865
- seamless: boolean,
26866
- selected: boolean,
26867
- shadowRootClonable: boolean,
26868
- shadowRootDelegatesFocus: boolean,
26869
- shadowRootMode: null,
26870
- shape: null,
26871
- size: number,
26872
- sizes: null,
26873
- slot: null,
26874
- span: number,
26875
- spellCheck: booleanish,
26876
- src: null,
26877
- srcDoc: null,
26878
- srcLang: null,
26879
- srcSet: null,
26880
- start: number,
26881
- step: null,
26882
- style: null,
26883
- tabIndex: number,
26884
- target: null,
26885
- title: null,
26886
- translate: null,
26887
- type: null,
26888
- typeMustMatch: boolean,
26889
- useMap: null,
26890
- value: booleanish,
26891
- width: number,
26892
- wrap: null,
26893
- writingSuggestions: null,
26894
- // Legacy.
26895
- // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
26896
- align: null,
26897
- // Several. Use CSS `text-align` instead,
26898
- aLink: null,
26899
- // `<body>`. Use CSS `a:active {color}` instead
26900
- archive: spaceSeparated,
26901
- // `<object>`. List of URIs to archives
26902
- axis: null,
26903
- // `<td>` and `<th>`. Use `scope` on `<th>`
26904
- background: null,
26905
- // `<body>`. Use CSS `background-image` instead
26906
- bgColor: null,
26907
- // `<body>` and table elements. Use CSS `background-color` instead
26908
- border: number,
26909
- // `<table>`. Use CSS `border-width` instead,
26910
- borderColor: null,
26911
- // `<table>`. Use CSS `border-color` instead,
26912
- bottomMargin: number,
26913
- // `<body>`
26914
- cellPadding: null,
26915
- // `<table>`
26916
- cellSpacing: null,
26917
- // `<table>`
26918
- char: null,
26919
- // Several table elements. When `align=char`, sets the character to align on
26920
- charOff: null,
26921
- // Several table elements. When `char`, offsets the alignment
26922
- classId: null,
26923
- // `<object>`
26924
- clear: null,
26925
- // `<br>`. Use CSS `clear` instead
26926
- code: null,
26927
- // `<object>`
26928
- codeBase: null,
26929
- // `<object>`
26930
- codeType: null,
26931
- // `<object>`
26932
- color: null,
26933
- // `<font>` and `<hr>`. Use CSS instead
26934
- compact: boolean,
26935
- // Lists. Use CSS to reduce space between items instead
26936
- declare: boolean,
26937
- // `<object>`
26938
- event: null,
26939
- // `<script>`
26940
- face: null,
26941
- // `<font>`. Use CSS instead
26942
- frame: null,
26943
- // `<table>`
26944
- frameBorder: null,
26945
- // `<iframe>`. Use CSS `border` instead
26946
- hSpace: number,
26947
- // `<img>` and `<object>`
26948
- leftMargin: number,
26949
- // `<body>`
26950
- link: null,
26951
- // `<body>`. Use CSS `a:link {color: *}` instead
26952
- longDesc: null,
26953
- // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
26954
- lowSrc: null,
26955
- // `<img>`. Use a `<picture>`
26956
- marginHeight: number,
26957
- // `<body>`
26958
- marginWidth: number,
26959
- // `<body>`
26960
- noResize: boolean,
26961
- // `<frame>`
26962
- noHref: boolean,
26963
- // `<area>`. Use no href instead of an explicit `nohref`
26964
- noShade: boolean,
26965
- // `<hr>`. Use background-color and height instead of borders
26966
- noWrap: boolean,
26967
- // `<td>` and `<th>`
26968
- object: null,
26969
- // `<applet>`
26970
- profile: null,
26971
- // `<head>`
26972
- prompt: null,
26973
- // `<isindex>`
26974
- rev: null,
26975
- // `<link>`
26976
- rightMargin: number,
26977
- // `<body>`
26978
- rules: null,
26979
- // `<table>`
26980
- scheme: null,
26981
- // `<meta>`
26982
- scrolling: booleanish,
26983
- // `<frame>`. Use overflow in the child context
26984
- standby: null,
26985
- // `<object>`
26986
- summary: null,
26987
- // `<table>`
26988
- text: null,
26989
- // `<body>`. Use CSS `color` instead
26990
- topMargin: number,
26991
- // `<body>`
26992
- valueType: null,
26993
- // `<param>`
26994
- version: null,
26995
- // `<html>`. Use a doctype.
26996
- vAlign: null,
26997
- // Several. Use CSS `vertical-align` instead
26998
- vLink: null,
26999
- // `<body>`. Use CSS `a:visited {color}` instead
27000
- vSpace: number,
27001
- // `<img>` and `<object>`
27002
- // Non-standard Properties.
27003
- allowTransparency: null,
27004
- autoCorrect: null,
27005
- autoSave: null,
27006
- disablePictureInPicture: boolean,
27007
- disableRemotePlayback: boolean,
27008
- prefix: null,
27009
- property: null,
27010
- results: number,
27011
- security: null,
27012
- unselectable: null
27013
- }
27014
- });
27015
- const svg$1 = create({
27016
- space: "svg",
27017
- attributes: {
27018
- accentHeight: "accent-height",
27019
- alignmentBaseline: "alignment-baseline",
27020
- arabicForm: "arabic-form",
27021
- baselineShift: "baseline-shift",
27022
- capHeight: "cap-height",
27023
- className: "class",
27024
- clipPath: "clip-path",
27025
- clipRule: "clip-rule",
27026
- colorInterpolation: "color-interpolation",
27027
- colorInterpolationFilters: "color-interpolation-filters",
27028
- colorProfile: "color-profile",
27029
- colorRendering: "color-rendering",
27030
- crossOrigin: "crossorigin",
27031
- dataType: "datatype",
27032
- dominantBaseline: "dominant-baseline",
27033
- enableBackground: "enable-background",
27034
- fillOpacity: "fill-opacity",
27035
- fillRule: "fill-rule",
27036
- floodColor: "flood-color",
27037
- floodOpacity: "flood-opacity",
27038
- fontFamily: "font-family",
27039
- fontSize: "font-size",
27040
- fontSizeAdjust: "font-size-adjust",
27041
- fontStretch: "font-stretch",
27042
- fontStyle: "font-style",
27043
- fontVariant: "font-variant",
27044
- fontWeight: "font-weight",
27045
- glyphName: "glyph-name",
27046
- glyphOrientationHorizontal: "glyph-orientation-horizontal",
27047
- glyphOrientationVertical: "glyph-orientation-vertical",
27048
- hrefLang: "hreflang",
27049
- horizAdvX: "horiz-adv-x",
27050
- horizOriginX: "horiz-origin-x",
27051
- horizOriginY: "horiz-origin-y",
27052
- imageRendering: "image-rendering",
27053
- letterSpacing: "letter-spacing",
27054
- lightingColor: "lighting-color",
27055
- markerEnd: "marker-end",
27056
- markerMid: "marker-mid",
27057
- markerStart: "marker-start",
27058
- navDown: "nav-down",
27059
- navDownLeft: "nav-down-left",
27060
- navDownRight: "nav-down-right",
27061
- navLeft: "nav-left",
27062
- navNext: "nav-next",
27063
- navPrev: "nav-prev",
27064
- navRight: "nav-right",
27065
- navUp: "nav-up",
27066
- navUpLeft: "nav-up-left",
27067
- navUpRight: "nav-up-right",
27068
- onAbort: "onabort",
27069
- onActivate: "onactivate",
27070
- onAfterPrint: "onafterprint",
27071
- onBeforePrint: "onbeforeprint",
27072
- onBegin: "onbegin",
27073
- onCancel: "oncancel",
27074
- onCanPlay: "oncanplay",
27075
- onCanPlayThrough: "oncanplaythrough",
27076
- onChange: "onchange",
27077
- onClick: "onclick",
27078
- onClose: "onclose",
27079
- onCopy: "oncopy",
27080
- onCueChange: "oncuechange",
27081
- onCut: "oncut",
27082
- onDblClick: "ondblclick",
27083
- onDrag: "ondrag",
27084
- onDragEnd: "ondragend",
27085
- onDragEnter: "ondragenter",
27086
- onDragExit: "ondragexit",
27087
- onDragLeave: "ondragleave",
27088
- onDragOver: "ondragover",
27089
- onDragStart: "ondragstart",
27090
- onDrop: "ondrop",
27091
- onDurationChange: "ondurationchange",
27092
- onEmptied: "onemptied",
27093
- onEnd: "onend",
27094
- onEnded: "onended",
27095
- onError: "onerror",
27096
- onFocus: "onfocus",
27097
- onFocusIn: "onfocusin",
27098
- onFocusOut: "onfocusout",
27099
- onHashChange: "onhashchange",
27100
- onInput: "oninput",
27101
- onInvalid: "oninvalid",
27102
- onKeyDown: "onkeydown",
27103
- onKeyPress: "onkeypress",
27104
- onKeyUp: "onkeyup",
27105
- onLoad: "onload",
27106
- onLoadedData: "onloadeddata",
27107
- onLoadedMetadata: "onloadedmetadata",
27108
- onLoadStart: "onloadstart",
27109
- onMessage: "onmessage",
27110
- onMouseDown: "onmousedown",
27111
- onMouseEnter: "onmouseenter",
27112
- onMouseLeave: "onmouseleave",
27113
- onMouseMove: "onmousemove",
27114
- onMouseOut: "onmouseout",
27115
- onMouseOver: "onmouseover",
27116
- onMouseUp: "onmouseup",
27117
- onMouseWheel: "onmousewheel",
27118
- onOffline: "onoffline",
27119
- onOnline: "ononline",
27120
- onPageHide: "onpagehide",
27121
- onPageShow: "onpageshow",
27122
- onPaste: "onpaste",
27123
- onPause: "onpause",
27124
- onPlay: "onplay",
27125
- onPlaying: "onplaying",
27126
- onPopState: "onpopstate",
27127
- onProgress: "onprogress",
27128
- onRateChange: "onratechange",
27129
- onRepeat: "onrepeat",
27130
- onReset: "onreset",
27131
- onResize: "onresize",
27132
- onScroll: "onscroll",
27133
- onSeeked: "onseeked",
27134
- onSeeking: "onseeking",
27135
- onSelect: "onselect",
27136
- onShow: "onshow",
27137
- onStalled: "onstalled",
27138
- onStorage: "onstorage",
27139
- onSubmit: "onsubmit",
27140
- onSuspend: "onsuspend",
27141
- onTimeUpdate: "ontimeupdate",
27142
- onToggle: "ontoggle",
27143
- onUnload: "onunload",
27144
- onVolumeChange: "onvolumechange",
27145
- onWaiting: "onwaiting",
27146
- onZoom: "onzoom",
27147
- overlinePosition: "overline-position",
27148
- overlineThickness: "overline-thickness",
27149
- paintOrder: "paint-order",
27150
- panose1: "panose-1",
27151
- pointerEvents: "pointer-events",
27152
- referrerPolicy: "referrerpolicy",
27153
- renderingIntent: "rendering-intent",
27154
- shapeRendering: "shape-rendering",
27155
- stopColor: "stop-color",
27156
- stopOpacity: "stop-opacity",
27157
- strikethroughPosition: "strikethrough-position",
27158
- strikethroughThickness: "strikethrough-thickness",
27159
- strokeDashArray: "stroke-dasharray",
27160
- strokeDashOffset: "stroke-dashoffset",
27161
- strokeLineCap: "stroke-linecap",
27162
- strokeLineJoin: "stroke-linejoin",
27163
- strokeMiterLimit: "stroke-miterlimit",
27164
- strokeOpacity: "stroke-opacity",
27165
- strokeWidth: "stroke-width",
27166
- tabIndex: "tabindex",
27167
- textAnchor: "text-anchor",
27168
- textDecoration: "text-decoration",
27169
- textRendering: "text-rendering",
27170
- transformOrigin: "transform-origin",
27171
- typeOf: "typeof",
27172
- underlinePosition: "underline-position",
27173
- underlineThickness: "underline-thickness",
27174
- unicodeBidi: "unicode-bidi",
27175
- unicodeRange: "unicode-range",
27176
- unitsPerEm: "units-per-em",
27177
- vAlphabetic: "v-alphabetic",
27178
- vHanging: "v-hanging",
27179
- vIdeographic: "v-ideographic",
27180
- vMathematical: "v-mathematical",
27181
- vectorEffect: "vector-effect",
27182
- vertAdvY: "vert-adv-y",
27183
- vertOriginX: "vert-origin-x",
27184
- vertOriginY: "vert-origin-y",
27185
- wordSpacing: "word-spacing",
27186
- writingMode: "writing-mode",
27187
- xHeight: "x-height",
27188
- // These were camelcased in Tiny. Now lowercased in SVG 2
27189
- playbackOrder: "playbackorder",
27190
- timelineBegin: "timelinebegin"
27191
- },
27192
- transform: caseSensitiveTransform,
27193
- properties: {
27194
- about: commaOrSpaceSeparated,
27195
- accentHeight: number,
27196
- accumulate: null,
27197
- additive: null,
27198
- alignmentBaseline: null,
27199
- alphabetic: number,
27200
- amplitude: number,
27201
- arabicForm: null,
27202
- ascent: number,
27203
- attributeName: null,
27204
- attributeType: null,
27205
- azimuth: number,
27206
- bandwidth: null,
27207
- baselineShift: null,
27208
- baseFrequency: null,
27209
- baseProfile: null,
27210
- bbox: null,
27211
- begin: null,
27212
- bias: number,
27213
- by: null,
27214
- calcMode: null,
27215
- capHeight: number,
27216
- className: spaceSeparated,
27217
- clip: null,
27218
- clipPath: null,
27219
- clipPathUnits: null,
27220
- clipRule: null,
27221
- color: null,
27222
- colorInterpolation: null,
27223
- colorInterpolationFilters: null,
27224
- colorProfile: null,
27225
- colorRendering: null,
27226
- content: null,
27227
- contentScriptType: null,
27228
- contentStyleType: null,
27229
- crossOrigin: null,
27230
- cursor: null,
27231
- cx: null,
27232
- cy: null,
27233
- d: null,
27234
- dataType: null,
27235
- defaultAction: null,
27236
- descent: number,
27237
- diffuseConstant: number,
27238
- direction: null,
27239
- display: null,
27240
- dur: null,
27241
- divisor: number,
27242
- dominantBaseline: null,
27243
- download: boolean,
27244
- dx: null,
27245
- dy: null,
27246
- edgeMode: null,
27247
- editable: null,
27248
- elevation: number,
27249
- enableBackground: null,
27250
- end: null,
27251
- event: null,
27252
- exponent: number,
27253
- externalResourcesRequired: null,
27254
- fill: null,
27255
- fillOpacity: number,
27256
- fillRule: null,
27257
- filter: null,
27258
- filterRes: null,
27259
- filterUnits: null,
27260
- floodColor: null,
27261
- floodOpacity: null,
27262
- focusable: null,
27263
- focusHighlight: null,
27264
- fontFamily: null,
27265
- fontSize: null,
27266
- fontSizeAdjust: null,
27267
- fontStretch: null,
27268
- fontStyle: null,
27269
- fontVariant: null,
27270
- fontWeight: null,
27271
- format: null,
27272
- fr: null,
27273
- from: null,
27274
- fx: null,
27275
- fy: null,
27276
- g1: commaSeparated,
27277
- g2: commaSeparated,
27278
- glyphName: commaSeparated,
27279
- glyphOrientationHorizontal: null,
27280
- glyphOrientationVertical: null,
27281
- glyphRef: null,
27282
- gradientTransform: null,
27283
- gradientUnits: null,
27284
- handler: null,
27285
- hanging: number,
27286
- hatchContentUnits: null,
27287
- hatchUnits: null,
27288
- height: null,
27289
- href: null,
27290
- hrefLang: null,
27291
- horizAdvX: number,
27292
- horizOriginX: number,
27293
- horizOriginY: number,
27294
- id: null,
27295
- ideographic: number,
27296
- imageRendering: null,
27297
- initialVisibility: null,
27298
- in: null,
27299
- in2: null,
27300
- intercept: number,
27301
- k: number,
27302
- k1: number,
27303
- k2: number,
27304
- k3: number,
27305
- k4: number,
27306
- kernelMatrix: commaOrSpaceSeparated,
27307
- kernelUnitLength: null,
27308
- keyPoints: null,
27309
- // SEMI_COLON_SEPARATED
27310
- keySplines: null,
27311
- // SEMI_COLON_SEPARATED
27312
- keyTimes: null,
27313
- // SEMI_COLON_SEPARATED
27314
- kerning: null,
27315
- lang: null,
27316
- lengthAdjust: null,
27317
- letterSpacing: null,
27318
- lightingColor: null,
27319
- limitingConeAngle: number,
27320
- local: null,
27321
- markerEnd: null,
27322
- markerMid: null,
27323
- markerStart: null,
27324
- markerHeight: null,
27325
- markerUnits: null,
27326
- markerWidth: null,
27327
- mask: null,
27328
- maskContentUnits: null,
27329
- maskUnits: null,
27330
- mathematical: null,
27331
- max: null,
27332
- media: null,
27333
- mediaCharacterEncoding: null,
27334
- mediaContentEncodings: null,
27335
- mediaSize: number,
27336
- mediaTime: null,
27337
- method: null,
27338
- min: null,
27339
- mode: null,
27340
- name: null,
27341
- navDown: null,
27342
- navDownLeft: null,
27343
- navDownRight: null,
27344
- navLeft: null,
27345
- navNext: null,
27346
- navPrev: null,
27347
- navRight: null,
27348
- navUp: null,
27349
- navUpLeft: null,
27350
- navUpRight: null,
27351
- numOctaves: null,
27352
- observer: null,
27353
- offset: null,
27354
- onAbort: null,
27355
- onActivate: null,
27356
- onAfterPrint: null,
27357
- onBeforePrint: null,
27358
- onBegin: null,
27359
- onCancel: null,
27360
- onCanPlay: null,
27361
- onCanPlayThrough: null,
27362
- onChange: null,
27363
- onClick: null,
27364
- onClose: null,
27365
- onCopy: null,
27366
- onCueChange: null,
27367
- onCut: null,
27368
- onDblClick: null,
27369
- onDrag: null,
27370
- onDragEnd: null,
27371
- onDragEnter: null,
27372
- onDragExit: null,
27373
- onDragLeave: null,
27374
- onDragOver: null,
27375
- onDragStart: null,
27376
- onDrop: null,
27377
- onDurationChange: null,
27378
- onEmptied: null,
27379
- onEnd: null,
27380
- onEnded: null,
27381
- onError: null,
27382
- onFocus: null,
27383
- onFocusIn: null,
27384
- onFocusOut: null,
27385
- onHashChange: null,
27386
- onInput: null,
27387
- onInvalid: null,
27388
- onKeyDown: null,
27389
- onKeyPress: null,
27390
- onKeyUp: null,
27391
- onLoad: null,
27392
- onLoadedData: null,
27393
- onLoadedMetadata: null,
27394
- onLoadStart: null,
27395
- onMessage: null,
27396
- onMouseDown: null,
27397
- onMouseEnter: null,
27398
- onMouseLeave: null,
27399
- onMouseMove: null,
27400
- onMouseOut: null,
27401
- onMouseOver: null,
27402
- onMouseUp: null,
27403
- onMouseWheel: null,
27404
- onOffline: null,
27405
- onOnline: null,
27406
- onPageHide: null,
27407
- onPageShow: null,
27408
- onPaste: null,
27409
- onPause: null,
27410
- onPlay: null,
27411
- onPlaying: null,
27412
- onPopState: null,
27413
- onProgress: null,
27414
- onRateChange: null,
27415
- onRepeat: null,
27416
- onReset: null,
27417
- onResize: null,
27418
- onScroll: null,
27419
- onSeeked: null,
27420
- onSeeking: null,
27421
- onSelect: null,
27422
- onShow: null,
27423
- onStalled: null,
27424
- onStorage: null,
27425
- onSubmit: null,
27426
- onSuspend: null,
27427
- onTimeUpdate: null,
27428
- onToggle: null,
27429
- onUnload: null,
27430
- onVolumeChange: null,
27431
- onWaiting: null,
27432
- onZoom: null,
27433
- opacity: null,
27434
- operator: null,
27435
- order: null,
27436
- orient: null,
27437
- orientation: null,
27438
- origin: null,
27439
- overflow: null,
27440
- overlay: null,
27441
- overlinePosition: number,
27442
- overlineThickness: number,
27443
- paintOrder: null,
27444
- panose1: null,
27445
- path: null,
27446
- pathLength: number,
27447
- patternContentUnits: null,
27448
- patternTransform: null,
27449
- patternUnits: null,
27450
- phase: null,
27451
- ping: spaceSeparated,
27452
- pitch: null,
27453
- playbackOrder: null,
27454
- pointerEvents: null,
27455
- points: null,
27456
- pointsAtX: number,
27457
- pointsAtY: number,
27458
- pointsAtZ: number,
27459
- preserveAlpha: null,
27460
- preserveAspectRatio: null,
27461
- primitiveUnits: null,
27462
- propagate: null,
27463
- property: commaOrSpaceSeparated,
27464
- r: null,
27465
- radius: null,
27466
- referrerPolicy: null,
27467
- refX: null,
27468
- refY: null,
27469
- rel: commaOrSpaceSeparated,
27470
- rev: commaOrSpaceSeparated,
27471
- renderingIntent: null,
27472
- repeatCount: null,
27473
- repeatDur: null,
27474
- requiredExtensions: commaOrSpaceSeparated,
27475
- requiredFeatures: commaOrSpaceSeparated,
27476
- requiredFonts: commaOrSpaceSeparated,
27477
- requiredFormats: commaOrSpaceSeparated,
27478
- resource: null,
27479
- restart: null,
27480
- result: null,
27481
- rotate: null,
27482
- rx: null,
27483
- ry: null,
27484
- scale: null,
27485
- seed: null,
27486
- shapeRendering: null,
27487
- side: null,
27488
- slope: null,
27489
- snapshotTime: null,
27490
- specularConstant: number,
27491
- specularExponent: number,
27492
- spreadMethod: null,
27493
- spacing: null,
27494
- startOffset: null,
27495
- stdDeviation: null,
27496
- stemh: null,
27497
- stemv: null,
27498
- stitchTiles: null,
27499
- stopColor: null,
27500
- stopOpacity: null,
27501
- strikethroughPosition: number,
27502
- strikethroughThickness: number,
27503
- string: null,
27504
- stroke: null,
27505
- strokeDashArray: commaOrSpaceSeparated,
27506
- strokeDashOffset: null,
27507
- strokeLineCap: null,
27508
- strokeLineJoin: null,
27509
- strokeMiterLimit: number,
27510
- strokeOpacity: number,
27511
- strokeWidth: null,
27512
- style: null,
27513
- surfaceScale: number,
27514
- syncBehavior: null,
27515
- syncBehaviorDefault: null,
27516
- syncMaster: null,
27517
- syncTolerance: null,
27518
- syncToleranceDefault: null,
27519
- systemLanguage: commaOrSpaceSeparated,
27520
- tabIndex: number,
27521
- tableValues: null,
27522
- target: null,
27523
- targetX: number,
27524
- targetY: number,
27525
- textAnchor: null,
27526
- textDecoration: null,
27527
- textRendering: null,
27528
- textLength: null,
27529
- timelineBegin: null,
27530
- title: null,
27531
- transformBehavior: null,
27532
- type: null,
27533
- typeOf: commaOrSpaceSeparated,
27534
- to: null,
27535
- transform: null,
27536
- transformOrigin: null,
27537
- u1: null,
27538
- u2: null,
27539
- underlinePosition: number,
27540
- underlineThickness: number,
27541
- unicode: null,
27542
- unicodeBidi: null,
27543
- unicodeRange: null,
27544
- unitsPerEm: number,
27545
- values: null,
27546
- vAlphabetic: number,
27547
- vMathematical: number,
27548
- vectorEffect: null,
27549
- vHanging: number,
27550
- vIdeographic: number,
27551
- version: null,
27552
- vertAdvY: number,
27553
- vertOriginX: number,
27554
- vertOriginY: number,
27555
- viewBox: null,
27556
- viewTarget: null,
27557
- visibility: null,
27558
- width: null,
27559
- widths: null,
27560
- wordSpacing: null,
27561
- writingMode: null,
27562
- x: null,
27563
- x1: null,
27564
- x2: null,
27565
- xChannelSelector: null,
27566
- xHeight: number,
27567
- y: null,
27568
- y1: null,
27569
- y2: null,
27570
- yChannelSelector: null,
27571
- z: null,
27572
- zoomAndPan: null
27573
- }
27574
- });
27575
- const valid = /^data[-\w.:]+$/i;
27576
- const dash = /-[a-z]/g;
27577
- const cap = /[A-Z]/g;
27578
- function find(schema, value) {
27579
- const normal = normalize(value);
27580
- let prop = value;
27581
- let Type = Info2;
27582
- if (normal in schema.normal) {
27583
- return schema.property[schema.normal[normal]];
27584
- }
27585
- if (normal.length > 4 && normal.slice(0, 4) === "data" && valid.test(value)) {
27586
- if (value.charAt(4) === "-") {
27587
- const rest = value.slice(5).replace(dash, camelcase);
27588
- prop = "data" + rest.charAt(0).toUpperCase() + rest.slice(1);
27589
- } else {
27590
- const rest = value.slice(4);
27591
- if (!dash.test(rest)) {
27592
- let dashes = rest.replace(cap, kebab);
27593
- if (dashes.charAt(0) !== "-") {
27594
- dashes = "-" + dashes;
27595
- }
27596
- value = "data" + dashes;
27597
- }
27598
- }
27599
- Type = DefinedInfo2;
27600
- }
27601
- return new Type(prop, value);
27602
- }
27603
- function kebab($0) {
27604
- return "-" + $0.toLowerCase();
27605
- }
27606
- function camelcase($0) {
27607
- return $0.charAt(1).toUpperCase();
27608
- }
27609
- const html$1 = merge([xml, xlink, xmlns, aria, html$2], "html");
27610
- const svg = merge([xml, xlink, xmlns, aria, svg$1], "svg");
27611
- const own$2 = {}.hasOwnProperty;
27612
- function zwitch(key, options) {
27613
- const settings = options || {};
27614
- function one2(value, ...parameters) {
27615
- let fn = one2.invalid;
27616
- const handlers2 = one2.handlers;
27617
- if (value && own$2.call(value, key)) {
27618
- const id = String(value[key]);
27619
- fn = own$2.call(handlers2, id) ? handlers2[id] : one2.unknown;
27620
- }
27621
- if (fn) {
27622
- return fn.call(this, value, ...parameters);
27623
- }
27624
- }
27625
- one2.handlers = settings.handlers || {};
27626
- one2.invalid = settings.invalid;
27627
- one2.unknown = settings.unknown;
27628
- return one2;
27629
- }
27630
- const emptyOptions$2 = {};
27631
- const own$1 = {}.hasOwnProperty;
27632
- const one$1 = zwitch("type", { handlers: { root: root$2, element: element$1, text: text$3, comment: comment$1, doctype: doctype$1 } });
27633
- function toParse5(tree, options) {
27634
- const settings = options || emptyOptions$2;
27635
- const space2 = settings.space;
27636
- return one$1(tree, space2 === "svg" ? svg : html$1);
27637
- }
27638
- function root$2(node2, schema) {
27639
- const result = {
27640
- nodeName: "#document",
27641
- // @ts-expect-error: `parse5` uses enums, which are actually strings.
27642
- mode: (node2.data || {}).quirksMode ? "quirks" : "no-quirks",
27643
- childNodes: []
27644
- };
27645
- result.childNodes = all$2(node2.children, result, schema);
27646
- patch(node2, result);
27647
- return result;
27648
- }
27649
- function fragment(node2, schema) {
27650
- const result = { nodeName: "#document-fragment", childNodes: [] };
27651
- result.childNodes = all$2(node2.children, result, schema);
27652
- patch(node2, result);
27653
- return result;
27654
- }
27655
- function doctype$1(node2) {
27656
- const result = {
27657
- nodeName: "#documentType",
27658
- name: "html",
27659
- publicId: "",
27660
- systemId: "",
27661
- parentNode: null
27662
- };
27663
- patch(node2, result);
27664
- return result;
27665
- }
27666
- function text$3(node2) {
27667
- const result = {
27668
- nodeName: "#text",
27669
- value: node2.value,
27670
- parentNode: null
27671
- };
27672
- patch(node2, result);
27673
- return result;
27674
- }
27675
- function comment$1(node2) {
27676
- const result = {
27677
- nodeName: "#comment",
27678
- data: node2.value,
27679
- parentNode: null
27680
- };
27681
- patch(node2, result);
27682
- return result;
27683
- }
27684
- function element$1(node2, schema) {
27685
- const parentSchema = schema;
27686
- let currentSchema = parentSchema;
27687
- if (node2.type === "element" && node2.tagName.toLowerCase() === "svg" && parentSchema.space === "html") {
27688
- currentSchema = svg;
27689
- }
27690
- const attrs = [];
27691
- let prop;
27692
- if (node2.properties) {
27693
- for (prop in node2.properties) {
27694
- if (prop !== "children" && own$1.call(node2.properties, prop)) {
27695
- const result2 = createProperty(
27696
- currentSchema,
27697
- prop,
27698
- node2.properties[prop]
27699
- );
27700
- if (result2) {
27701
- attrs.push(result2);
27702
- }
27703
- }
27704
- }
27705
- }
27706
- const space2 = currentSchema.space;
27707
- const result = {
27708
- nodeName: node2.tagName,
27709
- tagName: node2.tagName,
27710
- attrs,
27711
- // @ts-expect-error: `parse5` types are wrong.
27712
- namespaceURI: webNamespaces[space2],
27713
- childNodes: [],
27714
- parentNode: null
27715
- };
27716
- result.childNodes = all$2(node2.children, result, currentSchema);
27717
- patch(node2, result);
27718
- if (node2.tagName === "template" && node2.content) {
27719
- result.content = fragment(node2.content, currentSchema);
27720
- }
27721
- return result;
27722
- }
27723
- function createProperty(schema, prop, value) {
27724
- const info = find(schema, prop);
27725
- if (value === false || value === null || value === void 0 || typeof value === "number" && Number.isNaN(value) || !value && info.boolean) {
27726
- return;
27727
- }
27728
- if (Array.isArray(value)) {
27729
- value = info.commaSeparated ? stringify$1(value) : stringify(value);
27730
- }
27731
- const attribute = {
27732
- name: info.attribute,
27733
- value: value === true ? "" : String(value)
27734
- };
27735
- if (info.space && info.space !== "html" && info.space !== "svg") {
27736
- const index2 = attribute.name.indexOf(":");
27737
- if (index2 < 0) {
27738
- attribute.prefix = "";
27739
- } else {
27740
- attribute.name = attribute.name.slice(index2 + 1);
27741
- attribute.prefix = info.attribute.slice(0, index2);
27742
- }
27743
- attribute.namespace = webNamespaces[info.space];
27744
- }
27745
- return attribute;
27746
- }
27747
- function all$2(children2, parentNode, schema) {
27748
- let index2 = -1;
27749
- const results = [];
27750
- if (children2) {
27751
- while (++index2 < children2.length) {
27752
- const child = one$1(children2[index2], schema);
27753
- child.parentNode = parentNode;
27754
- results.push(child);
27755
- }
27756
- }
27757
- return results;
27758
- }
27759
- function patch(from, to) {
27760
- const position2 = from.position;
27761
- if (position2 && position2.start && position2.end) {
27762
- ok$1(typeof position2.start.offset === "number");
27763
- ok$1(typeof position2.end.offset === "number");
27764
- to.sourceCodeLocation = {
27765
- startLine: position2.start.line,
27766
- startCol: position2.start.column,
27767
- startOffset: position2.start.offset,
27768
- endLine: position2.end.line,
27769
- endCol: position2.end.column,
27770
- endOffset: position2.end.offset
27771
- };
27772
- }
26584
+ function patch(from, to) {
26585
+ const position2 = from.position;
26586
+ if (position2 && position2.start && position2.end) {
26587
+ ok$1(typeof position2.start.offset === "number");
26588
+ ok$1(typeof position2.end.offset === "number");
26589
+ to.sourceCodeLocation = {
26590
+ startLine: position2.start.line,
26591
+ startCol: position2.start.column,
26592
+ startOffset: position2.start.offset,
26593
+ endLine: position2.end.line,
26594
+ endCol: position2.end.column,
26595
+ endOffset: position2.end.offset
26596
+ };
26597
+ }
27773
26598
  }
27774
26599
  const htmlVoidElements = [
27775
26600
  "area",
@@ -47723,7 +46548,7 @@ const MarkdownPanel = ({
47723
46548
  filePath: filePathProp,
47724
46549
  width
47725
46550
  }) => {
47726
- var _a, _b, _c, _d, _e2, _f;
46551
+ var _a, _b, _c, _d, _e2;
47727
46552
  const { theme: theme2 } = useTheme();
47728
46553
  const [viewMode, setViewMode] = useState("document");
47729
46554
  const [currentSlide, setCurrentSlide] = useState(0);
@@ -47740,23 +46565,11 @@ const MarkdownPanel = ({
47740
46565
  return;
47741
46566
  }
47742
46567
  const loadContent = async () => {
47743
- var _a2;
47744
46568
  console.log("[MarkdownPanel] Loading file from prop:", filePathProp);
47745
46569
  setPropBasedContent({ path: filePathProp, content: "", loading: true, error: null });
47746
46570
  try {
47747
- const fileSystem = (_a2 = context.adapters) == null ? void 0 : _a2.fileSystem;
47748
- if (fileSystem == null ? void 0 : fileSystem.readFile) {
47749
- const content2 = await fileSystem.readFile(filePathProp);
47750
- setPropBasedContent({ path: filePathProp, content: content2, loading: false, error: null });
47751
- } else {
47752
- const setActiveFile = actions == null ? void 0 : actions.setActiveFile;
47753
- if (typeof setActiveFile === "function") {
47754
- await setActiveFile(filePathProp);
47755
- setPropBasedContent(null);
47756
- } else {
47757
- throw new Error("No file reading capability available");
47758
- }
47759
- }
46571
+ const content2 = await actions.readFile(filePathProp);
46572
+ setPropBasedContent({ path: filePathProp, content: content2, loading: false, error: null });
47760
46573
  } catch (err) {
47761
46574
  console.error("[MarkdownPanel] Failed to load file:", err);
47762
46575
  setPropBasedContent({
@@ -47768,7 +46581,7 @@ const MarkdownPanel = ({
47768
46581
  }
47769
46582
  };
47770
46583
  loadContent();
47771
- }, [filePathProp, (_a = context.adapters) == null ? void 0 : _a.fileSystem, actions]);
46584
+ }, [filePathProp, actions]);
47772
46585
  useEffect(() => {
47773
46586
  const checkMobile = () => {
47774
46587
  setIsMobile(window.innerWidth < 768);
@@ -47805,7 +46618,7 @@ const MarkdownPanel = ({
47805
46618
  });
47806
46619
  return unsubscribe;
47807
46620
  }, [events]);
47808
- const activeFileSlice = context.getSlice("active-file");
46621
+ const { activeFile: activeFileSlice } = context;
47809
46622
  const usePropBasedContent = filePathProp && (propBasedContent == null ? void 0 : propBasedContent.path) === filePathProp;
47810
46623
  const activeFile = usePropBasedContent ? {
47811
46624
  data: {
@@ -47816,8 +46629,8 @@ const MarkdownPanel = ({
47816
46629
  loading: propBasedContent.loading,
47817
46630
  error: propBasedContent.error
47818
46631
  } : activeFileSlice;
47819
- const isMarkdown = ((_b = activeFile == null ? void 0 : activeFile.data) == null ? void 0 : _b.type) === "markdown" || ((_d = (_c = activeFile == null ? void 0 : activeFile.data) == null ? void 0 : _c.path) == null ? void 0 : _d.match(/\.(md|mdx|markdown)$/i));
47820
- const markdownContent = ((_e2 = activeFile == null ? void 0 : activeFile.data) == null ? void 0 : _e2.content) || "";
46632
+ const isMarkdown = ((_a = activeFile == null ? void 0 : activeFile.data) == null ? void 0 : _a.type) === "markdown" || ((_c = (_b = activeFile == null ? void 0 : activeFile.data) == null ? void 0 : _b.path) == null ? void 0 : _c.match(/\.(md|mdx|markdown)$/i));
46633
+ const markdownContent = ((_d = activeFile == null ? void 0 : activeFile.data) == null ? void 0 : _d.content) || "";
47821
46634
  const presentation = useMemo(
47822
46635
  () => parseMarkdownIntoPresentation2(markdownContent),
47823
46636
  [markdownContent]
@@ -47885,7 +46698,7 @@ const MarkdownPanel = ({
47885
46698
  },
47886
46699
  children: /* @__PURE__ */ jsx("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ jsxs("p", { style: { color: theme2.colors.textSecondary }, children: [
47887
46700
  "Loading ",
47888
- ((_f = activeFile.data) == null ? void 0 : _f.path) || "file",
46701
+ ((_e2 = activeFile.data) == null ? void 0 : _e2.path) || "file",
47889
46702
  "..."
47890
46703
  ] }) })
47891
46704
  }
@@ -48248,6 +47061,7 @@ const panels = [
48248
47061
  version: "0.2.0",
48249
47062
  author: "Principal ADE",
48250
47063
  description: "Themed markdown rendering panel with document and slide views",
47064
+ slices: ["active-file"],
48251
47065
  // UTCP-compatible tools this panel exposes
48252
47066
  tools: markdownPanelTools
48253
47067
  },