@fedify/vocab-tools 2.2.13 → 2.2.14

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.
@@ -27,6 +27,16 @@ import {
27
27
  isTemporalInstant,
28
28
  } from "@fedify/vocab-runtime/temporal";
29
29
 
30
+ function canDecodeIri(iri: string): boolean {
31
+ return URL.canParse(iri) || iri.startsWith("at://");
32
+ }
33
+
34
+ function decodeIri(iri: string): URL {
35
+ return !URL.canParse(iri) && iri.startsWith("at://")
36
+ ? new URL("at://" + encodeURIComponent(iri.substring(5)))
37
+ : new URL(iri);
38
+ }
39
+
30
40
  function isValidLanguageTag(language: string): boolean {
31
41
  try {
32
42
  new Intl.Locale(language);
@@ -2359,7 +2369,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2359
2369
  "attachment"];
2360
2370
  const obj = Array.isArray(prop) ? prop[i] : prop;
2361
2371
  if (obj != null && typeof obj === "object" && "@context" in obj) {
2362
- v = await this.#attachment_fromJsonLd(obj, options);
2372
+ try {
2373
+ v = await this.#attachment_fromJsonLd(obj, options);
2374
+ } catch (error) {
2375
+ if (!options.suppressError) throw error;
2376
+ getLogger(["fedify", "vocab"]).debug(
2377
+ "Failed to parse embedded value of {property} at index {index}: {error}",
2378
+ { property: "https://www.w3.org/ns/activitystreams#attachment", index: i, error },
2379
+ );
2380
+ continue;
2381
+ }
2363
2382
  }
2364
2383
  }
2365
2384
 
@@ -2613,7 +2632,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2613
2632
  "attributedTo"];
2614
2633
  const doc = Array.isArray(prop) ? prop[0] : prop;
2615
2634
  if (doc != null && typeof doc === "object" && "@context" in doc) {
2616
- v = await this.#attribution_fromJsonLd(doc, options);
2635
+ try {
2636
+ v = await this.#attribution_fromJsonLd(doc, options);
2637
+ } catch (error) {
2638
+ if (!options.suppressError) throw error;
2639
+ getLogger(["fedify", "vocab"]).debug(
2640
+ "Failed to parse embedded value of {property}: {error}",
2641
+ { property: "https://www.w3.org/ns/activitystreams#attributedTo", error },
2642
+ );
2643
+ return null;
2644
+ }
2617
2645
  }
2618
2646
  }
2619
2647
 
@@ -2709,7 +2737,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2709
2737
  "attributedTo"];
2710
2738
  const obj = Array.isArray(prop) ? prop[i] : prop;
2711
2739
  if (obj != null && typeof obj === "object" && "@context" in obj) {
2712
- v = await this.#attribution_fromJsonLd(obj, options);
2740
+ try {
2741
+ v = await this.#attribution_fromJsonLd(obj, options);
2742
+ } catch (error) {
2743
+ if (!options.suppressError) throw error;
2744
+ getLogger(["fedify", "vocab"]).debug(
2745
+ "Failed to parse embedded value of {property} at index {index}: {error}",
2746
+ { property: "https://www.w3.org/ns/activitystreams#attributedTo", index: i, error },
2747
+ );
2748
+ continue;
2749
+ }
2713
2750
  }
2714
2751
  }
2715
2752
 
@@ -2926,7 +2963,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2926
2963
  "audience"];
2927
2964
  const doc = Array.isArray(prop) ? prop[0] : prop;
2928
2965
  if (doc != null && typeof doc === "object" && "@context" in doc) {
2929
- v = await this.#audience_fromJsonLd(doc, options);
2966
+ try {
2967
+ v = await this.#audience_fromJsonLd(doc, options);
2968
+ } catch (error) {
2969
+ if (!options.suppressError) throw error;
2970
+ getLogger(["fedify", "vocab"]).debug(
2971
+ "Failed to parse embedded value of {property}: {error}",
2972
+ { property: "https://www.w3.org/ns/activitystreams#audience", error },
2973
+ );
2974
+ return null;
2975
+ }
2930
2976
  }
2931
2977
  }
2932
2978
 
@@ -3021,7 +3067,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
3021
3067
  "audience"];
3022
3068
  const obj = Array.isArray(prop) ? prop[i] : prop;
3023
3069
  if (obj != null && typeof obj === "object" && "@context" in obj) {
3024
- v = await this.#audience_fromJsonLd(obj, options);
3070
+ try {
3071
+ v = await this.#audience_fromJsonLd(obj, options);
3072
+ } catch (error) {
3073
+ if (!options.suppressError) throw error;
3074
+ getLogger(["fedify", "vocab"]).debug(
3075
+ "Failed to parse embedded value of {property} at index {index}: {error}",
3076
+ { property: "https://www.w3.org/ns/activitystreams#audience", index: i, error },
3077
+ );
3078
+ continue;
3079
+ }
3025
3080
  }
3026
3081
  }
3027
3082
 
@@ -3282,7 +3337,16 @@ get contents(): ((string | LanguageString))[] {
3282
3337
  "context"];
3283
3338
  const obj = Array.isArray(prop) ? prop[i] : prop;
3284
3339
  if (obj != null && typeof obj === "object" && "@context" in obj) {
3285
- v = await this.#context_fromJsonLd(obj, options);
3340
+ try {
3341
+ v = await this.#context_fromJsonLd(obj, options);
3342
+ } catch (error) {
3343
+ if (!options.suppressError) throw error;
3344
+ getLogger(["fedify", "vocab"]).debug(
3345
+ "Failed to parse embedded value of {property} at index {index}: {error}",
3346
+ { property: "https://www.w3.org/ns/activitystreams#context", index: i, error },
3347
+ );
3348
+ continue;
3349
+ }
3286
3350
  }
3287
3351
  }
3288
3352
 
@@ -3550,7 +3614,16 @@ get names(): ((string | LanguageString))[] {
3550
3614
  "generator"];
3551
3615
  const obj = Array.isArray(prop) ? prop[i] : prop;
3552
3616
  if (obj != null && typeof obj === "object" && "@context" in obj) {
3553
- v = await this.#generator_fromJsonLd(obj, options);
3617
+ try {
3618
+ v = await this.#generator_fromJsonLd(obj, options);
3619
+ } catch (error) {
3620
+ if (!options.suppressError) throw error;
3621
+ getLogger(["fedify", "vocab"]).debug(
3622
+ "Failed to parse embedded value of {property} at index {index}: {error}",
3623
+ { property: "https://www.w3.org/ns/activitystreams#generator", index: i, error },
3624
+ );
3625
+ continue;
3626
+ }
3554
3627
  }
3555
3628
  }
3556
3629
 
@@ -3768,7 +3841,16 @@ get names(): ((string | LanguageString))[] {
3768
3841
  "icon"];
3769
3842
  const doc = Array.isArray(prop) ? prop[0] : prop;
3770
3843
  if (doc != null && typeof doc === "object" && "@context" in doc) {
3771
- v = await this.#icon_fromJsonLd(doc, options);
3844
+ try {
3845
+ v = await this.#icon_fromJsonLd(doc, options);
3846
+ } catch (error) {
3847
+ if (!options.suppressError) throw error;
3848
+ getLogger(["fedify", "vocab"]).debug(
3849
+ "Failed to parse embedded value of {property}: {error}",
3850
+ { property: "https://www.w3.org/ns/activitystreams#icon", error },
3851
+ );
3852
+ return null;
3853
+ }
3772
3854
  }
3773
3855
  }
3774
3856
 
@@ -3864,7 +3946,16 @@ get names(): ((string | LanguageString))[] {
3864
3946
  "icon"];
3865
3947
  const obj = Array.isArray(prop) ? prop[i] : prop;
3866
3948
  if (obj != null && typeof obj === "object" && "@context" in obj) {
3867
- v = await this.#icon_fromJsonLd(obj, options);
3949
+ try {
3950
+ v = await this.#icon_fromJsonLd(obj, options);
3951
+ } catch (error) {
3952
+ if (!options.suppressError) throw error;
3953
+ getLogger(["fedify", "vocab"]).debug(
3954
+ "Failed to parse embedded value of {property} at index {index}: {error}",
3955
+ { property: "https://www.w3.org/ns/activitystreams#icon", index: i, error },
3956
+ );
3957
+ continue;
3958
+ }
3868
3959
  }
3869
3960
  }
3870
3961
 
@@ -4082,7 +4173,16 @@ get names(): ((string | LanguageString))[] {
4082
4173
  "image"];
4083
4174
  const doc = Array.isArray(prop) ? prop[0] : prop;
4084
4175
  if (doc != null && typeof doc === "object" && "@context" in doc) {
4085
- v = await this.#image_fromJsonLd(doc, options);
4176
+ try {
4177
+ v = await this.#image_fromJsonLd(doc, options);
4178
+ } catch (error) {
4179
+ if (!options.suppressError) throw error;
4180
+ getLogger(["fedify", "vocab"]).debug(
4181
+ "Failed to parse embedded value of {property}: {error}",
4182
+ { property: "https://www.w3.org/ns/activitystreams#image", error },
4183
+ );
4184
+ return null;
4185
+ }
4086
4186
  }
4087
4187
  }
4088
4188
 
@@ -4178,7 +4278,16 @@ get names(): ((string | LanguageString))[] {
4178
4278
  "image"];
4179
4279
  const obj = Array.isArray(prop) ? prop[i] : prop;
4180
4280
  if (obj != null && typeof obj === "object" && "@context" in obj) {
4181
- v = await this.#image_fromJsonLd(obj, options);
4281
+ try {
4282
+ v = await this.#image_fromJsonLd(obj, options);
4283
+ } catch (error) {
4284
+ if (!options.suppressError) throw error;
4285
+ getLogger(["fedify", "vocab"]).debug(
4286
+ "Failed to parse embedded value of {property} at index {index}: {error}",
4287
+ { property: "https://www.w3.org/ns/activitystreams#image", index: i, error },
4288
+ );
4289
+ continue;
4290
+ }
4182
4291
  }
4183
4292
  }
4184
4293
 
@@ -4404,7 +4513,16 @@ get names(): ((string | LanguageString))[] {
4404
4513
  "inReplyTo"];
4405
4514
  const doc = Array.isArray(prop) ? prop[0] : prop;
4406
4515
  if (doc != null && typeof doc === "object" && "@context" in doc) {
4407
- v = await this.#replyTarget_fromJsonLd(doc, options);
4516
+ try {
4517
+ v = await this.#replyTarget_fromJsonLd(doc, options);
4518
+ } catch (error) {
4519
+ if (!options.suppressError) throw error;
4520
+ getLogger(["fedify", "vocab"]).debug(
4521
+ "Failed to parse embedded value of {property}: {error}",
4522
+ { property: "https://www.w3.org/ns/activitystreams#inReplyTo", error },
4523
+ );
4524
+ return null;
4525
+ }
4408
4526
  }
4409
4527
  }
4410
4528
 
@@ -4499,7 +4617,16 @@ get names(): ((string | LanguageString))[] {
4499
4617
  "inReplyTo"];
4500
4618
  const obj = Array.isArray(prop) ? prop[i] : prop;
4501
4619
  if (obj != null && typeof obj === "object" && "@context" in obj) {
4502
- v = await this.#replyTarget_fromJsonLd(obj, options);
4620
+ try {
4621
+ v = await this.#replyTarget_fromJsonLd(obj, options);
4622
+ } catch (error) {
4623
+ if (!options.suppressError) throw error;
4624
+ getLogger(["fedify", "vocab"]).debug(
4625
+ "Failed to parse embedded value of {property} at index {index}: {error}",
4626
+ { property: "https://www.w3.org/ns/activitystreams#inReplyTo", index: i, error },
4627
+ );
4628
+ continue;
4629
+ }
4503
4630
  }
4504
4631
  }
4505
4632
 
@@ -4725,7 +4852,16 @@ get names(): ((string | LanguageString))[] {
4725
4852
  "location"];
4726
4853
  const doc = Array.isArray(prop) ? prop[0] : prop;
4727
4854
  if (doc != null && typeof doc === "object" && "@context" in doc) {
4728
- v = await this.#location_fromJsonLd(doc, options);
4855
+ try {
4856
+ v = await this.#location_fromJsonLd(doc, options);
4857
+ } catch (error) {
4858
+ if (!options.suppressError) throw error;
4859
+ getLogger(["fedify", "vocab"]).debug(
4860
+ "Failed to parse embedded value of {property}: {error}",
4861
+ { property: "https://www.w3.org/ns/activitystreams#location", error },
4862
+ );
4863
+ return null;
4864
+ }
4729
4865
  }
4730
4866
  }
4731
4867
 
@@ -4820,7 +4956,16 @@ get names(): ((string | LanguageString))[] {
4820
4956
  "location"];
4821
4957
  const obj = Array.isArray(prop) ? prop[i] : prop;
4822
4958
  if (obj != null && typeof obj === "object" && "@context" in obj) {
4823
- v = await this.#location_fromJsonLd(obj, options);
4959
+ try {
4960
+ v = await this.#location_fromJsonLd(obj, options);
4961
+ } catch (error) {
4962
+ if (!options.suppressError) throw error;
4963
+ getLogger(["fedify", "vocab"]).debug(
4964
+ "Failed to parse embedded value of {property} at index {index}: {error}",
4965
+ { property: "https://www.w3.org/ns/activitystreams#location", index: i, error },
4966
+ );
4967
+ continue;
4968
+ }
4824
4969
  }
4825
4970
  }
4826
4971
 
@@ -5045,7 +5190,16 @@ get names(): ((string | LanguageString))[] {
5045
5190
  "preview"];
5046
5191
  const doc = Array.isArray(prop) ? prop[0] : prop;
5047
5192
  if (doc != null && typeof doc === "object" && "@context" in doc) {
5048
- v = await this.#preview_fromJsonLd(doc, options);
5193
+ try {
5194
+ v = await this.#preview_fromJsonLd(doc, options);
5195
+ } catch (error) {
5196
+ if (!options.suppressError) throw error;
5197
+ getLogger(["fedify", "vocab"]).debug(
5198
+ "Failed to parse embedded value of {property}: {error}",
5199
+ { property: "https://www.w3.org/ns/activitystreams#preview", error },
5200
+ );
5201
+ return null;
5202
+ }
5049
5203
  }
5050
5204
  }
5051
5205
 
@@ -5139,7 +5293,16 @@ get names(): ((string | LanguageString))[] {
5139
5293
  "preview"];
5140
5294
  const obj = Array.isArray(prop) ? prop[i] : prop;
5141
5295
  if (obj != null && typeof obj === "object" && "@context" in obj) {
5142
- v = await this.#preview_fromJsonLd(obj, options);
5296
+ try {
5297
+ v = await this.#preview_fromJsonLd(obj, options);
5298
+ } catch (error) {
5299
+ if (!options.suppressError) throw error;
5300
+ getLogger(["fedify", "vocab"]).debug(
5301
+ "Failed to parse embedded value of {property} at index {index}: {error}",
5302
+ { property: "https://www.w3.org/ns/activitystreams#preview", index: i, error },
5303
+ );
5304
+ continue;
5305
+ }
5143
5306
  }
5144
5307
  }
5145
5308
 
@@ -5369,7 +5532,16 @@ get names(): ((string | LanguageString))[] {
5369
5532
  "replies"];
5370
5533
  const doc = Array.isArray(prop) ? prop[0] : prop;
5371
5534
  if (doc != null && typeof doc === "object" && "@context" in doc) {
5372
- v = await this.#replies_fromJsonLd(doc, options);
5535
+ try {
5536
+ v = await this.#replies_fromJsonLd(doc, options);
5537
+ } catch (error) {
5538
+ if (!options.suppressError) throw error;
5539
+ getLogger(["fedify", "vocab"]).debug(
5540
+ "Failed to parse embedded value of {property}: {error}",
5541
+ { property: "https://www.w3.org/ns/activitystreams#replies", error },
5542
+ );
5543
+ return null;
5544
+ }
5373
5545
  }
5374
5546
  }
5375
5547
 
@@ -5591,7 +5763,16 @@ get names(): ((string | LanguageString))[] {
5591
5763
  "shares"];
5592
5764
  const doc = Array.isArray(prop) ? prop[0] : prop;
5593
5765
  if (doc != null && typeof doc === "object" && "@context" in doc) {
5594
- v = await this.#shares_fromJsonLd(doc, options);
5766
+ try {
5767
+ v = await this.#shares_fromJsonLd(doc, options);
5768
+ } catch (error) {
5769
+ if (!options.suppressError) throw error;
5770
+ getLogger(["fedify", "vocab"]).debug(
5771
+ "Failed to parse embedded value of {property}: {error}",
5772
+ { property: "https://www.w3.org/ns/activitystreams#shares", error },
5773
+ );
5774
+ return null;
5775
+ }
5595
5776
  }
5596
5777
  }
5597
5778
 
@@ -5813,7 +5994,16 @@ get names(): ((string | LanguageString))[] {
5813
5994
  "likes"];
5814
5995
  const doc = Array.isArray(prop) ? prop[0] : prop;
5815
5996
  if (doc != null && typeof doc === "object" && "@context" in doc) {
5816
- v = await this.#likes_fromJsonLd(doc, options);
5997
+ try {
5998
+ v = await this.#likes_fromJsonLd(doc, options);
5999
+ } catch (error) {
6000
+ if (!options.suppressError) throw error;
6001
+ getLogger(["fedify", "vocab"]).debug(
6002
+ "Failed to parse embedded value of {property}: {error}",
6003
+ { property: "https://www.w3.org/ns/activitystreams#likes", error },
6004
+ );
6005
+ return null;
6006
+ }
5817
6007
  }
5818
6008
  }
5819
6009
 
@@ -6029,7 +6219,16 @@ get names(): ((string | LanguageString))[] {
6029
6219
  "emojiReactions"];
6030
6220
  const doc = Array.isArray(prop) ? prop[0] : prop;
