@gmb/bitmark-parser-generator 4.16.0 → 4.16.1

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.
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>@gmb/bitmark-parser-generator [4 Nov 2025 at 01:34]</title>
6
+ <title>@gmb/bitmark-parser-generator [10 Nov 2025 at 04:10]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
@@ -31,7 +31,7 @@
31
31
  <body>
32
32
  <div id="app"></div>
33
33
  <script>
34
- window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1229648,"parsedSize":544199,"gzipSize":104964,"groups":[{"label":"dist/browser/cjs","path":"./dist/browser/cjs","statSize":1222668,"groups":[{"id":922,"label":"index.cjs","path":"./dist/browser/cjs/index.cjs","statSize":1222668,"parsedSize":544095,"gzipSize":104964}],"parsedSize":544095,"gzipSize":104964},{"label":"node_modules/@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6980,"groups":[{"id":718,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6980}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
34
+ window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1231246,"parsedSize":545164,"gzipSize":105076,"groups":[{"label":"dist/browser/cjs","path":"./dist/browser/cjs","statSize":1224266,"groups":[{"id":922,"label":"index.cjs","path":"./dist/browser/cjs/index.cjs","statSize":1224266,"parsedSize":545060,"gzipSize":105076}],"parsedSize":545060,"gzipSize":105076},{"label":"node_modules/@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6980,"groups":[{"id":718,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6980}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
35
35
  window.entrypoints = ["main"];
36
36
  window.defaultSizes = "stat";
37
37
  </script>
@@ -291,8 +291,8 @@ var BitType = (0, import_superenum.superenum)({
291
291
  extractorAiChat: "extractor-ai-chat",
292
292
  extractorBlock: "extractor-block",
293
293
  extractorConfiguration: "extractor-configuration",
294
- extractorImages: "extractor-images",
295
- extractorImagesCollapsible: "extractor-images-collapsible",
294
+ extractorImage: "extractor-image",
295
+ extractorImageCollapsible: "extractor-image-collapsible",
296
296
  extractorInformation: "extractor-information",
297
297
  extractorPage: "extractor-page",
298
298
  extractorPageCollapsible: "extractor-page-collapsible",
@@ -1368,6 +1368,7 @@ var propertyKeys = {
1368
1368
  property_scormSource: "@scormSource",
1369
1369
  property_search: "@search",
1370
1370
  property_searchIndex: "@searchIndex",
1371
+ property_selected: "@selected",
1371
1372
  property_servings: "@servings",
1372
1373
  property_showInIndex: "@showInIndex",
1373
1374
  property_showSubtitles: "@showSubtitles",
@@ -3646,6 +3647,12 @@ var GROUPS = {
3646
3647
  description: "The search text for the resource",
3647
3648
  format: TagFormat.plainText
3648
3649
  },
3650
+ {
3651
+ key: ConfigKey.property_selected,
3652
+ description: "If true, the resource is selected",
3653
+ format: TagFormat.boolean,
3654
+ defaultValue: "false"
3655
+ },
3649
3656
  {
3650
3657
  key: ConfigKey.property_srcAlt,
3651
3658
  description: "An alternative source for the resource",
@@ -7148,7 +7155,7 @@ var BITS = {
7148
7155
  description: "Extractor configuration bit, used to configure extractors in articles or books",
7149
7156
  textFormatDefault: TextFormat2.plainText
7150
7157
  },
7151
- [BitType.extractorImages]: {
7158
+ [BitType.extractorImage]: {
7152
7159
  since: "4.3.0",
7153
7160
  baseBitType: BitType._standard,
7154
7161
  description: "Extractor images bit, used for images extracted from PDFs",
@@ -7168,9 +7175,9 @@ var BITS = {
7168
7175
  resourceAttachmentAllowed: false,
7169
7176
  textFormatDefault: TextFormat2.plainText
7170
7177
  },
7171
- [BitType.extractorImagesCollapsible]: {
7178
+ [BitType.extractorImageCollapsible]: {
7172
7179
  since: "4.3.0",
7173
- baseBitType: BitType.extractorImages,
7180
+ baseBitType: BitType.extractorImage,
7174
7181
  description: "Collapsible extractor images bit, used for images extracted from PDFs"
7175
7182
  },
7176
7183
  [BitType.extractorInformation]: {
@@ -10175,7 +10182,7 @@ var instance2 = new Config();
10175
10182
  // src/generated/package_info.ts
10176
10183
  var PACKAGE_INFO = {
10177
10184
  "name": "@gmb/bitmark-parser-generator",
10178
- "version": "4.16.0",
10185
+ "version": "4.16.1",
10179
10186
  "author": "Get More Brain Ltd",
10180
10187
  "license": "ISC",
10181
10188
  "description": "A bitmark parser and generator using Peggy.js"
@@ -11046,6 +11053,7 @@ var NodeType = (0, import_superenum20.superenum)({
11046
11053
  searchValue: "searchValue",
11047
11054
  section: "section",
11048
11055
  select: "select",
11056
+ selected: "selected",
11049
11057
  servings: "servings",
11050
11058
  servingsValue: "servingsValue",
11051
11059
  showInIndex: "showInIndex",
@@ -22508,7 +22516,8 @@ var ResourceBuilder = class extends BaseBuilder {
22508
22516
  license: data.license,
22509
22517
  copyright: data.copyright,
22510
22518
  showInIndex: data.showInIndex,
22511
- search: data.search
22519
+ search: data.search,
22520
+ selected: data.selected
22512
22521
  });
22513
22522
  return node;
22514
22523
  }
@@ -22673,7 +22682,8 @@ var ResourceBuilder = class extends BaseBuilder {
22673
22682
  copyright,
22674
22683
  showInIndex,
22675
22684
  caption,
22676
- search
22685
+ search,
22686
+ selected
22677
22687
  } = data;
22678
22688
  const { bitType } = context;
22679
22689
  let zoomDisabledDefault = false;
@@ -22682,7 +22692,7 @@ var ResourceBuilder = class extends BaseBuilder {
22682
22692
  BitType.pageBanner,
22683
22693
  BitType.imagesLogoGrave,
22684
22694
  BitType.prototypeImages,
22685
- BitType.extractorImages
22695
+ BitType.extractorImage
22686
22696
  ])) {
22687
22697
  zoomDisabledDefault = true;
22688
22698
  }
@@ -22707,11 +22717,12 @@ var ResourceBuilder = class extends BaseBuilder {
22707
22717
  copyright: copyright ?? "",
22708
22718
  showInIndex: showInIndex ?? false,
22709
22719
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
22710
- search: search ?? void 0
22720
+ search: search ?? void 0,
22721
+ selected: selected ?? false
22711
22722
  }
22712
22723
  };
22713
22724
  objectUtils.removeUnwantedProperties(node.image, {
22714
- ignoreFalse: ["zoomDisabled", "showInIndex"],
22725
+ ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
22715
22726
  ignoreEmptyArrays: ["caption"],
22716
22727
  ignoreUndefined: ["width", "height"],
22717
22728
  ignoreEmptyString: ["src", "alt", "license", "copyright"]
@@ -22740,7 +22751,8 @@ var ResourceBuilder = class extends BaseBuilder {
22740
22751
  copyright,
22741
22752
  showInIndex,
22742
22753
  caption,
22743
- search
22754
+ search,
22755
+ selected
22744
22756
  } = data;
22745
22757
  const node = {
22746
22758
  type: ResourceType.imageLink,
@@ -22765,11 +22777,12 @@ var ResourceBuilder = class extends BaseBuilder {
22765
22777
  copyright: copyright ?? "",
22766
22778
  showInIndex: showInIndex ?? false,
22767
22779
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
22768
- search: search ?? void 0
22780
+ search: search ?? void 0,
22781
+ selected: selected ?? false
22769
22782
  }
22770
22783
  };
22771
22784
  objectUtils.removeUnwantedProperties(node.imageLink, {
22772
- ignoreFalse: ["zoomDisabled", "showInIndex"],
22785
+ ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
22773
22786
  ignoreEmptyArrays: ["caption"],
22774
22787
  ignoreUndefined: ["width", "height"],
22775
22788
  ignoreEmptyString: ["url", "alt", "license", "copyright"]
@@ -22793,7 +22806,8 @@ var ResourceBuilder = class extends BaseBuilder {
22793
22806
  copyright,
22794
22807
  showInIndex,
22795
22808
  caption,
22796
- search
22809
+ search,
22810
+ selected
22797
22811
  } = data;
22798
22812
  const node = {
22799
22813
  type: ResourceType.audio,
@@ -22811,13 +22825,14 @@ var ResourceBuilder = class extends BaseBuilder {
22811
22825
  copyright: copyright ?? "",
22812
22826
  showInIndex: showInIndex ?? false,
22813
22827
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
22814
- search: search ?? void 0
22828
+ search: search ?? void 0,
22829
+ selected: selected ?? false
22815
22830
  }
22816
22831
  };
22817
22832
  objectUtils.removeUnwantedProperties(node.audio, {
22818
22833
  ignoreEmptyArrays: ["caption"],
22819
22834
  ignoreEmptyString: ["src", "alt", "license", "copyright"],
22820
- ignoreFalse: ["showInIndex"]
22835
+ ignoreFalse: ["showInIndex", "selected"]
22821
22836
  });
22822
22837
  return nodeValidator.validateResource(node);
22823
22838
  }
@@ -22838,7 +22853,8 @@ var ResourceBuilder = class extends BaseBuilder {
22838
22853
  copyright,
22839
22854
  showInIndex,
22840
22855
  caption,
22841
- search
22856
+ search,
22857
+ selected
22842
22858
  } = data;
22843
22859
  const node = {
22844
22860
  type: ResourceType.audioEmbed,
@@ -22856,7 +22872,8 @@ var ResourceBuilder = class extends BaseBuilder {
22856
22872
  copyright: copyright ?? "",
22857
22873
  showInIndex: showInIndex ?? false,
22858
22874
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
22859
- search: search ?? void 0
22875
+ search: search ?? void 0,
22876
+ selected: selected ?? false
22860
22877
  }
22861
22878
  };
22862
22879
  objectUtils.removeUnwantedProperties(node.audioEmbed, {
@@ -22867,7 +22884,7 @@ var ResourceBuilder = class extends BaseBuilder {
22867
22884
  "license",
22868
22885
  "copyright"
22869
22886
  ],
22870
- ignoreFalse: ["showInIndex"]
22887
+ ignoreFalse: ["showInIndex", "selected"]
22871
22888
  });
22872
22889
  return nodeValidator.validateResource(node);
22873
22890
  }
@@ -22888,7 +22905,8 @@ var ResourceBuilder = class extends BaseBuilder {
22888
22905
  copyright,
22889
22906
  showInIndex,
22890
22907
  caption,
22891
- search
22908
+ search,
22909
+ selected
22892
22910
  } = data;
22893
22911
  const node = {
22894
22912
  type: ResourceType.audioLink,
@@ -22907,7 +22925,8 @@ var ResourceBuilder = class extends BaseBuilder {
22907
22925
  copyright: copyright ?? "",
22908
22926
  showInIndex: showInIndex ?? false,
22909
22927
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
22910
- search: search ?? void 0
22928
+ search: search ?? void 0,
22929
+ selected: selected ?? false
22911
22930
  }
22912
22931
  };
22913
22932
  objectUtils.removeUnwantedProperties(node.audioLink, {
@@ -22915,7 +22934,8 @@ var ResourceBuilder = class extends BaseBuilder {
22915
22934
  ignoreEmptyString: [
22916
22935
  "url"
22917
22936
  /*'alt', 'license', 'copyright'*/
22918
- ]
22937
+ ],
22938
+ ignoreFalse: ["selected"]
22919
22939
  });
22920
22940
  return nodeValidator.validateResource(node);
22921
22941
  }
@@ -22943,7 +22963,8 @@ var ResourceBuilder = class extends BaseBuilder {
22943
22963
  copyright,
22944
22964
  showInIndex,
22945
22965
  caption,
22946
- search
22966
+ search,
22967
+ selected
22947
22968
  } = data;
22948
22969
  const node = {
22949
22970
  type: ResourceType.video,
@@ -22967,6 +22988,7 @@ var ResourceBuilder = class extends BaseBuilder {
22967
22988
  showInIndex: showInIndex ?? false,
22968
22989
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
22969
22990
  search: search ?? void 0,
22991
+ selected: selected ?? false,
22970
22992
  // Have sub-chains so must be at end of chain
22971
22993
  posterImage: posterImage ?? void 0,
22972
22994
  thumbnails: thumbnails ?? void 0
@@ -22981,7 +23003,7 @@ var ResourceBuilder = class extends BaseBuilder {
22981
23003
  "license",
22982
23004
  "copyright"
22983
23005
  ],
22984
- ignoreFalse: ["showInIndex"]
23006
+ ignoreFalse: ["showInIndex", "selected"]
22985
23007
  });
22986
23008
  return nodeValidator.validateResource(node);
22987
23009
  }
@@ -23009,7 +23031,8 @@ var ResourceBuilder = class extends BaseBuilder {
23009
23031
  copyright,
23010
23032
  showInIndex,
23011
23033
  caption,
23012
- search
23034
+ search,
23035
+ selected
23013
23036
  } = data;
23014
23037
  const node = {
23015
23038
  type: ResourceType.videoEmbed,
@@ -23035,7 +23058,8 @@ var ResourceBuilder = class extends BaseBuilder {
23035
23058
  copyright: copyright ?? "",
23036
23059
  showInIndex: showInIndex ?? false,
23037
23060
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23038
- search: search ?? void 0
23061
+ search: search ?? void 0,
23062
+ selected: selected ?? false
23039
23063
  }
23040
23064
  };
23041
23065
  objectUtils.removeUnwantedProperties(node.videoEmbed, {
@@ -23047,7 +23071,7 @@ var ResourceBuilder = class extends BaseBuilder {
23047
23071
  "license",
23048
23072
  "copyright"
23049
23073
  ],
23050
- ignoreFalse: ["showInIndex"]
23074
+ ignoreFalse: ["showInIndex", "selected"]
23051
23075
  });
23052
23076
  return nodeValidator.validateResource(node);
23053
23077
  }
@@ -23075,7 +23099,8 @@ var ResourceBuilder = class extends BaseBuilder {
23075
23099
  copyright,
23076
23100
  showInIndex,
23077
23101
  caption,
23078
- search
23102
+ search,
23103
+ selected
23079
23104
  } = data;
23080
23105
  const node = {
23081
23106
  type: ResourceType.videoLink,
@@ -23101,7 +23126,8 @@ var ResourceBuilder = class extends BaseBuilder {
23101
23126
  copyright: copyright ?? "",
23102
23127
  showInIndex: showInIndex ?? false,
23103
23128
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23104
- search: search ?? void 0
23129
+ search: search ?? void 0,
23130
+ selected: selected ?? false
23105
23131
  }
23106
23132
  };
23107
23133
  objectUtils.removeUnwantedProperties(node.videoLink, {
@@ -23113,7 +23139,7 @@ var ResourceBuilder = class extends BaseBuilder {
23113
23139
  "license",
23114
23140
  "copyright"
23115
23141
  ],
23116
- ignoreFalse: ["showInIndex"]
23142
+ ignoreFalse: ["showInIndex", "selected"]
23117
23143
  });
23118
23144
  return nodeValidator.validateResource(node);
23119
23145
  }
@@ -23161,7 +23187,8 @@ var ResourceBuilder = class extends BaseBuilder {
23161
23187
  copyright,
23162
23188
  showInIndex,
23163
23189
  caption,
23164
- search
23190
+ search,
23191
+ selected
23165
23192
  } = data;
23166
23193
  const node = {
23167
23194
  type: ResourceType.stillImageFilmEmbed,
@@ -23187,7 +23214,8 @@ var ResourceBuilder = class extends BaseBuilder {
23187
23214
  copyright: copyright ?? "",
23188
23215
  showInIndex: showInIndex ?? false,
23189
23216
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23190
- search: search ?? void 0
23217
+ search: search ?? void 0,
23218
+ selected: selected ?? false
23191
23219
  }
23192
23220
  };
23193
23221
  objectUtils.removeUnwantedProperties(node.stillImageFilmEmbed, {
@@ -23199,7 +23227,7 @@ var ResourceBuilder = class extends BaseBuilder {
23199
23227
  "license",
23200
23228
  "copyright"
23201
23229
  ],
23202
- ignoreFalse: ["showInIndex"]
23230
+ ignoreFalse: ["showInIndex", "selected"]
23203
23231
  });
23204
23232
  return nodeValidator.validateResource(node);
23205
23233
  }
@@ -23227,7 +23255,8 @@ var ResourceBuilder = class extends BaseBuilder {
23227
23255
  copyright,
23228
23256
  showInIndex,
23229
23257
  caption,
23230
- search
23258
+ search,
23259
+ selected
23231
23260
  } = data;
23232
23261
  const node = {
23233
23262
  type: ResourceType.stillImageFilmLink,
@@ -23253,7 +23282,8 @@ var ResourceBuilder = class extends BaseBuilder {
23253
23282
  copyright: copyright ?? "",
23254
23283
  showInIndex: showInIndex ?? false,
23255
23284
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23256
- search: search ?? void 0
23285
+ search: search ?? void 0,
23286
+ selected: selected ?? false
23257
23287
  }
23258
23288
  };
23259
23289
  objectUtils.removeUnwantedProperties(node.stillImageFilmLink, {
@@ -23265,7 +23295,7 @@ var ResourceBuilder = class extends BaseBuilder {
23265
23295
  "license",
23266
23296
  "copyright"
23267
23297
  ],
23268
- ignoreFalse: ["showInIndex"]
23298
+ ignoreFalse: ["showInIndex", "selected"]
23269
23299
  });
23270
23300
  return nodeValidator.validateResource(node);
23271
23301
  }
@@ -23276,7 +23306,7 @@ var ResourceBuilder = class extends BaseBuilder {
23276
23306
  * @returns
23277
23307
  */
23278
23308
  articleResource(context, data) {
23279
- const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
23309
+ const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
23280
23310
  const node = {
23281
23311
  type: ResourceType.article,
23282
23312
  __typeAlias: ResourceType.article,
@@ -23290,12 +23320,14 @@ var ResourceBuilder = class extends BaseBuilder {
23290
23320
  copyright: copyright ?? "",
23291
23321
  showInIndex: showInIndex ?? false,
23292
23322
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23293
- search: search ?? void 0
23323
+ search: search ?? void 0,
23324
+ selected: selected ?? false
23294
23325
  }
23295
23326
  };
23296
23327
  objectUtils.removeUnwantedProperties(node.article, {
23297
23328
  ignoreEmptyArrays: ["caption"],
23298
- ignoreEmptyString: ["body", "alt", "license", "copyright"]
23329
+ ignoreEmptyString: ["body", "alt", "license", "copyright"],
23330
+ ignoreFalse: ["selected"]
23299
23331
  });
23300
23332
  return nodeValidator.validateResource(node);
23301
23333
  }
@@ -23306,7 +23338,7 @@ var ResourceBuilder = class extends BaseBuilder {
23306
23338
  * @returns
23307
23339
  */
23308
23340
  documentResource(context, data) {
23309
- const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
23341
+ const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
23310
23342
  const node = {
23311
23343
  type: ResourceType.document,
23312
23344
  __typeAlias: ResourceType.document,
@@ -23320,13 +23352,14 @@ var ResourceBuilder = class extends BaseBuilder {
23320
23352
  copyright: copyright ?? "",
23321
23353
  showInIndex: showInIndex ?? false,
23322
23354
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23323
- search: search ?? void 0
23355
+ search: search ?? void 0,
23356
+ selected: selected ?? false
23324
23357
  }
23325
23358
  };
23326
23359
  objectUtils.removeUnwantedProperties(node.document, {
23327
23360
  ignoreEmptyArrays: ["caption"],
23328
23361
  ignoreEmptyString: ["url", "alt", "license", "copyright"],
23329
- ignoreFalse: ["showInIndex"]
23362
+ ignoreFalse: ["showInIndex", "selected"]
23330
23363
  });
23331
23364
  return nodeValidator.validateResource(node);
23332
23365
  }
@@ -23337,7 +23370,7 @@ var ResourceBuilder = class extends BaseBuilder {
23337
23370
  * @returns
23338
23371
  */
23339
23372
  documentEmbedResource(context, data) {
23340
- const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
23373
+ const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
23341
23374
  const node = {
23342
23375
  type: ResourceType.documentEmbed,
23343
23376
  __typeAlias: ResourceType.documentEmbed,
@@ -23351,13 +23384,14 @@ var ResourceBuilder = class extends BaseBuilder {
23351
23384
  copyright: copyright ?? "",
23352
23385
  showInIndex: showInIndex ?? false,
23353
23386
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23354
- search: search ?? void 0
23387
+ search: search ?? void 0,
23388
+ selected: selected ?? false
23355
23389
  }
23356
23390
  };
23357
23391
  objectUtils.removeUnwantedProperties(node.documentEmbed, {
23358
23392
  ignoreEmptyArrays: ["caption"],
23359
23393
  ignoreEmptyString: ["url", "alt", "license", "copyright"],
23360
- ignoreFalse: ["showInIndex"]
23394
+ ignoreFalse: ["showInIndex", "selected"]
23361
23395
  });
23362
23396
  return nodeValidator.validateResource(node);
23363
23397
  }
@@ -23368,7 +23402,7 @@ var ResourceBuilder = class extends BaseBuilder {
23368
23402
  * @returns
23369
23403
  */
23370
23404
  documentLinkResource(context, data) {
23371
- const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
23405
+ const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
23372
23406
  const node = {
23373
23407
  type: ResourceType.documentLink,
23374
23408
  __typeAlias: ResourceType.documentLink,
@@ -23382,13 +23416,14 @@ var ResourceBuilder = class extends BaseBuilder {
23382
23416
  copyright: copyright ?? "",
23383
23417
  showInIndex: showInIndex ?? false,
23384
23418
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23385
- search: search ?? void 0
23419
+ search: search ?? void 0,
23420
+ selected: selected ?? false
23386
23421
  }
23387
23422
  };
23388
23423
  objectUtils.removeUnwantedProperties(node.documentLink, {
23389
23424
  ignoreEmptyArrays: ["caption"],
23390
23425
  ignoreEmptyString: ["url", "alt", "license", "copyright"],
23391
- ignoreFalse: ["showInIndex"]
23426
+ ignoreFalse: ["showInIndex", "selected"]
23392
23427
  });
23393
23428
  return nodeValidator.validateResource(node);
23394
23429
  }
@@ -23399,7 +23434,7 @@ var ResourceBuilder = class extends BaseBuilder {
23399
23434
  * @returns
23400
23435
  */
23401
23436
  documentDownloadResource(context, data) {
23402
- const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
23437
+ const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
23403
23438
  const node = {
23404
23439
  type: ResourceType.documentDownload,
23405
23440
  __typeAlias: ResourceType.documentDownload,
@@ -23413,13 +23448,14 @@ var ResourceBuilder = class extends BaseBuilder {
23413
23448
  copyright: copyright ?? "",
23414
23449
  showInIndex: showInIndex ?? false,
23415
23450
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23416
- search: search ?? void 0
23451
+ search: search ?? void 0,
23452
+ selected: selected ?? false
23417
23453
  }
23418
23454
  };
23419
23455
  objectUtils.removeUnwantedProperties(node.documentDownload, {
23420
23456
  ignoreEmptyArrays: ["caption"],
23421
23457
  ignoreEmptyString: ["url", "alt", "license", "copyright"],
23422
- ignoreFalse: ["showInIndex"]
23458
+ ignoreFalse: ["showInIndex", "selected"]
23423
23459
  });
23424
23460
  return nodeValidator.validateResource(node);
23425
23461
  }
@@ -23430,7 +23466,7 @@ var ResourceBuilder = class extends BaseBuilder {
23430
23466
  * @returns
23431
23467
  */
23432
23468
  appLinkResource(context, data) {
23433
- const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
23469
+ const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
23434
23470
  const node = {
23435
23471
  type: ResourceType.appLink,
23436
23472
  __typeAlias: ResourceType.appLink,
@@ -23445,7 +23481,8 @@ var ResourceBuilder = class extends BaseBuilder {
23445
23481
  copyright: copyright ?? "",
23446
23482
  showInIndex: showInIndex ?? false,
23447
23483
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23448
- search: search ?? void 0
23484
+ search: search ?? void 0,
23485
+ selected: selected ?? false
23449
23486
  }
23450
23487
  };
23451
23488
  objectUtils.removeUnwantedProperties(node.appLink, {
@@ -23456,7 +23493,7 @@ var ResourceBuilder = class extends BaseBuilder {
23456
23493
  "license",
23457
23494
  "copyright"
23458
23495
  ],
23459
- ignoreFalse: ["showInIndex"]
23496
+ ignoreFalse: ["showInIndex", "selected"]
23460
23497
  });
23461
23498
  return nodeValidator.validateResource(node);
23462
23499
  }
@@ -23475,7 +23512,8 @@ var ResourceBuilder = class extends BaseBuilder {
23475
23512
  copyright,
23476
23513
  showInIndex,
23477
23514
  caption,
23478
- search
23515
+ search,
23516
+ selected
23479
23517
  } = data;
23480
23518
  const node = {
23481
23519
  type: ResourceType.websiteLink,
@@ -23491,13 +23529,14 @@ var ResourceBuilder = class extends BaseBuilder {
23491
23529
  copyright: copyright ?? "",
23492
23530
  showInIndex: showInIndex ?? false,
23493
23531
  caption: this.handleJsonText(context, TextLocation2.tag, caption),
23494
- search: search ?? void 0
23532
+ search: search ?? void 0,
23533
+ selected: selected ?? false
23495
23534
  }
23496
23535
  };
23497
23536
  objectUtils.removeUnwantedProperties(node.websiteLink, {
23498
23537
  ignoreEmptyArrays: ["caption"],
23499
23538
  ignoreEmptyString: ["url", "alt", "license", "copyright"],
23500
- ignoreFalse: ["showInIndex"]
23539
+ ignoreFalse: ["showInIndex", "selected"]
23501
23540
  });
23502
23541
  return nodeValidator.validateResource(node);
23503
23542
  }
@@ -28191,7 +28230,7 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
28191
28230
  BitType.pageBanner,
28192
28231
  BitType.imagesLogoGrave,
28193
28232
  BitType.prototypeImages,
28194
- BitType.extractorImages
28233
+ BitType.extractorImage
28195
28234
  ])) {
28196
28235
  this.writeProperty("zoomDisabled", node.value, route, {
28197
28236
  format: TagFormat.boolean,
@@ -28244,6 +28283,14 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
28244
28283
  format: TagFormat.plainText
28245
28284
  });
28246
28285
  }
28286
+ leaf_selected(node, route) {
28287
+ if (node.value == null) return;
28288
+ this.writeNL_IfNotChain(route);
28289
+ this.writeProperty("selected", node.value, route, {
28290
+ format: TagFormat.boolean,
28291
+ ignoreFalse: true
28292
+ });
28293
+ }
28247
28294
  // bitmarkAst -> bits -> bitsValue -> resource -> ...
28248
28295
  // bitmarkAst -> bits -> bitsValue -> resource -> posterImage -> ...
28249
28296
  // bitmarkAst -> bits -> bitsValue -> resource -> thumbnails -> thumbnailsValue -> ...
@@ -29416,7 +29463,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
29416
29463
  } else if (instance2.isOfBitType(bitType, [
29417
29464
  BitType.imagesLogoGrave,
29418
29465
  BitType.prototypeImages,
29419
- BitType.extractorImages
29466
+ BitType.extractorImage
29420
29467
  ])) {
29421
29468
  const images = [];
29422
29469
  for (const r of resources) {
@@ -29997,7 +30044,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
29997
30044
  if (instance2.isOfBitType(bitType, [
29998
30045
  BitType.imagesLogoGrave,
29999
30046
  BitType.prototypeImages,
30000
- BitType.extractorImages
30047
+ BitType.extractorImage
30001
30048
  ])) {
30002
30049
  if (bitType === BitType.imagesLogoGrave) {
30003
30050
  if (bitJson.logos == null) {
@@ -30429,7 +30476,7 @@ var JsonParser = class {
30429
30476
  processResources(bitType, resource, images, logos) {
30430
30477
  const nodes = [];
30431
30478
  if (resource) nodes.push(resource);
30432
- if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.extractorImages])) {
30479
+ if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.extractorImage])) {
30433
30480
  if (Array.isArray(images)) {
30434
30481
  for (const image of images) {
30435
30482
  if (image) nodes.push(image);