@fedify/vocab-tools 2.1.23 → 2.1.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.
@@ -25,6 +25,16 @@ import {
25
25
  isTemporalInstant,
26
26
  } from \\"@fedify/vocab-runtime/temporal\\";
27
27
 
28
+ function canDecodeIri(iri: string): boolean {
29
+ return URL.canParse(iri) || iri.startsWith(\\"at://\\");
30
+ }
31
+
32
+ function decodeIri(iri: string): URL {
33
+ return !URL.canParse(iri) && iri.startsWith(\\"at://\\")
34
+ ? new URL(\\"at://\\" + encodeURIComponent(iri.substring(5)))
35
+ : new URL(iri);
36
+ }
37
+
28
38
  function isValidLanguageTag(language: string): boolean {
29
39
  try {
30
40
  new Intl.Locale(language);
@@ -2357,7 +2367,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2357
2367
  \\"attachment\\"];
2358
2368
  const obj = Array.isArray(prop) ? prop[i] : prop;
2359
2369
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
2360
- v = await this.#attachment_fromJsonLd(obj, options);
2370
+ try {
2371
+ v = await this.#attachment_fromJsonLd(obj, options);
2372
+ } catch (error) {
2373
+ if (!options.suppressError) throw error;
2374
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2375
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
2376
+ { property: \\"https://www.w3.org/ns/activitystreams#attachment\\", index: i, error },
2377
+ );
2378
+ continue;
2379
+ }
2361
2380
  }
2362
2381
  }
2363
2382
 
@@ -2611,7 +2630,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2611
2630
  \\"attributedTo\\"];
2612
2631
  const doc = Array.isArray(prop) ? prop[0] : prop;
2613
2632
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
2614
- v = await this.#attribution_fromJsonLd(doc, options);
2633
+ try {
2634
+ v = await this.#attribution_fromJsonLd(doc, options);
2635
+ } catch (error) {
2636
+ if (!options.suppressError) throw error;
2637
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2638
+ \\"Failed to parse embedded value of {property}: {error}\\",
2639
+ { property: \\"https://www.w3.org/ns/activitystreams#attributedTo\\", error },
2640
+ );
2641
+ return null;
2642
+ }
2615
2643
  }
2616
2644
  }
2617
2645
 
@@ -2707,7 +2735,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2707
2735
  \\"attributedTo\\"];
2708
2736
  const obj = Array.isArray(prop) ? prop[i] : prop;
2709
2737
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
2710
- v = await this.#attribution_fromJsonLd(obj, options);
2738
+ try {
2739
+ v = await this.#attribution_fromJsonLd(obj, options);
2740
+ } catch (error) {
2741
+ if (!options.suppressError) throw error;
2742
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2743
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
2744
+ { property: \\"https://www.w3.org/ns/activitystreams#attributedTo\\", index: i, error },
2745
+ );
2746
+ continue;
2747
+ }
2711
2748
  }
2712
2749
  }
2713
2750
 
@@ -2924,7 +2961,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2924
2961
  \\"audience\\"];
2925
2962
  const doc = Array.isArray(prop) ? prop[0] : prop;
2926
2963
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
2927
- v = await this.#audience_fromJsonLd(doc, options);
2964
+ try {
2965
+ v = await this.#audience_fromJsonLd(doc, options);
2966
+ } catch (error) {
2967
+ if (!options.suppressError) throw error;
2968
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2969
+ \\"Failed to parse embedded value of {property}: {error}\\",
2970
+ { property: \\"https://www.w3.org/ns/activitystreams#audience\\", error },
2971
+ );
2972
+ return null;
2973
+ }
2928
2974
  }
2929
2975
  }
2930
2976
 
@@ -3019,7 +3065,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
3019
3065
  \\"audience\\"];
3020
3066
  const obj = Array.isArray(prop) ? prop[i] : prop;
3021
3067
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3022
- v = await this.#audience_fromJsonLd(obj, options);
3068
+ try {
3069
+ v = await this.#audience_fromJsonLd(obj, options);
3070
+ } catch (error) {
3071
+ if (!options.suppressError) throw error;
3072
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3073
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3074
+ { property: \\"https://www.w3.org/ns/activitystreams#audience\\", index: i, error },
3075
+ );
3076
+ continue;
3077
+ }
3023
3078
  }
3024
3079
  }
3025
3080
 
@@ -3280,7 +3335,16 @@ get contents(): ((string | LanguageString))[] {
3280
3335
  \\"context\\"];
3281
3336
  const obj = Array.isArray(prop) ? prop[i] : prop;
3282
3337
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3283
- v = await this.#context_fromJsonLd(obj, options);
3338
+ try {
3339
+ v = await this.#context_fromJsonLd(obj, options);
3340
+ } catch (error) {
3341
+ if (!options.suppressError) throw error;
3342
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3343
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3344
+ { property: \\"https://www.w3.org/ns/activitystreams#context\\", index: i, error },
3345
+ );
3346
+ continue;
3347
+ }
3284
3348
  }
3285
3349
  }
3286
3350
 
@@ -3548,7 +3612,16 @@ get names(): ((string | LanguageString))[] {
3548
3612
  \\"generator\\"];
3549
3613
  const obj = Array.isArray(prop) ? prop[i] : prop;
3550
3614
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3551
- v = await this.#generator_fromJsonLd(obj, options);
3615
+ try {
3616
+ v = await this.#generator_fromJsonLd(obj, options);
3617
+ } catch (error) {
3618
+ if (!options.suppressError) throw error;
3619
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3620
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3621
+ { property: \\"https://www.w3.org/ns/activitystreams#generator\\", index: i, error },
3622
+ );
3623
+ continue;
3624
+ }
3552
3625
  }
3553
3626
  }
3554
3627
 
@@ -3766,7 +3839,16 @@ get names(): ((string | LanguageString))[] {
3766
3839
  \\"icon\\"];
3767
3840
  const doc = Array.isArray(prop) ? prop[0] : prop;
3768
3841
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
3769
- v = await this.#icon_fromJsonLd(doc, options);
3842
+ try {
3843
+ v = await this.#icon_fromJsonLd(doc, options);
3844
+ } catch (error) {
3845
+ if (!options.suppressError) throw error;
3846
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3847
+ \\"Failed to parse embedded value of {property}: {error}\\",
3848
+ { property: \\"https://www.w3.org/ns/activitystreams#icon\\", error },
3849
+ );
3850
+ return null;
3851
+ }
3770
3852
  }
3771
3853
  }
3772
3854
 
@@ -3862,7 +3944,16 @@ get names(): ((string | LanguageString))[] {
3862
3944
  \\"icon\\"];
3863
3945
  const obj = Array.isArray(prop) ? prop[i] : prop;
3864
3946
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3865
- v = await this.#icon_fromJsonLd(obj, options);
3947
+ try {
3948
+ v = await this.#icon_fromJsonLd(obj, options);
3949
+ } catch (error) {
3950
+ if (!options.suppressError) throw error;
3951
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3952
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3953
+ { property: \\"https://www.w3.org/ns/activitystreams#icon\\", index: i, error },
3954
+ );
3955
+ continue;
3956
+ }
3866
3957
  }
3867
3958
  }
3868
3959
 
@@ -4080,7 +4171,16 @@ get names(): ((string | LanguageString))[] {
4080
4171
  \\"image\\"];
4081
4172
  const doc = Array.isArray(prop) ? prop[0] : prop;
4082
4173
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
4083
- v = await this.#image_fromJsonLd(doc, options);
4174
+ try {
4175
+ v = await this.#image_fromJsonLd(doc, options);
4176
+ } catch (error) {
4177
+ if (!options.suppressError) throw error;
4178
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4179
+ \\"Failed to parse embedded value of {property}: {error}\\",
4180
+ { property: \\"https://www.w3.org/ns/activitystreams#image\\", error },
4181
+ );
4182
+ return null;
4183
+ }
4084
4184
  }
4085
4185
  }
4086
4186
 
@@ -4176,7 +4276,16 @@ get names(): ((string | LanguageString))[] {
4176
4276
  \\"image\\"];
4177
4277
  const obj = Array.isArray(prop) ? prop[i] : prop;
4178
4278
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
4179
- v = await this.#image_fromJsonLd(obj, options);
4279
+ try {
4280
+ v = await this.#image_fromJsonLd(obj, options);
4281
+ } catch (error) {
4282
+ if (!options.suppressError) throw error;
4283
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4284
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
4285
+ { property: \\"https://www.w3.org/ns/activitystreams#image\\", index: i, error },
4286
+ );
4287
+ continue;
4288
+ }
4180
4289
  }
4181
4290
  }
4182
4291
 
@@ -4402,7 +4511,16 @@ get names(): ((string | LanguageString))[] {
4402
4511
  \\"inReplyTo\\"];
4403
4512
  const doc = Array.isArray(prop) ? prop[0] : prop;
4404
4513
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
4405
- v = await this.#replyTarget_fromJsonLd(doc, options);
4514
+ try {
4515
+ v = await this.#replyTarget_fromJsonLd(doc, options);
4516
+ } catch (error) {
4517
+ if (!options.suppressError) throw error;
4518
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4519
+ \\"Failed to parse embedded value of {property}: {error}\\",
4520
+ { property: \\"https://www.w3.org/ns/activitystreams#inReplyTo\\", error },
4521
+ );
4522
+ return null;
4523
+ }
4406
4524
  }
4407
4525
  }
4408
4526
 
@@ -4497,7 +4615,16 @@ get names(): ((string | LanguageString))[] {
4497
4615
  \\"inReplyTo\\"];
4498
4616
  const obj = Array.isArray(prop) ? prop[i] : prop;
4499
4617
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
4500
- v = await this.#replyTarget_fromJsonLd(obj, options);
4618
+ try {
4619
+ v = await this.#replyTarget_fromJsonLd(obj, options);
4620
+ } catch (error) {
4621
+ if (!options.suppressError) throw error;
4622
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4623
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
4624
+ { property: \\"https://www.w3.org/ns/activitystreams#inReplyTo\\", index: i, error },
4625
+ );
4626
+ continue;
4627
+ }
4501
4628
  }
4502
4629
  }
4503
4630
 
@@ -4723,7 +4850,16 @@ get names(): ((string | LanguageString))[] {
4723
4850
  \\"location\\"];
4724
4851
  const doc = Array.isArray(prop) ? prop[0] : prop;
4725
4852
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
4726
- v = await this.#location_fromJsonLd(doc, options);
4853
+ try {
4854
+ v = await this.#location_fromJsonLd(doc, options);
4855
+ } catch (error) {
4856
+ if (!options.suppressError) throw error;
4857
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4858
+ \\"Failed to parse embedded value of {property}: {error}\\",
4859
+ { property: \\"https://www.w3.org/ns/activitystreams#location\\", error },
4860
+ );
4861
+ return null;
4862
+ }
4727
4863
  }
4728
4864
  }
4729
4865
 
@@ -4818,7 +4954,16 @@ get names(): ((string | LanguageString))[] {
4818
4954
  \\"location\\"];
4819
4955
  const obj = Array.isArray(prop) ? prop[i] : prop;
4820
4956
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
4821
- v = await this.#location_fromJsonLd(obj, options);
4957
+ try {
4958
+ v = await this.#location_fromJsonLd(obj, options);
4959
+ } catch (error) {
4960
+ if (!options.suppressError) throw error;
4961
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4962
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
4963
+ { property: \\"https://www.w3.org/ns/activitystreams#location\\", index: i, error },
4964
+ );
4965
+ continue;
4966
+ }
4822
4967
  }
4823
4968
  }
4824
4969
 
@@ -5043,7 +5188,16 @@ get names(): ((string | LanguageString))[] {
5043
5188
  \\"preview\\"];
5044
5189
  const doc = Array.isArray(prop) ? prop[0] : prop;
5045
5190
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5046
- v = await this.#preview_fromJsonLd(doc, options);
5191
+ try {
5192
+ v = await this.#preview_fromJsonLd(doc, options);
5193
+ } catch (error) {
5194
+ if (!options.suppressError) throw error;
5195
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5196
+ \\"Failed to parse embedded value of {property}: {error}\\",
5197
+ { property: \\"https://www.w3.org/ns/activitystreams#preview\\", error },
5198
+ );
5199
+ return null;
5200
+ }
5047
5201
  }
5048
5202
  }
5049
5203
 
@@ -5137,7 +5291,16 @@ get names(): ((string | LanguageString))[] {
5137
5291
  \\"preview\\"];
5138
5292
  const obj = Array.isArray(prop) ? prop[i] : prop;
5139
5293
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
5140
- v = await this.#preview_fromJsonLd(obj, options);
5294
+ try {
5295
+ v = await this.#preview_fromJsonLd(obj, options);
5296
+ } catch (error) {
5297
+ if (!options.suppressError) throw error;
5298
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5299
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
5300
+ { property: \\"https://www.w3.org/ns/activitystreams#preview\\", index: i, error },
5301
+ );
5302
+ continue;
5303
+ }
5141
5304
  }
5142
5305
  }
5143
5306
 
@@ -5367,7 +5530,16 @@ get names(): ((string | LanguageString))[] {
5367
5530
  \\"replies\\"];
5368
5531
  const doc = Array.isArray(prop) ? prop[0] : prop;
5369
5532
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5370
- v = await this.#replies_fromJsonLd(doc, options);
5533
+ try {
5534
+ v = await this.#replies_fromJsonLd(doc, options);
5535
+ } catch (error) {
5536
+ if (!options.suppressError) throw error;
5537
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5538
+ \\"Failed to parse embedded value of {property}: {error}\\",
5539
+ { property: \\"https://www.w3.org/ns/activitystreams#replies\\", error },
5540
+ );
5541
+ return null;
5542
+ }
5371
5543
  }
5372
5544
  }
5373
5545
 
@@ -5589,7 +5761,16 @@ get names(): ((string | LanguageString))[] {
5589
5761
  \\"shares\\"];
5590
5762
  const doc = Array.isArray(prop) ? prop[0] : prop;