6031
6221
  if (doc != null && typeof doc === "object" && "@context" in doc) {
6032
- v = await this.#emojiReactions_fromJsonLd(doc, options);
6222
+ try {
6223
+ v = await this.#emojiReactions_fromJsonLd(doc, options);
6224
+ } catch (error) {
6225
+ if (!options.suppressError) throw error;
6226
+ getLogger(["fedify", "vocab"]).debug(
6227
+ "Failed to parse embedded value of {property}: {error}",
6228
+ { property: "http://fedibird.com/ns#emojiReactions", error },
6229
+ );
6230
+ return null;
6231
+ }
6033
6232
  }
6034
6233
  }
6035
6234
 
@@ -6297,7 +6496,16 @@ get summaries(): ((string | LanguageString))[] {
6297
6496
  "tag"];
6298
6497
  const obj = Array.isArray(prop) ? prop[i] : prop;
6299
6498
  if (obj != null && typeof obj === "object" && "@context" in obj) {
6300
- v = await this.#tag_fromJsonLd(obj, options);
6499
+ try {
6500
+ v = await this.#tag_fromJsonLd(obj, options);
6501
+ } catch (error) {
6502
+ if (!options.suppressError) throw error;
6503
+ getLogger(["fedify", "vocab"]).debug(
6504
+ "Failed to parse embedded value of {property} at index {index}: {error}",
6505
+ { property: "https://www.w3.org/ns/activitystreams#tag", index: i, error },
6506
+ );
6507
+ continue;
6508
+ }
6301
6509
  }
6302
6510
  }
6303
6511
 
@@ -6548,7 +6756,16 @@ get urls(): ((URL | Link))[] {
6548
6756
  "to"];
6549
6757
  const doc = Array.isArray(prop) ? prop[0] : prop;
6550
6758
  if (doc != null && typeof doc === "object" && "@context" in doc) {
6551
- v = await this.#to_fromJsonLd(doc, options);
6759
+ try {
6760
+ v = await this.#to_fromJsonLd(doc, options);
6761
+ } catch (error) {
6762
+ if (!options.suppressError) throw error;
6763
+ getLogger(["fedify", "vocab"]).debug(
6764
+ "Failed to parse embedded value of {property}: {error}",
6765
+ { property: "https://www.w3.org/ns/activitystreams#to", error },
6766
+ );
6767
+ return null;
6768
+ }
6552
6769
  }
6553
6770
  }
6554
6771
 
@@ -6643,7 +6860,16 @@ get urls(): ((URL | Link))[] {
6643
6860
  "to"];
6644
6861
  const obj = Array.isArray(prop) ? prop[i] : prop;
6645
6862
  if (obj != null && typeof obj === "object" && "@context" in obj) {
6646
- v = await this.#to_fromJsonLd(obj, options);
6863
+ try {
6864
+ v = await this.#to_fromJsonLd(obj, options);
6865
+ } catch (error) {
6866
+ if (!options.suppressError) throw error;
6867
+ getLogger(["fedify", "vocab"]).debug(
6868
+ "Failed to parse embedded value of {property} at index {index}: {error}",
6869
+ { property: "https://www.w3.org/ns/activitystreams#to", index: i, error },
6870
+ );
6871
+ continue;
6872
+ }
6647
6873
  }
6648
6874
  }
6649
6875
 
@@ -6860,7 +7086,16 @@ get urls(): ((URL | Link))[] {
6860
7086
  "bto"];
6861
7087
  const doc = Array.isArray(prop) ? prop[0] : prop;
6862
7088
  if (doc != null && typeof doc === "object" && "@context" in doc) {
6863
- v = await this.#bto_fromJsonLd(doc, options);
7089
+ try {
7090
+ v = await this.#bto_fromJsonLd(doc, options);
7091
+ } catch (error) {
7092
+ if (!options.suppressError) throw error;
7093
+ getLogger(["fedify", "vocab"]).debug(
7094
+ "Failed to parse embedded value of {property}: {error}",
7095
+ { property: "https://www.w3.org/ns/activitystreams#bto", error },
7096
+ );
7097
+ return null;
7098
+ }
6864
7099
  }
6865
7100
  }
6866
7101
 
@@ -6955,7 +7190,16 @@ get urls(): ((URL | Link))[] {
6955
7190
  "bto"];
6956
7191
  const obj = Array.isArray(prop) ? prop[i] : prop;
6957
7192
  if (obj != null && typeof obj === "object" && "@context" in obj) {
6958
- v = await this.#bto_fromJsonLd(obj, options);
7193
+ try {
7194
+ v = await this.#bto_fromJsonLd(obj, options);
7195
+ } catch (error) {
7196
+ if (!options.suppressError) throw error;
7197
+ getLogger(["fedify", "vocab"]).debug(
7198
+ "Failed to parse embedded value of {property} at index {index}: {error}",
7199
+ { property: "https://www.w3.org/ns/activitystreams#bto", index: i, error },
7200
+ );
7201
+ continue;
7202
+ }
6959
7203
  }
6960
7204
  }
6961
7205
 
@@ -7172,7 +7416,16 @@ get urls(): ((URL | Link))[] {
7172
7416
  "cc"];
7173
7417
  const doc = Array.isArray(prop) ? prop[0] : prop;
7174
7418
  if (doc != null && typeof doc === "object" && "@context" in doc) {
7175
- v = await this.#cc_fromJsonLd(doc, options);
7419
+ try {
7420
+ v = await this.#cc_fromJsonLd(doc, options);
7421
+ } catch (error) {
7422
+ if (!options.suppressError) throw error;
7423
+ getLogger(["fedify", "vocab"]).debug(
7424
+ "Failed to parse embedded value of {property}: {error}",
7425
+ { property: "https://www.w3.org/ns/activitystreams#cc", error },
7426
+ );
7427
+ return null;
7428
+ }
7176
7429
  }
7177
7430
  }
7178
7431
 
@@ -7267,7 +7520,16 @@ get urls(): ((URL | Link))[] {
7267
7520
  "cc"];
7268
7521
  const obj = Array.isArray(prop) ? prop[i] : prop;
7269
7522
  if (obj != null && typeof obj === "object" && "@context" in obj) {
7270
- v = await this.#cc_fromJsonLd(obj, options);
7523
+ try {
7524
+ v = await this.#cc_fromJsonLd(obj, options);
7525
+ } catch (error) {
7526
+ if (!options.suppressError) throw error;
7527
+ getLogger(["fedify", "vocab"]).debug(
7528
+ "Failed to parse embedded value of {property} at index {index}: {error}",
7529
+ { property: "https://www.w3.org/ns/activitystreams#cc", index: i, error },
7530
+ );
7531
+ continue;
7532
+ }
7271
7533
  }
7272
7534
  }
7273
7535
 
@@ -7484,7 +7746,16 @@ get urls(): ((URL | Link))[] {
7484
7746
  "bcc"];
7485
7747
  const doc = Array.isArray(prop) ? prop[0] : prop;
7486
7748
  if (doc != null && typeof doc === "object" && "@context" in doc) {
7487
- v = await this.#bcc_fromJsonLd(doc, options);
7749
+ try {
7750
+ v = await this.#bcc_fromJsonLd(doc, options);
7751
+ } catch (error) {
7752
+ if (!options.suppressError) throw error;
7753
+ getLogger(["fedify", "vocab"]).debug(
7754
+ "Failed to parse embedded value of {property}: {error}",
7755
+ { property: "https://www.w3.org/ns/activitystreams#bcc", error },
7756
+ );
7757
+ return null;
7758
+ }
7488
7759
  }
7489
7760
  }
7490
7761
 
@@ -7579,7 +7850,16 @@ get urls(): ((URL | Link))[] {
7579
7850
  "bcc"];
7580
7851
  const obj = Array.isArray(prop) ? prop[i] : prop;
7581
7852
  if (obj != null && typeof obj === "object" && "@context" in obj) {
7582
- v = await this.#bcc_fromJsonLd(obj, options);
7853
+ try {
7854
+ v = await this.#bcc_fromJsonLd(obj, options);
7855
+ } catch (error) {
7856
+ if (!options.suppressError) throw error;
7857
+ getLogger(["fedify", "vocab"]).debug(
7858
+ "Failed to parse embedded value of {property} at index {index}: {error}",
7859
+ { property: "https://www.w3.org/ns/activitystreams#bcc", index: i, error },
7860
+ );
7861
+ continue;
7862
+ }
7583
7863
  }
7584
7864
  }
7585
7865
 
@@ -7859,7 +8139,16 @@ get urls(): ((URL | Link))[] {
7859
8139
  "proof"];
7860
8140
  const doc = Array.isArray(prop) ? prop[0] : prop;
7861
8141
  if (doc != null && typeof doc === "object" && "@context" in doc) {
7862
- v = await this.#proof_fromJsonLd(doc, options);
8142
+ try {
8143
+ v = await this.#proof_fromJsonLd(doc, options);
8144
+ } catch (error) {
8145
+ if (!options.suppressError) throw error;
8146
+ getLogger(["fedify", "vocab"]).debug(
8147
+ "Failed to parse embedded value of {property}: {error}",
8148
+ { property: "https://w3id.org/security#proof", error },
8149
+ );
8150
+ return null;
8151
+ }
7863
8152
  }
7864
8153
  }
7865
8154
 
@@ -7953,7 +8242,16 @@ get urls(): ((URL | Link))[] {
7953
8242
  "proof"];
7954
8243
  const obj = Array.isArray(prop) ? prop[i] : prop;
7955
8244
  if (obj != null && typeof obj === "object" && "@context" in obj) {
7956
- v = await this.#proof_fromJsonLd(obj, options);
8245
+ try {
8246
+ v = await this.#proof_fromJsonLd(obj, options);
8247
+ } catch (error) {
8248
+ if (!options.suppressError) throw error;
8249
+ getLogger(["fedify", "vocab"]).debug(
8250
+ "Failed to parse embedded value of {property} at index {index}: {error}",
8251
+ { property: "https://w3id.org/security#proof", index: i, error },
8252
+ );
8253
+ continue;
8254
+ }
7957
8255
  }
7958
8256
  }
7959
8257
 
@@ -8209,7 +8507,16 @@ get urls(): ((URL | Link))[] {
8209
8507
  "likeAuthorization"];
8210
8508
  const doc = Array.isArray(prop) ? prop[0] : prop;
8211
8509
  if (doc != null && typeof doc === "object" && "@context" in doc) {
8212
- v = await this.#likeAuthorization_fromJsonLd(doc, options);
8510
+ try {
8511
+ v = await this.#likeAuthorization_fromJsonLd(doc, options);
8512
+ } catch (error) {
8513
+ if (!options.suppressError) throw error;
8514
+ getLogger(["fedify", "vocab"]).debug(
8515
+ "Failed to parse embedded value of {property}: {error}",
8516
+ { property: "https://gotosocial.org/ns#likeAuthorization", error },
8517
+ );
8518
+ return null;
8519
+ }
8213
8520
  }
8214
8521
  }
8215
8522
 
@@ -8425,7 +8732,16 @@ get urls(): ((URL | Link))[] {
8425
8732
  "replyAuthorization"];
8426
8733
  const doc = Array.isArray(prop) ? prop[0] : prop;
8427
8734
  if (doc != null && typeof doc === "object" && "@context" in doc) {
8428
- v = await this.#replyAuthorization_fromJsonLd(doc, options);
8735
+ try {
8736
+ v = await this.#replyAuthorization_fromJsonLd(doc, options);
8737
+ } catch (error) {
8738
+ if (!options.suppressError) throw error;
8739
+ getLogger(["fedify", "vocab"]).debug(
8740
+ "Failed to parse embedded value of {property}: {error}",
8741
+ { property: "https://gotosocial.org/ns#replyAuthorization", error },
8742
+ );
8743
+ return null;
8744
+ }
8429
8745
  }
8430
8746
  }
8431
8747
 
@@ -8641,7 +8957,16 @@ get urls(): ((URL | Link))[] {
8641
8957
  "announceAuthorization"];
8642
8958
  const doc = Array.isArray(prop) ? prop[0] : prop;
8643
8959
  if (doc != null && typeof doc === "object" && "@context" in doc) {
8644
- v = await this.#announceAuthorization_fromJsonLd(doc, options);
8960
+ try {
8961
+ v = await this.#announceAuthorization_fromJsonLd(doc, options);
8962
+ } catch (error) {
8963
+ if (!options.suppressError) throw error;
8964
+ getLogger(["fedify", "vocab"]).debug(
8965
+ "Failed to parse embedded value of {property}: {error}",
8966
+ { property: "https://gotosocial.org/ns#announceAuthorization", error },
8967
+ );
8968
+ return null;
8969
+ }
8645
8970
  }
8646
8971
  }
8647
8972
 
@@ -13640,7 +13965,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
13640
13965
  "quote"];
13641
13966
  const doc = Array.isArray(prop) ? prop[0] : prop;
13642
13967
  if (doc != null && typeof doc === "object" && "@context" in doc) {
13643
- v = await this.#quote_fromJsonLd(doc, options);
13968
+ try {
13969
+ v = await this.#quote_fromJsonLd(doc, options);
13970
+ } catch (error) {
13971
+ if (!options.suppressError) throw error;
13972
+ getLogger(["fedify", "vocab"]).debug(
13973
+ "Failed to parse embedded value of {property}: {error}",
13974
+ { property: "https://w3id.org/fep/044f#quote", error },
13975
+ );
13976
+ return null;
13977
+ }
13644
13978
  }
13645
13979
  }
13646
13980
 
@@ -13879,7 +14213,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
13879
14213
  "quoteAuthorization"];
13880
14214
  const doc = Array.isArray(prop) ? prop[0] : prop;
13881
14215
  if (doc != null && typeof doc === "object" && "@context" in doc) {
13882
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
14216
+ try {
14217
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
14218
+ } catch (error) {
14219
+ if (!options.suppressError) throw error;
14220
+ getLogger(["fedify", "vocab"]).debug(
14221
+ "Failed to parse embedded value of {property}: {error}",
14222
+ { property: "https://w3id.org/fep/044f#quoteAuthorization", error },
14223
+ );
14224
+ return null;
14225
+ }
13883
14226
  }
13884
14227
  }
13885
14228
 
@@ -14293,7 +14636,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
14293
14636
  if (v == null) continue;
14294
14637
 
14295
14638
  const decoded =
14296
- new URL(v["@value"])
14639
+ typeof v === "object" &&
14640
+ ((typeof v["@id"] === "string" && canDecodeIri(v["@id"])) ||
14641
+ (typeof v["@value"] === "string" && canDecodeIri(v["@value"]))) ? decodeIri(
14642
+ typeof v["@id"] === "string" ? v["@id"] : v["@value"]
14643
+ ) : undefined
14297
14644
  ;
14298
14645
 
14299
14646
  if (typeof decoded === "undefined") {
@@ -15296,7 +15643,16 @@ instruments?: (Object | URL)[];}
15296
15643
  "actor"];
15297
15644
  const doc = Array.isArray(prop) ? prop[0] : prop;
15298
15645
  if (doc != null && typeof doc === "object" && "@context" in doc) {
15299
- v = await this.#actor_fromJsonLd(doc, options);
15646
+ try {
15647
+ v = await this.#actor_fromJsonLd(doc, options);
15648
+ } catch (error) {
15649
+ if (!options.suppressError) throw error;
15650
+ getLogger(["fedify", "vocab"]).debug(
15651
+ "Failed to parse embedded value of {property}: {error}",
15652
+ { property: "https://www.w3.org/ns/activitystreams#actor", error },
15653
+ );
15654
+ return null;
15655
+ }
15300
15656
  }
15301
15657
  }
15302
15658
 
@@ -15392,7 +15748,16 @@ instruments?: (Object | URL)[];}
15392
15748
  "actor"];
15393
15749
  const obj = Array.isArray(prop) ? prop[i] : prop;
15394
15750
  if (obj != null && typeof obj === "object" && "@context" in obj) {
15395
- v = await this.#actor_fromJsonLd(obj, options);
15751
+ try {
15752
+ v = await this.#actor_fromJsonLd(obj, options);
15753
+ } catch (error) {
15754
+ if (!options.suppressError) throw error;
15755
+ getLogger(["fedify", "vocab"]).debug(
15756
+ "Failed to parse embedded value of {property} at index {index}: {error}",
15757
+ { property: "https://www.w3.org/ns/activitystreams#actor", index: i, error },
15758
+ );
15759
+ continue;
15760
+ }
15396
15761
  }
15397
15762
  }
15398
15763
 
@@ -15610,7 +15975,16 @@ instruments?: (Object | URL)[];}
15610
15975
  "object"];
15611
15976
  const doc = Array.isArray(prop) ? prop[0] : prop;
15612
15977
  if (doc != null && typeof doc === "object" && "@context" in doc) {
15613
- v = await this.#object_fromJsonLd(doc, options);
15978
+ try {
15979
+ v = await this.#object_fromJsonLd(doc, options);
15980
+ } catch (error) {
15981
+ if (!options.suppressError) throw error;
15982
+ getLogger(["fedify", "vocab"]).debug(
15983
+ "Failed to parse embedded value of {property}: {error}",
15984
+ { property: "https://www.w3.org/ns/activitystreams#object", error },
15985
+ );
15986
+ return null;
15987
+ }
15614
15988
  }
15615
15989
  }
15616
15990
 
@@ -15706,7 +16080,16 @@ instruments?: (Object | URL)[];}
15706
16080
  "object"];
15707
16081
  const obj = Array.isArray(prop) ? prop[i] : prop;
15708
16082
  if (obj != null && typeof obj === "object" && "@context" in obj) {
15709
- v = await this.#object_fromJsonLd(obj, options);
16083
+ try {
16084
+ v = await this.#object_fromJsonLd(obj, options);
16085
+ } catch (error) {
16086
+ if (!options.suppressError) throw error;
16087
+ getLogger(["fedify", "vocab"]).debug(
16088
+ "Failed to parse embedded value of {property} at index {index}: {error}",
16089
+ { property: "https://www.w3.org/ns/activitystreams#object", index: i, error },
16090
+ );
16091
+ continue;
16092
+ }
15710
16093
  }
15711
16094
  }
15712
16095
 
@@ -15927,7 +16310,16 @@ instruments?: (Object | URL)[];}
15927
16310
  "target"];
15928
16311
  const doc = Array.isArray(prop) ? prop[0] : prop;
