ember-repl 7.0.1 → 7.0.2

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.
Files changed (33) hide show
  1. package/declarations/services/known-modules.d.ts.map +1 -1
  2. package/dist/{babel-8wMrbxkT.js → babel-DbH-RlNa.js} +62593 -66125
  3. package/dist/babel-DbH-RlNa.js.map +1 -0
  4. package/dist/compile/state.js.map +1 -1
  5. package/dist/{index-C4AyeeIa.js → index-Bm1Y84Cu.js} +2 -2
  6. package/dist/{index-C4AyeeIa.js.map → index-Bm1Y84Cu.js.map} +1 -1
  7. package/dist/{index-CCcIVEUK.js → index-Bo3xsMqx.js} +8 -7
  8. package/dist/index-Bo3xsMqx.js.map +1 -0
  9. package/dist/{index-DejgrVqh.js → index-C-twRw93.js} +16 -1327
  10. package/dist/index-C-twRw93.js.map +1 -0
  11. package/dist/{index-C8S2G0FH.js → index-CGDqu098.js} +111 -139
  12. package/dist/index-CGDqu098.js.map +1 -0
  13. package/dist/index-DIRpUv6Z.js +2 -0
  14. package/dist/index-DIRpUv6Z.js.map +1 -0
  15. package/dist/{index-DBBNT106.js → index-DMSCybEq.js} +7 -11
  16. package/dist/index-DMSCybEq.js.map +1 -0
  17. package/dist/{index-DxolpiGq.js → index-F3Sr0JFE.js} +57 -54
  18. package/dist/index-F3Sr0JFE.js.map +1 -0
  19. package/dist/services/compiler.js +2 -3
  20. package/dist/services/compiler.js.map +1 -1
  21. package/dist/services/known-modules.js +9 -11
  22. package/dist/services/known-modules.js.map +1 -1
  23. package/package.json +39 -39
  24. package/src/services/compiler.ts +1 -1
  25. package/src/services/known-modules.ts +5 -4
  26. package/dist/babel-8wMrbxkT.js.map +0 -1
  27. package/dist/index-C8S2G0FH.js.map +0 -1
  28. package/dist/index-CCcIVEUK.js.map +0 -1
  29. package/dist/index-D8szzCn3.js +0 -2
  30. package/dist/index-D8szzCn3.js.map +0 -1
  31. package/dist/index-DBBNT106.js.map +0 -1
  32. package/dist/index-DejgrVqh.js.map +0 -1
  33. package/dist/index-DxolpiGq.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { p as pointStart, a as pointEnd, s as structuredClone } from './index-DP_Su7Zc.js';
2
- import { f as find$1, p as parse, a as parse$1, n as normalize$1, h as html$2, s as svg$2, z as zwitch, b as stringify, c as stringify$1, d as htmlVoidElements } from './index-Dr5iYoKt.js';
2
+ import { f as find, p as parse, a as parse$1, n as normalize, h as html, s as svg, z as zwitch, b as stringify, c as stringify$1, d as htmlVoidElements } from './index-Dr5iYoKt.js';
3
3
  import { o as ok } from './default-CoqAuVeH.js';
4
- import { v as visit } from './index-CCcIVEUK.js';
4
+ import { v as visit } from './index-Bo3xsMqx.js';
5
5
 
6
6
  /**
7
7
  * @typedef {import('hast').Element} Element
@@ -235,7 +235,7 @@ function isChild(value) {
235
235
  * Nothing.
236
236
  */