5591
5763
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5592
- v = await this.#shares_fromJsonLd(doc, options);
5764
+ try {
5765
+ v = await this.#shares_fromJsonLd(doc, options);
5766
+ } catch (error) {
5767
+ if (!options.suppressError) throw error;
5768
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5769
+ \\"Failed to parse embedded value of {property}: {error}\\",
5770
+ { property: \\"https://www.w3.org/ns/activitystreams#shares\\", error },
5771
+ );
5772
+ return null;
5773
+ }
5593
5774
  }
5594
5775
  }
5595
5776
 
@@ -5811,7 +5992,16 @@ get names(): ((string | LanguageString))[] {
5811
5992
  \\"likes\\"];
5812
5993
  const doc = Array.isArray(prop) ? prop[0] : prop;
5813
5994
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5814
- v = await this.#likes_fromJsonLd(doc, options);
5995
+ try {
5996
+ v = await this.#likes_fromJsonLd(doc, options);
5997
+ } catch (error) {
5998
+ if (!options.suppressError) throw error;
5999
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6000
+ \\"Failed to parse embedded value of {property}: {error}\\",
6001
+ { property: \\"https://www.w3.org/ns/activitystreams#likes\\", error },
6002
+ );
6003
+ return null;
6004
+ }
5815
6005
  }
5816
6006
  }
5817
6007
 
@@ -6027,7 +6217,16 @@ get names(): ((string | LanguageString))[] {
6027
6217
  \\"emojiReactions\\"];
6028
6218
  const doc = Array.isArray(prop) ? prop[0] : prop;
6029
6219
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
6030
- v = await this.#emojiReactions_fromJsonLd(doc, options);
6220
+ try {
6221
+ v = await this.#emojiReactions_fromJsonLd(doc, options);
6222
+ } catch (error) {
6223
+ if (!options.suppressError) throw error;
6224
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6225
+ \\"Failed to parse embedded value of {property}: {error}\\",
6226
+ { property: \\"http://fedibird.com/ns#emojiReactions\\", error },
6227
+ );
6228
+ return null;
6229
+ }
6031
6230
  }
6032
6231
  }
6033
6232
 
@@ -6295,7 +6494,16 @@ get summaries(): ((string | LanguageString))[] {
6295
6494
  \\"tag\\"];
6296
6495
  const obj = Array.isArray(prop) ? prop[i] : prop;
6297
6496
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
6298
- v = await this.#tag_fromJsonLd(obj, options);
6497
+ try {
6498
+ v = await this.#tag_fromJsonLd(obj, options);
6499
+ } catch (error) {
6500
+ if (!options.suppressError) throw error;
6501
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6502
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
6503
+ { property: \\"https://www.w3.org/ns/activitystreams#tag\\", index: i, error },
6504
+ );
6505
+ continue;
6506
+ }
6299
6507
  }
6300
6508
  }
6301
6509
 
@@ -6546,7 +6754,16 @@ get urls(): ((URL | Link))[] {
6546
6754
  \\"to\\"];
6547
6755
  const doc = Array.isArray(prop) ? prop[0] : prop;
6548
6756
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
6549
- v = await this.#to_fromJsonLd(doc, options);
6757
+ try {
6758
+ v = await this.#to_fromJsonLd(doc, options);
6759
+ } catch (error) {
6760
+ if (!options.suppressError) throw error;
6761
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6762
+ \\"Failed to parse embedded value of {property}: {error}\\",
6763
+ { property: \\"https://www.w3.org/ns/activitystreams#to\\", error },
6764
+ );
6765
+ return null;
6766
+ }
6550
6767
  }
6551
6768
  }
6552
6769
 
@@ -6641,7 +6858,16 @@ get urls(): ((URL | Link))[] {
6641
6858
  \\"to\\"];
6642
6859
  const obj = Array.isArray(prop) ? prop[i] : prop;
6643
6860
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
6644
- v = await this.#to_fromJsonLd(obj, options);
6861
+ try {
6862
+ v = await this.#to_fromJsonLd(obj, options);
6863
+ } catch (error) {
6864
+ if (!options.suppressError) throw error;
6865
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6866
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
6867
+ { property: \\"https://www.w3.org/ns/activitystreams#to\\", index: i, error },
6868
+ );
6869
+ continue;
6870
+ }
6645
6871
  }
6646
6872
  }
6647
6873
 
@@ -6858,7 +7084,16 @@ get urls(): ((URL | Link))[] {
6858
7084
  \\"bto\\"];
6859
7085
  const doc = Array.isArray(prop) ? prop[0] : prop;
6860
7086
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
6861
- v = await this.#bto_fromJsonLd(doc, options);
7087
+ try {
7088
+ v = await this.#bto_fromJsonLd(doc, options);
7089
+ } catch (error) {
7090
+ if (!options.suppressError) throw error;
7091
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7092
+ \\"Failed to parse embedded value of {property}: {error}\\",
7093
+ { property: \\"https://www.w3.org/ns/activitystreams#bto\\", error },
7094
+ );
7095
+ return null;
7096
+ }
6862
7097
  }
6863
7098
  }
6864
7099
 
@@ -6953,7 +7188,16 @@ get urls(): ((URL | Link))[] {
6953
7188
  \\"bto\\"];
6954
7189
  const obj = Array.isArray(prop) ? prop[i] : prop;
6955
7190
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
6956
- v = await this.#bto_fromJsonLd(obj, options);
7191
+ try {
7192
+ v = await this.#bto_fromJsonLd(obj, options);
7193
+ } catch (error) {
7194
+ if (!options.suppressError) throw error;
7195
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7196
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
7197
+ { property: \\"https://www.w3.org/ns/activitystreams#bto\\", index: i, error },
7198
+ );
7199
+ continue;
7200
+ }
6957
7201
  }
6958
7202
  }
6959
7203
 
@@ -7170,7 +7414,16 @@ get urls(): ((URL | Link))[] {
7170
7414
  \\"cc\\"];
7171
7415
  const doc = Array.isArray(prop) ? prop[0] : prop;
7172
7416
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
7173
- v = await this.#cc_fromJsonLd(doc, options);
7417
+ try {
7418
+ v = await this.#cc_fromJsonLd(doc, options);
7419
+ } catch (error) {
7420
+ if (!options.suppressError) throw error;
7421
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7422
+ \\"Failed to parse embedded value of {property}: {error}\\",
7423
+ { property: \\"https://www.w3.org/ns/activitystreams#cc\\", error },
7424
+ );
7425
+ return null;
7426
+ }
7174
7427
  }
7175
7428
  }
7176
7429
 
@@ -7265,7 +7518,16 @@ get urls(): ((URL | Link))[] {
7265
7518
  \\"cc\\"];
7266
7519
  const obj = Array.isArray(prop) ? prop[i] : prop;
7267
7520
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
7268
- v = await this.#cc_fromJsonLd(obj, options);
7521
+ try {
7522
+ v = await this.#cc_fromJsonLd(obj, options);
7523
+ } catch (error) {
7524
+ if (!options.suppressError) throw error;
7525
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7526
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
7527
+ { property: \\"https://www.w3.org/ns/activitystreams#cc\\", index: i, error },
7528
+ );
7529
+ continue;
7530
+ }
7269
7531
  }
7270
7532
  }
7271
7533
 
@@ -7482,7 +7744,16 @@ get urls(): ((URL | Link))[] {
7482
7744
  \\"bcc\\"];
7483
7745
  const doc = Array.isArray(prop) ? prop[0] : prop;
7484
7746
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
7485
- v = await this.#bcc_fromJsonLd(doc, options);
7747
+ try {
7748
+ v = await this.#bcc_fromJsonLd(doc, options);
7749
+ } catch (error) {
7750
+ if (!options.suppressError) throw error;
7751
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7752
+ \\"Failed to parse embedded value of {property}: {error}\\",
7753
+ { property: \\"https://www.w3.org/ns/activitystreams#bcc\\", error },
7754
+ );
7755
+ return null;
7756
+ }
7486
7757
  }
7487
7758
  }
7488
7759
 
@@ -7577,7 +7848,16 @@ get urls(): ((URL | Link))[] {
7577
7848
  \\"bcc\\"];
7578
7849
  const obj = Array.isArray(prop) ? prop[i] : prop;
7579
7850
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
7580
- v = await this.#bcc_fromJsonLd(obj, options);
7851
+ try {
7852
+ v = await this.#bcc_fromJsonLd(obj, options);
7853
+ } catch (error) {
7854
+ if (!options.suppressError) throw error;
7855
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7856
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
7857
+ { property: \\"https://www.w3.org/ns/activitystreams#bcc\\", index: i, error },
7858
+ );
7859
+ continue;
7860
+ }
7581
7861
  }
7582
7862
  }
7583
7863
 
@@ -7857,7 +8137,16 @@ get urls(): ((URL | Link))[] {
7857
8137
  \\"proof\\"];
7858
8138
  const doc = Array.isArray(prop) ? prop[0] : prop;
7859
8139
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
7860
- v = await this.#proof_fromJsonLd(doc, options);
8140
+ try {
8141
+ v = await this.#proof_fromJsonLd(doc, options);
8142
+ } catch (error) {
8143
+ if (!options.suppressError) throw error;
8144
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8145
+ \\"Failed to parse embedded value of {property}: {error}\\",
8146
+ { property: \\"https://w3id.org/security#proof\\", error },
8147
+ );
8148
+ return null;
8149
+ }
7861
8150
  }
7862
8151
  }
7863
8152
 
@@ -7951,7 +8240,16 @@ get urls(): ((URL | Link))[] {
7951
8240
  \\"proof\\"];
7952
8241
  const obj = Array.isArray(prop) ? prop[i] : prop;
7953
8242
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
7954
- v = await this.#proof_fromJsonLd(obj, options);
8243
+ try {
8244
+ v = await this.#proof_fromJsonLd(obj, options);
8245
+ } catch (error) {
8246
+ if (!options.suppressError) throw error;
8247
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8248
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
8249
+ { property: \\"https://w3id.org/security#proof\\", index: i, error },
8250
+ );
8251
+ continue;
8252
+ }
7955
8253
  }
7956
8254
  }
7957
8255
 
@@ -8207,7 +8505,16 @@ get urls(): ((URL | Link))[] {
8207
8505
  \\"likeAuthorization\\"];
8208
8506
  const doc = Array.isArray(prop) ? prop[0] : prop;
8209
8507
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
8210
- v = await this.#likeAuthorization_fromJsonLd(doc, options);
8508
+ try {
8509
+ v = await this.#likeAuthorization_fromJsonLd(doc, options);
8510
+ } catch (error) {
8511
+ if (!options.suppressError) throw error;
8512
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8513
+ \\"Failed to parse embedded value of {property}: {error}\\",
8514
+ { property: \\"https://gotosocial.org/ns#likeAuthorization\\", error },
8515
+ );
8516
+ return null;
8517
+ }
8211
8518
  }
8212
8519
  }
8213
8520
 
@@ -8423,7 +8730,16 @@ get urls(): ((URL | Link))[] {
8423
8730
  \\"replyAuthorization\\"];
8424
8731
  const doc = Array.isArray(prop) ? prop[0] : prop;
8425
8732
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
8426
- v = await this.#replyAuthorization_fromJsonLd(doc, options);
8733
+ try {
8734
+ v = await this.#replyAuthorization_fromJsonLd(doc, options);
8735
+ } catch (error) {
8736
+ if (!options.suppressError) throw error;
8737
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8738
+ \\"Failed to parse embedded value of {property}: {error}\\",
8739
+ { property: \\"https://gotosocial.org/ns#replyAuthorization\\", error },
8740
+ );
8741
+ return null;
8742
+ }
8427
8743
  }
8428
8744
  }
8429
8745
 
@@ -8639,7 +8955,16 @@ get urls(): ((URL | Link))[] {
8639
8955
  \\"announceAuthorization\\"];
8640
8956
  const doc = Array.isArray(prop) ? prop[0] : prop;
8641
8957
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
8642
- v = await this.#announceAuthorization_fromJsonLd(doc, options);
8958
+ try {
8959
+ v = await this.#announceAuthorization_fromJsonLd(doc, options);
8960
+ } catch (error) {
8961
+ if (!options.suppressError) throw error;
8962
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8963
+ \\"Failed to parse embedded value of {property}: {error}\\",
8964
+ { property: \\"https://gotosocial.org/ns#announceAuthorization\\", error },
8965
+ );
8966
+ return null;
8967
+ }
8643
8968
  }
8644
8969
  }
8645
8970
 
@@ -13549,9 +13874,18 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
13549
13874
  if (v == null) continue;
13550
13875
 
13551
13876
  const decoded =
13552
- new URL(v[\\"@value\\"])
13877
+ typeof v === \\"object\\" &&
13878
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
13879
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
13880
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
13881
+ ) : undefined
13553
13882
  ;
13554
13883
 
13884
+ if (typeof decoded === \\"undefined\\") {
13885
+ shouldCacheJsonLd = false;
13886
+ continue;
13887
+ }
13888
+
13555
13889
  if (!this._shouldCacheDecodedJsonLd(decoded)) {
13556
13890
  shouldCacheJsonLd = false;
13557
13891
  }
@@ -14463,7 +14797,16 @@ instruments?: (Object | URL)[];}
14463
14797
  \\"actor\\"];
14464
14798
  const doc = Array.isArray(prop) ? prop[0] : prop;
14465
14799
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
14466
- v = await this.#actor_fromJsonLd(doc, options);
14800
+ try {
14801
+ v = await this.#actor_fromJsonLd(doc, options);
14802
+ } catch (error) {
14803
+ if (!options.suppressError) throw error;
14804
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
14805
+ \\"Failed to parse embedded value of {property}: {error}\\",
14806
+ { property: \\"https://www.w3.org/ns/activitystreams#actor\\", error },
14807
+ );
14808
+ return null;
14809
+ }
14467
14810
  }
14468
14811
  }
14469
14812
 
@@ -14559,7 +14902,16 @@ instruments?: (Object | URL)[];}
14559
14902
  \\"actor\\"];
14560
14903
  const obj = Array.isArray(prop) ? prop[i] : prop;
14561
14904
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
14562
- v = await this.#actor_fromJsonLd(obj, options);
14905
+ try {
14906
+ v = await this.#actor_fromJsonLd(obj, options);
14907
+ } catch (error) {
14908
+ if (!options.suppressError) throw error;
14909
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
14910
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
14911
+ { property: \\"https://www.w3.org/ns/activitystreams#actor\\", index: i, error },
14912
+ );
14913
+ continue;
14914
+ }
14563
14915
  }