15929
16312
  if (doc != null && typeof doc === "object" && "@context" in doc) {
15930
- v = await this.#target_fromJsonLd(doc, options);
16313
+ try {
16314
+ v = await this.#target_fromJsonLd(doc, options);
16315
+ } catch (error) {
16316
+ if (!options.suppressError) throw error;
16317
+ getLogger(["fedify", "vocab"]).debug(
16318
+ "Failed to parse embedded value of {property}: {error}",
16319
+ { property: "https://www.w3.org/ns/activitystreams#target", error },
16320
+ );
16321
+ return null;
16322
+ }
15931
16323
  }
15932
16324
  }
15933
16325
 
@@ -16026,7 +16418,16 @@ instruments?: (Object | URL)[];}
16026
16418
  "target"];
16027
16419
  const obj = Array.isArray(prop) ? prop[i] : prop;
16028
16420
  if (obj != null && typeof obj === "object" && "@context" in obj) {
16029
- v = await this.#target_fromJsonLd(obj, options);
16421
+ try {
16422
+ v = await this.#target_fromJsonLd(obj, options);
16423
+ } catch (error) {
16424
+ if (!options.suppressError) throw error;
16425
+ getLogger(["fedify", "vocab"]).debug(
16426
+ "Failed to parse embedded value of {property} at index {index}: {error}",
16427
+ { property: "https://www.w3.org/ns/activitystreams#target", index: i, error },
16428
+ );
16429
+ continue;
16430
+ }
16030
16431
  }
16031
16432
  }
16032
16433
 
@@ -16244,7 +16645,16 @@ instruments?: (Object | URL)[];}
16244
16645
  "result"];
16245
16646
  const doc = Array.isArray(prop) ? prop[0] : prop;
16246
16647
  if (doc != null && typeof doc === "object" && "@context" in doc) {
16247
- v = await this.#result_fromJsonLd(doc, options);
16648
+ try {
16649
+ v = await this.#result_fromJsonLd(doc, options);
16650
+ } catch (error) {
16651
+ if (!options.suppressError) throw error;
16652
+ getLogger(["fedify", "vocab"]).debug(
16653
+ "Failed to parse embedded value of {property}: {error}",
16654
+ { property: "https://www.w3.org/ns/activitystreams#result", error },
16655
+ );
16656
+ return null;
16657
+ }
16248
16658
  }
16249
16659
  }
16250
16660
 
@@ -16340,7 +16750,16 @@ instruments?: (Object | URL)[];}
16340
16750
  "result"];
16341
16751
  const obj = Array.isArray(prop) ? prop[i] : prop;
16342
16752
  if (obj != null && typeof obj === "object" && "@context" in obj) {
16343
- v = await this.#result_fromJsonLd(obj, options);
16753
+ try {
16754
+ v = await this.#result_fromJsonLd(obj, options);
16755
+ } catch (error) {
16756
+ if (!options.suppressError) throw error;
16757
+ getLogger(["fedify", "vocab"]).debug(
16758
+ "Failed to parse embedded value of {property} at index {index}: {error}",
16759
+ { property: "https://www.w3.org/ns/activitystreams#result", index: i, error },
16760
+ );
16761
+ continue;
16762
+ }
16344
16763
  }
16345
16764
  }
16346
16765
 
@@ -16559,7 +16978,16 @@ instruments?: (Object | URL)[];}
16559
16978
  "origin"];
16560
16979
  const doc = Array.isArray(prop) ? prop[0] : prop;
16561
16980
  if (doc != null && typeof doc === "object" && "@context" in doc) {
16562
- v = await this.#origin_fromJsonLd(doc, options);
16981
+ try {
16982
+ v = await this.#origin_fromJsonLd(doc, options);
16983
+ } catch (error) {
16984
+ if (!options.suppressError) throw error;
16985
+ getLogger(["fedify", "vocab"]).debug(
16986
+ "Failed to parse embedded value of {property}: {error}",
16987
+ { property: "https://www.w3.org/ns/activitystreams#origin", error },
16988
+ );
16989
+ return null;
16990
+ }
16563
16991
  }
16564
16992
  }
16565
16993
 
@@ -16656,7 +17084,16 @@ instruments?: (Object | URL)[];}
16656
17084
  "origin"];
16657
17085
  const obj = Array.isArray(prop) ? prop[i] : prop;
16658
17086
  if (obj != null && typeof obj === "object" && "@context" in obj) {
16659
- v = await this.#origin_fromJsonLd(obj, options);
17087
+ try {
17088
+ v = await this.#origin_fromJsonLd(obj, options);
17089
+ } catch (error) {
17090
+ if (!options.suppressError) throw error;
17091
+ getLogger(["fedify", "vocab"]).debug(
17092
+ "Failed to parse embedded value of {property} at index {index}: {error}",
17093
+ { property: "https://www.w3.org/ns/activitystreams#origin", index: i, error },
17094
+ );
17095
+ continue;
17096
+ }
16660
17097
  }
16661
17098
  }
16662
17099
 
@@ -16873,7 +17310,16 @@ instruments?: (Object | URL)[];}
16873
17310
  "instrument"];
16874
17311
  const doc = Array.isArray(prop) ? prop[0] : prop;
16875
17312
  if (doc != null && typeof doc === "object" && "@context" in doc) {
16876
- v = await this.#instrument_fromJsonLd(doc, options);
17313
+ try {
17314
+ v = await this.#instrument_fromJsonLd(doc, options);
17315
+ } catch (error) {
17316
+ if (!options.suppressError) throw error;
17317
+ getLogger(["fedify", "vocab"]).debug(
17318
+ "Failed to parse embedded value of {property}: {error}",
17319
+ { property: "https://www.w3.org/ns/activitystreams#instrument", error },
17320
+ );
17321
+ return null;
17322
+ }
16877
17323
  }
16878
17324
  }
16879
17325
 
@@ -16968,7 +17414,16 @@ instruments?: (Object | URL)[];}
16968
17414
  "instrument"];
16969
17415
  const obj = Array.isArray(prop) ? prop[i] : prop;
16970
17416
  if (obj != null && typeof obj === "object" && "@context" in obj) {
16971
- v = await this.#instrument_fromJsonLd(obj, options);
17417
+ try {
17418
+ v = await this.#instrument_fromJsonLd(obj, options);
17419
+ } catch (error) {
17420
+ if (!options.suppressError) throw error;
17421
+ getLogger(["fedify", "vocab"]).debug(
17422
+ "Failed to parse embedded value of {property} at index {index}: {error}",
17423
+ { property: "https://www.w3.org/ns/activitystreams#instrument", index: i, error },
17424
+ );
17425
+ continue;
17426
+ }
16972
17427
  }
16973
17428
  }
16974
17429
 
@@ -19837,7 +20292,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
19837
20292
  "interactingObject"];
19838
20293
  const doc = Array.isArray(prop) ? prop[0] : prop;
19839
20294
  if (doc != null && typeof doc === "object" && "@context" in doc) {
19840
- v = await this.#interactingObject_fromJsonLd(doc, options);
20295
+ try {
20296
+ v = await this.#interactingObject_fromJsonLd(doc, options);
20297
+ } catch (error) {
20298
+ if (!options.suppressError) throw error;
20299
+ getLogger(["fedify", "vocab"]).debug(
20300
+ "Failed to parse embedded value of {property}: {error}",
20301
+ { property: "https://gotosocial.org/ns#interactingObject", error },
20302
+ );
20303
+ return null;
20304
+ }
19841
20305
  }
19842
20306
  }
19843
20307
 
@@ -20052,7 +20516,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
20052
20516
  "interactionTarget"];
20053
20517
  const doc = Array.isArray(prop) ? prop[0] : prop;
20054
20518
  if (doc != null && typeof doc === "object" && "@context" in doc) {
20055
- v = await this.#interactionTarget_fromJsonLd(doc, options);
20519
+ try {
20520
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
20521
+ } catch (error) {
20522
+ if (!options.suppressError) throw error;
20523
+ getLogger(["fedify", "vocab"]).debug(
20524
+ "Failed to parse embedded value of {property}: {error}",
20525
+ { property: "https://gotosocial.org/ns#interactionTarget", error },
20526
+ );
20527
+ return null;
20528
+ }
20056
20529
  }
20057
20530
  }
20058
20531
 
@@ -22799,7 +23272,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
22799
23272
  "interactingObject"];
22800
23273
  const doc = Array.isArray(prop) ? prop[0] : prop;
22801
23274
  if (doc != null && typeof doc === "object" && "@context" in doc) {
22802
- v = await this.#interactingObject_fromJsonLd(doc, options);
23275
+ try {
23276
+ v = await this.#interactingObject_fromJsonLd(doc, options);
23277
+ } catch (error) {
23278
+ if (!options.suppressError) throw error;
23279
+ getLogger(["fedify", "vocab"]).debug(
23280
+ "Failed to parse embedded value of {property}: {error}",
23281
+ { property: "https://gotosocial.org/ns#interactingObject", error },
23282
+ );
23283
+ return null;
23284
+ }
22803
23285
  }
22804
23286
  }
22805
23287
 
@@ -23014,7 +23496,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
23014
23496
  "interactionTarget"];
23015
23497
  const doc = Array.isArray(prop) ? prop[0] : prop;
23016
23498
  if (doc != null && typeof doc === "object" && "@context" in doc) {
23017
- v = await this.#interactionTarget_fromJsonLd(doc, options);
23499
+ try {
23500
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
23501
+ } catch (error) {
23502
+ if (!options.suppressError) throw error;
23503
+ getLogger(["fedify", "vocab"]).debug(
23504
+ "Failed to parse embedded value of {property}: {error}",
23505
+ { property: "https://gotosocial.org/ns#interactionTarget", error },
23506
+ );
23507
+ return null;
23508
+ }
23018
23509
  }
23019
23510
  }
23020
23511
 
@@ -24185,7 +24676,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
24185
24676
  "interactingObject"];
24186
24677
  const doc = Array.isArray(prop) ? prop[0] : prop;
24187
24678
  if (doc != null && typeof doc === "object" && "@context" in doc) {
24188
- v = await this.#interactingObject_fromJsonLd(doc, options);
24679
+ try {
24680
+ v = await this.#interactingObject_fromJsonLd(doc, options);
24681
+ } catch (error) {
24682
+ if (!options.suppressError) throw error;
24683
+ getLogger(["fedify", "vocab"]).debug(
24684
+ "Failed to parse embedded value of {property}: {error}",
24685
+ { property: "https://gotosocial.org/ns#interactingObject", error },
24686
+ );
24687
+ return null;
24688
+ }
24189
24689
  }
24190
24690
  }
24191
24691
 
@@ -24400,7 +24900,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
24400
24900
  "interactionTarget"];
24401
24901
  const doc = Array.isArray(prop) ? prop[0] : prop;
24402
24902
  if (doc != null && typeof doc === "object" && "@context" in doc) {
24403
- v = await this.#interactionTarget_fromJsonLd(doc, options);
24903
+ try {
24904
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
24905
+ } catch (error) {
24906
+ if (!options.suppressError) throw error;
24907
+ getLogger(["fedify", "vocab"]).debug(
24908
+ "Failed to parse embedded value of {property}: {error}",
24909
+ { property: "https://gotosocial.org/ns#interactionTarget", error },
24910
+ );
24911
+ return null;
24912
+ }
24404
24913
  }
24405
24914
  }
24406
24915
 
@@ -25570,7 +26079,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
25570
26079
  "interactingObject"];
25571
26080
  const doc = Array.isArray(prop) ? prop[0] : prop;
25572
26081
  if (doc != null && typeof doc === "object" && "@context" in doc) {
25573
- v = await this.#interactingObject_fromJsonLd(doc, options);
26082
+ try {
26083
+ v = await this.#interactingObject_fromJsonLd(doc, options);
26084
+ } catch (error) {
26085
+ if (!options.suppressError) throw error;
26086
+ getLogger(["fedify", "vocab"]).debug(
26087
+ "Failed to parse embedded value of {property}: {error}",
26088
+ { property: "https://gotosocial.org/ns#interactingObject", error },
26089
+ );
26090
+ return null;
26091
+ }
25574
26092
  }
25575
26093
  }
25576
26094
 
@@ -25785,7 +26303,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
25785
26303
  "interactionTarget"];
25786
26304
  const doc = Array.isArray(prop) ? prop[0] : prop;
25787
26305
  if (doc != null && typeof doc === "object" && "@context" in doc) {
25788
- v = await this.#interactionTarget_fromJsonLd(doc, options);
26306
+ try {
26307
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
26308
+ } catch (error) {
26309
+ if (!options.suppressError) throw error;
26310
+ getLogger(["fedify", "vocab"]).debug(
26311
+ "Failed to parse embedded value of {property}: {error}",
26312
+ { property: "https://gotosocial.org/ns#interactionTarget", error },
26313
+ );
26314
+ return null;
26315
+ }
25789
26316
  }
25790
26317
  }
25791
26318
 
@@ -28979,7 +29506,16 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
28979
29506
  "owner"];
28980
29507
  const doc = Array.isArray(prop) ? prop[0] : prop;
28981
29508
  if (doc != null && typeof doc === "object" && "@context" in doc) {
28982
- v = await this.#owner_fromJsonLd(doc, options);
29509
+ try {
29510
+ v = await this.#owner_fromJsonLd(doc, options);
29511
+ } catch (error) {
29512
+ if (!options.suppressError) throw error;
29513
+ getLogger(["fedify", "vocab"]).debug(
29514
+ "Failed to parse embedded value of {property}: {error}",
29515
+ { property: "https://w3id.org/security#owner", error },
29516
+ );
29517
+ return null;
29518
+ }
28983
29519
  }
28984
29520
  }
28985
29521
 
@@ -29890,7 +30426,16 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
29890
30426
  "controller"];
29891
30427
  const doc = Array.isArray(prop) ? prop[0] : prop;
29892
30428
  if (doc != null && typeof doc === "object" && "@context" in doc) {
29893
- v = await this.#controller_fromJsonLd(doc, options);
30429
+ try {
30430
+ v = await this.#controller_fromJsonLd(doc, options);
30431
+ } catch (error) {
30432
+ if (!options.suppressError) throw error;
30433
+ getLogger(["fedify", "vocab"]).debug(
30434
+ "Failed to parse embedded value of {property}: {error}",
30435
+ { property: "https://w3id.org/security#controller", error },
30436
+ );
30437
+ return null;
30438
+ }
29894
30439
  }
29895
30440
  }
29896
30441
 
@@ -34492,7 +35037,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34492
35037
  "publicKey"];
34493
35038
  const doc = Array.isArray(prop) ? prop[0] : prop;
34494
35039
  if (doc != null && typeof doc === "object" && "@context" in doc) {
34495
- v = await this.#publicKey_fromJsonLd(doc, options);
35040
+ try {
35041
+ v = await this.#publicKey_fromJsonLd(doc, options);
35042
+ } catch (error) {
35043
+ if (!options.suppressError) throw error;
35044
+ getLogger(["fedify", "vocab"]).debug(
35045
+ "Failed to parse embedded value of {property}: {error}",
35046
+ { property: "https://w3id.org/security#publicKey", error },
35047
+ );
35048
+ return null;
35049
+ }
34496
35050
  }
34497
35051
  }
34498
35052
 
@@ -34585,7 +35139,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34585
35139
  "publicKey"];
34586
35140
  const obj = Array.isArray(prop) ? prop[i] : prop;
34587
35141
  if (obj != null && typeof obj === "object" && "@context" in obj) {
34588
- v = await this.#publicKey_fromJsonLd(obj, options);
35142
+ try {
35143
+ v = await this.#publicKey_fromJsonLd(obj, options);
35144
+ } catch (error) {
35145
+ if (!options.suppressError) throw error;
35146
+ getLogger(["fedify", "vocab"]).debug(
35147
+ "Failed to parse embedded value of {property} at index {index}: {error}",
35148
+ { property: "https://w3id.org/security#publicKey", index: i, error },
35149
+ );
35150
+ continue;
35151
+ }
34589
35152
  }
34590
35153
  }
34591
35154
 
@@ -34804,7 +35367,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34804
35367
  "assertionMethod"];
34805
35368
  const doc = Array.isArray(prop) ? prop[0] : prop;
34806
35369
  if (doc != null && typeof doc === "object" && "@context" in doc) {
34807
- v = await this.#assertionMethod_fromJsonLd(doc, options);
35370
+ try {
35371
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
35372
+ } catch (error) {
35373
+ if (!options.suppressError) throw error;
35374
+ getLogger(["fedify", "vocab"]).debug(
35375
+ "Failed to parse embedded value of {property}: {error}",
35376
+ { property: "https://w3id.org/security#assertionMethod", error },
35377
+ );
35378
+ return null;
35379
+ }
34808
35380
  }
34809
35381
  }
34810
35382
 
@@ -34901,7 +35473,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34901
35473
  "assertionMethod"];
34902
35474
  const obj = Array.isArray(prop) ? prop[i] : prop;
34903
35475
  if (obj != null && typeof obj === "object" && "@context" in obj) {
34904
- v = await this.#assertionMethod_fromJsonLd(obj, options);
35476
+ try {
35477
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
35478
+ } catch (error) {
35479
+ if (!options.suppressError) throw error;
35480
+ getLogger(["fedify", "vocab"]).debug(
35481
+ "Failed to parse embedded value of {property} at index {index}: {error}",
35482
+ { property: "https://w3id.org/security#assertionMethod", index: i, error },
35483
+ );
35484
+ continue;
35485
+ }
34905
35486
  }
34906
35487
  }
34907
35488
 
@@ -35157,7 +35738,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35157
35738
  "inbox"];
35158
35739
  const doc = Array.isArray(prop) ? prop[0] : prop;
35159
35740
  if (doc != null && typeof doc === "object" && "@context" in doc) {
35160
- v = await this.#inbox_fromJsonLd(doc, options);
35741
+ try {
35742
+ v = await this.#inbox_fromJsonLd(doc, options);
35743
+ } catch (error) {
35744
+ if (!options.suppressError) throw error;
35745
+ getLogger(["fedify", "vocab"]).debug(
35746
+ "Failed to parse embedded value of {property}: {error}",
35747
+ { property: "http://www.w3.org/ns/ldp#inbox", error },
35748
+ );
35749
+ return null;
35750
+ }
35161
35751
  }