237
237
  function addProperty(schema, properties, key, value) {
238
- const info = find$1(schema, key);
238
+ const info = find(schema, key);
239
239
  /** @type {PropertyValue} */
240
240
  let result;
241
241
 
@@ -331,7 +331,7 @@ function parsePrimitive(info, name, value) {
331
331
  if (info.number && value && !Number.isNaN(Number(value))) {
332
332
  return Number(value);
333
333
  }
334
- if ((info.boolean || info.overloadedBoolean) && (value === '' || normalize$1(value) === normalize$1(name))) {
334
+ if ((info.boolean || info.overloadedBoolean) && (value === '' || normalize(value) === normalize(name))) {
335
335
  return true;
336
336
  }
337
337
  }
@@ -390,11 +390,11 @@ const svgCaseSensitiveTagNames = ['altGlyph', 'altGlyphDef', 'altGlyphItem', 'an
390
390
 
391
391
  // Note: this explicit type is needed, otherwise TS creates broken types.
392
392
  /** @type {ReturnType<createH>} */
393
- const h = createH(html$2, 'div');
393
+ const h = createH(html, 'div');
394
394
 
395
395
  // Note: this explicit type is needed, otherwise TS creates broken types.
396
396
  /** @type {ReturnType<createH>} */
397
- const s = createH(svg$2, 'g', svgCaseSensitiveTagNames);
397
+ const s = createH(svg, 'g', svgCaseSensitiveTagNames);
398
398
 
399
399
  /**
400
400
  * @import {VFile, Value} from 'vfile'
@@ -503,7 +503,7 @@ const webNamespaces = {
503
503
  * @import {Options} from 'hast-util-from-parse5'
504
504
  */
505
505
 
506
- const own$2 = {}.hasOwnProperty;
506
+ const own$1 = {}.hasOwnProperty;
507
507
  /** @type {unknown} */
508
508
  // type-coverage:ignore-next-line
509
509
  const proto = Object.prototype;
@@ -523,7 +523,7 @@ function fromParse5(tree, options) {
523
523
  return one$1({
524
524
  file: settings.file || undefined,
525
525
  location: false,
526
- schema: settings.space === 'svg' ? svg$2 : html$2,
526
+ schema: settings.space === 'svg' ? svg : html,
527
527
  verbose: settings.verbose || false
528
528
  }, tree);
529
529
  }
@@ -643,7 +643,7 @@ function all$2(state, nodes) {
643
643
  */
644
644
  function element$2(state, node) {
645
645
  const schema = state.schema;
646
- state.schema = node.namespaceURI === webNamespaces.svg ? svg$2 : html$2;
646
+ state.schema = node.namespaceURI === webNamespaces.svg ? svg : html;
647
647
 
648
648
  // Props.
649
649
  let index = -1;
@@ -652,7 +652,7 @@ function element$2(state, node) {
652
652
  while (++index < node.attrs.length) {
653
653
  const attribute = node.attrs[index];
654
654
  const name = (attribute.prefix ? attribute.prefix + ':' : '') + attribute.name;
655
- if (!own$2.call(proto, name)) {
655
+ if (!own$1.call(proto, name)) {
656
656
  properties[name] = attribute.value;
657
657
  }
658
658
  }
@@ -734,8 +734,8 @@ function createLocation(state, node, location) {
734
734
  let key;
735
735
  if (location.attrs) {
736
736
  for (key in location.attrs) {
737
- if (own$2.call(location.attrs, key)) {
738
- properties[find$1(state.schema, key).property] = position(location.attrs[key]);
737
+ if (own$1.call(location.attrs, key)) {
738
+ properties[find(state.schema, key).property] = position(location.attrs[key]);
739
739
  }
740
740
  }
741
741
  }
@@ -797,1320 +797,9 @@ function point(point) {
797
797
  }
798
798
 
799
799
  /**
800
- * @typedef {import('./info.js').Info} Info
801
- * @typedef {Record<string, Info>} Properties
802
- * @typedef {Record<string, string>} Normal
803
- */
804
-
805
- class Schema {
806
- /**
807
- * @constructor
808
- * @param {Properties} property
809
- * @param {Normal} normal
810
- * @param {string} [space]
811
- */
812
- constructor(property, normal, space) {
813
- this.property = property;
814
- this.normal = normal;
815
- if (space) {
816
- this.space = space;
817
- }
818
- }
819
- }
820
-
821
- /** @type {Properties} */
822
- Schema.prototype.property = {};
823
- /** @type {Normal} */
824
- Schema.prototype.normal = {};
825
- /** @type {string|null} */
826
- Schema.prototype.space = null;
827
-
828
- /**
829
- * @typedef {import('./schema.js').Properties} Properties
830
- * @typedef {import('./schema.js').Normal} Normal
831
- */
832
-
833
-
834
- /**
835
- * @param {Schema[]} definitions
836
- * @param {string} [space]
837
- * @returns {Schema}
838
- */
839
- function merge(definitions, space) {
840
- /** @type {Properties} */
841
- const property = {};
842
- /** @type {Normal} */
843
- const normal = {};
844
- let index = -1;
845
- while (++index < definitions.length) {
846
- Object.assign(property, definitions[index].property);
847
- Object.assign(normal, definitions[index].normal);
848
- }
849
- return new Schema(property, normal, space);
850
- }
851
-
852
- /**
853
- * @param {string} value
854
- * @returns {string}
855
- */
856
- function normalize(value) {
857
- return value.toLowerCase();
858
- }
859
-
860
- class Info {
861
- /**
862
- * @constructor
863
- * @param {string} property
864
- * @param {string} attribute
865
- */
866
- constructor(property, attribute) {
867
- /** @type {string} */
868
- this.property = property;
869
- /** @type {string} */
870
- this.attribute = attribute;
871
- }
872
- }
873
-
874
- /** @type {string|null} */
875
- Info.prototype.space = null;
876
- Info.prototype.boolean = false;
877
- Info.prototype.booleanish = false;
878
- Info.prototype.overloadedBoolean = false;
879
- Info.prototype.number = false;
880
- Info.prototype.commaSeparated = false;
881
- Info.prototype.spaceSeparated = false;
882
- Info.prototype.commaOrSpaceSeparated = false;
883
- Info.prototype.mustUseProperty = false;
884
- Info.prototype.defined = false;
885
-
886
- let powers = 0;
887
- const boolean = increment();
888
- const booleanish = increment();
889
- const overloadedBoolean = increment();
890
- const number = increment();
891
- const spaceSeparated = increment();
892
- const commaSeparated = increment();
893
- const commaOrSpaceSeparated = increment();
894
- function increment() {
895
- return 2 ** ++powers;
896
- }
897
-
898
- var types = /*#__PURE__*/Object.freeze({
899
- __proto__: null,
900
- boolean: boolean,
901
- booleanish: booleanish,
902
- commaOrSpaceSeparated: commaOrSpaceSeparated,
903
- commaSeparated: commaSeparated,
904
- number: number,
905
- overloadedBoolean: overloadedBoolean,
906
- spaceSeparated: spaceSeparated
907
- });
908
-
909
- /** @type {Array<keyof types>} */
910
- // @ts-expect-error: hush.
911
- const checks = Object.keys(types);
912
- class DefinedInfo extends Info {
913
- /**
914
- * @constructor
915
- * @param {string} property
916
- * @param {string} attribute
917
- * @param {number|null} [mask]
918
- * @param {string} [space]
919
- */
920
- constructor(property, attribute, mask, space) {
921
- let index = -1;
922
- super(property, attribute);
923
- mark(this, 'space', space);
924
- if (typeof mask === 'number') {
925
- while (++index < checks.length) {
926
- const check = checks[index];
927
- mark(this, checks[index], (mask & types[check]) === types[check]);
928
- }
929
- }
930
- }
931
- }
932
- DefinedInfo.prototype.defined = true;
933
-
934
- /**
935
- * @param {DefinedInfo} values
936
- * @param {string} key
937
- * @param {unknown} value
938
- */
939
- function mark(values, key, value) {
940
- if (value) {
941
- // @ts-expect-error: assume `value` matches the expected value of `key`.
942
- values[key] = value;
943
- }
944
- }
945
-
946
- /**
947
- * @typedef {import('./schema.js').Properties} Properties
948
- * @typedef {import('./schema.js').Normal} Normal
949
- *
950
- * @typedef {Record<string, string>} Attributes
951
- *
952
- * @typedef {Object} Definition
953
- * @property {Record<string, number|null>} properties
954
- * @property {(attributes: Attributes, property: string) => string} transform
955
- * @property {string} [space]
956
- * @property {Attributes} [attributes]
957
- * @property {Array<string>} [mustUseProperty]
958
- */
959
-
960
- const own$1 = {}.hasOwnProperty;
961
-
962
- /**
963
- * @param {Definition} definition
964
- * @returns {Schema}
965
- */
966
- function create(definition) {
967
- /** @type {Properties} */
968
- const property = {};
969
- /** @type {Normal} */
970
- const normal = {};
971
- /** @type {string} */
972
- let prop;
973
- for (prop in definition.properties) {
974
- if (own$1.call(definition.properties, prop)) {
975
- const value = definition.properties[prop];
976
- const info = new DefinedInfo(prop, definition.transform(definition.attributes || {}, prop), value, definition.space);
977
- if (definition.mustUseProperty && definition.mustUseProperty.includes(prop)) {
978
- info.mustUseProperty = true;
979
- }
980
- property[prop] = info;
981
- normal[normalize(prop)] = prop;
982
- normal[normalize(info.attribute)] = prop;
983
- }
984
- }
985
- return new Schema(property, normal, definition.space);
986
- }
987
-
988
- const xlink = create({
989
- space: 'xlink',
990
- transform(_, prop) {
991
- return 'xlink:' + prop.slice(5).toLowerCase();
992
- },
993
- properties: {
994
- xLinkActuate: null,
995
- xLinkArcRole: null,
996
- xLinkHref: null,
997
- xLinkRole: null,
998
- xLinkShow: null,
999
- xLinkTitle: null,
1000
- xLinkType: null
1001
- }
1002
- });
1003
-
1004
- const xml = create({
1005
- space: 'xml',
1006
- transform(_, prop) {
1007
- return 'xml:' + prop.slice(3).toLowerCase();
1008
- },
1009
- properties: {
1010
- xmlLang: null,
1011
- xmlBase: null,
1012
- xmlSpace: null
1013
- }
1014
- });
1015
-
1016
- /**
1017
- * @param {Record<string, string>} attributes
1018
- * @param {string} attribute
1019
- * @returns {string}
1020
- */
1021
- function caseSensitiveTransform(attributes, attribute) {
1022
- return attribute in attributes ? attributes[attribute] : attribute;
1023
- }
1024
-
1025
- /**
1026
- * @param {Record<string, string>} attributes
1027
- * @param {string} property
1028
- * @returns {string}
1029
- */
1030
- function caseInsensitiveTransform(attributes, property) {
1031
- return caseSensitiveTransform(attributes, property.toLowerCase());
1032
- }
1033
-
1034
- const xmlns = create({
1035
- space: 'xmlns',
1036
- attributes: {
1037
- xmlnsxlink: 'xmlns:xlink'
1038
- },
1039
- transform: caseInsensitiveTransform,
1040
- properties: {
1041
- xmlns: null,
1042
- xmlnsXLink: null
1043
- }
1044
- });
1045
-
1046
- const aria = create({
1047
- transform(_, prop) {
1048
- return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase();
1049
- },
1050
- properties: {
1051
- ariaActiveDescendant: null,
1052
- ariaAtomic: booleanish,
1053
- ariaAutoComplete: null,
1054
- ariaBusy: booleanish,
1055
- ariaChecked: booleanish,
1056
- ariaColCount: number,
1057
- ariaColIndex: number,
1058
- ariaColSpan: number,
1059
- ariaControls: spaceSeparated,
1060
- ariaCurrent: null,
1061
- ariaDescribedBy: spaceSeparated,
1062
- ariaDetails: null,
1063
- ariaDisabled: booleanish,
1064
- ariaDropEffect: spaceSeparated,
1065
- ariaErrorMessage: null,
1066
- ariaExpanded: booleanish,
1067
- ariaFlowTo: spaceSeparated,
1068
- ariaGrabbed: booleanish,
1069
- ariaHasPopup: null,
1070
- ariaHidden: booleanish,
1071
- ariaInvalid: null,
1072
- ariaKeyShortcuts: null,
1073
- ariaLabel: null,
1074
- ariaLabelledBy: spaceSeparated,
1075
- ariaLevel: number,
1076
- ariaLive: null,
1077
- ariaModal: booleanish,
1078
- ariaMultiLine: booleanish,
1079
- ariaMultiSelectable: booleanish,
1080
- ariaOrientation: null,
1081
- ariaOwns: spaceSeparated,
1082
- ariaPlaceholder: null,
1083
- ariaPosInSet: number,
1084
- ariaPressed: booleanish,
1085
- ariaReadOnly: booleanish,
1086
- ariaRelevant: null,
1087
- ariaRequired: booleanish,
1088
- ariaRoleDescription: spaceSeparated,
1089
- ariaRowCount: number,
1090
- ariaRowIndex: number,
1091
- ariaRowSpan: number,
1092
- ariaSelected: booleanish,
1093
- ariaSetSize: number,
1094
- ariaSort: null,
1095
- ariaValueMax: number,
1096
- ariaValueMin: number,
1097
- ariaValueNow: number,
1098
- ariaValueText: null,
1099
- role: null
1100
- }
1101
- });
1102
-
1103
- const html$1 = create({
1104
- space: 'html',
1105
- attributes: {
1106
- acceptcharset: 'accept-charset',
1107
- classname: 'class',
1108
- htmlfor: 'for',
1109
- httpequiv: 'http-equiv'
1110
- },
1111
- transform: caseInsensitiveTransform,
1112
- mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],
1113
- properties: {
1114
- // Standard Properties.
1115
- abbr: null,
1116
- accept: commaSeparated,
1117
- acceptCharset: spaceSeparated,
1118
- accessKey: spaceSeparated,
1119
- action: null,
1120
- allow: null,
1121
- allowFullScreen: boolean,
1122
- allowPaymentRequest: boolean,
1123
- allowUserMedia: boolean,
1124
- alt: null,
1125
- as: null,
1126
- async: boolean,
1127
- autoCapitalize: null,
1128
- autoComplete: spaceSeparated,
1129
- autoFocus: boolean,
1130
- autoPlay: boolean,
1131
- blocking: spaceSeparated,
1132
- capture: null,
1133
- charSet: null,
1134
- checked: boolean,
1135
- cite: null,
1136
- className: spaceSeparated,
1137
- cols: number,
1138
- colSpan: null,
1139
- content: null,
1140
- contentEditable: booleanish,
1141
- controls: boolean,
1142
- controlsList: spaceSeparated,
1143
- coords: number | commaSeparated,
1144
- crossOrigin: null,
1145
- data: null,
1146
- dateTime: null,
1147
- decoding: null,
1148
- default: boolean,
1149
- defer: boolean,
1150
- dir: null,
1151
- dirName: null,
1152
- disabled: boolean,
1153
- download: overloadedBoolean,
1154
- draggable: booleanish,
1155
- encType: null,
1156
- enterKeyHint: null,
1157
- fetchPriority: null,
1158
- form: null,
1159
- formAction: null,
1160
- formEncType: null,
1161
- formMethod: null,
1162
- formNoValidate: boolean,
1163
- formTarget: null,
1164
- headers: spaceSeparated,
1165
- height: number,
1166
- hidden: boolean,
1167
- high: number,
1168
- href: null,
1169
- hrefLang: null,
1170
- htmlFor: spaceSeparated,
1171
- httpEquiv: spaceSeparated,
1172
- id: null,
1173
- imageSizes: null,
1174
- imageSrcSet: null,
1175
- inert: boolean,
1176
- inputMode: null,
1177
- integrity: null,
1178
- is: null,
1179
- isMap: boolean,
1180
- itemId: null,
1181
- itemProp: spaceSeparated,
1182
- itemRef: spaceSeparated,
1183
- itemScope: boolean,
1184
- itemType: spaceSeparated,
1185
- kind: null,
1186
- label: null,
1187
- lang: null,
1188
- language: null,
1189
- list: null,
1190
- loading: null,
1191
- loop: boolean,
1192
- low: number,
1193
- manifest: null,
1194
- max: null,
1195
- maxLength: number,
1196
- media: null,
1197
- method: null,
1198
- min: null,
1199
- minLength: number,
1200
- multiple: boolean,
1201
- muted: boolean,
1202
- name: null,
1203
- nonce: null,
1204
- noModule: boolean,
1205
- noValidate: boolean,
1206
- onAbort: null,
1207
- onAfterPrint: null,
1208
- onAuxClick: null,
1209
- onBeforeMatch: null,
1210
- onBeforePrint: null,
1211
- onBeforeToggle: null,
1212
- onBeforeUnload: null,
1213
- onBlur: null,
1214
- onCancel: null,
1215
- onCanPlay: null,
1216
- onCanPlayThrough: null,
1217
- onChange: null,
1218
- onClick: null,
1219
- onClose: null,
1220
- onContextLost: null,
1221
- onContextMenu: null,
1222
- onContextRestored: null,
1223
- onCopy: null,
1224
- onCueChange: null,
1225
- onCut: null,
1226
- onDblClick: null,
1227
- onDrag: null,
1228
- onDragEnd: null,
1229
- onDragEnter: null,
1230
- onDragExit: null,
1231
- onDragLeave: null,
1232
- onDragOver: null,
1233
- onDragStart: null,
1234
- onDrop: null,
1235
- onDurationChange: null,
1236
- onEmptied: null,
1237
- onEnded: null,
1238
- onError: null,
1239
- onFocus: null,
1240
- onFormData: null,
1241
- onHashChange: null,
1242
- onInput: null,
1243
- onInvalid: null,
1244
- onKeyDown: null,
1245
- onKeyPress: null,
1246
- onKeyUp: null,
1247
- onLanguageChange: null,
1248
- onLoad: null,
1249
- onLoadedData: null,
1250
- onLoadedMetadata: null,
1251
- onLoadEnd: null,
1252
- onLoadStart: null,
1253
- onMessage: null,
1254
- onMessageError: null,
1255
- onMouseDown: null,
1256
- onMouseEnter: null,
1257
- onMouseLeave: null,
1258
- onMouseMove: null,
1259
- onMouseOut: null,
1260
- onMouseOver: null,
1261
- onMouseUp: null,
1262
- onOffline: null,
1263
- onOnline: null,
1264
- onPageHide: null,
1265
- onPageShow: null,
1266
- onPaste: null,
1267
- onPause: null,
1268
- onPlay: null,
1269
- onPlaying: null,
1270
- onPopState: null,
1271
- onProgress: null,
1272
- onRateChange: null,
1273
- onRejectionHandled: null,
1274
- onReset: null,
1275
- onResize: null,
1276
- onScroll: null,
1277
- onScrollEnd: null,
1278
- onSecurityPolicyViolation: null,
1279
- onSeeked: null,
1280
- onSeeking: null,
1281
- onSelect: null,
1282
- onSlotChange: null,
1283
- onStalled: null,
1284
- onStorage: null,
1285
- onSubmit: null,
1286
- onSuspend: null,
1287
- onTimeUpdate: null,
1288
- onToggle: null,
1289
- onUnhandledRejection: null,
1290
- onUnload: null,
1291
- onVolumeChange: null,
1292
- onWaiting: null,
1293
- onWheel: null,
1294
- open: boolean,
1295
- optimum: number,
1296
- pattern: null,
1297
- ping: spaceSeparated,
1298
- placeholder: null,
1299
- playsInline: boolean,
1300
- popover: null,
1301
- popoverTarget: null,
1302
- popoverTargetAction: null,
1303
- poster: null,
1304
- preload: null,
1305
- readOnly: boolean,
1306
- referrerPolicy: null,
1307
- rel: spaceSeparated,
1308
- required: boolean,
1309
- reversed: boolean,
1310
- rows: number,
1311
- rowSpan: number,
1312
- sandbox: spaceSeparated,
1313
- scope: null,
1314
- scoped: boolean,
1315
- seamless: boolean,
1316
- selected: boolean,
1317
- shadowRootClonable: boolean,
1318
- shadowRootDelegatesFocus: boolean,
1319
- shadowRootMode: null,
1320
- shape: null,
1321
- size: number,
1322
- sizes: null,
1323
- slot: null,
1324
- span: number,
1325
- spellCheck: booleanish,
1326
- src: null,
1327
- srcDoc: null,
1328
- srcLang: null,
1329
- srcSet: null,
1330
- start: number,
1331
- step: null,
1332
- style: null,
1333
- tabIndex: number,
1334
- target: null,
1335
- title: null,
1336
- translate: null,
1337
- type: null,
1338
- typeMustMatch: boolean,
1339
- useMap: null,
1340
- value: booleanish,
1341
- width: number,
1342
- wrap: null,
1343
- writingSuggestions: null,
1344
- // Legacy.
1345
- // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
1346
- align: null,
1347
- // Several. Use CSS `text-align` instead,
1348
- aLink: null,
1349
- // `<body>`. Use CSS `a:active {color}` instead
1350
- archive: spaceSeparated,
1351
- // `<object>`. List of URIs to archives
1352
- axis: null,
1353
- // `<td>` and `<th>`. Use `scope` on `<th>`
1354
- background: null,
1355
- // `<body>`. Use CSS `background-image` instead
1356
- bgColor: null,
1357
- // `<body>` and table elements. Use CSS `background-color` instead
1358
- border: number,
1359
- // `<table>`. Use CSS `border-width` instead,
1360
- borderColor: null,
1361
- // `<table>`. Use CSS `border-color` instead,
1362
- bottomMargin: number,
1363
- // `<body>`
1364
- cellPadding: null,
1365
- // `<table>`
1366
- cellSpacing: null,
1367
- // `<table>`
1368
- char: null,
1369
- // Several table elements. When `align=char`, sets the character to align on
1370
- charOff: null,
1371
- // Several table elements. When `char`, offsets the alignment
1372
- classId: null,
1373
- // `<object>`
1374
- clear: null,
1375
- // `<br>`. Use CSS `clear` instead
1376
- code: null,
1377
- // `<object>`
1378
- codeBase: null,
1379
- // `<object>`
1380
- codeType: null,
1381
- // `<object>`
1382
- color: null,
1383
- // `<font>` and `<hr>`. Use CSS instead
1384
- compact: boolean,
1385
- // Lists. Use CSS to reduce space between items instead
1386
- declare: boolean,
1387
- // `<object>`
1388
- event: null,
1389
- // `<script>`
1390
- face: null,
1391
- // `<font>`. Use CSS instead
1392
- frame: null,
1393
- // `<table>`
1394
- frameBorder: null,
1395
- // `<iframe>`. Use CSS `border` instead
1396
- hSpace: number,
1397
- // `<img>` and `<object>`
1398
- leftMargin: number,
1399
- // `<body>`
1400
- link: null,
1401
- // `<body>`. Use CSS `a:link {color: *}` instead
1402
- longDesc: null,
1403
- // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
1404
- lowSrc: null,
1405
- // `<img>`. Use a `<picture>`
1406
- marginHeight: number,
1407
- // `<body>`
1408
- marginWidth: number,
1409
- // `<body>`
1410
- noResize: boolean,
1411
- // `<frame>`
1412
- noHref: boolean,
1413
- // `<area>`. Use no href instead of an explicit `nohref`
1414
- noShade: boolean,
1415
- // `<hr>`. Use background-color and height instead of borders
1416
- noWrap: boolean,
1417
- // `<td>` and `<th>`
1418
- object: null,
1419
- // `<applet>`
1420
- profile: null,
1421
- // `<head>`
1422
- prompt: null,
1423
- // `<isindex>`
1424
- rev: null,
1425
- // `<link>`
1426
- rightMargin: number,
1427
- // `<body>`
1428
- rules: null,
1429
- // `<table>`
1430
- scheme: null,
1431
- // `<meta>`
1432
- scrolling: booleanish,
1433
- // `<frame>`. Use overflow in the child context
1434
- standby: null,
1435
- // `<object>`
1436
- summary: null,
1437
- // `<table>`
1438
- text: null,
1439
- // `<body>`. Use CSS `color` instead
1440
- topMargin: number,
1441
- // `<body>`
1442
- valueType: null,
1443
- // `<param>`
1444
- version: null,
1445
- // `<html>`. Use a doctype.
1446
- vAlign: null,
1447
- // Several. Use CSS `vertical-align` instead
1448
- vLink: null,
1449
- // `<body>`. Use CSS `a:visited {color}` instead
1450
- vSpace: number,
1451
- // `<img>` and `<object>`
1452
-
1453
- // Non-standard Properties.
1454
- allowTransparency: null,
1455
- autoCorrect: null,
1456
- autoSave: null,
1457
- disablePictureInPicture: boolean,
1458
- disableRemotePlayback: boolean,
1459
- prefix: null,
1460
- property: null,
1461
- results: number,
1462
- security: null,
1463
- unselectable: null
1464
- }
1465
- });
1466
-
1467
- const svg$1 = create({
1468
- space: 'svg',
1469
- attributes: {
1470
- accentHeight: 'accent-height',
1471
- alignmentBaseline: 'alignment-baseline',
1472
- arabicForm: 'arabic-form',
1473
- baselineShift: 'baseline-shift',
1474
- capHeight: 'cap-height',
1475
- className: 'class',
1476
- clipPath: 'clip-path',
1477
- clipRule: 'clip-rule',
1478
- colorInterpolation: 'color-interpolation',
1479
- colorInterpolationFilters: 'color-interpolation-filters',
1480
- colorProfile: 'color-profile',
1481
- colorRendering: 'color-rendering',
1482
- crossOrigin: 'crossorigin',
1483
- dataType: 'datatype',
1484
- dominantBaseline: 'dominant-baseline',
1485
- enableBackground: 'enable-background',
1486
- fillOpacity: 'fill-opacity',
1487
- fillRule: 'fill-rule',
1488
- floodColor: 'flood-color',
1489
- floodOpacity: 'flood-opacity',
1490
- fontFamily: 'font-family',
1491
- fontSize: 'font-size',
1492
- fontSizeAdjust: 'font-size-adjust',
1493
- fontStretch: 'font-stretch',
1494
- fontStyle: 'font-style',
1495
- fontVariant: 'font-variant',
1496
- fontWeight: 'font-weight',
1497
- glyphName: 'glyph-name',
1498
- glyphOrientationHorizontal: 'glyph-orientation-horizontal',
1499
- glyphOrientationVertical: 'glyph-orientation-vertical',
1500
- hrefLang: 'hreflang',
1501
- horizAdvX: 'horiz-adv-x',
1502
- horizOriginX: 'horiz-origin-x',
1503
- horizOriginY: 'horiz-origin-y',
1504
- imageRendering: 'image-rendering',
1505
- letterSpacing: 'letter-spacing',
1506
- lightingColor: 'lighting-color',
1507
- markerEnd: 'marker-end',
1508
- markerMid: 'marker-mid',
1509
- markerStart: 'marker-start',
1510
- navDown: 'nav-down',
1511
- navDownLeft: 'nav-down-left',
1512
- navDownRight: 'nav-down-right',
1513
- navLeft: 'nav-left',
1514
- navNext: 'nav-next',
1515
- navPrev: 'nav-prev',
1516
- navRight: 'nav-right',
1517
- navUp: 'nav-up',
1518
- navUpLeft: 'nav-up-left',
1519
- navUpRight: 'nav-up-right',
1520
- onAbort: 'onabort',
1521
- onActivate: 'onactivate',
1522
- onAfterPrint: 'onafterprint',
1523
- onBeforePrint: 'onbeforeprint',
1524
- onBegin: 'onbegin',
1525
- onCancel: 'oncancel',
1526
- onCanPlay: 'oncanplay',
1527
- onCanPlayThrough: 'oncanplaythrough',
1528
- onChange: 'onchange',
1529
- onClick: 'onclick',
1530
- onClose: 'onclose',
1531
- onCopy: 'oncopy',
1532
- onCueChange: 'oncuechange',
1533
- onCut: 'oncut',
1534
- onDblClick: 'ondblclick',
1535
- onDrag: 'ondrag',
1536
- onDragEnd: 'ondragend',
1537
- onDragEnter: 'ondragenter',
1538
- onDragExit: 'ondragexit',
1539
- onDragLeave: 'ondragleave',
1540
- onDragOver: 'ondragover',
1541
- onDragStart: 'ondragstart',
1542
- onDrop: 'ondrop',
1543
- onDurationChange: 'ondurationchange',
1544
- onEmptied: 'onemptied',
1545
- onEnd: 'onend',
1546
- onEnded: 'onended',
1547
- onError: 'onerror',
1548
- onFocus: 'onfocus',
1549
- onFocusIn: 'onfocusin',
1550
- onFocusOut: 'onfocusout',
1551
- onHashChange: 'onhashchange',
1552
- onInput: 'oninput',
1553
- onInvalid: 'oninvalid',
1554
- onKeyDown: 'onkeydown',
1555
- onKeyPress: 'onkeypress',
1556
- onKeyUp: 'onkeyup',
1557
- onLoad: 'onload',
1558
- onLoadedData: 'onloadeddata',
1559
- onLoadedMetadata: 'onloadedmetadata',
1560
- onLoadStart: 'onloadstart',
1561
- onMessage: 'onmessage',
1562
- onMouseDown: 'onmousedown',
1563
- onMouseEnter: 'onmouseenter',
1564
- onMouseLeave: 'onmouseleave',
1565
- onMouseMove: 'onmousemove',
1566
- onMouseOut: 'onmouseout',
1567
- onMouseOver: 'onmouseover',
1568
- onMouseUp: 'onmouseup',
1569
- onMouseWheel: 'onmousewheel',
1570
- onOffline: 'onoffline',
1571
- onOnline: 'ononline',
1572
- onPageHide: 'onpagehide',
1573
- onPageShow: 'onpageshow',
1574
- onPaste: 'onpaste',
1575
- onPause: 'onpause',
1576
- onPlay: 'onplay',
1577
- onPlaying: 'onplaying',
1578
- onPopState: 'onpopstate',
1579
- onProgress: 'onprogress',
1580
- onRateChange: 'onratechange',
1581
- onRepeat: 'onrepeat',
1582
- onReset: 'onreset',
1583
- onResize: 'onresize',
1584
- onScroll: 'onscroll',
1585
- onSeeked: 'onseeked',
1586
- onSeeking: 'onseeking',
1587
- onSelect: 'onselect',
1588
- onShow: 'onshow',
1589
- onStalled: 'onstalled',
1590
- onStorage: 'onstorage',
1591
- onSubmit: 'onsubmit',
1592
- onSuspend: 'onsuspend',
1593
- onTimeUpdate: 'ontimeupdate',
1594
- onToggle: 'ontoggle',
1595
- onUnload: 'onunload',
1596
- onVolumeChange: 'onvolumechange',
1597
- onWaiting: 'onwaiting',
1598
- onZoom: 'onzoom',
1599
- overlinePosition: 'overline-position',
1600
- overlineThickness: 'overline-thickness',
1601
- paintOrder: 'paint-order',
1602
- panose1: 'panose-1',
1603
- pointerEvents: 'pointer-events',
1604
- referrerPolicy: 'referrerpolicy',
1605
- renderingIntent: 'rendering-intent',
1606
- shapeRendering: 'shape-rendering',
1607
- stopColor: 'stop-color',
1608
- stopOpacity: 'stop-opacity',
1609
- strikethroughPosition: 'strikethrough-position',
1610
- strikethroughThickness: 'strikethrough-thickness',
1611
- strokeDashArray: 'stroke-dasharray',
1612
- strokeDashOffset: 'stroke-dashoffset',
1613
- strokeLineCap: 'stroke-linecap',
1614
- strokeLineJoin: 'stroke-linejoin',
1615
- strokeMiterLimit: 'stroke-miterlimit',
1616
- strokeOpacity: 'stroke-opacity',
1617
- strokeWidth: 'stroke-width',
1618
- tabIndex: 'tabindex',
1619
- textAnchor: 'text-anchor',
1620
- textDecoration: 'text-decoration',
1621
- textRendering: 'text-rendering',
1622
- transformOrigin: 'transform-origin',
1623
- typeOf: 'typeof',
1624
- underlinePosition: 'underline-position',
1625
- underlineThickness: 'underline-thickness',
1626
- unicodeBidi: 'unicode-bidi',
1627
- unicodeRange: 'unicode-range',
1628
- unitsPerEm: 'units-per-em',
1629
- vAlphabetic: 'v-alphabetic',
1630
- vHanging: 'v-hanging',
1631
- vIdeographic: 'v-ideographic',
1632
- vMathematical: 'v-mathematical',
1633
- vectorEffect: 'vector-effect',
1634
- vertAdvY: 'vert-adv-y',
1635
- vertOriginX: 'vert-origin-x',
1636
- vertOriginY: 'vert-origin-y',
1637
- wordSpacing: 'word-spacing',
1638
- writingMode: 'writing-mode',
1639
- xHeight: 'x-height',
1640
- // These were camelcased in Tiny. Now lowercased in SVG 2
1641
- playbackOrder: 'playbackorder',
1642
- timelineBegin: 'timelinebegin'
1643
- },
1644
- transform: caseSensitiveTransform,
1645
- properties: {
1646
- about: commaOrSpaceSeparated,
1647
- accentHeight: number,
1648
- accumulate: null,
1649
- additive: null,
1650
- alignmentBaseline: null,
1651
- alphabetic: number,
1652
- amplitude: number,
1653
- arabicForm: null,
1654
- ascent: number,
1655
- attributeName: null,
1656
- attributeType: null,
1657
- azimuth: number,
1658
- bandwidth: null,
1659
- baselineShift: null,
1660
- baseFrequency: null,
1661
- baseProfile: null,
1662
- bbox: null,
1663
- begin: null,
1664
- bias: number,
1665
- by: null,
1666
- calcMode: null,
1667
- capHeight: number,
1668
- className: spaceSeparated,
1669
- clip: null,
1670
- clipPath: null,
1671
- clipPathUnits: null,
1672
- clipRule: null,
1673
- color: null,
1674
- colorInterpolation: null,
1675
- colorInterpolationFilters: null,
1676
- colorProfile: null,
1677
- colorRendering: null,
1678
- content: null,
1679
- contentScriptType: null,
1680
- contentStyleType: null,
1681
- crossOrigin: null,
1682
- cursor: null,
1683
- cx: null,
1684
- cy: null,
1685
- d: null,
1686
- dataType: null,
1687
- defaultAction: null,
1688
- descent: number,
1689
- diffuseConstant: number,
1690
- direction: null,
1691
- display: null,
1692
- dur: null,
1693
- divisor: number,
1694
- dominantBaseline: null,
1695
- download: boolean,
1696
- dx: null,
1697
- dy: null,
1698
- edgeMode: null,
1699
- editable: null,
1700
- elevation: number,
1701
- enableBackground: null,
1702
- end: null,
1703
- event: null,
1704
- exponent: number,
1705
- externalResourcesRequired: null,
1706
- fill: null,
1707
- fillOpacity: number,
1708
- fillRule: null,
1709
- filter: null,
1710
- filterRes: null,
1711
- filterUnits: null,
1712
- floodColor: null,
1713
- floodOpacity: null,
1714
- focusable: null,
1715
- focusHighlight: null,
1716
- fontFamily: null,
1717
- fontSize: null,
1718
- fontSizeAdjust: null,
1719
- fontStretch: null,
1720
- fontStyle: null,
1721
- fontVariant: null,
1722
- fontWeight: null,
1723
- format: null,
1724
- fr: null,
1725
- from: null,
1726
- fx: null,
1727
- fy: null,
1728
- g1: commaSeparated,
1729
- g2: commaSeparated,
1730
- glyphName: commaSeparated,
1731
- glyphOrientationHorizontal: null,
1732
- glyphOrientationVertical: null,
1733
- glyphRef: null,
1734
- gradientTransform: null,
1735
- gradientUnits: null,
1736
- handler: null,
1737
- hanging: number,
1738
- hatchContentUnits: null,
1739
- hatchUnits: null,
1740
- height: null,
1741
- href: null,
1742
- hrefLang: null,
1743
- horizAdvX: number,
1744
- horizOriginX: number,
1745
- horizOriginY: number,
1746
- id: null,
1747
- ideographic: number,
1748
- imageRendering: null,
1749
- initialVisibility: null,
1750
- in: null,
1751
- in2: null,
1752
- intercept: number,
1753
- k: number,
1754
- k1: number,
1755
- k2: number,
1756
- k3: number,
1757
- k4: number,
1758
- kernelMatrix: commaOrSpaceSeparated,
1759
- kernelUnitLength: null,
1760
- keyPoints: null,
1761
- // SEMI_COLON_SEPARATED
1762
- keySplines: null,
1763
- // SEMI_COLON_SEPARATED
1764
- keyTimes: null,
1765
- // SEMI_COLON_SEPARATED
1766
- kerning: null,
1767
- lang: null,
1768
- lengthAdjust: null,
1769
- letterSpacing: null,
1770
- lightingColor: null,
1771
- limitingConeAngle: number,
1772
- local: null,
1773
- markerEnd: null,
1774
- markerMid: null,
1775
- markerStart: null,
1776
- markerHeight: null,
1777
- markerUnits: null,
1778
- markerWidth: null,
1779
- mask: null,
1780
- maskContentUnits: null,
1781
- maskUnits: null,
1782
- mathematical: null,
1783
- max: null,
1784
- media: null,
1785
- mediaCharacterEncoding: null,
1786
- mediaContentEncodings: null,
1787
- mediaSize: number,
1788
- mediaTime: null,
1789
- method: null,
1790
- min: null,
1791
- mode: null,
1792
- name: null,
1793
- navDown: null,
1794
- navDownLeft: null,
1795
- navDownRight: null,
1796
- navLeft: null,
1797
- navNext: null,
1798
- navPrev: null,
1799
- navRight: null,
1800
- navUp: null,
1801
- navUpLeft: null,
1802
- navUpRight: null,
1803
- numOctaves: null,
1804
- observer: null,
1805
- offset: null,
1806
- onAbort: null,
1807
- onActivate: null,
1808
- onAfterPrint: null,
1809
- onBeforePrint: null,
1810
- onBegin: null,
1811
- onCancel: null,
1812
- onCanPlay: null,
1813
- onCanPlayThrough: null,
1814
- onChange: null,
1815
- onClick: null,
1816
- onClose: null,
1817
- onCopy: null,
1818
- onCueChange: null,
1819
- onCut: null,
1820
- onDblClick: null,
1821
- onDrag: null,
1822
- onDragEnd: null,
1823
- onDragEnter: null,
1824
- onDragExit: null,
1825
- onDragLeave: null,
1826
- onDragOver: null,
1827
- onDragStart: null,
1828
- onDrop: null,
1829
- onDurationChange: null,
1830
- onEmptied: null,
1831
- onEnd: null,
1832
- onEnded: null,
1833
- onError: null,
1834
- onFocus: null,
1835
- onFocusIn: null,
1836
- onFocusOut: null,
1837
- onHashChange: null,
1838
- onInput: null,
1839
- onInvalid: null,
1840
- onKeyDown: null,
1841
- onKeyPress: null,
1842
- onKeyUp: null,
1843
- onLoad: null,
1844
- onLoadedData: null,
1845
- onLoadedMetadata: null,
1846
- onLoadStart: null,
1847
- onMessage: null,
1848
- onMouseDown: null,
1849
- onMouseEnter: null,
1850
- onMouseLeave: null,
1851
- onMouseMove: null,
1852
- onMouseOut: null,
1853
- onMouseOver: null,
1854
- onMouseUp: null,
1855
- onMouseWheel: null,
1856
- onOffline: null,
1857
- onOnline: null,
1858
- onPageHide: null,
1859
- onPageShow: null,
1860
- onPaste: null,
1861
- onPause: null,
1862
- onPlay: null,
1863
- onPlaying: null,
1864
- onPopState: null,
1865
- onProgress: null,
1866
- onRateChange: null,
1867
- onRepeat: null,
1868
- onReset: null,
1869
- onResize: null,
1870
- onScroll: null,
1871
- onSeeked: null,
1872
- onSeeking: null,
1873
- onSelect: null,
1874
- onShow: null,
1875
- onStalled: null,
1876
- onStorage: null,
1877
- onSubmit: null,
1878
- onSuspend: null,
1879
- onTimeUpdate: null,
1880
- onToggle: null,
1881
- onUnload: null,
1882
- onVolumeChange: null,
1883
- onWaiting: null,
1884
- onZoom: null,
1885
- opacity: null,
1886
- operator: null,
1887
- order: null,
1888
- orient: null,
1889
- orientation: null,
1890
- origin: null,
1891
- overflow: null,
1892
- overlay: null,
1893
- overlinePosition: number,
1894
- overlineThickness: number,
1895
- paintOrder: null,
1896
- panose1: null,
1897
- path: null,
1898
- pathLength: number,
1899
- patternContentUnits: null,
1900
- patternTransform: null,
1901
- patternUnits: null,
1902
- phase: null,
1903
- ping: spaceSeparated,
1904
- pitch: null,
1905
- playbackOrder: null,
1906
- pointerEvents: null,
1907
- points: null,
1908
- pointsAtX: number,
1909
- pointsAtY: number,
1910
- pointsAtZ: number,
1911
- preserveAlpha: null,
1912
- preserveAspectRatio: null,
1913
- primitiveUnits: null,
1914
- propagate: null,
1915
- property: commaOrSpaceSeparated,
1916
- r: null,
1917
- radius: null,
1918
- referrerPolicy: null,
1919
- refX: null,
1920
- refY: null,
1921
- rel: commaOrSpaceSeparated,
1922
- rev: commaOrSpaceSeparated,
1923
- renderingIntent: null,
1924
- repeatCount: null,
1925
- repeatDur: null,
1926
- requiredExtensions: commaOrSpaceSeparated,
1927
- requiredFeatures: commaOrSpaceSeparated,
1928
- requiredFonts: commaOrSpaceSeparated,
1929
- requiredFormats: commaOrSpaceSeparated,
1930
- resource: null,
1931
- restart: null,
1932
- result: null,
1933
- rotate: null,
1934
- rx: null,
1935
- ry: null,
1936
- scale: null,
1937
- seed: null,
1938
- shapeRendering: null,
1939
- side: null,
1940
- slope: null,
1941
- snapshotTime: null,
1942
- specularConstant: number,
1943
- specularExponent: number,
1944
- spreadMethod: null,
1945
- spacing: null,
1946
- startOffset: null,
1947
- stdDeviation: null,
1948
- stemh: null,
1949
- stemv: null,
1950
- stitchTiles: null,
1951
- stopColor: null,
1952
- stopOpacity: null,
1953
- strikethroughPosition: number,
1954
- strikethroughThickness: number,
1955
- string: null,
1956
- stroke: null,
1957
- strokeDashArray: commaOrSpaceSeparated,
1958
- strokeDashOffset: null,
1959
- strokeLineCap: null,
1960
- strokeLineJoin: null,
1961
- strokeMiterLimit: number,
1962
- strokeOpacity: number,
1963
- strokeWidth: null,
1964
- style: null,
1965
- surfaceScale: number,
1966
- syncBehavior: null,
1967
- syncBehaviorDefault: null,
1968
- syncMaster: null,
1969
- syncTolerance: null,
1970
- syncToleranceDefault: null,
1971
- systemLanguage: commaOrSpaceSeparated,
1972
- tabIndex: number,
1973
- tableValues: null,
1974
- target: null,
1975
- targetX: number,
1976
- targetY: number,
1977
- textAnchor: null,
1978
- textDecoration: null,
1979
- textRendering: null,
1980
- textLength: null,
1981
- timelineBegin: null,
1982
- title: null,
1983
- transformBehavior: null,
1984
- type: null,
1985
- typeOf: commaOrSpaceSeparated,
1986
- to: null,
1987
- transform: null,
1988
- transformOrigin: null,
1989
- u1: null,
1990
- u2: null,
1991
- underlinePosition: number,
1992
- underlineThickness: number,
1993
- unicode: null,
1994
- unicodeBidi: null,
1995
- unicodeRange: null,
1996
- unitsPerEm: number,
1997
- values: null,
1998
- vAlphabetic: number,
1999
- vMathematical: number,
2000
- vectorEffect: null,
2001
- vHanging: number,
2002
- vIdeographic: number,
2003
- version: null,
2004
- vertAdvY: number,
2005
- vertOriginX: number,
2006
- vertOriginY: number,
2007
- viewBox: null,
2008
- viewTarget: null,
2009
- visibility: null,
2010
- width: null,
2011
- widths: null,
2012
- wordSpacing: null,
2013
- writingMode: null,
2014
- x: null,
2015
- x1: null,
2016
- x2: null,
2017
- xChannelSelector: null,
2018
- xHeight: number,
2019
- y: null,
2020
- y1: null,
2021
- y2: null,
2022
- yChannelSelector: null,
2023
- z: null,
2024
- zoomAndPan: null
2025
- }
2026
- });
2027
-
2028
- /**
2029
- * @typedef {import('./util/schema.js').Schema} Schema
2030
- */
2031
-
2032
- const valid = /^data[-\w.:]+$/i;
2033
- const dash = /-[a-z]/g;
2034
- const cap = /[A-Z]/g;
2035
-
2036
- /**
2037
- * @param {Schema} schema
2038
- * @param {string} value
2039
- * @returns {Info}
2040
- */
2041
- function find(schema, value) {
2042
- const normal = normalize(value);
2043
- let prop = value;
2044
- let Type = Info;
2045
- if (normal in schema.normal) {
2046
- return schema.property[schema.normal[normal]];
2047
- }
2048
- if (normal.length > 4 && normal.slice(0, 4) === 'data' && valid.test(value)) {
2049
- // Attribute or property.
2050
- if (value.charAt(4) === '-') {
2051
- // Turn it into a property.
2052
- const rest = value.slice(5).replace(dash, camelcase);
2053
- prop = 'data' + rest.charAt(0).toUpperCase() + rest.slice(1);
2054
- } else {
2055
- // Turn it into an attribute.
2056
- const rest = value.slice(4);
2057
- if (!dash.test(rest)) {
2058
- let dashes = rest.replace(cap, kebab);
2059
- if (dashes.charAt(0) !== '-') {
2060
- dashes = '-' + dashes;
2061
- }
2062
- value = 'data' + dashes;
2063
- }
2064
- }
2065
- Type = DefinedInfo;
2066
- }
2067
- return new Type(prop, value);
2068
- }
2069
-
2070
- /**
2071
- * @param {string} $0
2072
- * @returns {string}
2073
- */
2074
- function kebab($0) {
2075
- return '-' + $0.toLowerCase();
2076
- }
2077
-
2078
- /**
2079
- * @param {string} $0
2080
- * @returns {string}
2081
- */
2082
- function camelcase($0) {
2083
- return $0.charAt(1).toUpperCase();
2084
- }
2085
-
2086
- /**
2087
- * @typedef {import('./lib/util/info.js').Info} Info
2088
- * @typedef {import('./lib/util/schema.js').Schema} Schema
2089
- */
2090
-
2091
- const html = merge([xml, xlink, xmlns, aria, html$1], 'html');
2092
- const svg = merge([xml, xlink, xmlns, aria, svg$1], 'svg');
2093
-
2094
- /**
2095
- * @typedef {import('hast').Comment} Comment
2096
- * @typedef {import('hast').Doctype} Doctype
2097
- * @typedef {import('hast').Element} Element
2098
- * @typedef {import('hast').Nodes} Nodes
2099
- * @typedef {import('hast').Root} Root
2100
- * @typedef {import('hast').RootContent} RootContent
2101
- * @typedef {import('hast').Text} Text
2102
- *
2103
- * @typedef {import('parse5').DefaultTreeAdapterMap['document']} Parse5Document
2104
- * @typedef {import('parse5').DefaultTreeAdapterMap['documentFragment']} Parse5Fragment
2105
- * @typedef {import('parse5').DefaultTreeAdapterMap['element']} Parse5Element
2106
- * @typedef {import('parse5').DefaultTreeAdapterMap['node']} Parse5Nodes
2107
- * @typedef {import('parse5').DefaultTreeAdapterMap['documentType']} Parse5Doctype
2108
- * @typedef {import('parse5').DefaultTreeAdapterMap['commentNode']} Parse5Comment
2109
- * @typedef {import('parse5').DefaultTreeAdapterMap['textNode']} Parse5Text
2110
- * @typedef {import('parse5').DefaultTreeAdapterMap['parentNode']} Parse5Parent
2111
- * @typedef {import('parse5').Token.Attribute} Parse5Attribute
2112
- *
2113
- * @typedef {import('property-information').Schema} Schema
800
+ * @import {Comment, Doctype, Element, Nodes, RootContent, Root, Text} from 'hast'
801
+ * @import {DefaultTreeAdapterMap, Token} from 'parse5'
802
+ * @import {Schema} from 'property-information'
2114
803
  */
2115
804
 
2116
805
 
@@ -11296,4 +9985,4 @@ function rehypeRaw(options) {
11296
9985
  }
11297
9986
 
11298
9987
  export { rehypeRaw as default };
11299
- //# sourceMappingURL=index-DejgrVqh.js.map
9988
+ //# sourceMappingURL=index-C-twRw93.js.map