14564
14916
  }
14565
14917
 
@@ -14777,7 +15129,16 @@ instruments?: (Object | URL)[];}
14777
15129
  \\"object\\"];
14778
15130
  const doc = Array.isArray(prop) ? prop[0] : prop;
14779
15131
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
14780
- v = await this.#object_fromJsonLd(doc, options);
15132
+ try {
15133
+ v = await this.#object_fromJsonLd(doc, options);
15134
+ } catch (error) {
15135
+ if (!options.suppressError) throw error;
15136
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15137
+ \\"Failed to parse embedded value of {property}: {error}\\",
15138
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", error },
15139
+ );
15140
+ return null;
15141
+ }
14781
15142
  }
14782
15143
  }
14783
15144
 
@@ -14873,7 +15234,16 @@ instruments?: (Object | URL)[];}
14873
15234
  \\"object\\"];
14874
15235
  const obj = Array.isArray(prop) ? prop[i] : prop;
14875
15236
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
14876
- v = await this.#object_fromJsonLd(obj, options);
15237
+ try {
15238
+ v = await this.#object_fromJsonLd(obj, options);
15239
+ } catch (error) {
15240
+ if (!options.suppressError) throw error;
15241
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15242
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
15243
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", index: i, error },
15244
+ );
15245
+ continue;
15246
+ }
14877
15247
  }
14878
15248
  }
14879
15249
 
@@ -15094,7 +15464,16 @@ instruments?: (Object | URL)[];}
15094
15464
  \\"target\\"];
15095
15465
  const doc = Array.isArray(prop) ? prop[0] : prop;
15096
15466
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
15097
- v = await this.#target_fromJsonLd(doc, options);
15467
+ try {
15468
+ v = await this.#target_fromJsonLd(doc, options);
15469
+ } catch (error) {
15470
+ if (!options.suppressError) throw error;
15471
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15472
+ \\"Failed to parse embedded value of {property}: {error}\\",
15473
+ { property: \\"https://www.w3.org/ns/activitystreams#target\\", error },
15474
+ );
15475
+ return null;
15476
+ }
15098
15477
  }
15099
15478
  }
15100
15479
 
@@ -15193,7 +15572,16 @@ instruments?: (Object | URL)[];}
15193
15572
  \\"target\\"];
15194
15573
  const obj = Array.isArray(prop) ? prop[i] : prop;
15195
15574
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
15196
- v = await this.#target_fromJsonLd(obj, options);
15575
+ try {
15576
+ v = await this.#target_fromJsonLd(obj, options);
15577
+ } catch (error) {
15578
+ if (!options.suppressError) throw error;
15579
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15580
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
15581
+ { property: \\"https://www.w3.org/ns/activitystreams#target\\", index: i, error },
15582
+ );
15583
+ continue;
15584
+ }
15197
15585
  }
15198
15586
  }
15199
15587
 
@@ -15411,7 +15799,16 @@ instruments?: (Object | URL)[];}
15411
15799
  \\"result\\"];
15412
15800
  const doc = Array.isArray(prop) ? prop[0] : prop;
15413
15801
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
15414
- v = await this.#result_fromJsonLd(doc, options);
15802
+ try {
15803
+ v = await this.#result_fromJsonLd(doc, options);
15804
+ } catch (error) {
15805
+ if (!options.suppressError) throw error;
15806
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15807
+ \\"Failed to parse embedded value of {property}: {error}\\",
15808
+ { property: \\"https://www.w3.org/ns/activitystreams#result\\", error },
15809
+ );
15810
+ return null;
15811
+ }
15415
15812
  }
15416
15813
  }
15417
15814
 
@@ -15507,7 +15904,16 @@ instruments?: (Object | URL)[];}
15507
15904
  \\"result\\"];
15508
15905
  const obj = Array.isArray(prop) ? prop[i] : prop;
15509
15906
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
15510
- v = await this.#result_fromJsonLd(obj, options);
15907
+ try {
15908
+ v = await this.#result_fromJsonLd(obj, options);
15909
+ } catch (error) {
15910
+ if (!options.suppressError) throw error;
15911
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15912
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
15913
+ { property: \\"https://www.w3.org/ns/activitystreams#result\\", index: i, error },
15914
+ );
15915
+ continue;
15916
+ }
15511
15917
  }
15512
15918
  }
15513
15919
 
@@ -15726,7 +16132,16 @@ instruments?: (Object | URL)[];}
15726
16132
  \\"origin\\"];
15727
16133
  const doc = Array.isArray(prop) ? prop[0] : prop;
15728
16134
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
15729
- v = await this.#origin_fromJsonLd(doc, options);
16135
+ try {
16136
+ v = await this.#origin_fromJsonLd(doc, options);
16137
+ } catch (error) {
16138
+ if (!options.suppressError) throw error;
16139
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16140
+ \\"Failed to parse embedded value of {property}: {error}\\",
16141
+ { property: \\"https://www.w3.org/ns/activitystreams#origin\\", error },
16142
+ );
16143
+ return null;
16144
+ }
15730
16145
  }
15731
16146
  }
15732
16147
 
@@ -15823,7 +16238,16 @@ instruments?: (Object | URL)[];}
15823
16238
  \\"origin\\"];
15824
16239
  const obj = Array.isArray(prop) ? prop[i] : prop;
15825
16240
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
15826
- v = await this.#origin_fromJsonLd(obj, options);
16241
+ try {
16242
+ v = await this.#origin_fromJsonLd(obj, options);
16243
+ } catch (error) {
16244
+ if (!options.suppressError) throw error;
16245
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16246
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
16247
+ { property: \\"https://www.w3.org/ns/activitystreams#origin\\", index: i, error },
16248
+ );
16249
+ continue;
16250
+ }
15827
16251
  }
15828
16252
  }
15829
16253
 
@@ -16040,7 +16464,16 @@ instruments?: (Object | URL)[];}
16040
16464
  \\"instrument\\"];
16041
16465
  const doc = Array.isArray(prop) ? prop[0] : prop;
16042
16466
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
16043
- v = await this.#instrument_fromJsonLd(doc, options);
16467
+ try {
16468
+ v = await this.#instrument_fromJsonLd(doc, options);
16469
+ } catch (error) {
16470
+ if (!options.suppressError) throw error;
16471
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16472
+ \\"Failed to parse embedded value of {property}: {error}\\",
16473
+ { property: \\"https://www.w3.org/ns/activitystreams#instrument\\", error },
16474
+ );
16475
+ return null;
16476
+ }
16044
16477
  }
16045
16478
  }
16046
16479
 
@@ -16135,7 +16568,16 @@ instruments?: (Object | URL)[];}
16135
16568
  \\"instrument\\"];
16136
16569
  const obj = Array.isArray(prop) ? prop[i] : prop;
16137
16570
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
16138
- v = await this.#instrument_fromJsonLd(obj, options);
16571
+ try {
16572
+ v = await this.#instrument_fromJsonLd(obj, options);
16573
+ } catch (error) {
16574
+ if (!options.suppressError) throw error;
16575
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16576
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
16577
+ { property: \\"https://www.w3.org/ns/activitystreams#instrument\\", index: i, error },
16578
+ );
16579
+ continue;
16580
+ }
16139
16581
  }
16140
16582
  }
16141
16583
 
@@ -18358,7 +18800,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
18358
18800
  \\"interactingObject\\"];
18359
18801
  const doc = Array.isArray(prop) ? prop[0] : prop;
18360
18802
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
18361
- v = await this.#interactingObject_fromJsonLd(doc, options);
18803
+ try {
18804
+ v = await this.#interactingObject_fromJsonLd(doc, options);
18805
+ } catch (error) {
18806
+ if (!options.suppressError) throw error;
18807
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
18808
+ \\"Failed to parse embedded value of {property}: {error}\\",
18809
+ { property: \\"https://gotosocial.org/ns#interactingObject\\", error },
18810
+ );
18811
+ return null;
18812
+ }
18362
18813
  }
18363
18814
  }
18364
18815
 
@@ -18573,7 +19024,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
18573
19024
  \\"interactionTarget\\"];
18574
19025
  const doc = Array.isArray(prop) ? prop[0] : prop;
18575
19026
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
18576
- v = await this.#interactionTarget_fromJsonLd(doc, options);
19027
+ try {
19028
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
19029
+ } catch (error) {
19030
+ if (!options.suppressError) throw error;
19031
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
19032
+ \\"Failed to parse embedded value of {property}: {error}\\",
19033
+ { property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
19034
+ );
19035
+ return null;
19036
+ }
18577
19037
  }
18578
19038
  }
18579
19039
 
@@ -21168,7 +21628,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
21168
21628
  \\"interactingObject\\"];
21169
21629
  const doc = Array.isArray(prop) ? prop[0] : prop;
21170
21630
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
21171
- v = await this.#interactingObject_fromJsonLd(doc, options);
21631
+ try {
21632
+ v = await this.#interactingObject_fromJsonLd(doc, options);
21633
+ } catch (error) {
21634
+ if (!options.suppressError) throw error;
21635
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
21636
+ \\"Failed to parse embedded value of {property}: {error}\\",
21637
+ { property: \\"https://gotosocial.org/ns#interactingObject\\", error },
21638
+ );
21639
+ return null;
21640
+ }
21172
21641
  }
21173
21642
  }
21174
21643
 
@@ -21383,7 +21852,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
21383
21852
  \\"interactionTarget\\"];
21384
21853
  const doc = Array.isArray(prop) ? prop[0] : prop;
21385
21854
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
21386
- v = await this.#interactionTarget_fromJsonLd(doc, options);
21855
+ try {
21856
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
21857
+ } catch (error) {
21858
+ if (!options.suppressError) throw error;
21859
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
21860
+ \\"Failed to parse embedded value of {property}: {error}\\",
21861
+ { property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
21862
+ );
21863
+ return null;
21864
+ }
21387
21865
  }
21388
21866
  }
21389
21867
 
@@ -22544,7 +23022,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
22544
23022
  \\"interactingObject\\"];
22545
23023
  const doc = Array.isArray(prop) ? prop[0] : prop;
22546
23024
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
22547
- v = await this.#interactingObject_fromJsonLd(doc, options);
23025
+ try {
23026
+ v = await this.#interactingObject_fromJsonLd(doc, options);
23027
+ } catch (error) {
23028
+ if (!options.suppressError) throw error;
23029
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
23030
+ \\"Failed to parse embedded value of {property}: {error}\\",
23031
+ { property: \\"https://gotosocial.org/ns#interactingObject\\", error },
23032
+ );
23033
+ return null;
23034
+ }
22548
23035
  }
22549
23036
  }
22550
23037
 
@@ -22759,7 +23246,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
22759
23246
  \\"interactionTarget\\"];
22760
23247
  const doc = Array.isArray(prop) ? prop[0] : prop;
22761
23248
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
22762
- v = await this.#interactionTarget_fromJsonLd(doc, options);
23249
+ try {
23250
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
23251
+ } catch (error) {
23252
+ if (!options.suppressError) throw error;
23253
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
23254
+ \\"Failed to parse embedded value of {property}: {error}\\",
23255
+ { property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
23256
+ );
23257
+ return null;
23258
+ }
22763
23259
  }
22764
23260
  }
22765
23261
 
@@ -25913,7 +26409,16 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
25913
26409
  \\"owner\\"];
25914
26410
  const doc = Array.isArray(prop) ? prop[0] : prop;
25915
26411
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
25916
- v = await this.#owner_fromJsonLd(doc, options);
26412
+ try {
26413
+ v = await this.#owner_fromJsonLd(doc, options);
26414
+ } catch (error) {
26415
+ if (!options.suppressError) throw error;
26416
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
26417
+ \\"Failed to parse embedded value of {property}: {error}\\",
26418
+ { property: \\"https://w3id.org/security#owner\\", error },
26419
+ );
26420
+ return null;
26421
+ }
25917
26422
  }
25918
26423
  }
25919
26424
 
@@ -26819,7 +27324,16 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
26819
27324
  \\"controller\\"];
26820
27325
  const doc = Array.isArray(prop) ? prop[0] : prop;
26821
27326
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
26822
- v = await this.#controller_fromJsonLd(doc, options);
27327
+ try {
27328
+ v = await this.#controller_fromJsonLd(doc, options);
27329
+ } catch (error) {
27330
+ if (!options.suppressError) throw error;
27331
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
27332
+ \\"Failed to parse embedded value of {property}: {error}\\",
27333
+ { property: \\"https://w3id.org/security#controller\\", error },
27334
+ );
27335
+ return null;
27336
+ }
26823
27337
  }
26824
27338
  }
26825
27339
 
@@ -29546,7 +30060,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
29546
30060
  \\"publicKey\\"];
29547
30061
  const doc = Array.isArray(prop) ? prop[0] : prop;
29548
30062
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
29549
- v = await this.#publicKey_fromJsonLd(doc, options);
30063
+ try {
30064
+ v = await this.#publicKey_fromJsonLd(doc, options);
30065
+ } catch (error) {
30066
+ if (!options.suppressError) throw error;
30067
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
30068
+ \\"Failed to parse embedded value of {property}: {error}\\",
30069
+ { property: \\"https://w3id.org/security#publicKey\\", error },
30070
+ );
30071
+ return null;
30072
+ }
29550
30073
  }
29551
30074
  }
29552
30075
 
@@ -29639,7 +30162,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
29639
30162
  \\"publicKey\\"];
29640
30163
  const obj = Array.isArray(prop) ? prop[i] : prop;
29641
30164
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
29642
- v = await this.#publicKey_fromJsonLd(obj, options);
30165
+ try {
30166
+ v = await this.#publicKey_fromJsonLd(obj, options);
30167
+ } catch (error) {
30168
+ if (!options.suppressError) throw error;
30169
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
30170
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
30171
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
30172
+ );
30173
+ continue;
30174
+ }
29643
30175
  }
29644
30176
  }
29645
30177
 
@@ -29858,7 +30390,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
29858
30390
  \\"assertionMethod\\"];
29859
30391
  const doc = Array.isArray(prop) ? prop[0] : prop;