35162
35752
  }
35163
35753
 
@@ -35390,7 +35980,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35390
35980
  "outbox"];
35391
35981
  const doc = Array.isArray(prop) ? prop[0] : prop;
35392
35982
  if (doc != null && typeof doc === "object" && "@context" in doc) {
35393
- v = await this.#outbox_fromJsonLd(doc, options);
35983
+ try {
35984
+ v = await this.#outbox_fromJsonLd(doc, options);
35985
+ } catch (error) {
35986
+ if (!options.suppressError) throw error;
35987
+ getLogger(["fedify", "vocab"]).debug(
35988
+ "Failed to parse embedded value of {property}: {error}",
35989
+ { property: "https://www.w3.org/ns/activitystreams#outbox", error },
35990
+ );
35991
+ return null;
35992
+ }
35394
35993
  }
35395
35994
  }
35396
35995
 
@@ -35609,7 +36208,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35609
36208
  "following"];
35610
36209
  const doc = Array.isArray(prop) ? prop[0] : prop;
35611
36210
  if (doc != null && typeof doc === "object" && "@context" in doc) {
35612
- v = await this.#following_fromJsonLd(doc, options);
36211
+ try {
36212
+ v = await this.#following_fromJsonLd(doc, options);
36213
+ } catch (error) {
36214
+ if (!options.suppressError) throw error;
36215
+ getLogger(["fedify", "vocab"]).debug(
36216
+ "Failed to parse embedded value of {property}: {error}",
36217
+ { property: "https://www.w3.org/ns/activitystreams#following", error },
36218
+ );
36219
+ return null;
36220
+ }
35613
36221
  }
35614
36222
  }
35615
36223
 
@@ -35831,7 +36439,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35831
36439
  "followers"];
35832
36440
  const doc = Array.isArray(prop) ? prop[0] : prop;
35833
36441
  if (doc != null && typeof doc === "object" && "@context" in doc) {
35834
- v = await this.#followers_fromJsonLd(doc, options);
36442
+ try {
36443
+ v = await this.#followers_fromJsonLd(doc, options);
36444
+ } catch (error) {
36445
+ if (!options.suppressError) throw error;
36446
+ getLogger(["fedify", "vocab"]).debug(
36447
+ "Failed to parse embedded value of {property}: {error}",
36448
+ { property: "https://www.w3.org/ns/activitystreams#followers", error },
36449
+ );
36450
+ return null;
36451
+ }
35835
36452
  }
35836
36453
  }
35837
36454
 
@@ -36051,7 +36668,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36051
36668
  "liked"];
36052
36669
  const doc = Array.isArray(prop) ? prop[0] : prop;
36053
36670
  if (doc != null && typeof doc === "object" && "@context" in doc) {
36054
- v = await this.#liked_fromJsonLd(doc, options);
36671
+ try {
36672
+ v = await this.#liked_fromJsonLd(doc, options);
36673
+ } catch (error) {
36674
+ if (!options.suppressError) throw error;
36675
+ getLogger(["fedify", "vocab"]).debug(
36676
+ "Failed to parse embedded value of {property}: {error}",
36677
+ { property: "https://www.w3.org/ns/activitystreams#liked", error },
36678
+ );
36679
+ return null;
36680
+ }
36055
36681
  }
36056
36682
  }
36057
36683
 
@@ -36269,7 +36895,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36269
36895
  "featured"];
36270
36896
  const doc = Array.isArray(prop) ? prop[0] : prop;
36271
36897
  if (doc != null && typeof doc === "object" && "@context" in doc) {
36272
- v = await this.#featured_fromJsonLd(doc, options);
36898
+ try {
36899
+ v = await this.#featured_fromJsonLd(doc, options);
36900
+ } catch (error) {
36901
+ if (!options.suppressError) throw error;
36902
+ getLogger(["fedify", "vocab"]).debug(
36903
+ "Failed to parse embedded value of {property}: {error}",
36904
+ { property: "http://joinmastodon.org/ns#featured", error },
36905
+ );
36906
+ return null;
36907
+ }
36273
36908
  }
36274
36909
  }
36275
36910
 
@@ -36487,7 +37122,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36487
37122
  "featuredTags"];
36488
37123
  const doc = Array.isArray(prop) ? prop[0] : prop;
36489
37124
  if (doc != null && typeof doc === "object" && "@context" in doc) {
36490
- v = await this.#featuredTags_fromJsonLd(doc, options);
37125
+ try {
37126
+ v = await this.#featuredTags_fromJsonLd(doc, options);
37127
+ } catch (error) {
37128
+ if (!options.suppressError) throw error;
37129
+ getLogger(["fedify", "vocab"]).debug(
37130
+ "Failed to parse embedded value of {property}: {error}",
37131
+ { property: "http://joinmastodon.org/ns#featuredTags", error },
37132
+ );
37133
+ return null;
37134
+ }
36491
37135
  }
36492
37136
  }
36493
37137
 
@@ -36703,7 +37347,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36703
37347
  "streams"];
36704
37348
  const obj = Array.isArray(prop) ? prop[i] : prop;
36705
37349
  if (obj != null && typeof obj === "object" && "@context" in obj) {
36706
- v = await this.#stream_fromJsonLd(obj, options);
37350
+ try {
37351
+ v = await this.#stream_fromJsonLd(obj, options);
37352
+ } catch (error) {
37353
+ if (!options.suppressError) throw error;
37354
+ getLogger(["fedify", "vocab"]).debug(
37355
+ "Failed to parse embedded value of {property} at index {index}: {error}",
37356
+ { property: "https://www.w3.org/ns/activitystreams#streams", index: i, error },
37357
+ );
37358
+ continue;
37359
+ }
36707
37360
  }
36708
37361
  }
36709
37362
 
@@ -37029,7 +37682,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37029
37682
  "movedTo"];
37030
37683
  const doc = Array.isArray(prop) ? prop[0] : prop;
37031
37684
  if (doc != null && typeof doc === "object" && "@context" in doc) {
37032
- v = await this.#successor_fromJsonLd(doc, options);
37685
+ try {
37686
+ v = await this.#successor_fromJsonLd(doc, options);
37687
+ } catch (error) {
37688
+ if (!options.suppressError) throw error;
37689
+ getLogger(["fedify", "vocab"]).debug(
37690
+ "Failed to parse embedded value of {property}: {error}",
37691
+ { property: "https://www.w3.org/ns/activitystreams#movedTo", error },
37692
+ );
37693
+ return null;
37694
+ }
37033
37695
  }
37034
37696
  }
37035
37697
 
@@ -37283,7 +37945,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37283
37945
  "alsoKnownAs"];
37284
37946
  const doc = Array.isArray(prop) ? prop[0] : prop;
37285
37947
  if (doc != null && typeof doc === "object" && "@context" in doc) {
37286
- v = await this.#alias_fromJsonLd(doc, options);
37948
+ try {
37949
+ v = await this.#alias_fromJsonLd(doc, options);
37950
+ } catch (error) {
37951
+ if (!options.suppressError) throw error;
37952
+ getLogger(["fedify", "vocab"]).debug(
37953
+ "Failed to parse embedded value of {property}: {error}",
37954
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", error },
37955
+ );
37956
+ return null;
37957
+ }
37287
37958
  }
37288
37959
  }
37289
37960
 
@@ -37380,7 +38051,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37380
38051
  "alsoKnownAs"];
37381
38052
  const obj = Array.isArray(prop) ? prop[i] : prop;
37382
38053
  if (obj != null && typeof obj === "object" && "@context" in obj) {
37383
- v = await this.#alias_fromJsonLd(obj, options);
38054
+ try {
38055
+ v = await this.#alias_fromJsonLd(obj, options);
38056
+ } catch (error) {
38057
+ if (!options.suppressError) throw error;
38058
+ getLogger(["fedify", "vocab"]).debug(
38059
+ "Failed to parse embedded value of {property} at index {index}: {error}",
38060
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", index: i, error },
38061
+ );
38062
+ continue;
38063
+ }
37384
38064
  }
37385
38065
  }
37386
38066
 
@@ -37599,7 +38279,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37599
38279
  "service"];
37600
38280
  const doc = Array.isArray(prop) ? prop[0] : prop;
37601
38281
  if (doc != null && typeof doc === "object" && "@context" in doc) {
37602
- v = await this.#service_fromJsonLd(doc, options);
38282
+ try {
38283
+ v = await this.#service_fromJsonLd(doc, options);
38284
+ } catch (error) {
38285
+ if (!options.suppressError) throw error;
38286
+ getLogger(["fedify", "vocab"]).debug(
38287
+ "Failed to parse embedded value of {property}: {error}",
38288
+ { property: "https://www.w3.org/ns/did#service", error },
38289
+ );
38290
+ return null;
38291
+ }
37603
38292
  }
37604
38293
  }
37605
38294
 
@@ -37696,7 +38385,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37696
38385
  "service"];
37697
38386
  const obj = Array.isArray(prop) ? prop[i] : prop;
37698
38387
  if (obj != null && typeof obj === "object" && "@context" in obj) {
37699
- v = await this.#service_fromJsonLd(obj, options);
38388
+ try {
38389
+ v = await this.#service_fromJsonLd(obj, options);
38390
+ } catch (error) {
38391
+ if (!options.suppressError) throw error;
38392
+ getLogger(["fedify", "vocab"]).debug(
38393
+ "Failed to parse embedded value of {property} at index {index}: {error}",
38394
+ { property: "https://www.w3.org/ns/did#service", index: i, error },
38395
+ );
38396
+ continue;
38397
+ }
37700
38398
  }
37701
38399
  }
37702
38400
 
@@ -41217,7 +41915,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
41217
41915
  "quote"];
41218
41916
  const doc = Array.isArray(prop) ? prop[0] : prop;
41219
41917
  if (doc != null && typeof doc === "object" && "@context" in doc) {
41220
- v = await this.#quote_fromJsonLd(doc, options);
41918
+ try {
41919
+ v = await this.#quote_fromJsonLd(doc, options);
41920
+ } catch (error) {
41921
+ if (!options.suppressError) throw error;
41922
+ getLogger(["fedify", "vocab"]).debug(
41923
+ "Failed to parse embedded value of {property}: {error}",
41924
+ { property: "https://w3id.org/fep/044f#quote", error },
41925
+ );
41926
+ return null;
41927
+ }
41221
41928
  }
41222
41929
  }
41223
41930
 
@@ -41456,7 +42163,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
41456
42163
  "quoteAuthorization"];
41457
42164
  const doc = Array.isArray(prop) ? prop[0] : prop;
41458
42165
  if (doc != null && typeof doc === "object" && "@context" in doc) {
41459
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
42166
+ try {
42167
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
42168
+ } catch (error) {
42169
+ if (!options.suppressError) throw error;
42170
+ getLogger(["fedify", "vocab"]).debug(
42171
+ "Failed to parse embedded value of {property}: {error}",
42172
+ { property: "https://w3id.org/fep/044f#quoteAuthorization", error },
42173
+ );
42174
+ return null;
42175
+ }
41460
42176
  }
41461
42177
  }
41462
42178
 
@@ -41870,7 +42586,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
41870
42586
  if (v == null) continue;
41871
42587
 
41872
42588
  const decoded =
41873
- new URL(v["@value"])
42589
+ typeof v === "object" &&
42590
+ ((typeof v["@id"] === "string" && canDecodeIri(v["@id"])) ||
42591
+ (typeof v["@value"] === "string" && canDecodeIri(v["@value"]))) ? decodeIri(
42592
+ typeof v["@id"] === "string" ? v["@id"] : v["@value"]
42593
+ ) : undefined
41874
42594
  ;
41875
42595
 
41876
42596
  if (typeof decoded === "undefined") {
@@ -44362,7 +45082,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44362
45082
  "current"];
44363
45083
  const doc = Array.isArray(prop) ? prop[0] : prop;
44364
45084
  if (doc != null && typeof doc === "object" && "@context" in doc) {
44365
- v = await this.#current_fromJsonLd(doc, options);
45085
+ try {
45086
+ v = await this.#current_fromJsonLd(doc, options);
45087
+ } catch (error) {
45088
+ if (!options.suppressError) throw error;
45089
+ getLogger(["fedify", "vocab"]).debug(
45090
+ "Failed to parse embedded value of {property}: {error}",
45091
+ { property: "https://www.w3.org/ns/activitystreams#current", error },
45092
+ );
45093
+ return null;
45094
+ }
44366
45095
  }
44367
45096
  }
44368
45097
 
@@ -44578,7 +45307,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44578
45307
  "first"];
44579
45308
  const doc = Array.isArray(prop) ? prop[0] : prop;
44580
45309
  if (doc != null && typeof doc === "object" && "@context" in doc) {
44581
- v = await this.#first_fromJsonLd(doc, options);
45310
+ try {
45311
+ v = await this.#first_fromJsonLd(doc, options);
45312
+ } catch (error) {
45313
+ if (!options.suppressError) throw error;
45314
+ getLogger(["fedify", "vocab"]).debug(
45315
+ "Failed to parse embedded value of {property}: {error}",
45316
+ { property: "https://www.w3.org/ns/activitystreams#first", error },
45317
+ );
45318
+ return null;
45319
+ }
44582
45320
  }
44583
45321
  }
44584
45322
 
@@ -44794,7 +45532,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44794
45532
  "last"];
44795
45533
  const doc = Array.isArray(prop) ? prop[0] : prop;
44796
45534
  if (doc != null && typeof doc === "object" && "@context" in doc) {
44797
- v = await this.#last_fromJsonLd(doc, options);
45535
+ try {
45536
+ v = await this.#last_fromJsonLd(doc, options);
45537
+ } catch (error) {
45538
+ if (!options.suppressError) throw error;
45539
+ getLogger(["fedify", "vocab"]).debug(
45540
+ "Failed to parse embedded value of {property}: {error}",
45541
+ { property: "https://www.w3.org/ns/activitystreams#last", error },
45542
+ );
45543
+ return null;
45544
+ }
44798
45545
  }
44799
45546
  }
44800
45547
 
@@ -45020,7 +45767,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45020
45767
  "items"];
45021
45768
  const obj = Array.isArray(prop) ? prop[i] : prop;
45022
45769
  if (obj != null && typeof obj === "object" && "@context" in obj) {
45023
- v = await this.#item_fromJsonLd(obj, options);
45770
+ try {
45771
+ v = await this.#item_fromJsonLd(obj, options);
45772
+ } catch (error) {
45773
+ if (!options.suppressError) throw error;
45774
+ getLogger(["fedify", "vocab"]).debug(
45775
+ "Failed to parse embedded value of {property} at index {index}: {error}",
45776
+ { property: "https://www.w3.org/ns/activitystreams#items", index: i, error },
45777
+ );
45778
+ continue;
45779
+ }
45024
45780
  }
45025
45781
  }
45026
45782
 
@@ -45236,7 +45992,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45236
45992
  "likesOf"];
45237
45993
  const doc = Array.isArray(prop) ? prop[0] : prop;
45238
45994
  if (doc != null && typeof doc === "object" && "@context" in doc) {
45239
- v = await this.#likesOf_fromJsonLd(doc, options);
45995
+ try {
45996
+ v = await this.#likesOf_fromJsonLd(doc, options);
45997
+ } catch (error) {
45998
+ if (!options.suppressError) throw error;
45999
+ getLogger(["fedify", "vocab"]).debug(
46000
+ "Failed to parse embedded value of {property}: {error}",
46001
+ { property: "https://w3id.org/fep/5711#likesOf", error },
46002
+ );
46003
+ return null;
46004
+ }
45240
46005
  }
45241
46006
  }
45242
46007
 
@@ -45451,7 +46216,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45451
46216
  "sharesOf"];
45452
46217
  const doc = Array.isArray(prop) ? prop[0] : prop;
45453
46218
  if (doc != null && typeof doc === "object" && "@context" in doc) {
45454
- v = await this.#sharesOf_fromJsonLd(doc, options);
46219
+ try {
46220
+ v = await this.#sharesOf_fromJsonLd(doc, options);
46221
+ } catch (error) {
46222
+ if (!options.suppressError) throw error;
46223
+ getLogger(["fedify", "vocab"]).debug(
46224
+ "Failed to parse embedded value of {property}: {error}",
46225
+ { property: "https://w3id.org/fep/5711#sharesOf", error },
46226
+ );
46227
+ return null;
46228
+ }
45455
46229
  }
45456
46230
  }
45457
46231
 
@@ -45666,7 +46440,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45666
46440
  "repliesOf"];
45667
46441
  const doc = Array.isArray(prop) ? prop[0] : prop;
45668
46442
  if (doc != null && typeof doc === "object" && "@context" in doc) {
45669
- v = await this.#repliesOf_fromJsonLd(doc, options);
46443
+ try {
46444
+ v = await this.#repliesOf_fromJsonLd(doc, options);
46445
+ } catch (error) {
46446
+ if (!options.suppressError) throw error;
46447
+ getLogger(["fedify", "vocab"]).debug(
46448
+ "Failed to parse embedded value of {property}: {error}",
46449
+ { property: "https://w3id.org/fep/5711#repliesOf", error },
46450
+ );
46451
+ return null;
46452
+ }
45670
46453
  }
45671
46454
  }
45672
46455
 
@@ -45881,7 +46664,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45881
46664
  "inboxOf"];
45882
46665
  const doc = Array.isArray(prop) ? prop[0] : prop;
45883
46666
  if (doc != null && typeof doc === "object" && "@context" in doc) {
45884
- v = await this.#inboxOf_fromJsonLd(doc, options);
46667
+ try {
46668
+ v = await this.#inboxOf_fromJsonLd(doc, options);
46669
+ } catch (error) {
46670
+ if (!options.suppressError) throw error;
46671
+ getLogger(["fedify", "vocab"]).debug(
46672
+ "Failed to parse embedded value of {property}: {error}",
46673
+ { property: "https://w3id.org/fep/5711#inboxOf", error },
46674
+ );
46675
+ return null;
46676
+ }
45885
46677
  }
45886
46678
  }
45887
46679
 