29860
30392
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
29861
- v = await this.#assertionMethod_fromJsonLd(doc, options);
30393
+ try {
30394
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
30395
+ } catch (error) {
30396
+ if (!options.suppressError) throw error;
30397
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
30398
+ \\"Failed to parse embedded value of {property}: {error}\\",
30399
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
30400
+ );
30401
+ return null;
30402
+ }
29862
30403
  }
29863
30404
  }
29864
30405
 
@@ -29955,7 +30496,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
29955
30496
  \\"assertionMethod\\"];
29956
30497
  const obj = Array.isArray(prop) ? prop[i] : prop;
29957
30498
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
29958
- v = await this.#assertionMethod_fromJsonLd(obj, options);
30499
+ try {
30500
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
30501
+ } catch (error) {
30502
+ if (!options.suppressError) throw error;
30503
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
30504
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
30505
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
30506
+ );
30507
+ continue;
30508
+ }
29959
30509
  }
29960
30510
  }
29961
30511
 
@@ -30211,7 +30761,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
30211
30761
  \\"inbox\\"];
30212
30762
  const doc = Array.isArray(prop) ? prop[0] : prop;
30213
30763
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
30214
- v = await this.#inbox_fromJsonLd(doc, options);
30764
+ try {
30765
+ v = await this.#inbox_fromJsonLd(doc, options);
30766
+ } catch (error) {
30767
+ if (!options.suppressError) throw error;
30768
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
30769
+ \\"Failed to parse embedded value of {property}: {error}\\",
30770
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
30771
+ );
30772
+ return null;
30773
+ }
30215
30774
  }
30216
30775
  }
30217
30776
 
@@ -30444,7 +31003,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
30444
31003
  \\"outbox\\"];
30445
31004
  const doc = Array.isArray(prop) ? prop[0] : prop;
30446
31005
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
30447
- v = await this.#outbox_fromJsonLd(doc, options);
31006
+ try {
31007
+ v = await this.#outbox_fromJsonLd(doc, options);
31008
+ } catch (error) {
31009
+ if (!options.suppressError) throw error;
31010
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
31011
+ \\"Failed to parse embedded value of {property}: {error}\\",
31012
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
31013
+ );
31014
+ return null;
31015
+ }
30448
31016
  }
30449
31017
  }
30450
31018
 
@@ -30663,7 +31231,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
30663
31231
  \\"following\\"];
30664
31232
  const doc = Array.isArray(prop) ? prop[0] : prop;
30665
31233
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
30666
- v = await this.#following_fromJsonLd(doc, options);
31234
+ try {
31235
+ v = await this.#following_fromJsonLd(doc, options);
31236
+ } catch (error) {
31237
+ if (!options.suppressError) throw error;
31238
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
31239
+ \\"Failed to parse embedded value of {property}: {error}\\",
31240
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
31241
+ );
31242
+ return null;
31243
+ }
30667
31244
  }
30668
31245
  }
30669
31246
 
@@ -30885,7 +31462,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
30885
31462
  \\"followers\\"];
30886
31463
  const doc = Array.isArray(prop) ? prop[0] : prop;
30887
31464
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
30888
- v = await this.#followers_fromJsonLd(doc, options);
31465
+ try {
31466
+ v = await this.#followers_fromJsonLd(doc, options);
31467
+ } catch (error) {
31468
+ if (!options.suppressError) throw error;
31469
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
31470
+ \\"Failed to parse embedded value of {property}: {error}\\",
31471
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
31472
+ );
31473
+ return null;
31474
+ }
30889
31475
  }
30890
31476
  }
30891
31477
 
@@ -31105,7 +31691,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
31105
31691
  \\"liked\\"];
31106
31692
  const doc = Array.isArray(prop) ? prop[0] : prop;
31107
31693
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
31108
- v = await this.#liked_fromJsonLd(doc, options);
31694
+ try {
31695
+ v = await this.#liked_fromJsonLd(doc, options);
31696
+ } catch (error) {
31697
+ if (!options.suppressError) throw error;
31698
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
31699
+ \\"Failed to parse embedded value of {property}: {error}\\",
31700
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
31701
+ );
31702
+ return null;
31703
+ }
31109
31704
  }
31110
31705
  }
31111
31706
 
@@ -31323,7 +31918,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
31323
31918
  \\"featured\\"];
31324
31919
  const doc = Array.isArray(prop) ? prop[0] : prop;
31325
31920
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
31326
- v = await this.#featured_fromJsonLd(doc, options);
31921
+ try {
31922
+ v = await this.#featured_fromJsonLd(doc, options);
31923
+ } catch (error) {
31924
+ if (!options.suppressError) throw error;
31925
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
31926
+ \\"Failed to parse embedded value of {property}: {error}\\",
31927
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
31928
+ );
31929
+ return null;
31930
+ }
31327
31931
  }
31328
31932
  }
31329
31933
 
@@ -31541,7 +32145,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
31541
32145
  \\"featuredTags\\"];
31542
32146
  const doc = Array.isArray(prop) ? prop[0] : prop;
31543
32147
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
31544
- v = await this.#featuredTags_fromJsonLd(doc, options);
32148
+ try {
32149
+ v = await this.#featuredTags_fromJsonLd(doc, options);
32150
+ } catch (error) {
32151
+ if (!options.suppressError) throw error;
32152
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
32153
+ \\"Failed to parse embedded value of {property}: {error}\\",
32154
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
32155
+ );
32156
+ return null;
32157
+ }
31545
32158
  }
31546
32159
  }
31547
32160
 
@@ -31757,7 +32370,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
31757
32370
  \\"streams\\"];
31758
32371
  const obj = Array.isArray(prop) ? prop[i] : prop;
31759
32372
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
31760
- v = await this.#stream_fromJsonLd(obj, options);
32373
+ try {
32374
+ v = await this.#stream_fromJsonLd(obj, options);
32375
+ } catch (error) {
32376
+ if (!options.suppressError) throw error;
32377
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
32378
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
32379
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
32380
+ );
32381
+ continue;
32382
+ }
31761
32383
  }
31762
32384
  }
31763
32385
 
@@ -32083,7 +32705,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
32083
32705
  \\"movedTo\\"];
32084
32706
  const doc = Array.isArray(prop) ? prop[0] : prop;
32085
32707
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
32086
- v = await this.#successor_fromJsonLd(doc, options);
32708
+ try {
32709
+ v = await this.#successor_fromJsonLd(doc, options);
32710
+ } catch (error) {
32711
+ if (!options.suppressError) throw error;
32712
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
32713
+ \\"Failed to parse embedded value of {property}: {error}\\",
32714
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
32715
+ );
32716
+ return null;
32717
+ }
32087
32718
  }
32088
32719
  }
32089
32720
 
@@ -32337,7 +32968,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
32337
32968
  \\"alsoKnownAs\\"];
32338
32969
  const doc = Array.isArray(prop) ? prop[0] : prop;
32339
32970
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
32340
- v = await this.#alias_fromJsonLd(doc, options);
32971
+ try {
32972
+ v = await this.#alias_fromJsonLd(doc, options);
32973
+ } catch (error) {
32974
+ if (!options.suppressError) throw error;
32975
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
32976
+ \\"Failed to parse embedded value of {property}: {error}\\",
32977
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
32978
+ );
32979
+ return null;
32980
+ }
32341
32981
  }
32342
32982
  }
32343
32983
 
@@ -32434,7 +33074,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
32434
33074
  \\"alsoKnownAs\\"];
32435
33075
  const obj = Array.isArray(prop) ? prop[i] : prop;
32436
33076
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
32437
- v = await this.#alias_fromJsonLd(obj, options);
33077
+ try {
33078
+ v = await this.#alias_fromJsonLd(obj, options);
33079
+ } catch (error) {
33080
+ if (!options.suppressError) throw error;
33081
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
33082
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
33083
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
33084
+ );
33085
+ continue;
33086
+ }
32438
33087
  }
32439
33088
  }
32440
33089
 
@@ -32653,7 +33302,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
32653
33302
  \\"service\\"];
32654
33303
  const doc = Array.isArray(prop) ? prop[0] : prop;
32655
33304
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
32656
- v = await this.#service_fromJsonLd(doc, options);
33305
+ try {
33306
+ v = await this.#service_fromJsonLd(doc, options);
33307
+ } catch (error) {
33308
+ if (!options.suppressError) throw error;
33309
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
33310
+ \\"Failed to parse embedded value of {property}: {error}\\",
33311
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
33312
+ );
33313
+ return null;
33314
+ }
32657
33315
  }
32658
33316
  }
32659
33317
 
@@ -32750,7 +33408,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
32750
33408
  \\"service\\"];
32751
33409
  const obj = Array.isArray(prop) ? prop[i] : prop;
32752
33410
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
32753
- v = await this.#service_fromJsonLd(obj, options);
33411
+ try {
33412
+ v = await this.#service_fromJsonLd(obj, options);
33413
+ } catch (error) {
33414
+ if (!options.suppressError) throw error;
33415
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
33416
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
33417
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
33418
+ );
33419
+ continue;
33420
+ }
32754
33421
  }
32755
33422
  }
32756
33423
 
@@ -36234,9 +36901,18 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
36234
36901
  if (v == null) continue;
36235
36902
 
36236
36903
  const decoded =
36237
- new URL(v[\\"@value\\"])
36904
+ typeof v === \\"object\\" &&
36905
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
36906
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
36907
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
36908
+ ) : undefined
36238
36909
  ;
36239
36910
 
36911
+ if (typeof decoded === \\"undefined\\") {
36912
+ shouldCacheJsonLd = false;
36913
+ continue;
36914
+ }
36915
+
36240
36916
  if (!this._shouldCacheDecodedJsonLd(decoded)) {
36241
36917
  shouldCacheJsonLd = false;
36242
36918
  }
@@ -38627,7 +39303,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
38627
39303
  \\"current\\"];
38628
39304
  const doc = Array.isArray(prop) ? prop[0] : prop;
38629
39305
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
38630
- v = await this.#current_fromJsonLd(doc, options);
39306
+ try {
39307
+ v = await this.#current_fromJsonLd(doc, options);
39308
+ } catch (error) {
39309
+ if (!options.suppressError) throw error;
39310
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
39311
+ \\"Failed to parse embedded value of {property}: {error}\\",
39312
+ { property: \\"https://www.w3.org/ns/activitystreams#current\\", error },
39313
+ );
39314
+ return null;
39315
+ }
38631
39316
  }
38632
39317
  }
38633
39318
 
@@ -38843,7 +39528,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
38843
39528
  \\"first\\"];
38844
39529
  const doc = Array.isArray(prop) ? prop[0] : prop;
38845
39530
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
38846
- v = await this.#first_fromJsonLd(doc, options);
39531
+ try {
39532
+ v = await this.#first_fromJsonLd(doc, options);
39533
+ } catch (error) {
39534
+ if (!options.suppressError) throw error;
39535
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
39536
+ \\"Failed to parse embedded value of {property}: {error}\\",
39537
+ { property: \\"https://www.w3.org/ns/activitystreams#first\\", error },
39538
+ );
39539
+ return null;
39540
+ }
38847
39541
  }
38848
39542
  }
38849
39543
 
@@ -39059,7 +39753,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
39059
39753
  \\"last\\"];
39060
39754
  const doc = Array.isArray(prop) ? prop[0] : prop;
39061
39755
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
39062
- v = await this.#last_fromJsonLd(doc, options);
39756
+ try {
39757
+ v = await this.#last_fromJsonLd(doc, options);
39758
+ } catch (error) {
39759
+ if (!options.suppressError) throw error;
39760
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
39761
+ \\"Failed to parse embedded value of {property}: {error}\\",
39762
+ { property: \\"https://www.w3.org/ns/activitystreams#last\\", error },
39763
+ );
39764
+ return null;
39765
+ }
39063
39766
  }
39064
39767
  }
39065
39768
 
@@ -39285,7 +39988,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
39285
39988
  \\"items\\"];
39286
39989
  const obj = Array.isArray(prop) ? prop[i] : prop;
39287
39990
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
39288
- v = await this.#item_fromJsonLd(obj, options);
39991
+ try {
39992
+ v = await this.#item_fromJsonLd(obj, options);
39993
+ } catch (error) {
39994
+ if (!options.suppressError) throw error;
39995
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
39996
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
39997
+ { property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
39998
+ );
39999
+ continue;
40000
+ }
39289
40001
  }
39290
40002
  }
39291
40003
 
@@ -39501,7 +40213,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
39501
40213
  \\"likesOf\\"];
39502
40214
  const doc = Array.isArray(prop) ? prop[0] : prop;
39503
40215
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
39504
- v = await this.#likesOf_fromJsonLd(doc, options);
40216
+ try {
40217
+ v = await this.#likesOf_fromJsonLd(doc, options);
40218
+ } catch (error) {
40219
+ if (!options.suppressError) throw error;
40220
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
40221
+ \\"Failed to parse embedded value of {property}: {error}\\",
40222
+ { property: \\"https://w3id.org/fep/5711#likesOf\\", error },
40223
+ );
40224
+ return null;
40225
+ }
39505
40226
  }
39506
40227
  }
39507
40228
 
@@ -39716,7 +40437,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
39716
40437
  \\"sharesOf\\"];
39717
40438
  const doc = Array.isArray(prop) ? prop[0] : prop;
39718
40439
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
39719
- v = await this.#sharesOf_fromJsonLd(doc, options);
40440
+ try {
40441
+ v = await this.#sharesOf_fromJsonLd(doc, options);
40442
+ } catch (error) {
40443
+ if (!options.suppressError) throw error;
40444
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
40445
+ \\"Failed to parse embedded value of {property}: {error}\\",
40446
+ { property: \\"https://w3id.org/fep/5711#sharesOf\\", error },
40447
+ );
40448
+ return null;
40449
+ }
39720
40450
  }
39721
40451
  }
39722
40452
 
@@ -39931,7 +40661,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
39931
40661
  \\"repliesOf\\"];
39932
40662
  const doc = Array.isArray(prop) ? prop[0] : prop;
39933
40663
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
39934
- v = await this.#repliesOf_fromJsonLd(doc, options);
40664
+ try {
40665
+ v = await this.#repliesOf_fromJsonLd(doc, options);
40666
+ } catch (error) {
40667
+ if (!options.suppressError) throw error;
40668
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
40669
+ \\"Failed to parse embedded value of {property}: {error}\\",
40670
+ { property: \\"https://w3id.org/fep/5711#repliesOf\\", error },
40671
+ );
40672
+ return null;
40673
+ }
39935
40674
  }
39936
40675
  }
39937
40676
 
@@ -40146,7 +40885,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
40146
40885
  \\"inboxOf\\"];
40147
40886
  const doc = Array.isArray(prop) ? prop[0] : prop;
40148
40887
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
40149
- v = await this.#inboxOf_fromJsonLd(doc, options);
40888
+ try {
40889
+ v = await this.#inboxOf_fromJsonLd(doc, options);
40890
+ } catch (error) {
40891
+ if (!options.suppressError) throw error;
40892
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
40893
+ \\"Failed to parse embedded value of {property}: {error}\\",
40894
+ { property: \\"https://w3id.org/fep/5711#inboxOf\\", error },
40895
+ );
40896
+ return null;
40897
+ }
40150
40898
  }
40151
40899
  }
40152
40900
 
@@ -40361,7 +41109,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
40361
41109
  \\"outboxOf\\"];
40362
41110
  const doc = Array.isArray(prop) ? prop[0] : prop;
40363
41111
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
40364
- v = await this.#outboxOf_fromJsonLd(doc, options);
41112
+ try {
41113
+ v = await this.#outboxOf_fromJsonLd(doc, options);
41114
+ } catch (error) {
41115
+ if (!options.suppressError) throw error;
41116
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
41117
+ \\"Failed to parse embedded value of {property}: {error}\\",
41118
+ { property: \\"https://w3id.org/fep/5711#outboxOf\\", error },
41119
+ );
41120
+ return null;
41121
+ }
40365
41122
  }
40366
41123
  }
40367
41124
 
@@ -40576,7 +41333,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
40576
41333
  \\"followersOf\\"];
40577
41334
  const doc = Array.isArray(prop) ? prop[0] : prop;
40578
41335
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
40579
- v = await this.#followersOf_fromJsonLd(doc, options);
41336
+ try {
41337
+ v = await this.#followersOf_fromJsonLd(doc, options);
41338
+ } catch (error) {
41339
+ if (!options.suppressError) throw error;
41340
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
41341
+ \\"Failed to parse embedded value of {property}: {error}\\",
41342
+ { property: \\"https://w3id.org/fep/5711#followersOf\\", error },
41343
+ );
41344
+ return null;
41345
+ }
40580
41346
  }
40581
41347
  }
40582
41348
 
@@ -40791,7 +41557,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
40791
41557
  \\"followingOf\\"];
40792
41558
  const doc = Array.isArray(prop) ? prop[0] : prop;
40793
41559
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
40794
- v = await this.#followingOf_fromJsonLd(doc, options);
41560
+ try {
41561
+ v = await this.#followingOf_fromJsonLd(doc, options);
41562
+ } catch (error) {
41563
+ if (!options.suppressError) throw error;
41564
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
41565
+ \\"Failed to parse embedded value of {property}: {error}\\",
41566
+ { property: \\"https://w3id.org/fep/5711#followingOf\\", error },
41567
+ );
41568
+ return null;
41569
+ }
40795
41570
  }
40796
41571
  }
40797
41572
 
@@ -41006,7 +41781,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
41006
41781
  \\"likedOf\\"];
41007
41782
  const doc = Array.isArray(prop) ? prop[0] : prop;
41008
41783
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
41009
- v = await this.#likedOf_fromJsonLd(doc, options);
41784
+ try {
41785
+ v = await this.#likedOf_fromJsonLd(doc, options);
41786
+ } catch (error) {
41787
+ if (!options.suppressError) throw error;
41788
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
41789
+ \\"Failed to parse embedded value of {property}: {error}\\",
41790
+ { property: \\"https://w3id.org/fep/5711#likedOf\\", error },
41791
+ );
41792
+ return null;
41793
+ }
41010
41794
  }
41011
41795
  }
41012
41796
 
@@ -42891,7 +43675,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
42891
43675
  \\"partOf\\"];
42892
43676
  const doc = Array.isArray(prop) ? prop[0] : prop;
42893
43677
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
42894
- v = await this.#partOf_fromJsonLd(doc, options);
43678
+ try {
43679
+ v = await this.#partOf_fromJsonLd(doc, options);
43680
+ } catch (error) {
43681
+ if (!options.suppressError) throw error;
43682
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
43683
+ \\"Failed to parse embedded value of {property}: {error}\\",
43684
+ { property: \\"https://www.w3.org/ns/activitystreams#partOf\\", error },
43685
+ );
43686
+ return null;
43687
+ }
42895
43688
  }
42896
43689
  }
42897
43690
 
@@ -43105,7 +43898,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
43105
43898
  \\"next\\"];
43106
43899
  const doc = Array.isArray(prop) ? prop[0] : prop;
43107
43900
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
43108
- v = await this.#next_fromJsonLd(doc, options);
43901
+ try {
43902
+ v = await this.#next_fromJsonLd(doc, options);
43903
+ } catch (error) {
43904
+ if (!options.suppressError) throw error;
43905
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
43906
+ \\"Failed to parse embedded value of {property}: {error}\\",
43907
+ { property: \\"https://www.w3.org/ns/activitystreams#next\\", error },
43908
+ );
43909
+ return null;
43910
+ }
43109
43911
  }
43110
43912
  }
43111
43913
 
@@ -43320,7 +44122,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
43320
44122
  \\"prev\\"];
43321
44123
  const doc = Array.isArray(prop) ? prop[0] : prop;
43322
44124
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
43323
- v = await this.#prev_fromJsonLd(doc, options);
44125
+ try {
44126
+ v = await this.#prev_fromJsonLd(doc, options);
44127
+ } catch (error) {
44128
+ if (!options.suppressError) throw error;
44129
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
44130
+ \\"Failed to parse embedded value of {property}: {error}\\",
44131
+ { property: \\"https://www.w3.org/ns/activitystreams#prev\\", error },
44132
+ );
44133
+ return null;
44134
+ }
43324
44135
  }
43325
44136
  }
43326
44137
 
@@ -48316,7 +49127,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
48316
49127
  \\"publicKey\\"];
48317
49128
  const doc = Array.isArray(prop) ? prop[0] : prop;
48318
49129
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
48319
- v = await this.#publicKey_fromJsonLd(doc, options);
49130
+ try {
49131
+ v = await this.#publicKey_fromJsonLd(doc, options);
49132
+ } catch (error) {
49133
+ if (!options.suppressError) throw error;
49134
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49135
+ \\"Failed to parse embedded value of {property}: {error}\\",
49136
+ { property: \\"https://w3id.org/security#publicKey\\", error },
49137
+ );
49138
+ return null;
49139
+ }
48320
49140
  }
48321
49141
  }
48322
49142
 
@@ -48409,7 +49229,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
48409
49229
  \\"publicKey\\"];
48410
49230
  const obj = Array.isArray(prop) ? prop[i] : prop;
48411
49231
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
48412
- v = await this.#publicKey_fromJsonLd(obj, options);
49232
+ try {
49233
+ v = await this.#publicKey_fromJsonLd(obj, options);
49234
+ } catch (error) {
49235
+ if (!options.suppressError) throw error;
49236
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49237
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
49238
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
49239
+ );
49240
+ continue;
49241
+ }
48413
49242
  }
48414
49243
  }
48415
49244
 
@@ -48628,7 +49457,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
48628
49457
  \\"assertionMethod\\"];
48629
49458
  const doc = Array.isArray(prop) ? prop[0] : prop;
48630
49459
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
48631
- v = await this.#assertionMethod_fromJsonLd(doc, options);
49460
+ try {
49461
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
49462
+ } catch (error) {
49463
+ if (!options.suppressError) throw error;
49464
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49465
+ \\"Failed to parse embedded value of {property}: {error}\\",
49466
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
49467
+ );
49468
+ return null;
49469
+ }
48632
49470
  }
48633
49471
  }
48634
49472
 
@@ -48725,7 +49563,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
48725
49563
  \\"assertionMethod\\"];
48726
49564
  const obj = Array.isArray(prop) ? prop[i] : prop;
48727
49565
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
48728
- v = await this.#assertionMethod_fromJsonLd(obj, options);
49566
+ try {
49567
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
49568
+ } catch (error) {
49569
+ if (!options.suppressError) throw error;
49570
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49571
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
49572
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
49573
+ );
49574
+ continue;
49575
+ }
48729
49576
  }
48730
49577
  }
48731
49578
 
@@ -48981,7 +49828,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
48981
49828
  \\"inbox\\"];
48982
49829
  const doc = Array.isArray(prop) ? prop[0] : prop;
48983
49830
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
48984
- v = await this.#inbox_fromJsonLd(doc, options);
49831
+ try {
49832
+ v = await this.#inbox_fromJsonLd(doc, options);
49833
+ } catch (error) {
49834
+ if (!options.suppressError) throw error;
49835
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49836
+ \\"Failed to parse embedded value of {property}: {error}\\",
49837
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
49838
+ );
49839
+ return null;
49840
+ }
48985
49841
  }
48986
49842
  }
48987
49843
 
@@ -49214,7 +50070,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
49214
50070
  \\"outbox\\"];
49215
50071
  const doc = Array.isArray(prop) ? prop[0] : prop;
49216
50072
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
49217
- v = await this.#outbox_fromJsonLd(doc, options);
50073
+ try {
50074
+ v = await this.#outbox_fromJsonLd(doc, options);
50075
+ } catch (error) {
50076
+ if (!options.suppressError) throw error;
50077
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
50078
+ \\"Failed to parse embedded value of {property}: {error}\\",
50079
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
50080
+ );
50081
+ return null;
50082
+ }
49218
50083
  }
49219
50084
  }
49220
50085
 
@@ -49433,7 +50298,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
49433
50298
  \\"following\\"];
49434
50299
  const doc = Array.isArray(prop) ? prop[0] : prop;
49435
50300
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
49436
- v = await this.#following_fromJsonLd(doc, options);
50301
+ try {
50302
+ v = await this.#following_fromJsonLd(doc, options);
50303
+ } catch (error) {
50304
+ if (!options.suppressError) throw error;
50305
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
50306
+ \\"Failed to parse embedded value of {property}: {error}\\",
50307
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
50308
+ );
50309
+ return null;
50310
+ }
49437
50311
  }
49438
50312
  }
49439
50313
 
@@ -49655,7 +50529,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
49655
50529
  \\"followers\\"];
49656
50530
  const doc = Array.isArray(prop) ? prop[0] : prop;
49657
50531
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
49658
- v = await this.#followers_fromJsonLd(doc, options);
50532
+ try {
50533
+ v = await this.#followers_fromJsonLd(doc, options);
50534
+ } catch (error) {
50535
+ if (!options.suppressError) throw error;
50536
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
50537
+ \\"Failed to parse embedded value of {property}: {error}\\",
50538
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
50539
+ );
50540
+ return null;
50541
+ }
49659
50542
  }
49660
50543
  }
49661
50544
 
@@ -49875,7 +50758,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
49875
50758
  \\"liked\\"];
49876
50759
  const doc = Array.isArray(prop) ? prop[0] : prop;
49877
50760
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
49878
- v = await this.#liked_fromJsonLd(doc, options);
50761
+ try {
50762
+ v = await this.#liked_fromJsonLd(doc, options);
50763
+ } catch (error) {
50764
+ if (!options.suppressError) throw error;
50765
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
50766
+ \\"Failed to parse embedded value of {property}: {error}\\",
50767
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
50768
+ );
50769
+ return null;
50770
+ }
49879
50771
  }
49880
50772
  }
49881
50773
 
@@ -50093,7 +50985,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
50093
50985
  \\"featured\\"];
50094
50986
  const doc = Array.isArray(prop) ? prop[0] : prop;
50095
50987
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
50096
- v = await this.#featured_fromJsonLd(doc, options);
50988
+ try {
50989
+ v = await this.#featured_fromJsonLd(doc, options);
50990
+ } catch (error) {
50991
+ if (!options.suppressError) throw error;
50992
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
50993
+ \\"Failed to parse embedded value of {property}: {error}\\",
50994
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
50995
+ );
50996
+ return null;
50997
+ }
50097
50998
  }
50098
50999
  }
50099
51000
 
@@ -50311,7 +51212,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
50311
51212
  \\"featuredTags\\"];
50312
51213
  const doc = Array.isArray(prop) ? prop[0] : prop;
50313
51214
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
50314
- v = await this.#featuredTags_fromJsonLd(doc, options);
51215
+ try {
51216
+ v = await this.#featuredTags_fromJsonLd(doc, options);
51217
+ } catch (error) {
51218
+ if (!options.suppressError) throw error;
51219
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
51220
+ \\"Failed to parse embedded value of {property}: {error}\\",
51221
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
51222
+ );
51223
+ return null;
51224
+ }
50315
51225
  }
50316
51226
  }
50317
51227
 
@@ -50527,7 +51437,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
50527
51437
  \\"streams\\"];
50528
51438
  const obj = Array.isArray(prop) ? prop[i] : prop;
50529
51439
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
50530
- v = await this.#stream_fromJsonLd(obj, options);
51440
+ try {
51441
+ v = await this.#stream_fromJsonLd(obj, options);
51442
+ } catch (error) {
51443
+ if (!options.suppressError) throw error;
51444
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
51445
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
51446
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
51447
+ );
51448
+ continue;
51449
+ }
50531
51450
  }
50532
51451
  }
50533
51452
 
@@ -50853,7 +51772,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
50853
51772
  \\"movedTo\\"];
50854
51773
  const doc = Array.isArray(prop) ? prop[0] : prop;
50855
51774
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
50856
- v = await this.#successor_fromJsonLd(doc, options);
51775
+ try {
51776
+ v = await this.#successor_fromJsonLd(doc, options);
51777
+ } catch (error) {
51778
+ if (!options.suppressError) throw error;
51779
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
51780
+ \\"Failed to parse embedded value of {property}: {error}\\",
51781
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
51782
+ );
51783
+ return null;
51784
+ }
50857
51785
  }
50858
51786
  }
50859
51787
 
@@ -51107,7 +52035,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
51107
52035
  \\"alsoKnownAs\\"];