@@ -46096,7 +46888,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46096
46888
  "outboxOf"];
46097
46889
  const doc = Array.isArray(prop) ? prop[0] : prop;
46098
46890
  if (doc != null && typeof doc === "object" && "@context" in doc) {
46099
- v = await this.#outboxOf_fromJsonLd(doc, options);
46891
+ try {
46892
+ v = await this.#outboxOf_fromJsonLd(doc, options);
46893
+ } catch (error) {
46894
+ if (!options.suppressError) throw error;
46895
+ getLogger(["fedify", "vocab"]).debug(
46896
+ "Failed to parse embedded value of {property}: {error}",
46897
+ { property: "https://w3id.org/fep/5711#outboxOf", error },
46898
+ );
46899
+ return null;
46900
+ }
46100
46901
  }
46101
46902
  }
46102
46903
 
@@ -46311,7 +47112,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46311
47112
  "followersOf"];
46312
47113
  const doc = Array.isArray(prop) ? prop[0] : prop;
46313
47114
  if (doc != null && typeof doc === "object" && "@context" in doc) {
46314
- v = await this.#followersOf_fromJsonLd(doc, options);
47115
+ try {
47116
+ v = await this.#followersOf_fromJsonLd(doc, options);
47117
+ } catch (error) {
47118
+ if (!options.suppressError) throw error;
47119
+ getLogger(["fedify", "vocab"]).debug(
47120
+ "Failed to parse embedded value of {property}: {error}",
47121
+ { property: "https://w3id.org/fep/5711#followersOf", error },
47122
+ );
47123
+ return null;
47124
+ }
46315
47125
  }
46316
47126
  }
46317
47127
 
@@ -46526,7 +47336,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46526
47336
  "followingOf"];
46527
47337
  const doc = Array.isArray(prop) ? prop[0] : prop;
46528
47338
  if (doc != null && typeof doc === "object" && "@context" in doc) {
46529
- v = await this.#followingOf_fromJsonLd(doc, options);
47339
+ try {
47340
+ v = await this.#followingOf_fromJsonLd(doc, options);
47341
+ } catch (error) {
47342
+ if (!options.suppressError) throw error;
47343
+ getLogger(["fedify", "vocab"]).debug(
47344
+ "Failed to parse embedded value of {property}: {error}",
47345
+ { property: "https://w3id.org/fep/5711#followingOf", error },
47346
+ );
47347
+ return null;
47348
+ }
46530
47349
  }
46531
47350
  }
46532
47351
 
@@ -46741,7 +47560,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46741
47560
  "likedOf"];
46742
47561
  const doc = Array.isArray(prop) ? prop[0] : prop;
46743
47562
  if (doc != null && typeof doc === "object" && "@context" in doc) {
46744
- v = await this.#likedOf_fromJsonLd(doc, options);
47563
+ try {
47564
+ v = await this.#likedOf_fromJsonLd(doc, options);
47565
+ } catch (error) {
47566
+ if (!options.suppressError) throw error;
47567
+ getLogger(["fedify", "vocab"]).debug(
47568
+ "Failed to parse embedded value of {property}: {error}",
47569
+ { property: "https://w3id.org/fep/5711#likedOf", error },
47570
+ );
47571
+ return null;
47572
+ }
46745
47573
  }
46746
47574
  }
46747
47575
 
@@ -48686,7 +49514,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
48686
49514
  "partOf"];
48687
49515
  const doc = Array.isArray(prop) ? prop[0] : prop;
48688
49516
  if (doc != null && typeof doc === "object" && "@context" in doc) {
48689
- v = await this.#partOf_fromJsonLd(doc, options);
49517
+ try {
49518
+ v = await this.#partOf_fromJsonLd(doc, options);
49519
+ } catch (error) {
49520
+ if (!options.suppressError) throw error;
49521
+ getLogger(["fedify", "vocab"]).debug(
49522
+ "Failed to parse embedded value of {property}: {error}",
49523
+ { property: "https://www.w3.org/ns/activitystreams#partOf", error },
49524
+ );
49525
+ return null;
49526
+ }
48690
49527
  }
48691
49528
  }
48692
49529
 
@@ -48900,7 +49737,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
48900
49737
  "next"];
48901
49738
  const doc = Array.isArray(prop) ? prop[0] : prop;
48902
49739
  if (doc != null && typeof doc === "object" && "@context" in doc) {
48903
- v = await this.#next_fromJsonLd(doc, options);
49740
+ try {
49741
+ v = await this.#next_fromJsonLd(doc, options);
49742
+ } catch (error) {
49743
+ if (!options.suppressError) throw error;
49744
+ getLogger(["fedify", "vocab"]).debug(
49745
+ "Failed to parse embedded value of {property}: {error}",
49746
+ { property: "https://www.w3.org/ns/activitystreams#next", error },
49747
+ );
49748
+ return null;
49749
+ }
48904
49750
  }
48905
49751
  }
48906
49752
 
@@ -49115,7 +49961,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
49115
49961
  "prev"];
49116
49962
  const doc = Array.isArray(prop) ? prop[0] : prop;
49117
49963
  if (doc != null && typeof doc === "object" && "@context" in doc) {
49118
- v = await this.#prev_fromJsonLd(doc, options);
49964
+ try {
49965
+ v = await this.#prev_fromJsonLd(doc, options);
49966
+ } catch (error) {
49967
+ if (!options.suppressError) throw error;
49968
+ getLogger(["fedify", "vocab"]).debug(
49969
+ "Failed to parse embedded value of {property}: {error}",
49970
+ { property: "https://www.w3.org/ns/activitystreams#prev", error },
49971
+ );
49972
+ return null;
49973
+ }
49119
49974
  }
49120
49975
  }
49121
49976
 
@@ -54156,7 +55011,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54156
55011
  "publicKey"];
54157
55012
  const doc = Array.isArray(prop) ? prop[0] : prop;
54158
55013
  if (doc != null && typeof doc === "object" && "@context" in doc) {
54159
- v = await this.#publicKey_fromJsonLd(doc, options);
55014
+ try {
55015
+ v = await this.#publicKey_fromJsonLd(doc, options);
55016
+ } catch (error) {
55017
+ if (!options.suppressError) throw error;
55018
+ getLogger(["fedify", "vocab"]).debug(
55019
+ "Failed to parse embedded value of {property}: {error}",
55020
+ { property: "https://w3id.org/security#publicKey", error },
55021
+ );
55022
+ return null;
55023
+ }
54160
55024
  }
54161
55025
  }
54162
55026
 
@@ -54249,7 +55113,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54249
55113
  "publicKey"];
54250
55114
  const obj = Array.isArray(prop) ? prop[i] : prop;
54251
55115
  if (obj != null && typeof obj === "object" && "@context" in obj) {
54252
- v = await this.#publicKey_fromJsonLd(obj, options);
55116
+ try {
55117
+ v = await this.#publicKey_fromJsonLd(obj, options);
55118
+ } catch (error) {
55119
+ if (!options.suppressError) throw error;
55120
+ getLogger(["fedify", "vocab"]).debug(
55121
+ "Failed to parse embedded value of {property} at index {index}: {error}",
55122
+ { property: "https://w3id.org/security#publicKey", index: i, error },
55123
+ );
55124
+ continue;
55125
+ }
54253
55126
  }
54254
55127
  }
54255
55128
 
@@ -54468,7 +55341,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54468
55341
  "assertionMethod"];
54469
55342
  const doc = Array.isArray(prop) ? prop[0] : prop;
54470
55343
  if (doc != null && typeof doc === "object" && "@context" in doc) {
54471
- v = await this.#assertionMethod_fromJsonLd(doc, options);
55344
+ try {
55345
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
55346
+ } catch (error) {
55347
+ if (!options.suppressError) throw error;
55348
+ getLogger(["fedify", "vocab"]).debug(
55349
+ "Failed to parse embedded value of {property}: {error}",
55350
+ { property: "https://w3id.org/security#assertionMethod", error },
55351
+ );
55352
+ return null;
55353
+ }
54472
55354
  }
54473
55355
  }
54474
55356
 
@@ -54565,7 +55447,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54565
55447
  "assertionMethod"];
54566
55448
  const obj = Array.isArray(prop) ? prop[i] : prop;
54567
55449
  if (obj != null && typeof obj === "object" && "@context" in obj) {
54568
- v = await this.#assertionMethod_fromJsonLd(obj, options);
55450
+ try {
55451
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
55452
+ } catch (error) {
55453
+ if (!options.suppressError) throw error;
55454
+ getLogger(["fedify", "vocab"]).debug(
55455
+ "Failed to parse embedded value of {property} at index {index}: {error}",
55456
+ { property: "https://w3id.org/security#assertionMethod", index: i, error },
55457
+ );
55458
+ continue;
55459
+ }
54569
55460
  }
54570
55461
  }
54571
55462
 
@@ -54821,7 +55712,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54821
55712
  "inbox"];
54822
55713
  const doc = Array.isArray(prop) ? prop[0] : prop;
54823
55714
  if (doc != null && typeof doc === "object" && "@context" in doc) {
54824
- v = await this.#inbox_fromJsonLd(doc, options);
55715
+ try {
55716
+ v = await this.#inbox_fromJsonLd(doc, options);
55717
+ } catch (error) {
55718
+ if (!options.suppressError) throw error;
55719
+ getLogger(["fedify", "vocab"]).debug(
55720
+ "Failed to parse embedded value of {property}: {error}",
55721
+ { property: "http://www.w3.org/ns/ldp#inbox", error },
55722
+ );
55723
+ return null;
55724
+ }
54825
55725
  }
54826
55726
  }
54827
55727
 
@@ -55054,7 +55954,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55054
55954
  "outbox"];
55055
55955
  const doc = Array.isArray(prop) ? prop[0] : prop;
55056
55956
  if (doc != null && typeof doc === "object" && "@context" in doc) {
55057
- v = await this.#outbox_fromJsonLd(doc, options);
55957
+ try {
55958
+ v = await this.#outbox_fromJsonLd(doc, options);
55959
+ } catch (error) {
55960
+ if (!options.suppressError) throw error;
55961
+ getLogger(["fedify", "vocab"]).debug(
55962
+ "Failed to parse embedded value of {property}: {error}",
55963
+ { property: "https://www.w3.org/ns/activitystreams#outbox", error },
55964
+ );
55965
+ return null;
55966
+ }
55058
55967
  }
55059
55968
  }
55060
55969
 
@@ -55273,7 +56182,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55273
56182
  "following"];
55274
56183
  const doc = Array.isArray(prop) ? prop[0] : prop;
55275
56184
  if (doc != null && typeof doc === "object" && "@context" in doc) {
55276
- v = await this.#following_fromJsonLd(doc, options);
56185
+ try {
56186
+ v = await this.#following_fromJsonLd(doc, options);
56187
+ } catch (error) {
56188
+ if (!options.suppressError) throw error;
56189
+ getLogger(["fedify", "vocab"]).debug(
56190
+ "Failed to parse embedded value of {property}: {error}",
56191
+ { property: "https://www.w3.org/ns/activitystreams#following", error },
56192
+ );
56193
+ return null;
56194
+ }
55277
56195
  }
55278
56196
  }
55279
56197
 
@@ -55495,7 +56413,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55495
56413
  "followers"];
55496
56414
  const doc = Array.isArray(prop) ? prop[0] : prop;
55497
56415
  if (doc != null && typeof doc === "object" && "@context" in doc) {
55498
- v = await this.#followers_fromJsonLd(doc, options);
56416
+ try {
56417
+ v = await this.#followers_fromJsonLd(doc, options);
56418
+ } catch (error) {
56419
+ if (!options.suppressError) throw error;
56420
+ getLogger(["fedify", "vocab"]).debug(
56421
+ "Failed to parse embedded value of {property}: {error}",
56422
+ { property: "https://www.w3.org/ns/activitystreams#followers", error },
56423
+ );
56424
+ return null;
56425
+ }
55499
56426
  }
55500
56427
  }
55501
56428
 
@@ -55715,7 +56642,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55715
56642
  "liked"];
55716
56643
  const doc = Array.isArray(prop) ? prop[0] : prop;
55717
56644
  if (doc != null && typeof doc === "object" && "@context" in doc) {
55718
- v = await this.#liked_fromJsonLd(doc, options);
56645
+ try {
56646
+ v = await this.#liked_fromJsonLd(doc, options);
56647
+ } catch (error) {
56648
+ if (!options.suppressError) throw error;
56649
+ getLogger(["fedify", "vocab"]).debug(
56650
+ "Failed to parse embedded value of {property}: {error}",
56651
+ { property: "https://www.w3.org/ns/activitystreams#liked", error },
56652
+ );
56653
+ return null;
56654
+ }
55719
56655
  }
55720
56656
  }
55721
56657
 
@@ -55933,7 +56869,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55933
56869
  "featured"];
55934
56870
  const doc = Array.isArray(prop) ? prop[0] : prop;
55935
56871
  if (doc != null && typeof doc === "object" && "@context" in doc) {
55936
- v = await this.#featured_fromJsonLd(doc, options);
56872
+ try {
56873
+ v = await this.#featured_fromJsonLd(doc, options);
56874
+ } catch (error) {
56875
+ if (!options.suppressError) throw error;
56876
+ getLogger(["fedify", "vocab"]).debug(
56877
+ "Failed to parse embedded value of {property}: {error}",
56878
+ { property: "http://joinmastodon.org/ns#featured", error },
56879
+ );
56880
+ return null;
56881
+ }
55937
56882
  }
55938
56883
  }
55939
56884
 
@@ -56151,7 +57096,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56151
57096
  "featuredTags"];
56152
57097
  const doc = Array.isArray(prop) ? prop[0] : prop;
56153
57098
  if (doc != null && typeof doc === "object" && "@context" in doc) {
56154
- v = await this.#featuredTags_fromJsonLd(doc, options);
57099
+ try {
57100
+ v = await this.#featuredTags_fromJsonLd(doc, options);
57101
+ } catch (error) {
57102
+ if (!options.suppressError) throw error;
57103
+ getLogger(["fedify", "vocab"]).debug(
57104
+ "Failed to parse embedded value of {property}: {error}",
57105
+ { property: "http://joinmastodon.org/ns#featuredTags", error },
57106
+ );
57107
+ return null;
57108
+ }
56155
57109
  }
56156
57110
  }
56157
57111
 
@@ -56367,7 +57321,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56367
57321
  "streams"];
56368
57322
  const obj = Array.isArray(prop) ? prop[i] : prop;
56369
57323
  if (obj != null && typeof obj === "object" && "@context" in obj) {
56370
- v = await this.#stream_fromJsonLd(obj, options);
57324
+ try {
57325
+ v = await this.#stream_fromJsonLd(obj, options);
57326
+ } catch (error) {
57327
+ if (!options.suppressError) throw error;
57328
+ getLogger(["fedify", "vocab"]).debug(
57329
+ "Failed to parse embedded value of {property} at index {index}: {error}",
57330
+ { property: "https://www.w3.org/ns/activitystreams#streams", index: i, error },
57331
+ );
57332
+ continue;
57333
+ }
56371
57334
  }
56372
57335
  }
56373
57336
 
@@ -56693,7 +57656,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56693
57656
  "movedTo"];
56694
57657
  const doc = Array.isArray(prop) ? prop[0] : prop;
56695
57658
  if (doc != null && typeof doc === "object" && "@context" in doc) {
56696
- v = await this.#successor_fromJsonLd(doc, options);
57659
+ try {
57660
+ v = await this.#successor_fromJsonLd(doc, options);
57661
+ } catch (error) {
57662
+ if (!options.suppressError) throw error;
57663
+ getLogger(["fedify", "vocab"]).debug(
57664
+ "Failed to parse embedded value of {property}: {error}",
57665
+ { property: "https://www.w3.org/ns/activitystreams#movedTo", error },
57666
+ );
57667
+ return null;
57668
+ }
56697
57669
  }
56698
57670
  }
56699
57671
 
@@ -56947,7 +57919,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56947
57919
  "alsoKnownAs"];
56948
57920
  const doc = Array.isArray(prop) ? prop[0] : prop;
56949
57921
  if (doc != null && typeof doc === "object" && "@context" in doc) {
56950
- v = await this.#alias_fromJsonLd(doc, options);
57922
+ try {
57923
+ v = await this.#alias_fromJsonLd(doc, options);
57924
+ } catch (error) {
57925
+ if (!options.suppressError) throw error;
57926
+ getLogger(["fedify", "vocab"]).debug(
57927
+ "Failed to parse embedded value of {property}: {error}",
57928
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", error },
57929
+ );
57930
+ return null;
57931
+ }
56951
57932
  }
56952
57933
  }
56953
57934
 
@@ -57044,7 +58025,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
57044
58025
  "alsoKnownAs"];
57045
58026
  const obj = Array.isArray(prop) ? prop[i] : prop;
57046
58027
  if (obj != null && typeof obj === "object" && "@context" in obj) {
57047
- v = await this.#alias_fromJsonLd(obj, options);
58028
+ try {
58029
+ v = await this.#alias_fromJsonLd(obj, options);
58030
+ } catch (error) {
58031
+ if (!options.suppressError) throw error;
58032
+ getLogger(["fedify", "vocab"]).debug(
58033
+ "Failed to parse embedded value of {property} at index {index}: {error}",
58034
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", index: i, error },
58035
+ );
58036
+ continue;
58037
+ }
57048
58038
  }
57049
58039
  }
57050
58040
 
@@ -57263,7 +58253,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
57263
58253
  "service"];
57264
58254
  const doc = Array.isArray(prop) ? prop[0] : prop;
57265
58255
  if (doc != null && typeof doc === "object" && "@context" in doc) {
57266
- v = await this.#service_fromJsonLd(doc, options);
58256
+ try {
58257
+ v = await this.#service_fromJsonLd(doc, options);
58258
+ } catch (error) {
58259
+ if (!options.suppressError) throw error;
58260
+ getLogger(["fedify", "vocab"]).debug(
58261
+ "Failed to parse embedded value of {property}: {error}",
58262
+ { property: "https://www.w3.org/ns/did#service", error },
58263
+ );
58264
+ return null;
58265
+ }
57267
58266
  }
57268
58267
  }
57269
58268
 