51108
52036
  const doc = Array.isArray(prop) ? prop[0] : prop;
51109
52037
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
51110
- v = await this.#alias_fromJsonLd(doc, options);
52038
+ try {
52039
+ v = await this.#alias_fromJsonLd(doc, options);
52040
+ } catch (error) {
52041
+ if (!options.suppressError) throw error;
52042
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
52043
+ \\"Failed to parse embedded value of {property}: {error}\\",
52044
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
52045
+ );
52046
+ return null;
52047
+ }
51111
52048
  }
51112
52049
  }
51113
52050
 
@@ -51204,7 +52141,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
51204
52141
  \\"alsoKnownAs\\"];
51205
52142
  const obj = Array.isArray(prop) ? prop[i] : prop;
51206
52143
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
51207
- v = await this.#alias_fromJsonLd(obj, options);
52144
+ try {
52145
+ v = await this.#alias_fromJsonLd(obj, options);
52146
+ } catch (error) {
52147
+ if (!options.suppressError) throw error;
52148
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
52149
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
52150
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
52151
+ );
52152
+ continue;
52153
+ }
51208
52154
  }
51209
52155
  }
51210
52156
 
@@ -51423,7 +52369,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
51423
52369
  \\"service\\"];
51424
52370
  const doc = Array.isArray(prop) ? prop[0] : prop;
51425
52371
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
51426
- v = await this.#service_fromJsonLd(doc, options);
52372
+ try {
52373
+ v = await this.#service_fromJsonLd(doc, options);
52374
+ } catch (error) {
52375
+ if (!options.suppressError) throw error;
52376
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
52377
+ \\"Failed to parse embedded value of {property}: {error}\\",
52378
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
52379
+ );
52380
+ return null;
52381
+ }
51427
52382
  }
51428
52383
  }
51429
52384
 
@@ -51520,7 +52475,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
51520
52475
  \\"service\\"];
51521
52476
  const obj = Array.isArray(prop) ? prop[i] : prop;
51522
52477
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
51523
- v = await this.#service_fromJsonLd(obj, options);
52478
+ try {
52479
+ v = await this.#service_fromJsonLd(obj, options);
52480
+ } catch (error) {
52481
+ if (!options.suppressError) throw error;
52482
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
52483
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
52484
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
52485
+ );
52486
+ continue;
52487
+ }
51524
52488
  }
51525
52489
  }
51526
52490
 
@@ -54692,7 +55656,16 @@ get names(): ((string | LanguageString))[] {
54692
55656
  \\"preview\\"];
54693
55657
  const obj = Array.isArray(prop) ? prop[i] : prop;
54694
55658
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
54695
- v = await this.#preview_fromJsonLd(obj, options);
55659
+ try {
55660
+ v = await this.#preview_fromJsonLd(obj, options);
55661
+ } catch (error) {
55662
+ if (!options.suppressError) throw error;
55663
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
55664
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
55665
+ { property: \\"https://www.w3.org/ns/activitystreams#preview\\", index: i, error },
55666
+ );
55667
+ continue;
55668
+ }
54696
55669
  }
54697
55670
  }
54698
55671
 
@@ -59407,9 +60380,18 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
59407
60380
  if (v == null) continue;
59408
60381
 
59409
60382
  const decoded =
59410
- new URL(v[\\"@value\\"])
60383
+ typeof v === \\"object\\" &&
60384
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
60385
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
60386
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
60387
+ ) : undefined
59411
60388
  ;
59412
60389
 
60390
+ if (typeof decoded === \\"undefined\\") {
60391
+ shouldCacheJsonLd = false;
60392
+ continue;
60393
+ }
60394
+
59413
60395
  if (!this._shouldCacheDecodedJsonLd(decoded)) {
59414
60396
  shouldCacheJsonLd = false;
59415
60397
  }
@@ -59817,7 +60799,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
59817
60799
  \\"orderedItems\\"];
59818
60800
  const obj = Array.isArray(prop) ? prop[i] : prop;
59819
60801
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
59820
- v = await this.#item_fromJsonLd(obj, options);
60802
+ try {
60803
+ v = await this.#item_fromJsonLd(obj, options);
60804
+ } catch (error) {
60805
+ if (!options.suppressError) throw error;
60806
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
60807
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
60808
+ { property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
60809
+ );
60810
+ continue;
60811
+ }
59821
60812
  }
59822
60813
  }
59823
60814
 
@@ -60568,7 +61559,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
60568
61559
  \\"orderedItems\\"];
60569
61560
  const obj = Array.isArray(prop) ? prop[i] : prop;
60570
61561
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
60571
- v = await this.#item_fromJsonLd(obj, options);
61562
+ try {
61563
+ v = await this.#item_fromJsonLd(obj, options);
61564
+ } catch (error) {
61565
+ if (!options.suppressError) throw error;
61566
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
61567
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
61568
+ { property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
61569
+ );
61570
+ continue;
61571
+ }
60572
61572
  }
60573
61573
  }
60574
61574
 
@@ -62260,7 +63260,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
62260
63260
  \\"publicKey\\"];
62261
63261
  const doc = Array.isArray(prop) ? prop[0] : prop;
62262
63262
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
62263
- v = await this.#publicKey_fromJsonLd(doc, options);
63263
+ try {
63264
+ v = await this.#publicKey_fromJsonLd(doc, options);
63265
+ } catch (error) {
63266
+ if (!options.suppressError) throw error;
63267
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
63268
+ \\"Failed to parse embedded value of {property}: {error}\\",
63269
+ { property: \\"https://w3id.org/security#publicKey\\", error },
63270
+ );
63271
+ return null;
63272
+ }
62264
63273
  }
62265
63274
  }
62266
63275
 
@@ -62353,7 +63362,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
62353
63362
  \\"publicKey\\"];
62354
63363
  const obj = Array.isArray(prop) ? prop[i] : prop;
62355
63364
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
62356
- v = await this.#publicKey_fromJsonLd(obj, options);
63365
+ try {
63366
+ v = await this.#publicKey_fromJsonLd(obj, options);
63367
+ } catch (error) {
63368
+ if (!options.suppressError) throw error;
63369
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
63370
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
63371
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
63372
+ );
63373
+ continue;
63374
+ }
62357
63375
  }
62358
63376
  }
62359
63377
 
@@ -62572,7 +63590,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
62572
63590
  \\"assertionMethod\\"];
62573
63591
  const doc = Array.isArray(prop) ? prop[0] : prop;
62574
63592
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
62575
- v = await this.#assertionMethod_fromJsonLd(doc, options);
63593
+ try {
63594
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
63595
+ } catch (error) {
63596
+ if (!options.suppressError) throw error;
63597
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
63598
+ \\"Failed to parse embedded value of {property}: {error}\\",
63599
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
63600
+ );
63601
+ return null;
63602
+ }
62576
63603
  }
62577
63604
  }
62578
63605
 
@@ -62669,7 +63696,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
62669
63696
  \\"assertionMethod\\"];
62670
63697
  const obj = Array.isArray(prop) ? prop[i] : prop;
62671
63698
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
62672
- v = await this.#assertionMethod_fromJsonLd(obj, options);
63699
+ try {
63700
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
63701
+ } catch (error) {
63702
+ if (!options.suppressError) throw error;
63703
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
63704
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
63705
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
63706
+ );
63707
+ continue;
63708
+ }
62673
63709
  }
62674
63710
  }
62675
63711
 
@@ -62925,7 +63961,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
62925
63961
  \\"inbox\\"];
62926
63962
  const doc = Array.isArray(prop) ? prop[0] : prop;
62927
63963
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
62928
- v = await this.#inbox_fromJsonLd(doc, options);
63964
+ try {
63965
+ v = await this.#inbox_fromJsonLd(doc, options);
63966
+ } catch (error) {
63967
+ if (!options.suppressError) throw error;
63968
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
63969
+ \\"Failed to parse embedded value of {property}: {error}\\",
63970
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
63971
+ );
63972
+ return null;
63973
+ }
62929
63974
  }
62930
63975
  }
62931
63976
 
@@ -63158,7 +64203,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
63158
64203
  \\"outbox\\"];
63159
64204
  const doc = Array.isArray(prop) ? prop[0] : prop;
63160
64205
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
63161
- v = await this.#outbox_fromJsonLd(doc, options);
64206
+ try {
64207
+ v = await this.#outbox_fromJsonLd(doc, options);
64208
+ } catch (error) {
64209
+ if (!options.suppressError) throw error;
64210
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
64211
+ \\"Failed to parse embedded value of {property}: {error}\\",
64212
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
64213
+ );
64214
+ return null;
64215
+ }
63162
64216
  }
63163
64217
  }
63164
64218
 
@@ -63377,7 +64431,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
63377
64431
  \\"following\\"];
63378
64432
  const doc = Array.isArray(prop) ? prop[0] : prop;
63379
64433
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
63380
- v = await this.#following_fromJsonLd(doc, options);
64434
+ try {
64435
+ v = await this.#following_fromJsonLd(doc, options);
64436
+ } catch (error) {
64437
+ if (!options.suppressError) throw error;
64438
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
64439
+ \\"Failed to parse embedded value of {property}: {error}\\",
64440
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
64441
+ );
64442
+ return null;
64443
+ }
63381
64444
  }
63382
64445
  }
63383
64446
 
@@ -63599,7 +64662,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
63599
64662
  \\"followers\\"];
63600
64663
  const doc = Array.isArray(prop) ? prop[0] : prop;
63601
64664
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
63602
- v = await this.#followers_fromJsonLd(doc, options);
64665
+ try {
64666
+ v = await this.#followers_fromJsonLd(doc, options);
64667
+ } catch (error) {
64668
+ if (!options.suppressError) throw error;
64669
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
64670
+ \\"Failed to parse embedded value of {property}: {error}\\",
64671
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
64672
+ );
64673
+ return null;
64674
+ }
63603
64675
  }
63604
64676
  }
63605
64677
 
@@ -63819,7 +64891,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
63819
64891
  \\"liked\\"];
63820
64892
  const doc = Array.isArray(prop) ? prop[0] : prop;
63821
64893
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
63822
- v = await this.#liked_fromJsonLd(doc, options);
64894
+ try {
64895
+ v = await this.#liked_fromJsonLd(doc, options);
64896
+ } catch (error) {
64897
+ if (!options.suppressError) throw error;
64898
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
64899
+ \\"Failed to parse embedded value of {property}: {error}\\",
64900
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
64901
+ );
64902
+ return null;
64903
+ }
63823
64904
  }
63824
64905
  }
63825
64906
 
@@ -64037,7 +65118,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
64037
65118
  \\"featured\\"];
64038
65119
  const doc = Array.isArray(prop) ? prop[0] : prop;
64039
65120
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
64040
- v = await this.#featured_fromJsonLd(doc, options);
65121
+ try {
65122
+ v = await this.#featured_fromJsonLd(doc, options);
65123
+ } catch (error) {
65124
+ if (!options.suppressError) throw error;
65125
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
65126
+ \\"Failed to parse embedded value of {property}: {error}\\",
65127
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
65128
+ );
65129
+ return null;
65130
+ }
64041
65131
  }
64042
65132
  }
64043
65133
 
@@ -64255,7 +65345,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
64255
65345
  \\"featuredTags\\"];
64256
65346
  const doc = Array.isArray(prop) ? prop[0] : prop;
64257
65347
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
64258
- v = await this.#featuredTags_fromJsonLd(doc, options);
65348
+ try {
65349
+ v = await this.#featuredTags_fromJsonLd(doc, options);
65350
+ } catch (error) {
65351
+ if (!options.suppressError) throw error;
65352
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
65353
+ \\"Failed to parse embedded value of {property}: {error}\\",
65354
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
65355
+ );
65356
+ return null;
65357
+ }
64259
65358
  }
64260
65359
  }
64261
65360
 
@@ -64471,7 +65570,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
64471
65570
  \\"streams\\"];
64472
65571
  const obj = Array.isArray(prop) ? prop[i] : prop;
64473
65572
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
64474
- v = await this.#stream_fromJsonLd(obj, options);
65573
+ try {
65574
+ v = await this.#stream_fromJsonLd(obj, options);
65575
+ } catch (error) {
65576
+ if (!options.suppressError) throw error;
65577
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
65578
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
65579
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
65580
+ );
65581
+ continue;
65582
+ }
64475
65583
  }
64476
65584
  }
64477
65585
 
@@ -64797,7 +65905,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
64797
65905
  \\"movedTo\\"];
64798
65906
  const doc = Array.isArray(prop) ? prop[0] : prop;
64799
65907
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
64800
- v = await this.#successor_fromJsonLd(doc, options);
65908
+ try {
65909
+ v = await this.#successor_fromJsonLd(doc, options);
65910
+ } catch (error) {
65911
+ if (!options.suppressError) throw error;
65912
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
65913
+ \\"Failed to parse embedded value of {property}: {error}\\",
65914
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
65915
+ );
65916
+ return null;
65917
+ }
64801
65918
  }
64802
65919
  }
64803
65920
 
@@ -65051,7 +66168,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
65051
66168
  \\"alsoKnownAs\\"];
65052
66169
  const doc = Array.isArray(prop) ? prop[0] : prop;
65053
66170
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
65054
- v = await this.#alias_fromJsonLd(doc, options);
66171
+ try {
66172
+ v = await this.#alias_fromJsonLd(doc, options);
66173
+ } catch (error) {
66174
+ if (!options.suppressError) throw error;
66175
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
66176
+ \\"Failed to parse embedded value of {property}: {error}\\",
66177
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
66178
+ );
66179
+ return null;
66180
+ }
65055
66181
  }
65056
66182
  }
65057
66183
 
@@ -65148,7 +66274,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
65148
66274
  \\"alsoKnownAs\\"];
65149
66275
  const obj = Array.isArray(prop) ? prop[i] : prop;
65150
66276
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
65151
- v = await this.#alias_fromJsonLd(obj, options);
66277
+ try {
66278
+ v = await this.#alias_fromJsonLd(obj, options);
66279
+ } catch (error) {
66280
+ if (!options.suppressError) throw error;
66281
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
66282
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
66283
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
66284
+ );
66285
+ continue;
66286
+ }
65152
66287
  }
65153
66288
  }
65154
66289
 
@@ -65367,7 +66502,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
65367
66502
  \\"service\\"];
65368
66503
  const doc = Array.isArray(prop) ? prop[0] : prop;
65369
66504
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
65370
- v = await this.#service_fromJsonLd(doc, options);
66505
+ try {
66506
+ v = await this.#service_fromJsonLd(doc, options);
66507
+ } catch (error) {
66508
+ if (!options.suppressError) throw error;
66509
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
66510
+ \\"Failed to parse embedded value of {property}: {error}\\",
66511
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
66512
+ );
66513
+ return null;
66514
+ }
65371
66515
  }
65372
66516
  }
65373
66517
 
@@ -65464,7 +66608,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
65464
66608
  \\"service\\"];
65465
66609
  const obj = Array.isArray(prop) ? prop[i] : prop;
65466
66610
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
65467
- v = await this.#service_fromJsonLd(obj, options);
66611
+ try {
66612
+ v = await this.#service_fromJsonLd(obj, options);
66613
+ } catch (error) {
66614
+ if (!options.suppressError) throw error;
66615
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
66616
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
66617
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
66618
+ );
66619
+ continue;
66620
+ }
65468
66621
  }
65469
66622
  }
65470
66623
 
@@ -69393,7 +70546,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69393
70546
  \\"publicKey\\"];
69394
70547
  const doc = Array.isArray(prop) ? prop[0] : prop;
69395
70548
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
69396
- v = await this.#publicKey_fromJsonLd(doc, options);
70549
+ try {
70550
+ v = await this.#publicKey_fromJsonLd(doc, options);
70551
+ } catch (error) {
70552
+ if (!options.suppressError) throw error;
70553
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70554
+ \\"Failed to parse embedded value of {property}: {error}\\",
70555
+ { property: \\"https://w3id.org/security#publicKey\\", error },
70556
+ );
70557
+ return null;
70558
+ }
69397
70559
  }
69398
70560
  }
69399
70561
 
@@ -69486,7 +70648,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69486
70648
  \\"publicKey\\"];
69487
70649
  const obj = Array.isArray(prop) ? prop[i] : prop;
69488
70650
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
69489
- v = await this.#publicKey_fromJsonLd(obj, options);
70651
+ try {
70652
+ v = await this.#publicKey_fromJsonLd(obj, options);
70653
+ } catch (error) {
70654
+ if (!options.suppressError) throw error;
70655
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70656
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
70657
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
70658
+ );
70659
+ continue;
70660
+ }
69490
70661
  }
69491
70662
  }
69492
70663
 
@@ -69705,7 +70876,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69705
70876
  \\"assertionMethod\\"];
69706
70877
  const doc = Array.isArray(prop) ? prop[0] : prop;
69707
70878
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
69708
- v = await this.#assertionMethod_fromJsonLd(doc, options);
70879
+ try {
70880
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
70881
+ } catch (error) {
70882
+ if (!options.suppressError) throw error;
70883
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70884
+ \\"Failed to parse embedded value of {property}: {error}\\",
70885
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
70886
+ );
70887
+ return null;
70888
+ }
69709
70889
  }
69710
70890
  }
69711
70891
 
@@ -69802,7 +70982,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69802
70982
  \\"assertionMethod\\"];
69803
70983
  const obj = Array.isArray(prop) ? prop[i] : prop;
69804
70984
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
69805
- v = await this.#assertionMethod_fromJsonLd(obj, options);
70985
+ try {
70986
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
70987
+ } catch (error) {
70988
+ if (!options.suppressError) throw error;
70989
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70990
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
70991
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
70992
+ );
70993
+ continue;
70994
+ }
69806
70995
  }
69807
70996
  }
69808
70997
 
@@ -70058,7 +71247,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70058
71247
  \\"inbox\\"];
70059
71248
  const doc = Array.isArray(prop) ? prop[0] : prop;
70060
71249
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70061
- v = await this.#inbox_fromJsonLd(doc, options);
71250
+ try {
71251
+ v = await this.#inbox_fromJsonLd(doc, options);
71252
+ } catch (error) {
71253
+ if (!options.suppressError) throw error;
71254
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71255
+ \\"Failed to parse embedded value of {property}: {error}\\",
71256
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
71257
+ );
71258
+ return null;
71259
+ }
70062
71260
  }
70063
71261
  }
70064
71262
 
@@ -70291,7 +71489,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70291
71489
  \\"outbox\\"];
70292
71490
  const doc = Array.isArray(prop) ? prop[0] : prop;
70293
71491
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70294
- v = await this.#outbox_fromJsonLd(doc, options);
71492
+ try {
71493
+ v = await this.#outbox_fromJsonLd(doc, options);
71494
+ } catch (error) {
71495
+ if (!options.suppressError) throw error;
71496
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71497
+ \\"Failed to parse embedded value of {property}: {error}\\",
71498
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
71499
+ );
71500
+ return null;
71501
+ }
70295
71502
  }
70296
71503
  }
70297
71504
 
@@ -70510,7 +71717,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70510
71717
  \\"following\\"];
70511
71718
  const doc = Array.isArray(prop) ? prop[0] : prop;
70512
71719
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70513
- v = await this.#following_fromJsonLd(doc, options);
71720
+ try {
71721
+ v = await this.#following_fromJsonLd(doc, options);
71722
+ } catch (error) {
71723
+ if (!options.suppressError) throw error;
71724
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71725
+ \\"Failed to parse embedded value of {property}: {error}\\",
71726
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
71727
+ );
71728
+ return null;
71729
+ }
70514
71730
  }
70515
71731
  }
70516
71732
 
@@ -70732,7 +71948,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70732
71948
  \\"followers\\"];
70733
71949
  const doc = Array.isArray(prop) ? prop[0] : prop;
70734
71950
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70735
- v = await this.#followers_fromJsonLd(doc, options);
71951
+ try {
71952
+ v = await this.#followers_fromJsonLd(doc, options);
71953
+ } catch (error) {
71954
+ if (!options.suppressError) throw error;
71955
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71956
+ \\"Failed to parse embedded value of {property}: {error}\\",
71957
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
71958
+ );
71959
+ return null;
71960
+ }
70736
71961
  }
70737
71962
  }
70738
71963
 
@@ -70952,7 +72177,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70952
72177
  \\"liked\\"];
70953
72178
  const doc = Array.isArray(prop) ? prop[0] : prop;
70954
72179
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70955
- v = await this.#liked_fromJsonLd(doc, options);
72180
+ try {
72181
+ v = await this.#liked_fromJsonLd(doc, options);
72182
+ } catch (error) {
72183
+ if (!options.suppressError) throw error;
72184
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72185
+ \\"Failed to parse embedded value of {property}: {error}\\",
72186
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
72187
+ );
72188
+ return null;
72189
+ }
70956
72190
  }
70957
72191
  }
70958
72192
 
@@ -71170,7 +72404,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71170
72404
  \\"featured\\"];
71171
72405
  const doc = Array.isArray(prop) ? prop[0] : prop;
71172
72406
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
71173
- v = await this.#featured_fromJsonLd(doc, options);
72407
+ try {
72408
+ v = await this.#featured_fromJsonLd(doc, options);
72409
+ } catch (error) {
72410
+ if (!options.suppressError) throw error;
72411
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72412
+ \\"Failed to parse embedded value of {property}: {error}\\",
72413
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
72414
+ );
72415
+ return null;
72416
+ }
71174
72417
  }
71175
72418
  }
71176
72419
 
@@ -71388,7 +72631,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71388
72631
  \\"featuredTags\\"];
71389
72632
  const doc = Array.isArray(prop) ? prop[0] : prop;
71390
72633
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
71391
- v = await this.#featuredTags_fromJsonLd(doc, options);
72634
+ try {
72635
+ v = await this.#featuredTags_fromJsonLd(doc, options);
72636
+ } catch (error) {
72637
+ if (!options.suppressError) throw error;
72638
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72639
+ \\"Failed to parse embedded value of {property}: {error}\\",
72640
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
72641
+ );
72642
+ return null;
72643
+ }
71392
72644
  }
71393
72645
  }
71394
72646
 
@@ -71604,7 +72856,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71604
72856
  \\"streams\\"];
71605
72857
  const obj = Array.isArray(prop) ? prop[i] : prop;
71606
72858
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
71607
- v = await this.#stream_fromJsonLd(obj, options);
72859
+ try {
72860
+ v = await this.#stream_fromJsonLd(obj, options);
72861
+ } catch (error) {
72862
+ if (!options.suppressError) throw error;
72863
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72864
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
72865
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
72866
+ );
72867
+ continue;
72868
+ }
71608
72869
  }
71609
72870
  }
71610
72871
 
@@ -71930,7 +73191,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71930
73191
  \\"movedTo\\"];
71931
73192
  const doc = Array.isArray(prop) ? prop[0] : prop;
71932
73193
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
71933
- v = await this.#successor_fromJsonLd(doc, options);
73194
+ try {
73195
+ v = await this.#successor_fromJsonLd(doc, options);
73196
+ } catch (error) {
73197
+ if (!options.suppressError) throw error;
73198
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
73199
+ \\"Failed to parse embedded value of {property}: {error}\\",
73200
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
73201
+ );
73202
+ return null;
73203
+ }
71934
73204
  }
71935
73205
  }
71936
73206
 
@@ -72184,7 +73454,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72184
73454
  \\"alsoKnownAs\\"];
72185
73455
  const doc = Array.isArray(prop) ? prop[0] : prop;
72186
73456
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
72187
- v = await this.#alias_fromJsonLd(doc, options);
73457
+ try {
73458
+ v = await this.#alias_fromJsonLd(doc, options);
73459
+ } catch (error) {
73460
+ if (!options.suppressError) throw error;
73461
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
73462
+ \\"Failed to parse embedded value of {property}: {error}\\",
73463
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
73464
+ );
73465
+ return null;
73466
+ }
72188
73467
  }
72189
73468
  }
72190
73469
 
@@ -72281,7 +73560,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72281
73560
  \\"alsoKnownAs\\"];
72282
73561
  const obj = Array.isArray(prop) ? prop[i] : prop;
72283
73562
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
72284
- v = await this.#alias_fromJsonLd(obj, options);
73563
+ try {
73564
+ v = await this.#alias_fromJsonLd(obj, options);
73565
+ } catch (error) {
73566
+ if (!options.suppressError) throw error;
73567
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
73568
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
73569
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
73570
+ );
73571
+ continue;
73572
+ }
72285
73573
  }
72286
73574
  }
72287
73575
 
@@ -72500,7 +73788,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72500
73788
  \\"service\\"];
72501
73789
  const doc = Array.isArray(prop) ? prop[0] : prop;
72502
73790
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
72503
- v = await this.#service_fromJsonLd(doc, options);
73791
+ try {
73792
+ v = await this.#service_fromJsonLd(doc, options);
73793
+ } catch (error) {
73794
+ if (!options.suppressError) throw error;
73795
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
73796
+ \\"Failed to parse embedded value of {property}: {error}\\",
73797
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
73798
+ );
73799
+ return null;
73800
+ }
72504
73801
  }
72505
73802
  }
72506
73803
 
@@ -72597,7 +73894,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72597
73894
  \\"service\\"];
72598
73895
  const obj = Array.isArray(prop) ? prop[i] : prop;
72599
73896
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
72600
- v = await this.#service_fromJsonLd(obj, options);
73897
+ try {
73898
+ v = await this.#service_fromJsonLd(obj, options);
73899
+ } catch (error) {
73900
+ if (!options.suppressError) throw error;
73901
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
73902
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
73903
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
73904
+ );
73905
+ continue;
73906
+ }
72601
73907
  }
72602
73908
  }
72603
73909
 
@@ -76373,7 +77679,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
76373
77679
  \\"describes\\"];
76374
77680
  const doc = Array.isArray(prop) ? prop[0] : prop;
76375
77681
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
76376
- v = await this.#describes_fromJsonLd(doc, options);
77682
+ try {
77683
+ v = await this.#describes_fromJsonLd(doc, options);
77684
+ } catch (error) {
77685
+ if (!options.suppressError) throw error;
77686
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
77687
+ \\"Failed to parse embedded value of {property}: {error}\\",
77688
+ { property: \\"https://www.w3.org/ns/activitystreams#describes\\", error },
77689
+ );
77690
+ return null;
77691
+ }
76377
77692
  }
76378
77693
  }
76379
77694
 
@@ -77213,7 +78528,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
77213
78528
  \\"oneOf\\"];
77214
78529
  const obj = Array.isArray(prop) ? prop[i] : prop;
77215
78530
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
77216
- v = await this.#exclusiveOption_fromJsonLd(obj, options);
78531
+ try {
78532
+ v = await this.#exclusiveOption_fromJsonLd(obj, options);
78533
+ } catch (error) {
78534
+ if (!options.suppressError) throw error;
78535
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
78536
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
78537
+ { property: \\"https://www.w3.org/ns/activitystreams#oneOf\\", index: i, error },
78538
+ );
78539
+ continue;
78540
+ }
77217
78541
  }
77218
78542
  }
77219
78543
 
@@ -77432,7 +78756,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
77432
78756
  \\"anyOf\\"];
77433
78757
  const obj = Array.isArray(prop) ? prop[i] : prop;
77434
78758
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
77435
- v = await this.#inclusiveOption_fromJsonLd(obj, options);
78759
+ try {
78760
+ v = await this.#inclusiveOption_fromJsonLd(obj, options);
78761
+ } catch (error) {
78762
+ if (!options.suppressError) throw error;
78763
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
78764
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
78765
+ { property: \\"https://www.w3.org/ns/activitystreams#anyOf\\", index: i, error },
78766
+ );
78767
+ continue;
78768
+ }
77436
78769
  }
77437
78770
  }
77438
78771
 
@@ -77950,9 +79283,18 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
77950
79283
  if (v == null) continue;
77951
79284
 
77952
79285
  const decoded =
77953
- new URL(v[\\"@value\\"])
79286
+ typeof v === \\"object\\" &&
79287
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
79288
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
79289
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
79290
+ ) : undefined
77954
79291
  ;
77955
79292
 
79293
+ if (typeof decoded === \\"undefined\\") {
79294
+ shouldCacheJsonLd = false;
79295
+ continue;
79296
+ }
79297
+
77956
79298
  if (!this._shouldCacheDecodedJsonLd(decoded)) {
77957
79299
  shouldCacheJsonLd = false;
77958
79300
  }