@@ -57360,7 +58359,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
57360
58359
  "service"];
57361
58360
  const obj = Array.isArray(prop) ? prop[i] : prop;
57362
58361
  if (obj != null && typeof obj === "object" && "@context" in obj) {
57363
- v = await this.#service_fromJsonLd(obj, options);
58362
+ try {
58363
+ v = await this.#service_fromJsonLd(obj, options);
58364
+ } catch (error) {
58365
+ if (!options.suppressError) throw error;
58366
+ getLogger(["fedify", "vocab"]).debug(
58367
+ "Failed to parse embedded value of {property} at index {index}: {error}",
58368
+ { property: "https://www.w3.org/ns/did#service", index: i, error },
58369
+ );
58370
+ continue;
58371
+ }
57364
58372
  }
57365
58373
  }
57366
58374
 
@@ -60617,7 +61625,16 @@ get names(): ((string | LanguageString))[] {
60617
61625
  "preview"];
60618
61626
  const obj = Array.isArray(prop) ? prop[i] : prop;
60619
61627
  if (obj != null && typeof obj === "object" && "@context" in obj) {
60620
- v = await this.#preview_fromJsonLd(obj, options);
61628
+ try {
61629
+ v = await this.#preview_fromJsonLd(obj, options);
61630
+ } catch (error) {
61631
+ if (!options.suppressError) throw error;
61632
+ getLogger(["fedify", "vocab"]).debug(
61633
+ "Failed to parse embedded value of {property} at index {index}: {error}",
61634
+ { property: "https://www.w3.org/ns/activitystreams#preview", index: i, error },
61635
+ );
61636
+ continue;
61637
+ }
60621
61638
  }
60622
61639
  }
60623
61640
 
@@ -65314,7 +66331,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
65314
66331
  "quote"];
65315
66332
  const doc = Array.isArray(prop) ? prop[0] : prop;
65316
66333
  if (doc != null && typeof doc === "object" && "@context" in doc) {
65317
- v = await this.#quote_fromJsonLd(doc, options);
66334
+ try {
66335
+ v = await this.#quote_fromJsonLd(doc, options);
66336
+ } catch (error) {
66337
+ if (!options.suppressError) throw error;
66338
+ getLogger(["fedify", "vocab"]).debug(
66339
+ "Failed to parse embedded value of {property}: {error}",
66340
+ { property: "https://w3id.org/fep/044f#quote", error },
66341
+ );
66342
+ return null;
66343
+ }
65318
66344
  }
65319
66345
  }
65320
66346
 
@@ -65553,7 +66579,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
65553
66579
  "quoteAuthorization"];
65554
66580
  const doc = Array.isArray(prop) ? prop[0] : prop;
65555
66581
  if (doc != null && typeof doc === "object" && "@context" in doc) {
65556
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
66582
+ try {
66583
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
66584
+ } catch (error) {
66585
+ if (!options.suppressError) throw error;
66586
+ getLogger(["fedify", "vocab"]).debug(
66587
+ "Failed to parse embedded value of {property}: {error}",
66588
+ { property: "https://w3id.org/fep/044f#quoteAuthorization", error },
66589
+ );
66590
+ return null;
66591
+ }
65557
66592
  }
65558
66593
  }
65559
66594
 
@@ -65967,7 +67002,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
65967
67002
  if (v == null) continue;
65968
67003
 
65969
67004
  const decoded =
65970
- new URL(v["@value"])
67005
+ typeof v === "object" &&
67006
+ ((typeof v["@id"] === "string" && canDecodeIri(v["@id"])) ||
67007
+ (typeof v["@value"] === "string" && canDecodeIri(v["@value"]))) ? decodeIri(
67008
+ typeof v["@id"] === "string" ? v["@id"] : v["@value"]
67009
+ ) : undefined
65971
67010
  ;
65972
67011
 
65973
67012
  if (typeof decoded === "undefined") {
@@ -66466,7 +67505,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
66466
67505
  "orderedItems"];
66467
67506
  const obj = Array.isArray(prop) ? prop[i] : prop;
66468
67507
  if (obj != null && typeof obj === "object" && "@context" in obj) {
66469
- v = await this.#item_fromJsonLd(obj, options);
67508
+ try {
67509
+ v = await this.#item_fromJsonLd(obj, options);
67510
+ } catch (error) {
67511
+ if (!options.suppressError) throw error;
67512
+ getLogger(["fedify", "vocab"]).debug(
67513
+ "Failed to parse embedded value of {property} at index {index}: {error}",
67514
+ { property: "https://www.w3.org/ns/activitystreams#items", index: i, error },
67515
+ );
67516
+ continue;
67517
+ }
66470
67518
  }
66471
67519
  }
66472
67520
 
@@ -67217,7 +68265,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
67217
68265
  "orderedItems"];
67218
68266
  const obj = Array.isArray(prop) ? prop[i] : prop;
67219
68267
  if (obj != null && typeof obj === "object" && "@context" in obj) {
67220
- v = await this.#item_fromJsonLd(obj, options);
68268
+ try {
68269
+ v = await this.#item_fromJsonLd(obj, options);
68270
+ } catch (error) {
68271
+ if (!options.suppressError) throw error;
68272
+ getLogger(["fedify", "vocab"]).debug(
68273
+ "Failed to parse embedded value of {property} at index {index}: {error}",
68274
+ { property: "https://www.w3.org/ns/activitystreams#items", index: i, error },
68275
+ );
68276
+ continue;
68277
+ }
67221
68278
  }
67222
68279
  }
67223
68280
 
@@ -68914,7 +69971,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
68914
69971
  "publicKey"];
68915
69972
  const doc = Array.isArray(prop) ? prop[0] : prop;
68916
69973
  if (doc != null && typeof doc === "object" && "@context" in doc) {
68917
- v = await this.#publicKey_fromJsonLd(doc, options);
69974
+ try {
69975
+ v = await this.#publicKey_fromJsonLd(doc, options);
69976
+ } catch (error) {
69977
+ if (!options.suppressError) throw error;
69978
+ getLogger(["fedify", "vocab"]).debug(
69979
+ "Failed to parse embedded value of {property}: {error}",
69980
+ { property: "https://w3id.org/security#publicKey", error },
69981
+ );
69982
+ return null;
69983
+ }
68918
69984
  }
68919
69985
  }
68920
69986
 
@@ -69007,7 +70073,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69007
70073
  "publicKey"];
69008
70074
  const obj = Array.isArray(prop) ? prop[i] : prop;
69009
70075
  if (obj != null && typeof obj === "object" && "@context" in obj) {
69010
- v = await this.#publicKey_fromJsonLd(obj, options);
70076
+ try {
70077
+ v = await this.#publicKey_fromJsonLd(obj, options);
70078
+ } catch (error) {
70079
+ if (!options.suppressError) throw error;
70080
+ getLogger(["fedify", "vocab"]).debug(
70081
+ "Failed to parse embedded value of {property} at index {index}: {error}",
70082
+ { property: "https://w3id.org/security#publicKey", index: i, error },
70083
+ );
70084
+ continue;
70085
+ }
69011
70086
  }
69012
70087
  }
69013
70088
 
@@ -69226,7 +70301,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69226
70301
  "assertionMethod"];
69227
70302
  const doc = Array.isArray(prop) ? prop[0] : prop;
69228
70303
  if (doc != null && typeof doc === "object" && "@context" in doc) {
69229
- v = await this.#assertionMethod_fromJsonLd(doc, options);
70304
+ try {
70305
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
70306
+ } catch (error) {
70307
+ if (!options.suppressError) throw error;
70308
+ getLogger(["fedify", "vocab"]).debug(
70309
+ "Failed to parse embedded value of {property}: {error}",
70310
+ { property: "https://w3id.org/security#assertionMethod", error },
70311
+ );
70312
+ return null;
70313
+ }
69230
70314
  }
69231
70315
  }
69232
70316
 
@@ -69323,7 +70407,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69323
70407
  "assertionMethod"];
69324
70408
  const obj = Array.isArray(prop) ? prop[i] : prop;
69325
70409
  if (obj != null && typeof obj === "object" && "@context" in obj) {
69326
- v = await this.#assertionMethod_fromJsonLd(obj, options);
70410
+ try {
70411
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
70412
+ } catch (error) {
70413
+ if (!options.suppressError) throw error;
70414
+ getLogger(["fedify", "vocab"]).debug(
70415
+ "Failed to parse embedded value of {property} at index {index}: {error}",
70416
+ { property: "https://w3id.org/security#assertionMethod", index: i, error },
70417
+ );
70418
+ continue;
70419
+ }
69327
70420
  }
69328
70421
  }
69329
70422
 
@@ -69579,7 +70672,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69579
70672
  "inbox"];
69580
70673
  const doc = Array.isArray(prop) ? prop[0] : prop;
69581
70674
  if (doc != null && typeof doc === "object" && "@context" in doc) {
69582
- v = await this.#inbox_fromJsonLd(doc, options);
70675
+ try {
70676
+ v = await this.#inbox_fromJsonLd(doc, options);
70677
+ } catch (error) {
70678
+ if (!options.suppressError) throw error;
70679
+ getLogger(["fedify", "vocab"]).debug(
70680
+ "Failed to parse embedded value of {property}: {error}",
70681
+ { property: "http://www.w3.org/ns/ldp#inbox", error },
70682
+ );
70683
+ return null;
70684
+ }
69583
70685
  }
69584
70686
  }
69585
70687
 
@@ -69812,7 +70914,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69812
70914
  "outbox"];
69813
70915
  const doc = Array.isArray(prop) ? prop[0] : prop;
69814
70916
  if (doc != null && typeof doc === "object" && "@context" in doc) {
69815
- v = await this.#outbox_fromJsonLd(doc, options);
70917
+ try {
70918
+ v = await this.#outbox_fromJsonLd(doc, options);
70919
+ } catch (error) {
70920
+ if (!options.suppressError) throw error;
70921
+ getLogger(["fedify", "vocab"]).debug(
70922
+ "Failed to parse embedded value of {property}: {error}",
70923
+ { property: "https://www.w3.org/ns/activitystreams#outbox", error },
70924
+ );
70925
+ return null;
70926
+ }
69816
70927
  }
69817
70928
  }
69818
70929
 
@@ -70031,7 +71142,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70031
71142
  "following"];
70032
71143
  const doc = Array.isArray(prop) ? prop[0] : prop;
70033
71144
  if (doc != null && typeof doc === "object" && "@context" in doc) {
70034
- v = await this.#following_fromJsonLd(doc, options);
71145
+ try {
71146
+ v = await this.#following_fromJsonLd(doc, options);
71147
+ } catch (error) {
71148
+ if (!options.suppressError) throw error;
71149
+ getLogger(["fedify", "vocab"]).debug(
71150
+ "Failed to parse embedded value of {property}: {error}",
71151
+ { property: "https://www.w3.org/ns/activitystreams#following", error },
71152
+ );
71153
+ return null;
71154
+ }
70035
71155
  }
70036
71156
  }
70037
71157
 
@@ -70253,7 +71373,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70253
71373
  "followers"];
70254
71374
  const doc = Array.isArray(prop) ? prop[0] : prop;
70255
71375
  if (doc != null && typeof doc === "object" && "@context" in doc) {
70256
- v = await this.#followers_fromJsonLd(doc, options);
71376
+ try {
71377
+ v = await this.#followers_fromJsonLd(doc, options);
71378
+ } catch (error) {
71379
+ if (!options.suppressError) throw error;
71380
+ getLogger(["fedify", "vocab"]).debug(
71381
+ "Failed to parse embedded value of {property}: {error}",
71382
+ { property: "https://www.w3.org/ns/activitystreams#followers", error },
71383
+ );
71384
+ return null;
71385
+ }
70257
71386
  }
70258
71387
  }
70259
71388
 
@@ -70473,7 +71602,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70473
71602
  "liked"];
70474
71603
  const doc = Array.isArray(prop) ? prop[0] : prop;
70475
71604
  if (doc != null && typeof doc === "object" && "@context" in doc) {
70476
- v = await this.#liked_fromJsonLd(doc, options);
71605
+ try {
71606
+ v = await this.#liked_fromJsonLd(doc, options);
71607
+ } catch (error) {
71608
+ if (!options.suppressError) throw error;
71609
+ getLogger(["fedify", "vocab"]).debug(
71610
+ "Failed to parse embedded value of {property}: {error}",
71611
+ { property: "https://www.w3.org/ns/activitystreams#liked", error },
71612
+ );
71613
+ return null;
71614
+ }
70477
71615
  }
70478
71616
  }
70479
71617
 
@@ -70691,7 +71829,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70691
71829
  "featured"];
70692
71830
  const doc = Array.isArray(prop) ? prop[0] : prop;
70693
71831
  if (doc != null && typeof doc === "object" && "@context" in doc) {
70694
- v = await this.#featured_fromJsonLd(doc, options);
71832
+ try {
71833
+ v = await this.#featured_fromJsonLd(doc, options);
71834
+ } catch (error) {
71835
+ if (!options.suppressError) throw error;
71836
+ getLogger(["fedify", "vocab"]).debug(
71837
+ "Failed to parse embedded value of {property}: {error}",
71838
+ { property: "http://joinmastodon.org/ns#featured", error },
71839
+ );
71840
+ return null;
71841
+ }
70695
71842
  }
70696
71843
  }
70697
71844
 
@@ -70909,7 +72056,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70909
72056
  "featuredTags"];
70910
72057
  const doc = Array.isArray(prop) ? prop[0] : prop;
70911
72058
  if (doc != null && typeof doc === "object" && "@context" in doc) {
70912
- v = await this.#featuredTags_fromJsonLd(doc, options);
72059
+ try {
72060
+ v = await this.#featuredTags_fromJsonLd(doc, options);
72061
+ } catch (error) {
72062
+ if (!options.suppressError) throw error;
72063
+ getLogger(["fedify", "vocab"]).debug(
72064
+ "Failed to parse embedded value of {property}: {error}",
72065
+ { property: "http://joinmastodon.org/ns#featuredTags", error },
72066
+ );
72067
+ return null;
72068
+ }
70913
72069
  }
70914
72070
  }
70915
72071
 
@@ -71125,7 +72281,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71125
72281
  "streams"];
71126
72282
  const obj = Array.isArray(prop) ? prop[i] : prop;
71127
72283
  if (obj != null && typeof obj === "object" && "@context" in obj) {
71128
- v = await this.#stream_fromJsonLd(obj, options);
72284
+ try {
72285
+ v = await this.#stream_fromJsonLd(obj, options);
72286
+ } catch (error) {
72287
+ if (!options.suppressError) throw error;
72288
+ getLogger(["fedify", "vocab"]).debug(
72289
+ "Failed to parse embedded value of {property} at index {index}: {error}",
72290
+ { property: "https://www.w3.org/ns/activitystreams#streams", index: i, error },
72291
+ );
72292
+ continue;
72293
+ }
71129
72294
  }
71130
72295
  }
71131
72296
 
@@ -71451,7 +72616,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71451
72616
  "movedTo"];
71452
72617
  const doc = Array.isArray(prop) ? prop[0] : prop;
71453
72618
  if (doc != null && typeof doc === "object" && "@context" in doc) {
71454
- v = await this.#successor_fromJsonLd(doc, options);
72619
+ try {
72620
+ v = await this.#successor_fromJsonLd(doc, options);
72621
+ } catch (error) {
72622
+ if (!options.suppressError) throw error;
72623
+ getLogger(["fedify", "vocab"]).debug(
72624
+ "Failed to parse embedded value of {property}: {error}",
72625
+ { property: "https://www.w3.org/ns/activitystreams#movedTo", error },
72626
+ );
72627
+ return null;
72628
+ }
71455
72629
  }
71456
72630
  }
71457
72631
 
@@ -71705,7 +72879,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71705
72879
  "alsoKnownAs"];
71706
72880
  const doc = Array.isArray(prop) ? prop[0] : prop;
71707
72881
  if (doc != null && typeof doc === "object" && "@context" in doc) {
71708
- v = await this.#alias_fromJsonLd(doc, options);
72882
+ try {
72883
+ v = await this.#alias_fromJsonLd(doc, options);
72884
+ } catch (error) {
72885
+ if (!options.suppressError) throw error;
72886
+ getLogger(["fedify", "vocab"]).debug(
72887
+ "Failed to parse embedded value of {property}: {error}",
72888
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", error },
72889
+ );
72890
+ return null;
72891
+ }
71709
72892
  }
71710
72893
  }
71711
72894
 
@@ -71802,7 +72985,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71802
72985
  "alsoKnownAs"];
71803
72986
  const obj = Array.isArray(prop) ? prop[i] : prop;
71804
72987
  if (obj != null && typeof obj === "object" && "@context" in obj) {
71805
- v = await this.#alias_fromJsonLd(obj, options);
72988
+ try {
72989
+ v = await this.#alias_fromJsonLd(obj, options);
72990
+ } catch (error) {
72991
+ if (!options.suppressError) throw error;
72992
+ getLogger(["fedify", "vocab"]).debug(
72993
+ "Failed to parse embedded value of {property} at index {index}: {error}",
72994
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", index: i, error },
72995
+ );
72996
+ continue;
72997
+ }
71806
72998
  }
71807
72999
  }
71808
73000
 
@@ -72021,7 +73213,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72021
73213
  "service"];
72022
73214
  const doc = Array.isArray(prop) ? prop[0] : prop;
72023
73215
  if (doc != null && typeof doc === "object" && "@context" in doc) {
72024
- v = await this.#service_fromJsonLd(doc, options);
73216
+ try {
73217
+ v = await this.#service_fromJsonLd(doc, options);
73218
+ } catch (error) {
73219
+ if (!options.suppressError) throw error;
73220
+ getLogger(["fedify", "vocab"]).debug(
73221
+ "Failed to parse embedded value of {property}: {error}",
73222
+ { property: "https://www.w3.org/ns/did#service", error },
73223
+ );
73224
+ return null;
73225
+ }
72025
73226
  }
72026
73227
  }
72027
73228
 
@@ -72118,7 +73319,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72118
73319
  "service"];
72119
73320
  const obj = Array.isArray(prop) ? prop[i] : prop;
72120
73321
  if (obj != null && typeof obj === "object" && "@context" in obj) {
72121
- v = await this.#service_fromJsonLd(obj, options);
73322
+ try {
73323
+ v = await this.#service_fromJsonLd(obj, options);
73324
+ } catch (error) {
73325
+ if (!options.suppressError) throw error;
73326
+ getLogger(["fedify", "vocab"]).debug(
73327
+ "Failed to parse embedded value of {property} at index {index}: {error}",
73328
+ { property: "https://www.w3.org/ns/did#service", index: i, error },
73329
+ );
73330
+ continue;
73331
+ }
72122
73332
  }
72123
73333
  }
72124
73334
 
@@ -76132,7 +77342,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76132
77342
  "publicKey"];
76133
77343
  const doc = Array.isArray(prop) ? prop[0] : prop;
76134
77344
  if (doc != null && typeof doc === "object" && "@context" in doc) {
76135
- v = await this.#publicKey_fromJsonLd(doc, options);
77345
+ try {
77346
+ v = await this.#publicKey_fromJsonLd(doc, options);
77347
+ } catch (error) {
77348
+ if (!options.suppressError) throw error;
77349
+ getLogger(["fedify", "vocab"]).debug(
77350
+ "Failed to parse embedded value of {property}: {error}",
77351
+ { property: "https://w3id.org/security#publicKey", error },
77352
+ );
77353
+ return null;
77354
+ }
76136
77355
  }
76137
77356
  }
76138
77357
 
@@ -76225,7 +77444,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76225
77444
  "publicKey"];
76226
77445
  const obj = Array.isArray(prop) ? prop[i] : prop;
76227
77446
  if (obj != null && typeof obj === "object" && "@context" in obj) {
76228
- v = await this.#publicKey_fromJsonLd(obj, options);
77447
+ try {
77448
+ v = await this.#publicKey_fromJsonLd(obj, options);
77449
+ } catch (error) {
77450
+ if (!options.suppressError) throw error;
77451
+ getLogger(["fedify", "vocab"]).debug(
77452
+ "Failed to parse embedded value of {property} at index {index}: {error}",
77453
+ { property: "https://w3id.org/security#publicKey", index: i, error },
77454
+ );
77455
+ continue;
77456
+ }
76229
77457
  }
76230
77458
  }
76231
77459
 
@@ -76444,7 +77672,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76444
77672
  "assertionMethod"];
76445
77673
  const doc = Array.isArray(prop) ? prop[0] : prop;
76446
77674
  if (doc != null && typeof doc === "object" && "@context" in doc) {
76447
- v = await this.#assertionMethod_fromJsonLd(doc, options);
77675
+ try {
77676
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
77677
+ } catch (error) {
77678
+ if (!options.suppressError) throw error;
77679
+ getLogger(["fedify", "vocab"]).debug(
77680
+ "Failed to parse embedded value of {property}: {error}",
77681
+ { property: "https://w3id.org/security#assertionMethod", error },
77682
+ );
77683
+ return null;
77684
+ }
76448
77685
  }
76449
77686
  }
76450
77687
 
@@ -76541,7 +77778,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76541
77778
  "assertionMethod"];
76542
77779
  const obj = Array.isArray(prop) ? prop[i] : prop;
76543
77780
  if (obj != null && typeof obj === "object" && "@context" in obj) {
76544
- v = await this.#assertionMethod_fromJsonLd(obj, options);
77781
+ try {
77782
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
77783
+ } catch (error) {
77784
+ if (!options.suppressError) throw error;
77785
+ getLogger(["fedify", "vocab"]).debug(
77786
+ "Failed to parse embedded value of {property} at index {index}: {error}",
77787
+ { property: "https://w3id.org/security#assertionMethod", index: i, error },
77788
+ );
77789
+ continue;
77790
+ }
76545
77791
  }
76546
77792
  }
76547
77793
 
@@ -76797,7 +78043,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76797
78043
  "inbox"];
76798
78044
  const doc = Array.isArray(prop) ? prop[0] : prop;
76799
78045
  if (doc != null && typeof doc === "object" && "@context" in doc) {
76800
- v = await this.#inbox_fromJsonLd(doc, options);
78046
+ try {
78047
+ v = await this.#inbox_fromJsonLd(doc, options);
78048
+ } catch (error) {
78049
+ if (!options.suppressError) throw error;
78050
+ getLogger(["fedify", "vocab"]).debug(
78051
+ "Failed to parse embedded value of {property}: {error}",
78052
+ { property: "http://www.w3.org/ns/ldp#inbox", error },
78053
+ );
78054
+ return null;
78055
+ }
76801
78056
  }
76802
78057
  }
76803
78058
 
@@ -77030,7 +78285,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77030
78285
  "outbox"];
77031
78286
  const doc = Array.isArray(prop) ? prop[0] : prop;
77032
78287
  if (doc != null && typeof doc === "object" && "@context" in doc) {
77033
- v = await this.#outbox_fromJsonLd(doc, options);
78288
+ try {
78289
+ v = await this.#outbox_fromJsonLd(doc, options);
78290
+ } catch (error) {
78291
+ if (!options.suppressError) throw error;
78292
+ getLogger(["fedify", "vocab"]).debug(
78293
+ "Failed to parse embedded value of {property}: {error}",
78294
+ { property: "https://www.w3.org/ns/activitystreams#outbox", error },
78295
+ );
78296
+ return null;
78297
+ }
77034
78298
  }
77035
78299
  }
77036
78300
 
@@ -77249,7 +78513,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77249
78513
  "following"];
77250
78514
  const doc = Array.isArray(prop) ? prop[0] : prop;
77251
78515
  if (doc != null && typeof doc === "object" && "@context" in doc) {
77252
- v = await this.#following_fromJsonLd(doc, options);
78516
+ try {
78517
+ v = await this.#following_fromJsonLd(doc, options);
78518
+ } catch (error) {
78519
+ if (!options.suppressError) throw error;
78520
+ getLogger(["fedify", "vocab"]).debug(
78521
+ "Failed to parse embedded value of {property}: {error}",
78522
+ { property: "https://www.w3.org/ns/activitystreams#following", error },
78523
+ );
78524
+ return null;
78525
+ }
77253
78526
  }
77254
78527
  }
77255
78528
 
@@ -77471,7 +78744,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77471
78744
  "followers"];
77472
78745
  const doc = Array.isArray(prop) ? prop[0] : prop;
77473
78746
  if (doc != null && typeof doc === "object" && "@context" in doc) {
77474
- v = await this.#followers_fromJsonLd(doc, options);
78747
+ try {
78748
+ v = await this.#followers_fromJsonLd(doc, options);
78749
+ } catch (error) {
78750
+ if (!options.suppressError) throw error;
78751
+ getLogger(["fedify", "vocab"]).debug(
78752
+ "Failed to parse embedded value of {property}: {error}",
78753
+ { property: "https://www.w3.org/ns/activitystreams#followers", error },
78754
+ );
78755
+ return null;
78756
+ }
77475
78757
  }
77476
78758
  }
77477
78759
 
@@ -77691,7 +78973,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77691
78973
  "liked"];
77692
78974
  const doc = Array.isArray(prop) ? prop[0] : prop;
77693
78975
  if (doc != null && typeof doc === "object" && "@context" in doc) {
77694
- v = await this.#liked_fromJsonLd(doc, options);
78976
+ try {
78977
+ v = await this.#liked_fromJsonLd(doc, options);
78978
+ } catch (error) {
78979
+ if (!options.suppressError) throw error;
78980
+ getLogger(["fedify", "vocab"]).debug(
78981
+ "Failed to parse embedded value of {property}: {error}",
78982
+ { property: "https://www.w3.org/ns/activitystreams#liked", error },
78983
+ );
78984
+ return null;
78985
+ }
77695
78986
  }
77696
78987
  }
77697
78988
 
@@ -77909,7 +79200,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77909
79200
  "featured"];
77910
79201
  const doc = Array.isArray(prop) ? prop[0] : prop;
77911
79202
  if (doc != null && typeof doc === "object" && "@context" in doc) {
77912
- v = await this.#featured_fromJsonLd(doc, options);
79203
+ try {
79204
+ v = await this.#featured_fromJsonLd(doc, options);
79205
+ } catch (error) {
79206
+ if (!options.suppressError) throw error;
79207
+ getLogger(["fedify", "vocab"]).debug(
79208
+ "Failed to parse embedded value of {property}: {error}",
79209
+ { property: "http://joinmastodon.org/ns#featured", error },
79210
+ );
79211
+ return null;
79212
+ }
77913
79213
  }
77914
79214
  }
77915
79215
 
@@ -78127,7 +79427,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78127
79427
  "featuredTags"];
78128
79428
  const doc = Array.isArray(prop) ? prop[0] : prop;
78129
79429
  if (doc != null && typeof doc === "object" && "@context" in doc) {
78130
- v = await this.#featuredTags_fromJsonLd(doc, options);
79430
+ try {
79431
+ v = await this.#featuredTags_fromJsonLd(doc, options);
79432
+ } catch (error) {
79433
+ if (!options.suppressError) throw error;
79434
+ getLogger(["fedify", "vocab"]).debug(
79435
+ "Failed to parse embedded value of {property}: {error}",
79436
+ { property: "http://joinmastodon.org/ns#featuredTags", error },
79437
+ );
79438
+ return null;
79439
+ }
78131
79440
  }
78132
79441
  }
78133
79442
 
@@ -78343,7 +79652,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78343
79652
  "streams"];
78344
79653
  const obj = Array.isArray(prop) ? prop[i] : prop;
78345
79654
  if (obj != null && typeof obj === "object" && "@context" in obj) {
78346
- v = await this.#stream_fromJsonLd(obj, options);
79655
+ try {
79656
+ v = await this.#stream_fromJsonLd(obj, options);
79657
+ } catch (error) {
79658
+ if (!options.suppressError) throw error;
79659
+ getLogger(["fedify", "vocab"]).debug(
79660
+ "Failed to parse embedded value of {property} at index {index}: {error}",
79661
+ { property: "https://www.w3.org/ns/activitystreams#streams", index: i, error },
79662
+ );
79663
+ continue;
79664
+ }
78347
79665
  }
78348
79666
  }
78349
79667
 
@@ -78669,7 +79987,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78669
79987
  "movedTo"];
78670
79988
  const doc = Array.isArray(prop) ? prop[0] : prop;
78671
79989
  if (doc != null && typeof doc === "object" && "@context" in doc) {
78672
- v = await this.#successor_fromJsonLd(doc, options);
79990
+ try {
79991
+ v = await this.#successor_fromJsonLd(doc, options);
79992
+ } catch (error) {
79993
+ if (!options.suppressError) throw error;
79994
+ getLogger(["fedify", "vocab"]).debug(
79995
+ "Failed to parse embedded value of {property}: {error}",
79996
+ { property: "https://www.w3.org/ns/activitystreams#movedTo", error },
79997
+ );
79998
+ return null;
79999
+ }
78673
80000
  }
78674
80001
  }
78675
80002
 
@@ -78923,7 +80250,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78923
80250
  "alsoKnownAs"];
78924
80251
  const doc = Array.isArray(prop) ? prop[0] : prop;
78925
80252
  if (doc != null && typeof doc === "object" && "@context" in doc) {
78926
- v = await this.#alias_fromJsonLd(doc, options);
80253
+ try {
80254
+ v = await this.#alias_fromJsonLd(doc, options);
80255
+ } catch (error) {
80256
+ if (!options.suppressError) throw error;
80257
+ getLogger(["fedify", "vocab"]).debug(
80258
+ "Failed to parse embedded value of {property}: {error}",
80259
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", error },
80260
+ );
80261
+ return null;
80262
+ }
78927
80263
  }
78928
80264
  }
78929
80265
 
@@ -79020,7 +80356,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
79020
80356
  "alsoKnownAs"];
79021
80357
  const obj = Array.isArray(prop) ? prop[i] : prop;
79022
80358
  if (obj != null && typeof obj === "object" && "@context" in obj) {
79023
- v = await this.#alias_fromJsonLd(obj, options);
80359
+ try {
80360
+ v = await this.#alias_fromJsonLd(obj, options);
80361
+ } catch (error) {
80362
+ if (!options.suppressError) throw error;
80363
+ getLogger(["fedify", "vocab"]).debug(
80364
+ "Failed to parse embedded value of {property} at index {index}: {error}",
80365
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", index: i, error },
80366
+ );
80367
+ continue;
80368
+ }
79024
80369
  }
79025
80370
  }
79026
80371
 
@@ -79239,7 +80584,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
79239
80584
  "service"];
79240
80585
  const doc = Array.isArray(prop) ? prop[0] : prop;
79241
80586
  if (doc != null && typeof doc === "object" && "@context" in doc) {
79242
- v = await this.#service_fromJsonLd(doc, options);
80587
+ try {
80588
+ v = await this.#service_fromJsonLd(doc, options);
80589
+ } catch (error) {
80590
+ if (!options.suppressError) throw error;
80591
+ getLogger(["fedify", "vocab"]).debug(
80592
+ "Failed to parse embedded value of {property}: {error}",
80593
+ { property: "https://www.w3.org/ns/did#service", error },
80594
+ );
80595
+ return null;
80596
+ }
79243
80597
  }
79244
80598
  }
79245
80599
 
@@ -79336,7 +80690,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
79336
80690
  "service"];
79337
80691
  const obj = Array.isArray(prop) ? prop[i] : prop;
79338
80692
  if (obj != null && typeof obj === "object" && "@context" in obj) {
79339
- v = await this.#service_fromJsonLd(obj, options);
80693
+ try {
80694
+ v = await this.#service_fromJsonLd(obj, options);
80695
+ } catch (error) {
80696
+ if (!options.suppressError) throw error;
80697
+ getLogger(["fedify", "vocab"]).debug(
80698
+ "Failed to parse embedded value of {property} at index {index}: {error}",
80699
+ { property: "https://www.w3.org/ns/did#service", index: i, error },
80700
+ );
80701
+ continue;
80702
+ }
79340
80703
  }
79341
80704
  }
79342
80705
 
@@ -83222,7 +84585,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
83222
84585
  "describes"];
83223
84586
  const doc = Array.isArray(prop) ? prop[0] : prop;
83224
84587
  if (doc != null && typeof doc === "object" && "@context" in doc) {
83225
- v = await this.#describes_fromJsonLd(doc, options);
84588
+ try {
84589
+ v = await this.#describes_fromJsonLd(doc, options);
84590
+ } catch (error) {
84591
+ if (!options.suppressError) throw error;
84592
+ getLogger(["fedify", "vocab"]).debug(
84593
+ "Failed to parse embedded value of {property}: {error}",
84594
+ { property: "https://www.w3.org/ns/activitystreams#describes", error },
84595
+ );
84596
+ return null;
84597
+ }
83226
84598
  }
83227
84599
  }
83228
84600
 
@@ -84125,7 +85497,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84125
85497
  "oneOf"];
84126
85498
  const obj = Array.isArray(prop) ? prop[i] : prop;
84127
85499
  if (obj != null && typeof obj === "object" && "@context" in obj) {
84128
- v = await this.#exclusiveOption_fromJsonLd(obj, options);
85500
+ try {
85501
+ v = await this.#exclusiveOption_fromJsonLd(obj, options);
85502
+ } catch (error) {
85503
+ if (!options.suppressError) throw error;
85504
+ getLogger(["fedify", "vocab"]).debug(
85505
+ "Failed to parse embedded value of {property} at index {index}: {error}",
85506
+ { property: "https://www.w3.org/ns/activitystreams#oneOf", index: i, error },
85507
+ );
85508
+ continue;
85509
+ }
84129
85510
  }
84130
85511
  }
84131
85512
 
@@ -84344,7 +85725,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84344
85725
  "anyOf"];
84345
85726
  const obj = Array.isArray(prop) ? prop[i] : prop;
84346
85727
  if (obj != null && typeof obj === "object" && "@context" in obj) {
84347
- v = await this.#inclusiveOption_fromJsonLd(obj, options);
85728
+ try {
85729
+ v = await this.#inclusiveOption_fromJsonLd(obj, options);
85730
+ } catch (error) {
85731
+ if (!options.suppressError) throw error;
85732
+ getLogger(["fedify", "vocab"]).debug(
85733
+ "Failed to parse embedded value of {property} at index {index}: {error}",
85734
+ { property: "https://www.w3.org/ns/activitystreams#anyOf", index: i, error },
85735
+ );
85736
+ continue;
85737
+ }
84348
85738
  }
84349
85739
  }
84350
85740
 
@@ -84592,7 +85982,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84592
85982
  "quote"];
84593
85983
  const doc = Array.isArray(prop) ? prop[0] : prop;
84594
85984
  if (doc != null && typeof doc === "object" && "@context" in doc) {
84595
- v = await this.#quote_fromJsonLd(doc, options);
85985
+ try {
85986
+ v = await this.#quote_fromJsonLd(doc, options);
85987
+ } catch (error) {
85988
+ if (!options.suppressError) throw error;
85989
+ getLogger(["fedify", "vocab"]).debug(
85990
+ "Failed to parse embedded value of {property}: {error}",
85991
+ { property: "https://w3id.org/fep/044f#quote", error },
85992
+ );
85993
+ return null;
85994
+ }
84596
85995
  }
84597
85996
  }
84598
85997
 
@@ -84831,7 +86230,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84831
86230
  "quoteAuthorization"];
84832
86231
  const doc = Array.isArray(prop) ? prop[0] : prop;
84833
86232
  if (doc != null && typeof doc === "object" && "@context" in doc) {
84834
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
86233
+ try {
86234
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
86235
+ } catch (error) {
86236
+ if (!options.suppressError) throw error;
86237
+ getLogger(["fedify", "vocab"]).debug(
86238
+ "Failed to parse embedded value of {property}: {error}",
86239
+ { property: "https://w3id.org/fep/044f#quoteAuthorization", error },
86240
+ );
86241
+ return null;
86242
+ }
84835
86243
  }
84836
86244
  }
84837
86245
 
@@ -85384,7 +86792,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
85384
86792
  if (v == null) continue;
85385
86793
 
85386
86794
  const decoded =