@@ -79283,7 +80625,16 @@ relationships?: (Object | URL)[];}
79283
80625
  \\"subject\\"];
79284
80626
  const doc = Array.isArray(prop) ? prop[0] : prop;
79285
80627
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
79286
- v = await this.#subject_fromJsonLd(doc, options);
80628
+ try {
80629
+ v = await this.#subject_fromJsonLd(doc, options);
80630
+ } catch (error) {
80631
+ if (!options.suppressError) throw error;
80632
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
80633
+ \\"Failed to parse embedded value of {property}: {error}\\",
80634
+ { property: \\"https://www.w3.org/ns/activitystreams#subject\\", error },
80635
+ );
80636
+ return null;
80637
+ }
79287
80638
  }
79288
80639
  }
79289
80640
 
@@ -79498,7 +80849,16 @@ relationships?: (Object | URL)[];}
79498
80849
  \\"object\\"];
79499
80850
  const doc = Array.isArray(prop) ? prop[0] : prop;
79500
80851
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
79501
- v = await this.#object_fromJsonLd(doc, options);
80852
+ try {
80853
+ v = await this.#object_fromJsonLd(doc, options);
80854
+ } catch (error) {
80855
+ if (!options.suppressError) throw error;
80856
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
80857
+ \\"Failed to parse embedded value of {property}: {error}\\",
80858
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", error },
80859
+ );
80860
+ return null;
80861
+ }
79502
80862
  }
79503
80863
  }
79504
80864
 
@@ -79592,7 +80952,16 @@ relationships?: (Object | URL)[];}
79592
80952
  \\"object\\"];
79593
80953
  const obj = Array.isArray(prop) ? prop[i] : prop;
79594
80954
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
79595
- v = await this.#object_fromJsonLd(obj, options);
80955
+ try {
80956
+ v = await this.#object_fromJsonLd(obj, options);
80957
+ } catch (error) {
80958
+ if (!options.suppressError) throw error;
80959
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
80960
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
80961
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", index: i, error },
80962
+ );
80963
+ continue;
80964
+ }
79596
80965
  }
79597
80966
  }
79598
80967
 
@@ -79810,7 +81179,16 @@ relationships?: (Object | URL)[];}
79810
81179
  \\"relationship\\"];
79811
81180
  const doc = Array.isArray(prop) ? prop[0] : prop;
79812
81181
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
79813
- v = await this.#relationship_fromJsonLd(doc, options);
81182
+ try {
81183
+ v = await this.#relationship_fromJsonLd(doc, options);
81184
+ } catch (error) {
81185
+ if (!options.suppressError) throw error;
81186
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
81187
+ \\"Failed to parse embedded value of {property}: {error}\\",
81188
+ { property: \\"https://www.w3.org/ns/activitystreams#relationship\\", error },
81189
+ );
81190
+ return null;
81191
+ }
79814
81192
  }
79815
81193
  }
79816
81194
 
@@ -79906,7 +81284,16 @@ relationships?: (Object | URL)[];}
79906
81284
  \\"relationship\\"];
79907
81285
  const obj = Array.isArray(prop) ? prop[i] : prop;
79908
81286
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
79909
- v = await this.#relationship_fromJsonLd(obj, options);
81287
+ try {
81288
+ v = await this.#relationship_fromJsonLd(obj, options);
81289
+ } catch (error) {
81290
+ if (!options.suppressError) throw error;
81291
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
81292
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
81293
+ { property: \\"https://www.w3.org/ns/activitystreams#relationship\\", index: i, error },
81294
+ );
81295
+ continue;
81296
+ }
79910
81297
  }
79911
81298
  }
79912
81299
 
@@ -82030,7 +83417,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
82030
83417
  \\"publicKey\\"];
82031
83418
  const doc = Array.isArray(prop) ? prop[0] : prop;
82032
83419
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
82033
- v = await this.#publicKey_fromJsonLd(doc, options);
83420
+ try {
83421
+ v = await this.#publicKey_fromJsonLd(doc, options);
83422
+ } catch (error) {
83423
+ if (!options.suppressError) throw error;
83424
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
83425
+ \\"Failed to parse embedded value of {property}: {error}\\",
83426
+ { property: \\"https://w3id.org/security#publicKey\\", error },
83427
+ );
83428
+ return null;
83429
+ }
82034
83430
  }
82035
83431
  }
82036
83432
 
@@ -82123,7 +83519,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
82123
83519
  \\"publicKey\\"];
82124
83520
  const obj = Array.isArray(prop) ? prop[i] : prop;
82125
83521
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
82126
- v = await this.#publicKey_fromJsonLd(obj, options);
83522
+ try {
83523
+ v = await this.#publicKey_fromJsonLd(obj, options);
83524
+ } catch (error) {
83525
+ if (!options.suppressError) throw error;
83526
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
83527
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
83528
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
83529
+ );
83530
+ continue;
83531
+ }
82127
83532
  }
82128
83533
  }
82129
83534
 
@@ -82342,7 +83747,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
82342
83747
  \\"assertionMethod\\"];
82343
83748
  const doc = Array.isArray(prop) ? prop[0] : prop;
82344
83749
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
82345
- v = await this.#assertionMethod_fromJsonLd(doc, options);
83750
+ try {
83751
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
83752
+ } catch (error) {
83753
+ if (!options.suppressError) throw error;
83754
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
83755
+ \\"Failed to parse embedded value of {property}: {error}\\",
83756
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
83757
+ );
83758
+ return null;
83759
+ }
82346
83760
  }
82347
83761
  }
82348
83762
 
@@ -82439,7 +83853,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
82439
83853
  \\"assertionMethod\\"];
82440
83854
  const obj = Array.isArray(prop) ? prop[i] : prop;
82441
83855
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
82442
- v = await this.#assertionMethod_fromJsonLd(obj, options);
83856
+ try {
83857
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
83858
+ } catch (error) {
83859
+ if (!options.suppressError) throw error;
83860
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
83861
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
83862
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
83863
+ );
83864
+ continue;
83865
+ }
82443
83866
  }
82444
83867
  }
82445
83868
 
@@ -82695,7 +84118,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
82695
84118
  \\"inbox\\"];
82696
84119
  const doc = Array.isArray(prop) ? prop[0] : prop;
82697
84120
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
82698
- v = await this.#inbox_fromJsonLd(doc, options);
84121
+ try {
84122
+ v = await this.#inbox_fromJsonLd(doc, options);
84123
+ } catch (error) {
84124
+ if (!options.suppressError) throw error;
84125
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
84126
+ \\"Failed to parse embedded value of {property}: {error}\\",
84127
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
84128
+ );
84129
+ return null;
84130
+ }
82699
84131
  }
82700
84132
  }
82701
84133
 
@@ -82928,7 +84360,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
82928
84360
  \\"outbox\\"];
82929
84361
  const doc = Array.isArray(prop) ? prop[0] : prop;
82930
84362
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
82931
- v = await this.#outbox_fromJsonLd(doc, options);
84363
+ try {
84364
+ v = await this.#outbox_fromJsonLd(doc, options);
84365
+ } catch (error) {
84366
+ if (!options.suppressError) throw error;
84367
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
84368
+ \\"Failed to parse embedded value of {property}: {error}\\",
84369
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
84370
+ );
84371
+ return null;
84372
+ }
82932
84373
  }
82933
84374
  }
82934
84375
 
@@ -83147,7 +84588,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
83147
84588
  \\"following\\"];
83148
84589
  const doc = Array.isArray(prop) ? prop[0] : prop;
83149
84590
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
83150
- v = await this.#following_fromJsonLd(doc, options);
84591
+ try {
84592
+ v = await this.#following_fromJsonLd(doc, options);
84593
+ } catch (error) {
84594
+ if (!options.suppressError) throw error;
84595
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
84596
+ \\"Failed to parse embedded value of {property}: {error}\\",
84597
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
84598
+ );
84599
+ return null;
84600
+ }
83151
84601
  }
83152
84602
  }
83153
84603
 
@@ -83369,7 +84819,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
83369
84819
  \\"followers\\"];
83370
84820
  const doc = Array.isArray(prop) ? prop[0] : prop;
83371
84821
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
83372
- v = await this.#followers_fromJsonLd(doc, options);
84822
+ try {
84823
+ v = await this.#followers_fromJsonLd(doc, options);
84824
+ } catch (error) {
84825
+ if (!options.suppressError) throw error;
84826
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
84827
+ \\"Failed to parse embedded value of {property}: {error}\\",
84828
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
84829
+ );
84830
+ return null;
84831
+ }
83373
84832
  }
83374
84833
  }
83375
84834
 
@@ -83589,7 +85048,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
83589
85048
  \\"liked\\"];
83590
85049
  const doc = Array.isArray(prop) ? prop[0] : prop;
83591
85050
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
83592
- v = await this.#liked_fromJsonLd(doc, options);
85051
+ try {
85052
+ v = await this.#liked_fromJsonLd(doc, options);
85053
+ } catch (error) {
85054
+ if (!options.suppressError) throw error;
85055
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
85056
+ \\"Failed to parse embedded value of {property}: {error}\\",
85057
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
85058
+ );
85059
+ return null;
85060
+ }
83593
85061
  }
83594
85062
  }
83595
85063
 
@@ -83807,7 +85275,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
83807
85275
  \\"featured\\"];
83808
85276
  const doc = Array.isArray(prop) ? prop[0] : prop;
83809
85277
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
83810
- v = await this.#featured_fromJsonLd(doc, options);
85278
+ try {
85279
+ v = await this.#featured_fromJsonLd(doc, options);
85280
+ } catch (error) {
85281
+ if (!options.suppressError) throw error;
85282
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
85283
+ \\"Failed to parse embedded value of {property}: {error}\\",
85284
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
85285
+ );
85286
+ return null;
85287
+ }
83811
85288
  }
83812
85289
  }
83813
85290
 
@@ -84025,7 +85502,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
84025
85502
  \\"featuredTags\\"];
84026
85503
  const doc = Array.isArray(prop) ? prop[0] : prop;
84027
85504
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
84028
- v = await this.#featuredTags_fromJsonLd(doc, options);
85505
+ try {
85506
+ v = await this.#featuredTags_fromJsonLd(doc, options);
85507
+ } catch (error) {
85508
+ if (!options.suppressError) throw error;
85509
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
85510
+ \\"Failed to parse embedded value of {property}: {error}\\",
85511
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
85512
+ );
85513
+ return null;
85514
+ }
84029
85515
  }
84030
85516
  }
84031
85517
 
@@ -84241,7 +85727,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
84241
85727
  \\"streams\\"];
84242
85728
  const obj = Array.isArray(prop) ? prop[i] : prop;
84243
85729
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
84244
- v = await this.#stream_fromJsonLd(obj, options);
85730
+ try {
85731
+ v = await this.#stream_fromJsonLd(obj, options);
85732
+ } catch (error) {
85733
+ if (!options.suppressError) throw error;
85734
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
85735
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
85736
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
85737
+ );
85738
+ continue;
85739
+ }
84245
85740
  }
84246
85741
  }
84247
85742
 
@@ -84567,7 +86062,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
84567
86062
  \\"movedTo\\"];
84568
86063
  const doc = Array.isArray(prop) ? prop[0] : prop;
84569
86064
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
84570
- v = await this.#successor_fromJsonLd(doc, options);
86065
+ try {
86066
+ v = await this.#successor_fromJsonLd(doc, options);
86067
+ } catch (error) {
86068
+ if (!options.suppressError) throw error;
86069
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
86070
+ \\"Failed to parse embedded value of {property}: {error}\\",
86071
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
86072
+ );
86073
+ return null;
86074
+ }
84571
86075
  }
84572
86076
  }
84573
86077
 
@@ -84821,7 +86325,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
84821
86325
  \\"alsoKnownAs\\"];
84822
86326
  const doc = Array.isArray(prop) ? prop[0] : prop;
84823
86327
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
84824
- v = await this.#alias_fromJsonLd(doc, options);
86328
+ try {
86329
+ v = await this.#alias_fromJsonLd(doc, options);
86330
+ } catch (error) {
86331
+ if (!options.suppressError) throw error;
86332
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
86333
+ \\"Failed to parse embedded value of {property}: {error}\\",
86334
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
86335
+ );
86336
+ return null;
86337
+ }
84825
86338
  }
84826
86339
  }
84827
86340
 
@@ -84918,7 +86431,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
84918
86431
  \\"alsoKnownAs\\"];
84919
86432
  const obj = Array.isArray(prop) ? prop[i] : prop;
84920
86433
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
84921
- v = await this.#alias_fromJsonLd(obj, options);
86434
+ try {
86435
+ v = await this.#alias_fromJsonLd(obj, options);
86436
+ } catch (error) {
86437
+ if (!options.suppressError) throw error;
86438
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
86439
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
86440
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
86441
+ );
86442
+ continue;
86443
+ }
84922
86444
  }
84923
86445
  }
84924
86446
 
@@ -85137,7 +86659,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
85137
86659
  \\"service\\"];
85138
86660
  const doc = Array.isArray(prop) ? prop[0] : prop;
85139
86661
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
85140
- v = await this.#service_fromJsonLd(doc, options);
86662
+ try {
86663
+ v = await this.#service_fromJsonLd(doc, options);
86664
+ } catch (error) {
86665
+ if (!options.suppressError) throw error;
86666
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
86667
+ \\"Failed to parse embedded value of {property}: {error}\\",
86668
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
86669
+ );
86670
+ return null;
86671
+ }
85141
86672
  }
85142
86673
  }
85143
86674
 
@@ -85234,7 +86765,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
85234
86765
  \\"service\\"];
85235
86766
  const obj = Array.isArray(prop) ? prop[i] : prop;
85236
86767
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
85237
- v = await this.#service_fromJsonLd(obj, options);
86768
+ try {
86769
+ v = await this.#service_fromJsonLd(obj, options);
86770
+ } catch (error) {
86771
+ if (!options.suppressError) throw error;
86772
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
86773
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
86774
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
86775
+ );
86776
+ continue;
86777
+ }
85238
86778
  }
85239
86779
  }
85240
86780