85387
- new URL(v["@value"])
86795
+ typeof v === "object" &&
86796
+ ((typeof v["@id"] === "string" && canDecodeIri(v["@id"])) ||
86797
+ (typeof v["@value"] === "string" && canDecodeIri(v["@value"]))) ? decodeIri(
86798
+ typeof v["@id"] === "string" ? v["@id"] : v["@value"]
86799
+ ) : undefined
85388
86800
  ;
85389
86801
 
85390
86802
  if (typeof decoded === "undefined") {
@@ -86806,7 +88218,16 @@ relationships?: (Object | URL)[];}
86806
88218
  "subject"];
86807
88219
  const doc = Array.isArray(prop) ? prop[0] : prop;
86808
88220
  if (doc != null && typeof doc === "object" && "@context" in doc) {
86809
- v = await this.#subject_fromJsonLd(doc, options);
88221
+ try {
88222
+ v = await this.#subject_fromJsonLd(doc, options);
88223
+ } catch (error) {
88224
+ if (!options.suppressError) throw error;
88225
+ getLogger(["fedify", "vocab"]).debug(
88226
+ "Failed to parse embedded value of {property}: {error}",
88227
+ { property: "https://www.w3.org/ns/activitystreams#subject", error },
88228
+ );
88229
+ return null;
88230
+ }
86810
88231
  }
86811
88232
  }
86812
88233
 
@@ -87021,7 +88442,16 @@ relationships?: (Object | URL)[];}
87021
88442
  "object"];
87022
88443
  const doc = Array.isArray(prop) ? prop[0] : prop;
87023
88444
  if (doc != null && typeof doc === "object" && "@context" in doc) {
87024
- v = await this.#object_fromJsonLd(doc, options);
88445
+ try {
88446
+ v = await this.#object_fromJsonLd(doc, options);
88447
+ } catch (error) {
88448
+ if (!options.suppressError) throw error;
88449
+ getLogger(["fedify", "vocab"]).debug(
88450
+ "Failed to parse embedded value of {property}: {error}",
88451
+ { property: "https://www.w3.org/ns/activitystreams#object", error },
88452
+ );
88453
+ return null;
88454
+ }
87025
88455
  }
87026
88456
  }
87027
88457
 
@@ -87115,7 +88545,16 @@ relationships?: (Object | URL)[];}
87115
88545
  "object"];
87116
88546
  const obj = Array.isArray(prop) ? prop[i] : prop;
87117
88547
  if (obj != null && typeof obj === "object" && "@context" in obj) {
87118
- v = await this.#object_fromJsonLd(obj, options);
88548
+ try {
88549
+ v = await this.#object_fromJsonLd(obj, options);
88550
+ } catch (error) {
88551
+ if (!options.suppressError) throw error;
88552
+ getLogger(["fedify", "vocab"]).debug(
88553
+ "Failed to parse embedded value of {property} at index {index}: {error}",
88554
+ { property: "https://www.w3.org/ns/activitystreams#object", index: i, error },
88555
+ );
88556
+ continue;
88557
+ }
87119
88558
  }
87120
88559
  }
87121
88560
 
@@ -87333,7 +88772,16 @@ relationships?: (Object | URL)[];}
87333
88772
  "relationship"];
87334
88773
  const doc = Array.isArray(prop) ? prop[0] : prop;
87335
88774
  if (doc != null && typeof doc === "object" && "@context" in doc) {
87336
- v = await this.#relationship_fromJsonLd(doc, options);
88775
+ try {
88776
+ v = await this.#relationship_fromJsonLd(doc, options);
88777
+ } catch (error) {
88778
+ if (!options.suppressError) throw error;
88779
+ getLogger(["fedify", "vocab"]).debug(
88780
+ "Failed to parse embedded value of {property}: {error}",
88781
+ { property: "https://www.w3.org/ns/activitystreams#relationship", error },
88782
+ );
88783
+ return null;
88784
+ }
87337
88785
  }
87338
88786
  }
87339
88787
 
@@ -87429,7 +88877,16 @@ relationships?: (Object | URL)[];}
87429
88877
  "relationship"];
87430
88878
  const obj = Array.isArray(prop) ? prop[i] : prop;
87431
88879
  if (obj != null && typeof obj === "object" && "@context" in obj) {
87432
- v = await this.#relationship_fromJsonLd(obj, options);
88880
+ try {
88881
+ v = await this.#relationship_fromJsonLd(obj, options);
88882
+ } catch (error) {
88883
+ if (!options.suppressError) throw error;
88884
+ getLogger(["fedify", "vocab"]).debug(
88885
+ "Failed to parse embedded value of {property} at index {index}: {error}",
88886
+ { property: "https://www.w3.org/ns/activitystreams#relationship", index: i, error },
88887
+ );
88888
+ continue;
88889
+ }
87433
88890
  }
87434
88891
  }
87435
88892
 
@@ -89568,7 +91025,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89568
91025
  "publicKey"];
89569
91026
  const doc = Array.isArray(prop) ? prop[0] : prop;
89570
91027
  if (doc != null && typeof doc === "object" && "@context" in doc) {
89571
- v = await this.#publicKey_fromJsonLd(doc, options);
91028
+ try {
91029
+ v = await this.#publicKey_fromJsonLd(doc, options);
91030
+ } catch (error) {
91031
+ if (!options.suppressError) throw error;
91032
+ getLogger(["fedify", "vocab"]).debug(
91033
+ "Failed to parse embedded value of {property}: {error}",
91034
+ { property: "https://w3id.org/security#publicKey", error },
91035
+ );
91036
+ return null;
91037
+ }
89572
91038
  }
89573
91039
  }
89574
91040
 
@@ -89661,7 +91127,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89661
91127
  "publicKey"];
89662
91128
  const obj = Array.isArray(prop) ? prop[i] : prop;
89663
91129
  if (obj != null && typeof obj === "object" && "@context" in obj) {
89664
- v = await this.#publicKey_fromJsonLd(obj, options);
91130
+ try {
91131
+ v = await this.#publicKey_fromJsonLd(obj, options);
91132
+ } catch (error) {
91133
+ if (!options.suppressError) throw error;
91134
+ getLogger(["fedify", "vocab"]).debug(
91135
+ "Failed to parse embedded value of {property} at index {index}: {error}",
91136
+ { property: "https://w3id.org/security#publicKey", index: i, error },
91137
+ );
91138
+ continue;
91139
+ }
89665
91140
  }
89666
91141
  }
89667
91142
 
@@ -89880,7 +91355,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89880
91355
  "assertionMethod"];
89881
91356
  const doc = Array.isArray(prop) ? prop[0] : prop;
89882
91357
  if (doc != null && typeof doc === "object" && "@context" in doc) {
89883
- v = await this.#assertionMethod_fromJsonLd(doc, options);
91358
+ try {
91359
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
91360
+ } catch (error) {
91361
+ if (!options.suppressError) throw error;
91362
+ getLogger(["fedify", "vocab"]).debug(
91363
+ "Failed to parse embedded value of {property}: {error}",
91364
+ { property: "https://w3id.org/security#assertionMethod", error },
91365
+ );
91366
+ return null;
91367
+ }
89884
91368
  }
89885
91369
  }
89886
91370
 
@@ -89977,7 +91461,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89977
91461
  "assertionMethod"];
89978
91462
  const obj = Array.isArray(prop) ? prop[i] : prop;
89979
91463
  if (obj != null && typeof obj === "object" && "@context" in obj) {
89980
- v = await this.#assertionMethod_fromJsonLd(obj, options);
91464
+ try {
91465
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
91466
+ } catch (error) {
91467
+ if (!options.suppressError) throw error;
91468
+ getLogger(["fedify", "vocab"]).debug(
91469
+ "Failed to parse embedded value of {property} at index {index}: {error}",
91470
+ { property: "https://w3id.org/security#assertionMethod", index: i, error },
91471
+ );
91472
+ continue;
91473
+ }
89981
91474
  }
89982
91475
  }
89983
91476
 
@@ -90233,7 +91726,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90233
91726
  "inbox"];
90234
91727
  const doc = Array.isArray(prop) ? prop[0] : prop;
90235
91728
  if (doc != null && typeof doc === "object" && "@context" in doc) {
90236
- v = await this.#inbox_fromJsonLd(doc, options);
91729
+ try {
91730
+ v = await this.#inbox_fromJsonLd(doc, options);
91731
+ } catch (error) {
91732
+ if (!options.suppressError) throw error;
91733
+ getLogger(["fedify", "vocab"]).debug(
91734
+ "Failed to parse embedded value of {property}: {error}",
91735
+ { property: "http://www.w3.org/ns/ldp#inbox", error },
91736
+ );
91737
+ return null;
91738
+ }
90237
91739
  }
90238
91740
  }
90239
91741
 
@@ -90466,7 +91968,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90466
91968
  "outbox"];
90467
91969
  const doc = Array.isArray(prop) ? prop[0] : prop;
90468
91970
  if (doc != null && typeof doc === "object" && "@context" in doc) {
90469
- v = await this.#outbox_fromJsonLd(doc, options);
91971
+ try {
91972
+ v = await this.#outbox_fromJsonLd(doc, options);
91973
+ } catch (error) {
91974
+ if (!options.suppressError) throw error;
91975
+ getLogger(["fedify", "vocab"]).debug(
91976
+ "Failed to parse embedded value of {property}: {error}",
91977
+ { property: "https://www.w3.org/ns/activitystreams#outbox", error },
91978
+ );
91979
+ return null;
91980
+ }
90470
91981
  }
90471
91982
  }
90472
91983
 
@@ -90685,7 +92196,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90685
92196
  "following"];
90686
92197
  const doc = Array.isArray(prop) ? prop[0] : prop;
90687
92198
  if (doc != null && typeof doc === "object" && "@context" in doc) {
90688
- v = await this.#following_fromJsonLd(doc, options);
92199
+ try {
92200
+ v = await this.#following_fromJsonLd(doc, options);
92201
+ } catch (error) {
92202
+ if (!options.suppressError) throw error;
92203
+ getLogger(["fedify", "vocab"]).debug(
92204
+ "Failed to parse embedded value of {property}: {error}",
92205
+ { property: "https://www.w3.org/ns/activitystreams#following", error },
92206
+ );
92207
+ return null;
92208
+ }
90689
92209
  }
90690
92210
  }
90691
92211
 
@@ -90907,7 +92427,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90907
92427
  "followers"];
90908
92428
  const doc = Array.isArray(prop) ? prop[0] : prop;
90909
92429
  if (doc != null && typeof doc === "object" && "@context" in doc) {
90910
- v = await this.#followers_fromJsonLd(doc, options);
92430
+ try {
92431
+ v = await this.#followers_fromJsonLd(doc, options);
92432
+ } catch (error) {
92433
+ if (!options.suppressError) throw error;
92434
+ getLogger(["fedify", "vocab"]).debug(
92435
+ "Failed to parse embedded value of {property}: {error}",
92436
+ { property: "https://www.w3.org/ns/activitystreams#followers", error },
92437
+ );
92438
+ return null;
92439
+ }
90911
92440
  }
90912
92441
  }
90913
92442
 
@@ -91127,7 +92656,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91127
92656
  "liked"];
91128
92657
  const doc = Array.isArray(prop) ? prop[0] : prop;
91129
92658
  if (doc != null && typeof doc === "object" && "@context" in doc) {
91130
- v = await this.#liked_fromJsonLd(doc, options);
92659
+ try {
92660
+ v = await this.#liked_fromJsonLd(doc, options);
92661
+ } catch (error) {
92662
+ if (!options.suppressError) throw error;
92663
+ getLogger(["fedify", "vocab"]).debug(
92664
+ "Failed to parse embedded value of {property}: {error}",
92665
+ { property: "https://www.w3.org/ns/activitystreams#liked", error },
92666
+ );
92667
+ return null;
92668
+ }
91131
92669
  }
91132
92670
  }
91133
92671
 
@@ -91345,7 +92883,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91345
92883
  "featured"];
91346
92884
  const doc = Array.isArray(prop) ? prop[0] : prop;
91347
92885
  if (doc != null && typeof doc === "object" && "@context" in doc) {
91348
- v = await this.#featured_fromJsonLd(doc, options);
92886
+ try {
92887
+ v = await this.#featured_fromJsonLd(doc, options);
92888
+ } catch (error) {
92889
+ if (!options.suppressError) throw error;
92890
+ getLogger(["fedify", "vocab"]).debug(
92891
+ "Failed to parse embedded value of {property}: {error}",
92892
+ { property: "http://joinmastodon.org/ns#featured", error },
92893
+ );
92894
+ return null;
92895
+ }
91349
92896
  }
91350
92897
  }
91351
92898
 
@@ -91563,7 +93110,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91563
93110
  "featuredTags"];
91564
93111
  const doc = Array.isArray(prop) ? prop[0] : prop;
91565
93112
  if (doc != null && typeof doc === "object" && "@context" in doc) {
91566
- v = await this.#featuredTags_fromJsonLd(doc, options);
93113
+ try {
93114
+ v = await this.#featuredTags_fromJsonLd(doc, options);
93115
+ } catch (error) {
93116
+ if (!options.suppressError) throw error;
93117
+ getLogger(["fedify", "vocab"]).debug(
93118
+ "Failed to parse embedded value of {property}: {error}",
93119
+ { property: "http://joinmastodon.org/ns#featuredTags", error },
93120
+ );
93121
+ return null;
93122
+ }
91567
93123
  }
91568
93124
  }
91569
93125
 
@@ -91779,7 +93335,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91779
93335
  "streams"];
91780
93336
  const obj = Array.isArray(prop) ? prop[i] : prop;
91781
93337
  if (obj != null && typeof obj === "object" && "@context" in obj) {
91782
- v = await this.#stream_fromJsonLd(obj, options);
93338
+ try {
93339
+ v = await this.#stream_fromJsonLd(obj, options);
93340
+ } catch (error) {
93341
+ if (!options.suppressError) throw error;
93342
+ getLogger(["fedify", "vocab"]).debug(
93343
+ "Failed to parse embedded value of {property} at index {index}: {error}",
93344
+ { property: "https://www.w3.org/ns/activitystreams#streams", index: i, error },
93345
+ );
93346
+ continue;
93347
+ }
91783
93348
  }
91784
93349
  }
91785
93350
 
@@ -92105,7 +93670,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92105
93670
  "movedTo"];
92106
93671
  const doc = Array.isArray(prop) ? prop[0] : prop;
92107
93672
  if (doc != null && typeof doc === "object" && "@context" in doc) {
92108
- v = await this.#successor_fromJsonLd(doc, options);
93673
+ try {
93674
+ v = await this.#successor_fromJsonLd(doc, options);
93675
+ } catch (error) {
93676
+ if (!options.suppressError) throw error;
93677
+ getLogger(["fedify", "vocab"]).debug(
93678
+ "Failed to parse embedded value of {property}: {error}",
93679
+ { property: "https://www.w3.org/ns/activitystreams#movedTo", error },
93680
+ );
93681
+ return null;
93682
+ }
92109
93683
  }
92110
93684
  }
92111
93685
 
@@ -92359,7 +93933,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92359
93933
  "alsoKnownAs"];
92360
93934
  const doc = Array.isArray(prop) ? prop[0] : prop;
92361
93935
  if (doc != null && typeof doc === "object" && "@context" in doc) {
92362
- v = await this.#alias_fromJsonLd(doc, options);
93936
+ try {
93937
+ v = await this.#alias_fromJsonLd(doc, options);
93938
+ } catch (error) {
93939
+ if (!options.suppressError) throw error;
93940
+ getLogger(["fedify", "vocab"]).debug(
93941
+ "Failed to parse embedded value of {property}: {error}",
93942
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", error },
93943
+ );
93944
+ return null;
93945
+ }
92363
93946
  }
92364
93947
  }
92365
93948
 
@@ -92456,7 +94039,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92456
94039
  "alsoKnownAs"];
92457
94040
  const obj = Array.isArray(prop) ? prop[i] : prop;
92458
94041
  if (obj != null && typeof obj === "object" && "@context" in obj) {
92459
- v = await this.#alias_fromJsonLd(obj, options);
94042
+ try {
94043
+ v = await this.#alias_fromJsonLd(obj, options);
94044
+ } catch (error) {
94045
+ if (!options.suppressError) throw error;
94046
+ getLogger(["fedify", "vocab"]).debug(
94047
+ "Failed to parse embedded value of {property} at index {index}: {error}",
94048
+ { property: "https://www.w3.org/ns/activitystreams#alsoKnownAs", index: i, error },
94049
+ );
94050
+ continue;
94051
+ }
92460
94052
  }
92461
94053
  }
92462
94054
 
@@ -92675,7 +94267,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92675
94267
  "service"];
92676
94268
  const doc = Array.isArray(prop) ? prop[0] : prop;
92677
94269
  if (doc != null && typeof doc === "object" && "@context" in doc) {
92678
- v = await this.#service_fromJsonLd(doc, options);
94270
+ try {
94271
+ v = await this.#service_fromJsonLd(doc, options);
94272
+ } catch (error) {
94273
+ if (!options.suppressError) throw error;
94274
+ getLogger(["fedify", "vocab"]).debug(
94275
+ "Failed to parse embedded value of {property}: {error}",
94276
+ { property: "https://www.w3.org/ns/did#service", error },
94277
+ );
94278
+ return null;
94279
+ }
92679
94280
  }
92680
94281
  }
92681
94282
 
@@ -92772,7 +94373,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92772
94373
  "service"];
92773
94374
  const obj = Array.isArray(prop) ? prop[i] : prop;
92774
94375
  if (obj != null && typeof obj === "object" && "@context" in obj) {
92775
- v = await this.#service_fromJsonLd(obj, options);
94376
+ try {
94377
+ v = await this.#service_fromJsonLd(obj, options);
94378
+ } catch (error) {
94379
+ if (!options.suppressError) throw error;
94380
+ getLogger(["fedify", "vocab"]).debug(
94381
+ "Failed to parse embedded value of {property} at index {index}: {error}",
94382
+ { property: "https://www.w3.org/ns/did#service", index: i, error },
94383
+ );
94384
+ continue;
94385
+ }
92776
94386
  }
92777
94387
  }
92778
94388