@fedify/vocab-tools 2.2.14-dev.2082 → 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.
@@ -25,6 +25,16 @@ import {
25
25
  isTemporalInstant,
26
26
  } from \\"@fedify/vocab-runtime/temporal\\";
27
27
 
28
+ function canDecodeIri(iri: string): boolean {
29
+ return URL.canParse(iri) || iri.startsWith(\\"at://\\");
30
+ }
31
+
32
+ function decodeIri(iri: string): URL {
33
+ return !URL.canParse(iri) && iri.startsWith(\\"at://\\")
34
+ ? new URL(\\"at://\\" + encodeURIComponent(iri.substring(5)))
35
+ : new URL(iri);
36
+ }
37
+
28
38
  function isValidLanguageTag(language: string): boolean {
29
39
  try {
30
40
  new Intl.Locale(language);
@@ -2357,7 +2367,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2357
2367
  \\"attachment\\"];
2358
2368
  const obj = Array.isArray(prop) ? prop[i] : prop;
2359
2369
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
2360
- v = await this.#attachment_fromJsonLd(obj, options);
2370
+ try {
2371
+ v = await this.#attachment_fromJsonLd(obj, options);
2372
+ } catch (error) {
2373
+ if (!options.suppressError) throw error;
2374
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2375
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
2376
+ { property: \\"https://www.w3.org/ns/activitystreams#attachment\\", index: i, error },
2377
+ );
2378
+ continue;
2379
+ }
2361
2380
  }
2362
2381
  }
2363
2382
 
@@ -2611,7 +2630,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2611
2630
  \\"attributedTo\\"];
2612
2631
  const doc = Array.isArray(prop) ? prop[0] : prop;
2613
2632
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
2614
- v = await this.#attribution_fromJsonLd(doc, options);
2633
+ try {
2634
+ v = await this.#attribution_fromJsonLd(doc, options);
2635
+ } catch (error) {
2636
+ if (!options.suppressError) throw error;
2637
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2638
+ \\"Failed to parse embedded value of {property}: {error}\\",
2639
+ { property: \\"https://www.w3.org/ns/activitystreams#attributedTo\\", error },
2640
+ );
2641
+ return null;
2642
+ }
2615
2643
  }
2616
2644
  }
2617
2645
 
@@ -2707,7 +2735,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2707
2735
  \\"attributedTo\\"];
2708
2736
  const obj = Array.isArray(prop) ? prop[i] : prop;
2709
2737
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
2710
- v = await this.#attribution_fromJsonLd(obj, options);
2738
+ try {
2739
+ v = await this.#attribution_fromJsonLd(obj, options);
2740
+ } catch (error) {
2741
+ if (!options.suppressError) throw error;
2742
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2743
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
2744
+ { property: \\"https://www.w3.org/ns/activitystreams#attributedTo\\", index: i, error },
2745
+ );
2746
+ continue;
2747
+ }
2711
2748
  }
2712
2749
  }
2713
2750
 
@@ -2924,7 +2961,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2924
2961
  \\"audience\\"];
2925
2962
  const doc = Array.isArray(prop) ? prop[0] : prop;
2926
2963
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
2927
- v = await this.#audience_fromJsonLd(doc, options);
2964
+ try {
2965
+ v = await this.#audience_fromJsonLd(doc, options);
2966
+ } catch (error) {
2967
+ if (!options.suppressError) throw error;
2968
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
2969
+ \\"Failed to parse embedded value of {property}: {error}\\",
2970
+ { property: \\"https://www.w3.org/ns/activitystreams#audience\\", error },
2971
+ );
2972
+ return null;
2973
+ }
2928
2974
  }
2929
2975
  }
2930
2976
 
@@ -3019,7 +3065,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
3019
3065
  \\"audience\\"];
3020
3066
  const obj = Array.isArray(prop) ? prop[i] : prop;
3021
3067
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3022
- v = await this.#audience_fromJsonLd(obj, options);
3068
+ try {
3069
+ v = await this.#audience_fromJsonLd(obj, options);
3070
+ } catch (error) {
3071
+ if (!options.suppressError) throw error;
3072
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3073
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3074
+ { property: \\"https://www.w3.org/ns/activitystreams#audience\\", index: i, error },
3075
+ );
3076
+ continue;
3077
+ }
3023
3078
  }
3024
3079
  }
3025
3080
 
@@ -3280,7 +3335,16 @@ get contents(): ((string | LanguageString))[] {
3280
3335
  \\"context\\"];
3281
3336
  const obj = Array.isArray(prop) ? prop[i] : prop;
3282
3337
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3283
- v = await this.#context_fromJsonLd(obj, options);
3338
+ try {
3339
+ v = await this.#context_fromJsonLd(obj, options);
3340
+ } catch (error) {
3341
+ if (!options.suppressError) throw error;
3342
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3343
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3344
+ { property: \\"https://www.w3.org/ns/activitystreams#context\\", index: i, error },
3345
+ );
3346
+ continue;
3347
+ }
3284
3348
  }
3285
3349
  }
3286
3350
 
@@ -3548,7 +3612,16 @@ get names(): ((string | LanguageString))[] {
3548
3612
  \\"generator\\"];
3549
3613
  const obj = Array.isArray(prop) ? prop[i] : prop;
3550
3614
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3551
- v = await this.#generator_fromJsonLd(obj, options);
3615
+ try {
3616
+ v = await this.#generator_fromJsonLd(obj, options);
3617
+ } catch (error) {
3618
+ if (!options.suppressError) throw error;
3619
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3620
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3621
+ { property: \\"https://www.w3.org/ns/activitystreams#generator\\", index: i, error },
3622
+ );
3623
+ continue;
3624
+ }
3552
3625
  }
3553
3626
  }
3554
3627
 
@@ -3766,7 +3839,16 @@ get names(): ((string | LanguageString))[] {
3766
3839
  \\"icon\\"];
3767
3840
  const doc = Array.isArray(prop) ? prop[0] : prop;
3768
3841
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
3769
- v = await this.#icon_fromJsonLd(doc, options);
3842
+ try {
3843
+ v = await this.#icon_fromJsonLd(doc, options);
3844
+ } catch (error) {
3845
+ if (!options.suppressError) throw error;
3846
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3847
+ \\"Failed to parse embedded value of {property}: {error}\\",
3848
+ { property: \\"https://www.w3.org/ns/activitystreams#icon\\", error },
3849
+ );
3850
+ return null;
3851
+ }
3770
3852
  }
3771
3853
  }
3772
3854
 
@@ -3862,7 +3944,16 @@ get names(): ((string | LanguageString))[] {
3862
3944
  \\"icon\\"];
3863
3945
  const obj = Array.isArray(prop) ? prop[i] : prop;
3864
3946
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
3865
- v = await this.#icon_fromJsonLd(obj, options);
3947
+ try {
3948
+ v = await this.#icon_fromJsonLd(obj, options);
3949
+ } catch (error) {
3950
+ if (!options.suppressError) throw error;
3951
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
3952
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
3953
+ { property: \\"https://www.w3.org/ns/activitystreams#icon\\", index: i, error },
3954
+ );
3955
+ continue;
3956
+ }
3866
3957
  }
3867
3958
  }
3868
3959
 
@@ -4080,7 +4171,16 @@ get names(): ((string | LanguageString))[] {
4080
4171
  \\"image\\"];
4081
4172
  const doc = Array.isArray(prop) ? prop[0] : prop;
4082
4173
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
4083
- v = await this.#image_fromJsonLd(doc, options);
4174
+ try {
4175
+ v = await this.#image_fromJsonLd(doc, options);
4176
+ } catch (error) {
4177
+ if (!options.suppressError) throw error;
4178
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4179
+ \\"Failed to parse embedded value of {property}: {error}\\",
4180
+ { property: \\"https://www.w3.org/ns/activitystreams#image\\", error },
4181
+ );
4182
+ return null;
4183
+ }
4084
4184
  }
4085
4185
  }
4086
4186
 
@@ -4176,7 +4276,16 @@ get names(): ((string | LanguageString))[] {
4176
4276
  \\"image\\"];
4177
4277
  const obj = Array.isArray(prop) ? prop[i] : prop;
4178
4278
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
4179
- v = await this.#image_fromJsonLd(obj, options);
4279
+ try {
4280
+ v = await this.#image_fromJsonLd(obj, options);
4281
+ } catch (error) {
4282
+ if (!options.suppressError) throw error;
4283
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4284
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
4285
+ { property: \\"https://www.w3.org/ns/activitystreams#image\\", index: i, error },
4286
+ );
4287
+ continue;
4288
+ }
4180
4289
  }
4181
4290
  }
4182
4291
 
@@ -4402,7 +4511,16 @@ get names(): ((string | LanguageString))[] {
4402
4511
  \\"inReplyTo\\"];
4403
4512
  const doc = Array.isArray(prop) ? prop[0] : prop;
4404
4513
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
4405
- v = await this.#replyTarget_fromJsonLd(doc, options);
4514
+ try {
4515
+ v = await this.#replyTarget_fromJsonLd(doc, options);
4516
+ } catch (error) {
4517
+ if (!options.suppressError) throw error;
4518
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4519
+ \\"Failed to parse embedded value of {property}: {error}\\",
4520
+ { property: \\"https://www.w3.org/ns/activitystreams#inReplyTo\\", error },
4521
+ );
4522
+ return null;
4523
+ }
4406
4524
  }
4407
4525
  }
4408
4526
 
@@ -4497,7 +4615,16 @@ get names(): ((string | LanguageString))[] {
4497
4615
  \\"inReplyTo\\"];
4498
4616
  const obj = Array.isArray(prop) ? prop[i] : prop;
4499
4617
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
4500
- v = await this.#replyTarget_fromJsonLd(obj, options);
4618
+ try {
4619
+ v = await this.#replyTarget_fromJsonLd(obj, options);
4620
+ } catch (error) {
4621
+ if (!options.suppressError) throw error;
4622
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4623
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
4624
+ { property: \\"https://www.w3.org/ns/activitystreams#inReplyTo\\", index: i, error },
4625
+ );
4626
+ continue;
4627
+ }
4501
4628
  }
4502
4629
  }
4503
4630
 
@@ -4723,7 +4850,16 @@ get names(): ((string | LanguageString))[] {
4723
4850
  \\"location\\"];
4724
4851
  const doc = Array.isArray(prop) ? prop[0] : prop;
4725
4852
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
4726
- v = await this.#location_fromJsonLd(doc, options);
4853
+ try {
4854
+ v = await this.#location_fromJsonLd(doc, options);
4855
+ } catch (error) {
4856
+ if (!options.suppressError) throw error;
4857
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4858
+ \\"Failed to parse embedded value of {property}: {error}\\",
4859
+ { property: \\"https://www.w3.org/ns/activitystreams#location\\", error },
4860
+ );
4861
+ return null;
4862
+ }
4727
4863
  }
4728
4864
  }
4729
4865
 
@@ -4818,7 +4954,16 @@ get names(): ((string | LanguageString))[] {
4818
4954
  \\"location\\"];
4819
4955
  const obj = Array.isArray(prop) ? prop[i] : prop;
4820
4956
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
4821
- v = await this.#location_fromJsonLd(obj, options);
4957
+ try {
4958
+ v = await this.#location_fromJsonLd(obj, options);
4959
+ } catch (error) {
4960
+ if (!options.suppressError) throw error;
4961
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
4962
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
4963
+ { property: \\"https://www.w3.org/ns/activitystreams#location\\", index: i, error },
4964
+ );
4965
+ continue;
4966
+ }
4822
4967
  }
4823
4968
  }
4824
4969
 
@@ -5043,7 +5188,16 @@ get names(): ((string | LanguageString))[] {
5043
5188
  \\"preview\\"];
5044
5189
  const doc = Array.isArray(prop) ? prop[0] : prop;
5045
5190
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5046
- v = await this.#preview_fromJsonLd(doc, options);
5191
+ try {
5192
+ v = await this.#preview_fromJsonLd(doc, options);
5193
+ } catch (error) {
5194
+ if (!options.suppressError) throw error;
5195
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5196
+ \\"Failed to parse embedded value of {property}: {error}\\",
5197
+ { property: \\"https://www.w3.org/ns/activitystreams#preview\\", error },
5198
+ );
5199
+ return null;
5200
+ }
5047
5201
  }
5048
5202
  }
5049
5203
 
@@ -5137,7 +5291,16 @@ get names(): ((string | LanguageString))[] {
5137
5291
  \\"preview\\"];
5138
5292
  const obj = Array.isArray(prop) ? prop[i] : prop;
5139
5293
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
5140
- v = await this.#preview_fromJsonLd(obj, options);
5294
+ try {
5295
+ v = await this.#preview_fromJsonLd(obj, options);
5296
+ } catch (error) {
5297
+ if (!options.suppressError) throw error;
5298
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5299
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
5300
+ { property: \\"https://www.w3.org/ns/activitystreams#preview\\", index: i, error },
5301
+ );
5302
+ continue;
5303
+ }
5141
5304
  }
5142
5305
  }
5143
5306
 
@@ -5367,7 +5530,16 @@ get names(): ((string | LanguageString))[] {
5367
5530
  \\"replies\\"];
5368
5531
  const doc = Array.isArray(prop) ? prop[0] : prop;
5369
5532
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5370
- v = await this.#replies_fromJsonLd(doc, options);
5533
+ try {
5534
+ v = await this.#replies_fromJsonLd(doc, options);
5535
+ } catch (error) {
5536
+ if (!options.suppressError) throw error;
5537
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5538
+ \\"Failed to parse embedded value of {property}: {error}\\",
5539
+ { property: \\"https://www.w3.org/ns/activitystreams#replies\\", error },
5540
+ );
5541
+ return null;
5542
+ }
5371
5543
  }
5372
5544
  }
5373
5545
 
@@ -5589,7 +5761,16 @@ get names(): ((string | LanguageString))[] {
5589
5761
  \\"shares\\"];
5590
5762
  const doc = Array.isArray(prop) ? prop[0] : prop;
5591
5763
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5592
- v = await this.#shares_fromJsonLd(doc, options);
5764
+ try {
5765
+ v = await this.#shares_fromJsonLd(doc, options);
5766
+ } catch (error) {
5767
+ if (!options.suppressError) throw error;
5768
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
5769
+ \\"Failed to parse embedded value of {property}: {error}\\",
5770
+ { property: \\"https://www.w3.org/ns/activitystreams#shares\\", error },
5771
+ );
5772
+ return null;
5773
+ }
5593
5774
  }
5594
5775
  }
5595
5776
 
@@ -5811,7 +5992,16 @@ get names(): ((string | LanguageString))[] {
5811
5992
  \\"likes\\"];
5812
5993
  const doc = Array.isArray(prop) ? prop[0] : prop;
5813
5994
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
5814
- v = await this.#likes_fromJsonLd(doc, options);
5995
+ try {
5996
+ v = await this.#likes_fromJsonLd(doc, options);
5997
+ } catch (error) {
5998
+ if (!options.suppressError) throw error;
5999
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6000
+ \\"Failed to parse embedded value of {property}: {error}\\",
6001
+ { property: \\"https://www.w3.org/ns/activitystreams#likes\\", error },
6002
+ );
6003
+ return null;
6004
+ }
5815
6005
  }
5816
6006
  }
5817
6007
 
@@ -6027,7 +6217,16 @@ get names(): ((string | LanguageString))[] {
6027
6217
  \\"emojiReactions\\"];
6028
6218
  const doc = Array.isArray(prop) ? prop[0] : prop;
6029
6219
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
6030
- v = await this.#emojiReactions_fromJsonLd(doc, options);
6220
+ try {
6221
+ v = await this.#emojiReactions_fromJsonLd(doc, options);
6222
+ } catch (error) {
6223
+ if (!options.suppressError) throw error;
6224
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6225
+ \\"Failed to parse embedded value of {property}: {error}\\",
6226
+ { property: \\"http://fedibird.com/ns#emojiReactions\\", error },
6227
+ );
6228
+ return null;
6229
+ }
6031
6230
  }
6032
6231
  }
6033
6232
 
@@ -6295,7 +6494,16 @@ get summaries(): ((string | LanguageString))[] {
6295
6494
  \\"tag\\"];
6296
6495
  const obj = Array.isArray(prop) ? prop[i] : prop;
6297
6496
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
6298
- v = await this.#tag_fromJsonLd(obj, options);
6497
+ try {
6498
+ v = await this.#tag_fromJsonLd(obj, options);
6499
+ } catch (error) {
6500
+ if (!options.suppressError) throw error;
6501
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6502
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
6503
+ { property: \\"https://www.w3.org/ns/activitystreams#tag\\", index: i, error },
6504
+ );
6505
+ continue;
6506
+ }
6299
6507
  }
6300
6508
  }
6301
6509
 
@@ -6546,7 +6754,16 @@ get urls(): ((URL | Link))[] {
6546
6754
  \\"to\\"];
6547
6755
  const doc = Array.isArray(prop) ? prop[0] : prop;
6548
6756
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
6549
- v = await this.#to_fromJsonLd(doc, options);
6757
+ try {
6758
+ v = await this.#to_fromJsonLd(doc, options);
6759
+ } catch (error) {
6760
+ if (!options.suppressError) throw error;
6761
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6762
+ \\"Failed to parse embedded value of {property}: {error}\\",
6763
+ { property: \\"https://www.w3.org/ns/activitystreams#to\\", error },
6764
+ );
6765
+ return null;
6766
+ }
6550
6767
  }
6551
6768
  }
6552
6769
 
@@ -6641,7 +6858,16 @@ get urls(): ((URL | Link))[] {
6641
6858
  \\"to\\"];
6642
6859
  const obj = Array.isArray(prop) ? prop[i] : prop;
6643
6860
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
6644
- v = await this.#to_fromJsonLd(obj, options);
6861
+ try {
6862
+ v = await this.#to_fromJsonLd(obj, options);
6863
+ } catch (error) {
6864
+ if (!options.suppressError) throw error;
6865
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
6866
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
6867
+ { property: \\"https://www.w3.org/ns/activitystreams#to\\", index: i, error },
6868
+ );
6869
+ continue;
6870
+ }
6645
6871
  }
6646
6872
  }
6647
6873
 
@@ -6858,7 +7084,16 @@ get urls(): ((URL | Link))[] {
6858
7084
  \\"bto\\"];
6859
7085
  const doc = Array.isArray(prop) ? prop[0] : prop;
6860
7086
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
6861
- v = await this.#bto_fromJsonLd(doc, options);
7087
+ try {
7088
+ v = await this.#bto_fromJsonLd(doc, options);
7089
+ } catch (error) {
7090
+ if (!options.suppressError) throw error;
7091
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7092
+ \\"Failed to parse embedded value of {property}: {error}\\",
7093
+ { property: \\"https://www.w3.org/ns/activitystreams#bto\\", error },
7094
+ );
7095
+ return null;
7096
+ }
6862
7097
  }
6863
7098
  }
6864
7099
 
@@ -6953,7 +7188,16 @@ get urls(): ((URL | Link))[] {
6953
7188
  \\"bto\\"];
6954
7189
  const obj = Array.isArray(prop) ? prop[i] : prop;
6955
7190
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
6956
- v = await this.#bto_fromJsonLd(obj, options);
7191
+ try {
7192
+ v = await this.#bto_fromJsonLd(obj, options);
7193
+ } catch (error) {
7194
+ if (!options.suppressError) throw error;
7195
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7196
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
7197
+ { property: \\"https://www.w3.org/ns/activitystreams#bto\\", index: i, error },
7198
+ );
7199
+ continue;
7200
+ }
6957
7201
  }
6958
7202
  }
6959
7203
 
@@ -7170,7 +7414,16 @@ get urls(): ((URL | Link))[] {
7170
7414
  \\"cc\\"];
7171
7415
  const doc = Array.isArray(prop) ? prop[0] : prop;
7172
7416
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
7173
- v = await this.#cc_fromJsonLd(doc, options);
7417
+ try {
7418
+ v = await this.#cc_fromJsonLd(doc, options);
7419
+ } catch (error) {
7420
+ if (!options.suppressError) throw error;
7421
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7422
+ \\"Failed to parse embedded value of {property}: {error}\\",
7423
+ { property: \\"https://www.w3.org/ns/activitystreams#cc\\", error },
7424
+ );
7425
+ return null;
7426
+ }
7174
7427
  }
7175
7428
  }
7176
7429
 
@@ -7265,7 +7518,16 @@ get urls(): ((URL | Link))[] {
7265
7518
  \\"cc\\"];
7266
7519
  const obj = Array.isArray(prop) ? prop[i] : prop;
7267
7520
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
7268
- v = await this.#cc_fromJsonLd(obj, options);
7521
+ try {
7522
+ v = await this.#cc_fromJsonLd(obj, options);
7523
+ } catch (error) {
7524
+ if (!options.suppressError) throw error;
7525
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7526
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
7527
+ { property: \\"https://www.w3.org/ns/activitystreams#cc\\", index: i, error },
7528
+ );
7529
+ continue;
7530
+ }
7269
7531
  }
7270
7532
  }
7271
7533
 
@@ -7482,7 +7744,16 @@ get urls(): ((URL | Link))[] {
7482
7744
  \\"bcc\\"];
7483
7745
  const doc = Array.isArray(prop) ? prop[0] : prop;
7484
7746
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
7485
- v = await this.#bcc_fromJsonLd(doc, options);
7747
+ try {
7748
+ v = await this.#bcc_fromJsonLd(doc, options);
7749
+ } catch (error) {
7750
+ if (!options.suppressError) throw error;
7751
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7752
+ \\"Failed to parse embedded value of {property}: {error}\\",
7753
+ { property: \\"https://www.w3.org/ns/activitystreams#bcc\\", error },
7754
+ );
7755
+ return null;
7756
+ }
7486
7757
  }
7487
7758
  }
7488
7759
 
@@ -7577,7 +7848,16 @@ get urls(): ((URL | Link))[] {
7577
7848
  \\"bcc\\"];
7578
7849
  const obj = Array.isArray(prop) ? prop[i] : prop;
7579
7850
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
7580
- v = await this.#bcc_fromJsonLd(obj, options);
7851
+ try {
7852
+ v = await this.#bcc_fromJsonLd(obj, options);
7853
+ } catch (error) {
7854
+ if (!options.suppressError) throw error;
7855
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
7856
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
7857
+ { property: \\"https://www.w3.org/ns/activitystreams#bcc\\", index: i, error },
7858
+ );
7859
+ continue;
7860
+ }
7581
7861
  }
7582
7862
  }
7583
7863
 
@@ -7857,7 +8137,16 @@ get urls(): ((URL | Link))[] {
7857
8137
  \\"proof\\"];
7858
8138
  const doc = Array.isArray(prop) ? prop[0] : prop;
7859
8139
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
7860
- v = await this.#proof_fromJsonLd(doc, options);
8140
+ try {
8141
+ v = await this.#proof_fromJsonLd(doc, options);
8142
+ } catch (error) {
8143
+ if (!options.suppressError) throw error;
8144
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8145
+ \\"Failed to parse embedded value of {property}: {error}\\",
8146
+ { property: \\"https://w3id.org/security#proof\\", error },
8147
+ );
8148
+ return null;
8149
+ }
7861
8150
  }
7862
8151
  }
7863
8152
 
@@ -7951,7 +8240,16 @@ get urls(): ((URL | Link))[] {
7951
8240
  \\"proof\\"];
7952
8241
  const obj = Array.isArray(prop) ? prop[i] : prop;
7953
8242
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
7954
- v = await this.#proof_fromJsonLd(obj, options);
8243
+ try {
8244
+ v = await this.#proof_fromJsonLd(obj, options);
8245
+ } catch (error) {
8246
+ if (!options.suppressError) throw error;
8247
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8248
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
8249
+ { property: \\"https://w3id.org/security#proof\\", index: i, error },
8250
+ );
8251
+ continue;
8252
+ }
7955
8253
  }
7956
8254
  }
7957
8255
 
@@ -8207,7 +8505,16 @@ get urls(): ((URL | Link))[] {
8207
8505
  \\"likeAuthorization\\"];
8208
8506
  const doc = Array.isArray(prop) ? prop[0] : prop;
8209
8507
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
8210
- v = await this.#likeAuthorization_fromJsonLd(doc, options);
8508
+ try {
8509
+ v = await this.#likeAuthorization_fromJsonLd(doc, options);
8510
+ } catch (error) {
8511
+ if (!options.suppressError) throw error;
8512
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8513
+ \\"Failed to parse embedded value of {property}: {error}\\",
8514
+ { property: \\"https://gotosocial.org/ns#likeAuthorization\\", error },
8515
+ );
8516
+ return null;
8517
+ }
8211
8518
  }
8212
8519
  }
8213
8520
 
@@ -8423,7 +8730,16 @@ get urls(): ((URL | Link))[] {
8423
8730
  \\"replyAuthorization\\"];
8424
8731
  const doc = Array.isArray(prop) ? prop[0] : prop;
8425
8732
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
8426
- v = await this.#replyAuthorization_fromJsonLd(doc, options);
8733
+ try {
8734
+ v = await this.#replyAuthorization_fromJsonLd(doc, options);
8735
+ } catch (error) {
8736
+ if (!options.suppressError) throw error;
8737
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8738
+ \\"Failed to parse embedded value of {property}: {error}\\",
8739
+ { property: \\"https://gotosocial.org/ns#replyAuthorization\\", error },
8740
+ );
8741
+ return null;
8742
+ }
8427
8743
  }
8428
8744
  }
8429
8745
 
@@ -8639,7 +8955,16 @@ get urls(): ((URL | Link))[] {
8639
8955
  \\"announceAuthorization\\"];
8640
8956
  const doc = Array.isArray(prop) ? prop[0] : prop;
8641
8957
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
8642
- v = await this.#announceAuthorization_fromJsonLd(doc, options);
8958
+ try {
8959
+ v = await this.#announceAuthorization_fromJsonLd(doc, options);
8960
+ } catch (error) {
8961
+ if (!options.suppressError) throw error;
8962
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
8963
+ \\"Failed to parse embedded value of {property}: {error}\\",
8964
+ { property: \\"https://gotosocial.org/ns#announceAuthorization\\", error },
8965
+ );
8966
+ return null;
8967
+ }
8643
8968
  }
8644
8969
  }
8645
8970
 
@@ -13638,7 +13963,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
13638
13963
  \\"quote\\"];
13639
13964
  const doc = Array.isArray(prop) ? prop[0] : prop;
13640
13965
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
13641
- v = await this.#quote_fromJsonLd(doc, options);
13966
+ try {
13967
+ v = await this.#quote_fromJsonLd(doc, options);
13968
+ } catch (error) {
13969
+ if (!options.suppressError) throw error;
13970
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
13971
+ \\"Failed to parse embedded value of {property}: {error}\\",
13972
+ { property: \\"https://w3id.org/fep/044f#quote\\", error },
13973
+ );
13974
+ return null;
13975
+ }
13642
13976
  }
13643
13977
  }
13644
13978
 
@@ -13877,7 +14211,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
13877
14211
  \\"quoteAuthorization\\"];
13878
14212
  const doc = Array.isArray(prop) ? prop[0] : prop;
13879
14213
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
13880
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
14214
+ try {
14215
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
14216
+ } catch (error) {
14217
+ if (!options.suppressError) throw error;
14218
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
14219
+ \\"Failed to parse embedded value of {property}: {error}\\",
14220
+ { property: \\"https://w3id.org/fep/044f#quoteAuthorization\\", error },
14221
+ );
14222
+ return null;
14223
+ }
13881
14224
  }
13882
14225
  }
13883
14226
 
@@ -14291,7 +14634,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
14291
14634
  if (v == null) continue;
14292
14635
 
14293
14636
  const decoded =
14294
- new URL(v[\\"@value\\"])
14637
+ typeof v === \\"object\\" &&
14638
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
14639
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
14640
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
14641
+ ) : undefined
14295
14642
  ;
14296
14643
 
14297
14644
  if (typeof decoded === \\"undefined\\") {
@@ -15294,7 +15641,16 @@ instruments?: (Object | URL)[];}
15294
15641
  \\"actor\\"];
15295
15642
  const doc = Array.isArray(prop) ? prop[0] : prop;
15296
15643
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
15297
- v = await this.#actor_fromJsonLd(doc, options);
15644
+ try {
15645
+ v = await this.#actor_fromJsonLd(doc, options);
15646
+ } catch (error) {
15647
+ if (!options.suppressError) throw error;
15648
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15649
+ \\"Failed to parse embedded value of {property}: {error}\\",
15650
+ { property: \\"https://www.w3.org/ns/activitystreams#actor\\", error },
15651
+ );
15652
+ return null;
15653
+ }
15298
15654
  }
15299
15655
  }
15300
15656
 
@@ -15390,7 +15746,16 @@ instruments?: (Object | URL)[];}
15390
15746
  \\"actor\\"];
15391
15747
  const obj = Array.isArray(prop) ? prop[i] : prop;
15392
15748
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
15393
- v = await this.#actor_fromJsonLd(obj, options);
15749
+ try {
15750
+ v = await this.#actor_fromJsonLd(obj, options);
15751
+ } catch (error) {
15752
+ if (!options.suppressError) throw error;
15753
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15754
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
15755
+ { property: \\"https://www.w3.org/ns/activitystreams#actor\\", index: i, error },
15756
+ );
15757
+ continue;
15758
+ }
15394
15759
  }
15395
15760
  }
15396
15761
 
@@ -15608,7 +15973,16 @@ instruments?: (Object | URL)[];}
15608
15973
  \\"object\\"];
15609
15974
  const doc = Array.isArray(prop) ? prop[0] : prop;
15610
15975
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
15611
- v = await this.#object_fromJsonLd(doc, options);
15976
+ try {
15977
+ v = await this.#object_fromJsonLd(doc, options);
15978
+ } catch (error) {
15979
+ if (!options.suppressError) throw error;
15980
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
15981
+ \\"Failed to parse embedded value of {property}: {error}\\",
15982
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", error },
15983
+ );
15984
+ return null;
15985
+ }
15612
15986
  }
15613
15987
  }
15614
15988
 
@@ -15704,7 +16078,16 @@ instruments?: (Object | URL)[];}
15704
16078
  \\"object\\"];
15705
16079
  const obj = Array.isArray(prop) ? prop[i] : prop;
15706
16080
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
15707
- v = await this.#object_fromJsonLd(obj, options);
16081
+ try {
16082
+ v = await this.#object_fromJsonLd(obj, options);
16083
+ } catch (error) {
16084
+ if (!options.suppressError) throw error;
16085
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16086
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
16087
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", index: i, error },
16088
+ );
16089
+ continue;
16090
+ }
15708
16091
  }
15709
16092
  }
15710
16093
 
@@ -15925,7 +16308,16 @@ instruments?: (Object | URL)[];}
15925
16308
  \\"target\\"];
15926
16309
  const doc = Array.isArray(prop) ? prop[0] : prop;
15927
16310
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
15928
- v = await this.#target_fromJsonLd(doc, options);
16311
+ try {
16312
+ v = await this.#target_fromJsonLd(doc, options);
16313
+ } catch (error) {
16314
+ if (!options.suppressError) throw error;
16315
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16316
+ \\"Failed to parse embedded value of {property}: {error}\\",
16317
+ { property: \\"https://www.w3.org/ns/activitystreams#target\\", error },
16318
+ );
16319
+ return null;
16320
+ }
15929
16321
  }
15930
16322
  }
15931
16323
 
@@ -16024,7 +16416,16 @@ instruments?: (Object | URL)[];}
16024
16416
  \\"target\\"];
16025
16417
  const obj = Array.isArray(prop) ? prop[i] : prop;
16026
16418
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
16027
- v = await this.#target_fromJsonLd(obj, options);
16419
+ try {
16420
+ v = await this.#target_fromJsonLd(obj, options);
16421
+ } catch (error) {
16422
+ if (!options.suppressError) throw error;
16423
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16424
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
16425
+ { property: \\"https://www.w3.org/ns/activitystreams#target\\", index: i, error },
16426
+ );
16427
+ continue;
16428
+ }
16028
16429
  }
16029
16430
  }
16030
16431
 
@@ -16242,7 +16643,16 @@ instruments?: (Object | URL)[];}
16242
16643
  \\"result\\"];
16243
16644
  const doc = Array.isArray(prop) ? prop[0] : prop;
16244
16645
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
16245
- v = await this.#result_fromJsonLd(doc, options);
16646
+ try {
16647
+ v = await this.#result_fromJsonLd(doc, options);
16648
+ } catch (error) {
16649
+ if (!options.suppressError) throw error;
16650
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16651
+ \\"Failed to parse embedded value of {property}: {error}\\",
16652
+ { property: \\"https://www.w3.org/ns/activitystreams#result\\", error },
16653
+ );
16654
+ return null;
16655
+ }
16246
16656
  }
16247
16657
  }
16248
16658
 
@@ -16338,7 +16748,16 @@ instruments?: (Object | URL)[];}
16338
16748
  \\"result\\"];
16339
16749
  const obj = Array.isArray(prop) ? prop[i] : prop;
16340
16750
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
16341
- v = await this.#result_fromJsonLd(obj, options);
16751
+ try {
16752
+ v = await this.#result_fromJsonLd(obj, options);
16753
+ } catch (error) {
16754
+ if (!options.suppressError) throw error;
16755
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16756
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
16757
+ { property: \\"https://www.w3.org/ns/activitystreams#result\\", index: i, error },
16758
+ );
16759
+ continue;
16760
+ }
16342
16761
  }
16343
16762
  }
16344
16763
 
@@ -16557,7 +16976,16 @@ instruments?: (Object | URL)[];}
16557
16976
  \\"origin\\"];
16558
16977
  const doc = Array.isArray(prop) ? prop[0] : prop;
16559
16978
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
16560
- v = await this.#origin_fromJsonLd(doc, options);
16979
+ try {
16980
+ v = await this.#origin_fromJsonLd(doc, options);
16981
+ } catch (error) {
16982
+ if (!options.suppressError) throw error;
16983
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
16984
+ \\"Failed to parse embedded value of {property}: {error}\\",
16985
+ { property: \\"https://www.w3.org/ns/activitystreams#origin\\", error },
16986
+ );
16987
+ return null;
16988
+ }
16561
16989
  }
16562
16990
  }
16563
16991
 
@@ -16654,7 +17082,16 @@ instruments?: (Object | URL)[];}
16654
17082
  \\"origin\\"];
16655
17083
  const obj = Array.isArray(prop) ? prop[i] : prop;
16656
17084
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
16657
- v = await this.#origin_fromJsonLd(obj, options);
17085
+ try {
17086
+ v = await this.#origin_fromJsonLd(obj, options);
17087
+ } catch (error) {
17088
+ if (!options.suppressError) throw error;
17089
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
17090
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
17091
+ { property: \\"https://www.w3.org/ns/activitystreams#origin\\", index: i, error },
17092
+ );
17093
+ continue;
17094
+ }
16658
17095
  }
16659
17096
  }
16660
17097
 
@@ -16871,7 +17308,16 @@ instruments?: (Object | URL)[];}
16871
17308
  \\"instrument\\"];
16872
17309
  const doc = Array.isArray(prop) ? prop[0] : prop;
16873
17310
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
16874
- v = await this.#instrument_fromJsonLd(doc, options);
17311
+ try {
17312
+ v = await this.#instrument_fromJsonLd(doc, options);
17313
+ } catch (error) {
17314
+ if (!options.suppressError) throw error;
17315
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
17316
+ \\"Failed to parse embedded value of {property}: {error}\\",
17317
+ { property: \\"https://www.w3.org/ns/activitystreams#instrument\\", error },
17318
+ );
17319
+ return null;
17320
+ }
16875
17321
  }
16876
17322
  }
16877
17323
 
@@ -16966,7 +17412,16 @@ instruments?: (Object | URL)[];}
16966
17412
  \\"instrument\\"];
16967
17413
  const obj = Array.isArray(prop) ? prop[i] : prop;
16968
17414
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
16969
- v = await this.#instrument_fromJsonLd(obj, options);
17415
+ try {
17416
+ v = await this.#instrument_fromJsonLd(obj, options);
17417
+ } catch (error) {
17418
+ if (!options.suppressError) throw error;
17419
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
17420
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
17421
+ { property: \\"https://www.w3.org/ns/activitystreams#instrument\\", index: i, error },
17422
+ );
17423
+ continue;
17424
+ }
16970
17425
  }
16971
17426
  }
16972
17427
 
@@ -19835,7 +20290,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
19835
20290
  \\"interactingObject\\"];
19836
20291
  const doc = Array.isArray(prop) ? prop[0] : prop;
19837
20292
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
19838
- v = await this.#interactingObject_fromJsonLd(doc, options);
20293
+ try {
20294
+ v = await this.#interactingObject_fromJsonLd(doc, options);
20295
+ } catch (error) {
20296
+ if (!options.suppressError) throw error;
20297
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
20298
+ \\"Failed to parse embedded value of {property}: {error}\\",
20299
+ { property: \\"https://gotosocial.org/ns#interactingObject\\", error },
20300
+ );
20301
+ return null;
20302
+ }
19839
20303
  }
19840
20304
  }
19841
20305
 
@@ -20050,7 +20514,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
20050
20514
  \\"interactionTarget\\"];
20051
20515
  const doc = Array.isArray(prop) ? prop[0] : prop;
20052
20516
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
20053
- v = await this.#interactionTarget_fromJsonLd(doc, options);
20517
+ try {
20518
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
20519
+ } catch (error) {
20520
+ if (!options.suppressError) throw error;
20521
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
20522
+ \\"Failed to parse embedded value of {property}: {error}\\",
20523
+ { property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
20524
+ );
20525
+ return null;
20526
+ }
20054
20527
  }
20055
20528
  }
20056
20529
 
@@ -22797,7 +23270,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
22797
23270
  \\"interactingObject\\"];
22798
23271
  const doc = Array.isArray(prop) ? prop[0] : prop;
22799
23272
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
22800
- v = await this.#interactingObject_fromJsonLd(doc, options);
23273
+ try {
23274
+ v = await this.#interactingObject_fromJsonLd(doc, options);
23275
+ } catch (error) {
23276
+ if (!options.suppressError) throw error;
23277
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
23278
+ \\"Failed to parse embedded value of {property}: {error}\\",
23279
+ { property: \\"https://gotosocial.org/ns#interactingObject\\", error },
23280
+ );
23281
+ return null;
23282
+ }
22801
23283
  }
22802
23284
  }
22803
23285
 
@@ -23012,7 +23494,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
23012
23494
  \\"interactionTarget\\"];
23013
23495
  const doc = Array.isArray(prop) ? prop[0] : prop;
23014
23496
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
23015
- v = await this.#interactionTarget_fromJsonLd(doc, options);
23497
+ try {
23498
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
23499
+ } catch (error) {
23500
+ if (!options.suppressError) throw error;
23501
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
23502
+ \\"Failed to parse embedded value of {property}: {error}\\",
23503
+ { property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
23504
+ );
23505
+ return null;
23506
+ }
23016
23507
  }
23017
23508
  }
23018
23509
 
@@ -24183,7 +24674,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
24183
24674
  \\"interactingObject\\"];
24184
24675
  const doc = Array.isArray(prop) ? prop[0] : prop;
24185
24676
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
24186
- v = await this.#interactingObject_fromJsonLd(doc, options);
24677
+ try {
24678
+ v = await this.#interactingObject_fromJsonLd(doc, options);
24679
+ } catch (error) {
24680
+ if (!options.suppressError) throw error;
24681
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
24682
+ \\"Failed to parse embedded value of {property}: {error}\\",
24683
+ { property: \\"https://gotosocial.org/ns#interactingObject\\", error },
24684
+ );
24685
+ return null;
24686
+ }
24187
24687
  }
24188
24688
  }
24189
24689
 
@@ -24398,7 +24898,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
24398
24898
  \\"interactionTarget\\"];
24399
24899
  const doc = Array.isArray(prop) ? prop[0] : prop;
24400
24900
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
24401
- v = await this.#interactionTarget_fromJsonLd(doc, options);
24901
+ try {
24902
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
24903
+ } catch (error) {
24904
+ if (!options.suppressError) throw error;
24905
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
24906
+ \\"Failed to parse embedded value of {property}: {error}\\",
24907
+ { property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
24908
+ );
24909
+ return null;
24910
+ }
24402
24911
  }
24403
24912
  }
24404
24913
 
@@ -25568,7 +26077,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
25568
26077
  \\"interactingObject\\"];
25569
26078
  const doc = Array.isArray(prop) ? prop[0] : prop;
25570
26079
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
25571
- v = await this.#interactingObject_fromJsonLd(doc, options);
26080
+ try {
26081
+ v = await this.#interactingObject_fromJsonLd(doc, options);
26082
+ } catch (error) {
26083
+ if (!options.suppressError) throw error;
26084
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
26085
+ \\"Failed to parse embedded value of {property}: {error}\\",
26086
+ { property: \\"https://gotosocial.org/ns#interactingObject\\", error },
26087
+ );
26088
+ return null;
26089
+ }
25572
26090
  }
25573
26091
  }
25574
26092
 
@@ -25783,7 +26301,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
25783
26301
  \\"interactionTarget\\"];
25784
26302
  const doc = Array.isArray(prop) ? prop[0] : prop;
25785
26303
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
25786
- v = await this.#interactionTarget_fromJsonLd(doc, options);
26304
+ try {
26305
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
26306
+ } catch (error) {
26307
+ if (!options.suppressError) throw error;
26308
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
26309
+ \\"Failed to parse embedded value of {property}: {error}\\",
26310
+ { property: \\"https://gotosocial.org/ns#interactionTarget\\", error },
26311
+ );
26312
+ return null;
26313
+ }
25787
26314
  }
25788
26315
  }
25789
26316
 
@@ -28977,7 +29504,16 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
28977
29504
  \\"owner\\"];
28978
29505
  const doc = Array.isArray(prop) ? prop[0] : prop;
28979
29506
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
28980
- v = await this.#owner_fromJsonLd(doc, options);
29507
+ try {
29508
+ v = await this.#owner_fromJsonLd(doc, options);
29509
+ } catch (error) {
29510
+ if (!options.suppressError) throw error;
29511
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
29512
+ \\"Failed to parse embedded value of {property}: {error}\\",
29513
+ { property: \\"https://w3id.org/security#owner\\", error },
29514
+ );
29515
+ return null;
29516
+ }
28981
29517
  }
28982
29518
  }
28983
29519
 
@@ -29888,7 +30424,16 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
29888
30424
  \\"controller\\"];
29889
30425
  const doc = Array.isArray(prop) ? prop[0] : prop;
29890
30426
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
29891
- v = await this.#controller_fromJsonLd(doc, options);
30427
+ try {
30428
+ v = await this.#controller_fromJsonLd(doc, options);
30429
+ } catch (error) {
30430
+ if (!options.suppressError) throw error;
30431
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
30432
+ \\"Failed to parse embedded value of {property}: {error}\\",
30433
+ { property: \\"https://w3id.org/security#controller\\", error },
30434
+ );
30435
+ return null;
30436
+ }
29892
30437
  }
29893
30438
  }
29894
30439
 
@@ -34490,7 +35035,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34490
35035
  \\"publicKey\\"];
34491
35036
  const doc = Array.isArray(prop) ? prop[0] : prop;
34492
35037
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
34493
- v = await this.#publicKey_fromJsonLd(doc, options);
35038
+ try {
35039
+ v = await this.#publicKey_fromJsonLd(doc, options);
35040
+ } catch (error) {
35041
+ if (!options.suppressError) throw error;
35042
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
35043
+ \\"Failed to parse embedded value of {property}: {error}\\",
35044
+ { property: \\"https://w3id.org/security#publicKey\\", error },
35045
+ );
35046
+ return null;
35047
+ }
34494
35048
  }
34495
35049
  }
34496
35050
 
@@ -34583,7 +35137,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34583
35137
  \\"publicKey\\"];
34584
35138
  const obj = Array.isArray(prop) ? prop[i] : prop;
34585
35139
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
34586
- v = await this.#publicKey_fromJsonLd(obj, options);
35140
+ try {
35141
+ v = await this.#publicKey_fromJsonLd(obj, options);
35142
+ } catch (error) {
35143
+ if (!options.suppressError) throw error;
35144
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
35145
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
35146
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
35147
+ );
35148
+ continue;
35149
+ }
34587
35150
  }
34588
35151
  }
34589
35152
 
@@ -34802,7 +35365,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34802
35365
  \\"assertionMethod\\"];
34803
35366
  const doc = Array.isArray(prop) ? prop[0] : prop;
34804
35367
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
34805
- v = await this.#assertionMethod_fromJsonLd(doc, options);
35368
+ try {
35369
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
35370
+ } catch (error) {
35371
+ if (!options.suppressError) throw error;
35372
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
35373
+ \\"Failed to parse embedded value of {property}: {error}\\",
35374
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
35375
+ );
35376
+ return null;
35377
+ }
34806
35378
  }
34807
35379
  }
34808
35380
 
@@ -34899,7 +35471,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
34899
35471
  \\"assertionMethod\\"];
34900
35472
  const obj = Array.isArray(prop) ? prop[i] : prop;
34901
35473
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
34902
- v = await this.#assertionMethod_fromJsonLd(obj, options);
35474
+ try {
35475
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
35476
+ } catch (error) {
35477
+ if (!options.suppressError) throw error;
35478
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
35479
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
35480
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
35481
+ );
35482
+ continue;
35483
+ }
34903
35484
  }
34904
35485
  }
34905
35486
 
@@ -35155,7 +35736,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35155
35736
  \\"inbox\\"];
35156
35737
  const doc = Array.isArray(prop) ? prop[0] : prop;
35157
35738
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
35158
- v = await this.#inbox_fromJsonLd(doc, options);
35739
+ try {
35740
+ v = await this.#inbox_fromJsonLd(doc, options);
35741
+ } catch (error) {
35742
+ if (!options.suppressError) throw error;
35743
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
35744
+ \\"Failed to parse embedded value of {property}: {error}\\",
35745
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
35746
+ );
35747
+ return null;
35748
+ }
35159
35749
  }
35160
35750
  }
35161
35751
 
@@ -35388,7 +35978,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35388
35978
  \\"outbox\\"];
35389
35979
  const doc = Array.isArray(prop) ? prop[0] : prop;
35390
35980
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
35391
- v = await this.#outbox_fromJsonLd(doc, options);
35981
+ try {
35982
+ v = await this.#outbox_fromJsonLd(doc, options);
35983
+ } catch (error) {
35984
+ if (!options.suppressError) throw error;
35985
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
35986
+ \\"Failed to parse embedded value of {property}: {error}\\",
35987
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
35988
+ );
35989
+ return null;
35990
+ }
35392
35991
  }
35393
35992
  }
35394
35993
 
@@ -35607,7 +36206,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35607
36206
  \\"following\\"];
35608
36207
  const doc = Array.isArray(prop) ? prop[0] : prop;
35609
36208
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
35610
- v = await this.#following_fromJsonLd(doc, options);
36209
+ try {
36210
+ v = await this.#following_fromJsonLd(doc, options);
36211
+ } catch (error) {
36212
+ if (!options.suppressError) throw error;
36213
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
36214
+ \\"Failed to parse embedded value of {property}: {error}\\",
36215
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
36216
+ );
36217
+ return null;
36218
+ }
35611
36219
  }
35612
36220
  }
35613
36221
 
@@ -35829,7 +36437,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
35829
36437
  \\"followers\\"];
35830
36438
  const doc = Array.isArray(prop) ? prop[0] : prop;
35831
36439
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
35832
- v = await this.#followers_fromJsonLd(doc, options);
36440
+ try {
36441
+ v = await this.#followers_fromJsonLd(doc, options);
36442
+ } catch (error) {
36443
+ if (!options.suppressError) throw error;
36444
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
36445
+ \\"Failed to parse embedded value of {property}: {error}\\",
36446
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
36447
+ );
36448
+ return null;
36449
+ }
35833
36450
  }
35834
36451
  }
35835
36452
 
@@ -36049,7 +36666,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36049
36666
  \\"liked\\"];
36050
36667
  const doc = Array.isArray(prop) ? prop[0] : prop;
36051
36668
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
36052
- v = await this.#liked_fromJsonLd(doc, options);
36669
+ try {
36670
+ v = await this.#liked_fromJsonLd(doc, options);
36671
+ } catch (error) {
36672
+ if (!options.suppressError) throw error;
36673
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
36674
+ \\"Failed to parse embedded value of {property}: {error}\\",
36675
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
36676
+ );
36677
+ return null;
36678
+ }
36053
36679
  }
36054
36680
  }
36055
36681
 
@@ -36267,7 +36893,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36267
36893
  \\"featured\\"];
36268
36894
  const doc = Array.isArray(prop) ? prop[0] : prop;
36269
36895
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
36270
- v = await this.#featured_fromJsonLd(doc, options);
36896
+ try {
36897
+ v = await this.#featured_fromJsonLd(doc, options);
36898
+ } catch (error) {
36899
+ if (!options.suppressError) throw error;
36900
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
36901
+ \\"Failed to parse embedded value of {property}: {error}\\",
36902
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
36903
+ );
36904
+ return null;
36905
+ }
36271
36906
  }
36272
36907
  }
36273
36908
 
@@ -36485,7 +37120,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36485
37120
  \\"featuredTags\\"];
36486
37121
  const doc = Array.isArray(prop) ? prop[0] : prop;
36487
37122
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
36488
- v = await this.#featuredTags_fromJsonLd(doc, options);
37123
+ try {
37124
+ v = await this.#featuredTags_fromJsonLd(doc, options);
37125
+ } catch (error) {
37126
+ if (!options.suppressError) throw error;
37127
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
37128
+ \\"Failed to parse embedded value of {property}: {error}\\",
37129
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
37130
+ );
37131
+ return null;
37132
+ }
36489
37133
  }
36490
37134
  }
36491
37135
 
@@ -36701,7 +37345,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
36701
37345
  \\"streams\\"];
36702
37346
  const obj = Array.isArray(prop) ? prop[i] : prop;
36703
37347
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
36704
- v = await this.#stream_fromJsonLd(obj, options);
37348
+ try {
37349
+ v = await this.#stream_fromJsonLd(obj, options);
37350
+ } catch (error) {
37351
+ if (!options.suppressError) throw error;
37352
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
37353
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
37354
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
37355
+ );
37356
+ continue;
37357
+ }
36705
37358
  }
36706
37359
  }
36707
37360
 
@@ -37027,7 +37680,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37027
37680
  \\"movedTo\\"];
37028
37681
  const doc = Array.isArray(prop) ? prop[0] : prop;
37029
37682
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
37030
- v = await this.#successor_fromJsonLd(doc, options);
37683
+ try {
37684
+ v = await this.#successor_fromJsonLd(doc, options);
37685
+ } catch (error) {
37686
+ if (!options.suppressError) throw error;
37687
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
37688
+ \\"Failed to parse embedded value of {property}: {error}\\",
37689
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
37690
+ );
37691
+ return null;
37692
+ }
37031
37693
  }
37032
37694
  }
37033
37695
 
@@ -37281,7 +37943,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37281
37943
  \\"alsoKnownAs\\"];
37282
37944
  const doc = Array.isArray(prop) ? prop[0] : prop;
37283
37945
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
37284
- v = await this.#alias_fromJsonLd(doc, options);
37946
+ try {
37947
+ v = await this.#alias_fromJsonLd(doc, options);
37948
+ } catch (error) {
37949
+ if (!options.suppressError) throw error;
37950
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
37951
+ \\"Failed to parse embedded value of {property}: {error}\\",
37952
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
37953
+ );
37954
+ return null;
37955
+ }
37285
37956
  }
37286
37957
  }
37287
37958
 
@@ -37378,7 +38049,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37378
38049
  \\"alsoKnownAs\\"];
37379
38050
  const obj = Array.isArray(prop) ? prop[i] : prop;
37380
38051
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
37381
- v = await this.#alias_fromJsonLd(obj, options);
38052
+ try {
38053
+ v = await this.#alias_fromJsonLd(obj, options);
38054
+ } catch (error) {
38055
+ if (!options.suppressError) throw error;
38056
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
38057
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
38058
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
38059
+ );
38060
+ continue;
38061
+ }
37382
38062
  }
37383
38063
  }
37384
38064
 
@@ -37597,7 +38277,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37597
38277
  \\"service\\"];
37598
38278
  const doc = Array.isArray(prop) ? prop[0] : prop;
37599
38279
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
37600
- v = await this.#service_fromJsonLd(doc, options);
38280
+ try {
38281
+ v = await this.#service_fromJsonLd(doc, options);
38282
+ } catch (error) {
38283
+ if (!options.suppressError) throw error;
38284
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
38285
+ \\"Failed to parse embedded value of {property}: {error}\\",
38286
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
38287
+ );
38288
+ return null;
38289
+ }
37601
38290
  }
37602
38291
  }
37603
38292
 
@@ -37694,7 +38383,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
37694
38383
  \\"service\\"];
37695
38384
  const obj = Array.isArray(prop) ? prop[i] : prop;
37696
38385
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
37697
- v = await this.#service_fromJsonLd(obj, options);
38386
+ try {
38387
+ v = await this.#service_fromJsonLd(obj, options);
38388
+ } catch (error) {
38389
+ if (!options.suppressError) throw error;
38390
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
38391
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
38392
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
38393
+ );
38394
+ continue;
38395
+ }
37698
38396
  }
37699
38397
  }
37700
38398
 
@@ -41215,7 +41913,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
41215
41913
  \\"quote\\"];
41216
41914
  const doc = Array.isArray(prop) ? prop[0] : prop;
41217
41915
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
41218
- v = await this.#quote_fromJsonLd(doc, options);
41916
+ try {
41917
+ v = await this.#quote_fromJsonLd(doc, options);
41918
+ } catch (error) {
41919
+ if (!options.suppressError) throw error;
41920
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
41921
+ \\"Failed to parse embedded value of {property}: {error}\\",
41922
+ { property: \\"https://w3id.org/fep/044f#quote\\", error },
41923
+ );
41924
+ return null;
41925
+ }
41219
41926
  }
41220
41927
  }
41221
41928
 
@@ -41454,7 +42161,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
41454
42161
  \\"quoteAuthorization\\"];
41455
42162
  const doc = Array.isArray(prop) ? prop[0] : prop;
41456
42163
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
41457
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
42164
+ try {
42165
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
42166
+ } catch (error) {
42167
+ if (!options.suppressError) throw error;
42168
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
42169
+ \\"Failed to parse embedded value of {property}: {error}\\",
42170
+ { property: \\"https://w3id.org/fep/044f#quoteAuthorization\\", error },
42171
+ );
42172
+ return null;
42173
+ }
41458
42174
  }
41459
42175
  }
41460
42176
 
@@ -41868,7 +42584,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
41868
42584
  if (v == null) continue;
41869
42585
 
41870
42586
  const decoded =
41871
- new URL(v[\\"@value\\"])
42587
+ typeof v === \\"object\\" &&
42588
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
42589
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
42590
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
42591
+ ) : undefined
41872
42592
  ;
41873
42593
 
41874
42594
  if (typeof decoded === \\"undefined\\") {
@@ -44360,7 +45080,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44360
45080
  \\"current\\"];
44361
45081
  const doc = Array.isArray(prop) ? prop[0] : prop;
44362
45082
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
44363
- v = await this.#current_fromJsonLd(doc, options);
45083
+ try {
45084
+ v = await this.#current_fromJsonLd(doc, options);
45085
+ } catch (error) {
45086
+ if (!options.suppressError) throw error;
45087
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
45088
+ \\"Failed to parse embedded value of {property}: {error}\\",
45089
+ { property: \\"https://www.w3.org/ns/activitystreams#current\\", error },
45090
+ );
45091
+ return null;
45092
+ }
44364
45093
  }
44365
45094
  }
44366
45095
 
@@ -44576,7 +45305,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44576
45305
  \\"first\\"];
44577
45306
  const doc = Array.isArray(prop) ? prop[0] : prop;
44578
45307
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
44579
- v = await this.#first_fromJsonLd(doc, options);
45308
+ try {
45309
+ v = await this.#first_fromJsonLd(doc, options);
45310
+ } catch (error) {
45311
+ if (!options.suppressError) throw error;
45312
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
45313
+ \\"Failed to parse embedded value of {property}: {error}\\",
45314
+ { property: \\"https://www.w3.org/ns/activitystreams#first\\", error },
45315
+ );
45316
+ return null;
45317
+ }
44580
45318
  }
44581
45319
  }
44582
45320
 
@@ -44792,7 +45530,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44792
45530
  \\"last\\"];
44793
45531
  const doc = Array.isArray(prop) ? prop[0] : prop;
44794
45532
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
44795
- v = await this.#last_fromJsonLd(doc, options);
45533
+ try {
45534
+ v = await this.#last_fromJsonLd(doc, options);
45535
+ } catch (error) {
45536
+ if (!options.suppressError) throw error;
45537
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
45538
+ \\"Failed to parse embedded value of {property}: {error}\\",
45539
+ { property: \\"https://www.w3.org/ns/activitystreams#last\\", error },
45540
+ );
45541
+ return null;
45542
+ }
44796
45543
  }
44797
45544
  }
44798
45545
 
@@ -45018,7 +45765,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45018
45765
  \\"items\\"];
45019
45766
  const obj = Array.isArray(prop) ? prop[i] : prop;
45020
45767
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
45021
- v = await this.#item_fromJsonLd(obj, options);
45768
+ try {
45769
+ v = await this.#item_fromJsonLd(obj, options);
45770
+ } catch (error) {
45771
+ if (!options.suppressError) throw error;
45772
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
45773
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
45774
+ { property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
45775
+ );
45776
+ continue;
45777
+ }
45022
45778
  }
45023
45779
  }
45024
45780
 
@@ -45234,7 +45990,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45234
45990
  \\"likesOf\\"];
45235
45991
  const doc = Array.isArray(prop) ? prop[0] : prop;
45236
45992
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
45237
- v = await this.#likesOf_fromJsonLd(doc, options);
45993
+ try {
45994
+ v = await this.#likesOf_fromJsonLd(doc, options);
45995
+ } catch (error) {
45996
+ if (!options.suppressError) throw error;
45997
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
45998
+ \\"Failed to parse embedded value of {property}: {error}\\",
45999
+ { property: \\"https://w3id.org/fep/5711#likesOf\\", error },
46000
+ );
46001
+ return null;
46002
+ }
45238
46003
  }
45239
46004
  }
45240
46005
 
@@ -45449,7 +46214,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45449
46214
  \\"sharesOf\\"];
45450
46215
  const doc = Array.isArray(prop) ? prop[0] : prop;
45451
46216
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
45452
- v = await this.#sharesOf_fromJsonLd(doc, options);
46217
+ try {
46218
+ v = await this.#sharesOf_fromJsonLd(doc, options);
46219
+ } catch (error) {
46220
+ if (!options.suppressError) throw error;
46221
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
46222
+ \\"Failed to parse embedded value of {property}: {error}\\",
46223
+ { property: \\"https://w3id.org/fep/5711#sharesOf\\", error },
46224
+ );
46225
+ return null;
46226
+ }
45453
46227
  }
45454
46228
  }
45455
46229
 
@@ -45664,7 +46438,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45664
46438
  \\"repliesOf\\"];
45665
46439
  const doc = Array.isArray(prop) ? prop[0] : prop;
45666
46440
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
45667
- v = await this.#repliesOf_fromJsonLd(doc, options);
46441
+ try {
46442
+ v = await this.#repliesOf_fromJsonLd(doc, options);
46443
+ } catch (error) {
46444
+ if (!options.suppressError) throw error;
46445
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
46446
+ \\"Failed to parse embedded value of {property}: {error}\\",
46447
+ { property: \\"https://w3id.org/fep/5711#repliesOf\\", error },
46448
+ );
46449
+ return null;
46450
+ }
45668
46451
  }
45669
46452
  }
45670
46453
 
@@ -45879,7 +46662,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45879
46662
  \\"inboxOf\\"];
45880
46663
  const doc = Array.isArray(prop) ? prop[0] : prop;
45881
46664
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
45882
- v = await this.#inboxOf_fromJsonLd(doc, options);
46665
+ try {
46666
+ v = await this.#inboxOf_fromJsonLd(doc, options);
46667
+ } catch (error) {
46668
+ if (!options.suppressError) throw error;
46669
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
46670
+ \\"Failed to parse embedded value of {property}: {error}\\",
46671
+ { property: \\"https://w3id.org/fep/5711#inboxOf\\", error },
46672
+ );
46673
+ return null;
46674
+ }
45883
46675
  }
45884
46676
  }
45885
46677
 
@@ -46094,7 +46886,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46094
46886
  \\"outboxOf\\"];
46095
46887
  const doc = Array.isArray(prop) ? prop[0] : prop;
46096
46888
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
46097
- v = await this.#outboxOf_fromJsonLd(doc, options);
46889
+ try {
46890
+ v = await this.#outboxOf_fromJsonLd(doc, options);
46891
+ } catch (error) {
46892
+ if (!options.suppressError) throw error;
46893
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
46894
+ \\"Failed to parse embedded value of {property}: {error}\\",
46895
+ { property: \\"https://w3id.org/fep/5711#outboxOf\\", error },
46896
+ );
46897
+ return null;
46898
+ }
46098
46899
  }
46099
46900
  }
46100
46901
 
@@ -46309,7 +47110,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46309
47110
  \\"followersOf\\"];
46310
47111
  const doc = Array.isArray(prop) ? prop[0] : prop;
46311
47112
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
46312
- v = await this.#followersOf_fromJsonLd(doc, options);
47113
+ try {
47114
+ v = await this.#followersOf_fromJsonLd(doc, options);
47115
+ } catch (error) {
47116
+ if (!options.suppressError) throw error;
47117
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
47118
+ \\"Failed to parse embedded value of {property}: {error}\\",
47119
+ { property: \\"https://w3id.org/fep/5711#followersOf\\", error },
47120
+ );
47121
+ return null;
47122
+ }
46313
47123
  }
46314
47124
  }
46315
47125
 
@@ -46524,7 +47334,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46524
47334
  \\"followingOf\\"];
46525
47335
  const doc = Array.isArray(prop) ? prop[0] : prop;
46526
47336
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
46527
- v = await this.#followingOf_fromJsonLd(doc, options);
47337
+ try {
47338
+ v = await this.#followingOf_fromJsonLd(doc, options);
47339
+ } catch (error) {
47340
+ if (!options.suppressError) throw error;
47341
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
47342
+ \\"Failed to parse embedded value of {property}: {error}\\",
47343
+ { property: \\"https://w3id.org/fep/5711#followingOf\\", error },
47344
+ );
47345
+ return null;
47346
+ }
46528
47347
  }
46529
47348
  }
46530
47349
 
@@ -46739,7 +47558,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46739
47558
  \\"likedOf\\"];
46740
47559
  const doc = Array.isArray(prop) ? prop[0] : prop;
46741
47560
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
46742
- v = await this.#likedOf_fromJsonLd(doc, options);
47561
+ try {
47562
+ v = await this.#likedOf_fromJsonLd(doc, options);
47563
+ } catch (error) {
47564
+ if (!options.suppressError) throw error;
47565
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
47566
+ \\"Failed to parse embedded value of {property}: {error}\\",
47567
+ { property: \\"https://w3id.org/fep/5711#likedOf\\", error },
47568
+ );
47569
+ return null;
47570
+ }
46743
47571
  }
46744
47572
  }
46745
47573
 
@@ -48684,7 +49512,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
48684
49512
  \\"partOf\\"];
48685
49513
  const doc = Array.isArray(prop) ? prop[0] : prop;
48686
49514
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
48687
- v = await this.#partOf_fromJsonLd(doc, options);
49515
+ try {
49516
+ v = await this.#partOf_fromJsonLd(doc, options);
49517
+ } catch (error) {
49518
+ if (!options.suppressError) throw error;
49519
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49520
+ \\"Failed to parse embedded value of {property}: {error}\\",
49521
+ { property: \\"https://www.w3.org/ns/activitystreams#partOf\\", error },
49522
+ );
49523
+ return null;
49524
+ }
48688
49525
  }
48689
49526
  }
48690
49527
 
@@ -48898,7 +49735,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
48898
49735
  \\"next\\"];
48899
49736
  const doc = Array.isArray(prop) ? prop[0] : prop;
48900
49737
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
48901
- v = await this.#next_fromJsonLd(doc, options);
49738
+ try {
49739
+ v = await this.#next_fromJsonLd(doc, options);
49740
+ } catch (error) {
49741
+ if (!options.suppressError) throw error;
49742
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49743
+ \\"Failed to parse embedded value of {property}: {error}\\",
49744
+ { property: \\"https://www.w3.org/ns/activitystreams#next\\", error },
49745
+ );
49746
+ return null;
49747
+ }
48902
49748
  }
48903
49749
  }
48904
49750
 
@@ -49113,7 +49959,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
49113
49959
  \\"prev\\"];
49114
49960
  const doc = Array.isArray(prop) ? prop[0] : prop;
49115
49961
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
49116
- v = await this.#prev_fromJsonLd(doc, options);
49962
+ try {
49963
+ v = await this.#prev_fromJsonLd(doc, options);
49964
+ } catch (error) {
49965
+ if (!options.suppressError) throw error;
49966
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
49967
+ \\"Failed to parse embedded value of {property}: {error}\\",
49968
+ { property: \\"https://www.w3.org/ns/activitystreams#prev\\", error },
49969
+ );
49970
+ return null;
49971
+ }
49117
49972
  }
49118
49973
  }
49119
49974
 
@@ -54154,7 +55009,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54154
55009
  \\"publicKey\\"];
54155
55010
  const doc = Array.isArray(prop) ? prop[0] : prop;
54156
55011
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
54157
- v = await this.#publicKey_fromJsonLd(doc, options);
55012
+ try {
55013
+ v = await this.#publicKey_fromJsonLd(doc, options);
55014
+ } catch (error) {
55015
+ if (!options.suppressError) throw error;
55016
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
55017
+ \\"Failed to parse embedded value of {property}: {error}\\",
55018
+ { property: \\"https://w3id.org/security#publicKey\\", error },
55019
+ );
55020
+ return null;
55021
+ }
54158
55022
  }
54159
55023
  }
54160
55024
 
@@ -54247,7 +55111,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54247
55111
  \\"publicKey\\"];
54248
55112
  const obj = Array.isArray(prop) ? prop[i] : prop;
54249
55113
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
54250
- v = await this.#publicKey_fromJsonLd(obj, options);
55114
+ try {
55115
+ v = await this.#publicKey_fromJsonLd(obj, options);
55116
+ } catch (error) {
55117
+ if (!options.suppressError) throw error;
55118
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
55119
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
55120
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
55121
+ );
55122
+ continue;
55123
+ }
54251
55124
  }
54252
55125
  }
54253
55126
 
@@ -54466,7 +55339,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54466
55339
  \\"assertionMethod\\"];
54467
55340
  const doc = Array.isArray(prop) ? prop[0] : prop;
54468
55341
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
54469
- v = await this.#assertionMethod_fromJsonLd(doc, options);
55342
+ try {
55343
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
55344
+ } catch (error) {
55345
+ if (!options.suppressError) throw error;
55346
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
55347
+ \\"Failed to parse embedded value of {property}: {error}\\",
55348
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
55349
+ );
55350
+ return null;
55351
+ }
54470
55352
  }
54471
55353
  }
54472
55354
 
@@ -54563,7 +55445,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54563
55445
  \\"assertionMethod\\"];
54564
55446
  const obj = Array.isArray(prop) ? prop[i] : prop;
54565
55447
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
54566
- v = await this.#assertionMethod_fromJsonLd(obj, options);
55448
+ try {
55449
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
55450
+ } catch (error) {
55451
+ if (!options.suppressError) throw error;
55452
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
55453
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
55454
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
55455
+ );
55456
+ continue;
55457
+ }
54567
55458
  }
54568
55459
  }
54569
55460
 
@@ -54819,7 +55710,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
54819
55710
  \\"inbox\\"];
54820
55711
  const doc = Array.isArray(prop) ? prop[0] : prop;
54821
55712
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
54822
- v = await this.#inbox_fromJsonLd(doc, options);
55713
+ try {
55714
+ v = await this.#inbox_fromJsonLd(doc, options);
55715
+ } catch (error) {
55716
+ if (!options.suppressError) throw error;
55717
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
55718
+ \\"Failed to parse embedded value of {property}: {error}\\",
55719
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
55720
+ );
55721
+ return null;
55722
+ }
54823
55723
  }
54824
55724
  }
54825
55725
 
@@ -55052,7 +55952,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55052
55952
  \\"outbox\\"];
55053
55953
  const doc = Array.isArray(prop) ? prop[0] : prop;
55054
55954
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
55055
- v = await this.#outbox_fromJsonLd(doc, options);
55955
+ try {
55956
+ v = await this.#outbox_fromJsonLd(doc, options);
55957
+ } catch (error) {
55958
+ if (!options.suppressError) throw error;
55959
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
55960
+ \\"Failed to parse embedded value of {property}: {error}\\",
55961
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
55962
+ );
55963
+ return null;
55964
+ }
55056
55965
  }
55057
55966
  }
55058
55967
 
@@ -55271,7 +56180,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55271
56180
  \\"following\\"];
55272
56181
  const doc = Array.isArray(prop) ? prop[0] : prop;
55273
56182
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
55274
- v = await this.#following_fromJsonLd(doc, options);
56183
+ try {
56184
+ v = await this.#following_fromJsonLd(doc, options);
56185
+ } catch (error) {
56186
+ if (!options.suppressError) throw error;
56187
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
56188
+ \\"Failed to parse embedded value of {property}: {error}\\",
56189
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
56190
+ );
56191
+ return null;
56192
+ }
55275
56193
  }
55276
56194
  }
55277
56195
 
@@ -55493,7 +56411,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55493
56411
  \\"followers\\"];
55494
56412
  const doc = Array.isArray(prop) ? prop[0] : prop;
55495
56413
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
55496
- v = await this.#followers_fromJsonLd(doc, options);
56414
+ try {
56415
+ v = await this.#followers_fromJsonLd(doc, options);
56416
+ } catch (error) {
56417
+ if (!options.suppressError) throw error;
56418
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
56419
+ \\"Failed to parse embedded value of {property}: {error}\\",
56420
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
56421
+ );
56422
+ return null;
56423
+ }
55497
56424
  }
55498
56425
  }
55499
56426
 
@@ -55713,7 +56640,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55713
56640
  \\"liked\\"];
55714
56641
  const doc = Array.isArray(prop) ? prop[0] : prop;
55715
56642
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
55716
- v = await this.#liked_fromJsonLd(doc, options);
56643
+ try {
56644
+ v = await this.#liked_fromJsonLd(doc, options);
56645
+ } catch (error) {
56646
+ if (!options.suppressError) throw error;
56647
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
56648
+ \\"Failed to parse embedded value of {property}: {error}\\",
56649
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
56650
+ );
56651
+ return null;
56652
+ }
55717
56653
  }
55718
56654
  }
55719
56655
 
@@ -55931,7 +56867,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
55931
56867
  \\"featured\\"];
55932
56868
  const doc = Array.isArray(prop) ? prop[0] : prop;
55933
56869
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
55934
- v = await this.#featured_fromJsonLd(doc, options);
56870
+ try {
56871
+ v = await this.#featured_fromJsonLd(doc, options);
56872
+ } catch (error) {
56873
+ if (!options.suppressError) throw error;
56874
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
56875
+ \\"Failed to parse embedded value of {property}: {error}\\",
56876
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
56877
+ );
56878
+ return null;
56879
+ }
55935
56880
  }
55936
56881
  }
55937
56882
 
@@ -56149,7 +57094,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56149
57094
  \\"featuredTags\\"];
56150
57095
  const doc = Array.isArray(prop) ? prop[0] : prop;
56151
57096
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
56152
- v = await this.#featuredTags_fromJsonLd(doc, options);
57097
+ try {
57098
+ v = await this.#featuredTags_fromJsonLd(doc, options);
57099
+ } catch (error) {
57100
+ if (!options.suppressError) throw error;
57101
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
57102
+ \\"Failed to parse embedded value of {property}: {error}\\",
57103
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
57104
+ );
57105
+ return null;
57106
+ }
56153
57107
  }
56154
57108
  }
56155
57109
 
@@ -56365,7 +57319,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56365
57319
  \\"streams\\"];
56366
57320
  const obj = Array.isArray(prop) ? prop[i] : prop;
56367
57321
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
56368
- v = await this.#stream_fromJsonLd(obj, options);
57322
+ try {
57323
+ v = await this.#stream_fromJsonLd(obj, options);
57324
+ } catch (error) {
57325
+ if (!options.suppressError) throw error;
57326
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
57327
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
57328
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
57329
+ );
57330
+ continue;
57331
+ }
56369
57332
  }
56370
57333
  }
56371
57334
 
@@ -56691,7 +57654,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56691
57654
  \\"movedTo\\"];
56692
57655
  const doc = Array.isArray(prop) ? prop[0] : prop;
56693
57656
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
56694
- v = await this.#successor_fromJsonLd(doc, options);
57657
+ try {
57658
+ v = await this.#successor_fromJsonLd(doc, options);
57659
+ } catch (error) {
57660
+ if (!options.suppressError) throw error;
57661
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
57662
+ \\"Failed to parse embedded value of {property}: {error}\\",
57663
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
57664
+ );
57665
+ return null;
57666
+ }
56695
57667
  }
56696
57668
  }
56697
57669
 
@@ -56945,7 +57917,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
56945
57917
  \\"alsoKnownAs\\"];
56946
57918
  const doc = Array.isArray(prop) ? prop[0] : prop;
56947
57919
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
56948
- v = await this.#alias_fromJsonLd(doc, options);
57920
+ try {
57921
+ v = await this.#alias_fromJsonLd(doc, options);
57922
+ } catch (error) {
57923
+ if (!options.suppressError) throw error;
57924
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
57925
+ \\"Failed to parse embedded value of {property}: {error}\\",
57926
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
57927
+ );
57928
+ return null;
57929
+ }
56949
57930
  }
56950
57931
  }
56951
57932
 
@@ -57042,7 +58023,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
57042
58023
  \\"alsoKnownAs\\"];
57043
58024
  const obj = Array.isArray(prop) ? prop[i] : prop;
57044
58025
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
57045
- v = await this.#alias_fromJsonLd(obj, options);
58026
+ try {
58027
+ v = await this.#alias_fromJsonLd(obj, options);
58028
+ } catch (error) {
58029
+ if (!options.suppressError) throw error;
58030
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
58031
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
58032
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
58033
+ );
58034
+ continue;
58035
+ }
57046
58036
  }
57047
58037
  }
57048
58038
 
@@ -57261,7 +58251,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
57261
58251
  \\"service\\"];
57262
58252
  const doc = Array.isArray(prop) ? prop[0] : prop;
57263
58253
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
57264
- v = await this.#service_fromJsonLd(doc, options);
58254
+ try {
58255
+ v = await this.#service_fromJsonLd(doc, options);
58256
+ } catch (error) {
58257
+ if (!options.suppressError) throw error;
58258
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
58259
+ \\"Failed to parse embedded value of {property}: {error}\\",
58260
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
58261
+ );
58262
+ return null;
58263
+ }
57265
58264
  }
57266
58265
  }
57267
58266
 
@@ -57358,7 +58357,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
57358
58357
  \\"service\\"];
57359
58358
  const obj = Array.isArray(prop) ? prop[i] : prop;
57360
58359
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
57361
- v = await this.#service_fromJsonLd(obj, options);
58360
+ try {
58361
+ v = await this.#service_fromJsonLd(obj, options);
58362
+ } catch (error) {
58363
+ if (!options.suppressError) throw error;
58364
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
58365
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
58366
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
58367
+ );
58368
+ continue;
58369
+ }
57362
58370
  }
57363
58371
  }
57364
58372
 
@@ -60615,7 +61623,16 @@ get names(): ((string | LanguageString))[] {
60615
61623
  \\"preview\\"];
60616
61624
  const obj = Array.isArray(prop) ? prop[i] : prop;
60617
61625
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
60618
- v = await this.#preview_fromJsonLd(obj, options);
61626
+ try {
61627
+ v = await this.#preview_fromJsonLd(obj, options);
61628
+ } catch (error) {
61629
+ if (!options.suppressError) throw error;
61630
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
61631
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
61632
+ { property: \\"https://www.w3.org/ns/activitystreams#preview\\", index: i, error },
61633
+ );
61634
+ continue;
61635
+ }
60619
61636
  }
60620
61637
  }
60621
61638
 
@@ -65312,7 +66329,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
65312
66329
  \\"quote\\"];
65313
66330
  const doc = Array.isArray(prop) ? prop[0] : prop;
65314
66331
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
65315
- v = await this.#quote_fromJsonLd(doc, options);
66332
+ try {
66333
+ v = await this.#quote_fromJsonLd(doc, options);
66334
+ } catch (error) {
66335
+ if (!options.suppressError) throw error;
66336
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
66337
+ \\"Failed to parse embedded value of {property}: {error}\\",
66338
+ { property: \\"https://w3id.org/fep/044f#quote\\", error },
66339
+ );
66340
+ return null;
66341
+ }
65316
66342
  }
65317
66343
  }
65318
66344
 
@@ -65551,7 +66577,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
65551
66577
  \\"quoteAuthorization\\"];
65552
66578
  const doc = Array.isArray(prop) ? prop[0] : prop;
65553
66579
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
65554
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
66580
+ try {
66581
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
66582
+ } catch (error) {
66583
+ if (!options.suppressError) throw error;
66584
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
66585
+ \\"Failed to parse embedded value of {property}: {error}\\",
66586
+ { property: \\"https://w3id.org/fep/044f#quoteAuthorization\\", error },
66587
+ );
66588
+ return null;
66589
+ }
65555
66590
  }
65556
66591
  }
65557
66592
 
@@ -65965,7 +67000,11 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
65965
67000
  if (v == null) continue;
65966
67001
 
65967
67002
  const decoded =
65968
- new URL(v[\\"@value\\"])
67003
+ typeof v === \\"object\\" &&
67004
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
67005
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
67006
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
67007
+ ) : undefined
65969
67008
  ;
65970
67009
 
65971
67010
  if (typeof decoded === \\"undefined\\") {
@@ -66464,7 +67503,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
66464
67503
  \\"orderedItems\\"];
66465
67504
  const obj = Array.isArray(prop) ? prop[i] : prop;
66466
67505
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
66467
- v = await this.#item_fromJsonLd(obj, options);
67506
+ try {
67507
+ v = await this.#item_fromJsonLd(obj, options);
67508
+ } catch (error) {
67509
+ if (!options.suppressError) throw error;
67510
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
67511
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
67512
+ { property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
67513
+ );
67514
+ continue;
67515
+ }
66468
67516
  }
66469
67517
  }
66470
67518
 
@@ -67215,7 +68263,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
67215
68263
  \\"orderedItems\\"];
67216
68264
  const obj = Array.isArray(prop) ? prop[i] : prop;
67217
68265
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
67218
- v = await this.#item_fromJsonLd(obj, options);
68266
+ try {
68267
+ v = await this.#item_fromJsonLd(obj, options);
68268
+ } catch (error) {
68269
+ if (!options.suppressError) throw error;
68270
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
68271
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
68272
+ { property: \\"https://www.w3.org/ns/activitystreams#items\\", index: i, error },
68273
+ );
68274
+ continue;
68275
+ }
67219
68276
  }
67220
68277
  }
67221
68278
 
@@ -68912,7 +69969,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
68912
69969
  \\"publicKey\\"];
68913
69970
  const doc = Array.isArray(prop) ? prop[0] : prop;
68914
69971
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
68915
- v = await this.#publicKey_fromJsonLd(doc, options);
69972
+ try {
69973
+ v = await this.#publicKey_fromJsonLd(doc, options);
69974
+ } catch (error) {
69975
+ if (!options.suppressError) throw error;
69976
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
69977
+ \\"Failed to parse embedded value of {property}: {error}\\",
69978
+ { property: \\"https://w3id.org/security#publicKey\\", error },
69979
+ );
69980
+ return null;
69981
+ }
68916
69982
  }
68917
69983
  }
68918
69984
 
@@ -69005,7 +70071,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69005
70071
  \\"publicKey\\"];
69006
70072
  const obj = Array.isArray(prop) ? prop[i] : prop;
69007
70073
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
69008
- v = await this.#publicKey_fromJsonLd(obj, options);
70074
+ try {
70075
+ v = await this.#publicKey_fromJsonLd(obj, options);
70076
+ } catch (error) {
70077
+ if (!options.suppressError) throw error;
70078
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70079
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
70080
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
70081
+ );
70082
+ continue;
70083
+ }
69009
70084
  }
69010
70085
  }
69011
70086
 
@@ -69224,7 +70299,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69224
70299
  \\"assertionMethod\\"];
69225
70300
  const doc = Array.isArray(prop) ? prop[0] : prop;
69226
70301
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
69227
- v = await this.#assertionMethod_fromJsonLd(doc, options);
70302
+ try {
70303
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
70304
+ } catch (error) {
70305
+ if (!options.suppressError) throw error;
70306
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70307
+ \\"Failed to parse embedded value of {property}: {error}\\",
70308
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
70309
+ );
70310
+ return null;
70311
+ }
69228
70312
  }
69229
70313
  }
69230
70314
 
@@ -69321,7 +70405,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69321
70405
  \\"assertionMethod\\"];
69322
70406
  const obj = Array.isArray(prop) ? prop[i] : prop;
69323
70407
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
69324
- v = await this.#assertionMethod_fromJsonLd(obj, options);
70408
+ try {
70409
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
70410
+ } catch (error) {
70411
+ if (!options.suppressError) throw error;
70412
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70413
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
70414
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
70415
+ );
70416
+ continue;
70417
+ }
69325
70418
  }
69326
70419
  }
69327
70420
 
@@ -69577,7 +70670,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69577
70670
  \\"inbox\\"];
69578
70671
  const doc = Array.isArray(prop) ? prop[0] : prop;
69579
70672
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
69580
- v = await this.#inbox_fromJsonLd(doc, options);
70673
+ try {
70674
+ v = await this.#inbox_fromJsonLd(doc, options);
70675
+ } catch (error) {
70676
+ if (!options.suppressError) throw error;
70677
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70678
+ \\"Failed to parse embedded value of {property}: {error}\\",
70679
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
70680
+ );
70681
+ return null;
70682
+ }
69581
70683
  }
69582
70684
  }
69583
70685
 
@@ -69810,7 +70912,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
69810
70912
  \\"outbox\\"];
69811
70913
  const doc = Array.isArray(prop) ? prop[0] : prop;
69812
70914
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
69813
- v = await this.#outbox_fromJsonLd(doc, options);
70915
+ try {
70916
+ v = await this.#outbox_fromJsonLd(doc, options);
70917
+ } catch (error) {
70918
+ if (!options.suppressError) throw error;
70919
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
70920
+ \\"Failed to parse embedded value of {property}: {error}\\",
70921
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
70922
+ );
70923
+ return null;
70924
+ }
69814
70925
  }
69815
70926
  }
69816
70927
 
@@ -70029,7 +71140,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70029
71140
  \\"following\\"];
70030
71141
  const doc = Array.isArray(prop) ? prop[0] : prop;
70031
71142
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70032
- v = await this.#following_fromJsonLd(doc, options);
71143
+ try {
71144
+ v = await this.#following_fromJsonLd(doc, options);
71145
+ } catch (error) {
71146
+ if (!options.suppressError) throw error;
71147
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71148
+ \\"Failed to parse embedded value of {property}: {error}\\",
71149
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
71150
+ );
71151
+ return null;
71152
+ }
70033
71153
  }
70034
71154
  }
70035
71155
 
@@ -70251,7 +71371,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70251
71371
  \\"followers\\"];
70252
71372
  const doc = Array.isArray(prop) ? prop[0] : prop;
70253
71373
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70254
- v = await this.#followers_fromJsonLd(doc, options);
71374
+ try {
71375
+ v = await this.#followers_fromJsonLd(doc, options);
71376
+ } catch (error) {
71377
+ if (!options.suppressError) throw error;
71378
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71379
+ \\"Failed to parse embedded value of {property}: {error}\\",
71380
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
71381
+ );
71382
+ return null;
71383
+ }
70255
71384
  }
70256
71385
  }
70257
71386
 
@@ -70471,7 +71600,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70471
71600
  \\"liked\\"];
70472
71601
  const doc = Array.isArray(prop) ? prop[0] : prop;
70473
71602
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70474
- v = await this.#liked_fromJsonLd(doc, options);
71603
+ try {
71604
+ v = await this.#liked_fromJsonLd(doc, options);
71605
+ } catch (error) {
71606
+ if (!options.suppressError) throw error;
71607
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71608
+ \\"Failed to parse embedded value of {property}: {error}\\",
71609
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
71610
+ );
71611
+ return null;
71612
+ }
70475
71613
  }
70476
71614
  }
70477
71615
 
@@ -70689,7 +71827,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70689
71827
  \\"featured\\"];
70690
71828
  const doc = Array.isArray(prop) ? prop[0] : prop;
70691
71829
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70692
- v = await this.#featured_fromJsonLd(doc, options);
71830
+ try {
71831
+ v = await this.#featured_fromJsonLd(doc, options);
71832
+ } catch (error) {
71833
+ if (!options.suppressError) throw error;
71834
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
71835
+ \\"Failed to parse embedded value of {property}: {error}\\",
71836
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
71837
+ );
71838
+ return null;
71839
+ }
70693
71840
  }
70694
71841
  }
70695
71842
 
@@ -70907,7 +72054,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
70907
72054
  \\"featuredTags\\"];
70908
72055
  const doc = Array.isArray(prop) ? prop[0] : prop;
70909
72056
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
70910
- v = await this.#featuredTags_fromJsonLd(doc, options);
72057
+ try {
72058
+ v = await this.#featuredTags_fromJsonLd(doc, options);
72059
+ } catch (error) {
72060
+ if (!options.suppressError) throw error;
72061
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72062
+ \\"Failed to parse embedded value of {property}: {error}\\",
72063
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
72064
+ );
72065
+ return null;
72066
+ }
70911
72067
  }
70912
72068
  }
70913
72069
 
@@ -71123,7 +72279,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71123
72279
  \\"streams\\"];
71124
72280
  const obj = Array.isArray(prop) ? prop[i] : prop;
71125
72281
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
71126
- v = await this.#stream_fromJsonLd(obj, options);
72282
+ try {
72283
+ v = await this.#stream_fromJsonLd(obj, options);
72284
+ } catch (error) {
72285
+ if (!options.suppressError) throw error;
72286
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72287
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
72288
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
72289
+ );
72290
+ continue;
72291
+ }
71127
72292
  }
71128
72293
  }
71129
72294
 
@@ -71449,7 +72614,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71449
72614
  \\"movedTo\\"];
71450
72615
  const doc = Array.isArray(prop) ? prop[0] : prop;
71451
72616
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
71452
- v = await this.#successor_fromJsonLd(doc, options);
72617
+ try {
72618
+ v = await this.#successor_fromJsonLd(doc, options);
72619
+ } catch (error) {
72620
+ if (!options.suppressError) throw error;
72621
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72622
+ \\"Failed to parse embedded value of {property}: {error}\\",
72623
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
72624
+ );
72625
+ return null;
72626
+ }
71453
72627
  }
71454
72628
  }
71455
72629
 
@@ -71703,7 +72877,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71703
72877
  \\"alsoKnownAs\\"];
71704
72878
  const doc = Array.isArray(prop) ? prop[0] : prop;
71705
72879
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
71706
- v = await this.#alias_fromJsonLd(doc, options);
72880
+ try {
72881
+ v = await this.#alias_fromJsonLd(doc, options);
72882
+ } catch (error) {
72883
+ if (!options.suppressError) throw error;
72884
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72885
+ \\"Failed to parse embedded value of {property}: {error}\\",
72886
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
72887
+ );
72888
+ return null;
72889
+ }
71707
72890
  }
71708
72891
  }
71709
72892
 
@@ -71800,7 +72983,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
71800
72983
  \\"alsoKnownAs\\"];
71801
72984
  const obj = Array.isArray(prop) ? prop[i] : prop;
71802
72985
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
71803
- v = await this.#alias_fromJsonLd(obj, options);
72986
+ try {
72987
+ v = await this.#alias_fromJsonLd(obj, options);
72988
+ } catch (error) {
72989
+ if (!options.suppressError) throw error;
72990
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
72991
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
72992
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
72993
+ );
72994
+ continue;
72995
+ }
71804
72996
  }
71805
72997
  }
71806
72998
 
@@ -72019,7 +73211,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72019
73211
  \\"service\\"];
72020
73212
  const doc = Array.isArray(prop) ? prop[0] : prop;
72021
73213
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
72022
- v = await this.#service_fromJsonLd(doc, options);
73214
+ try {
73215
+ v = await this.#service_fromJsonLd(doc, options);
73216
+ } catch (error) {
73217
+ if (!options.suppressError) throw error;
73218
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
73219
+ \\"Failed to parse embedded value of {property}: {error}\\",
73220
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
73221
+ );
73222
+ return null;
73223
+ }
72023
73224
  }
72024
73225
  }
72025
73226
 
@@ -72116,7 +73317,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
72116
73317
  \\"service\\"];
72117
73318
  const obj = Array.isArray(prop) ? prop[i] : prop;
72118
73319
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
72119
- v = await this.#service_fromJsonLd(obj, options);
73320
+ try {
73321
+ v = await this.#service_fromJsonLd(obj, options);
73322
+ } catch (error) {
73323
+ if (!options.suppressError) throw error;
73324
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
73325
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
73326
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
73327
+ );
73328
+ continue;
73329
+ }
72120
73330
  }
72121
73331
  }
72122
73332
 
@@ -76130,7 +77340,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76130
77340
  \\"publicKey\\"];
76131
77341
  const doc = Array.isArray(prop) ? prop[0] : prop;
76132
77342
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
76133
- v = await this.#publicKey_fromJsonLd(doc, options);
77343
+ try {
77344
+ v = await this.#publicKey_fromJsonLd(doc, options);
77345
+ } catch (error) {
77346
+ if (!options.suppressError) throw error;
77347
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
77348
+ \\"Failed to parse embedded value of {property}: {error}\\",
77349
+ { property: \\"https://w3id.org/security#publicKey\\", error },
77350
+ );
77351
+ return null;
77352
+ }
76134
77353
  }
76135
77354
  }
76136
77355
 
@@ -76223,7 +77442,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76223
77442
  \\"publicKey\\"];
76224
77443
  const obj = Array.isArray(prop) ? prop[i] : prop;
76225
77444
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
76226
- v = await this.#publicKey_fromJsonLd(obj, options);
77445
+ try {
77446
+ v = await this.#publicKey_fromJsonLd(obj, options);
77447
+ } catch (error) {
77448
+ if (!options.suppressError) throw error;
77449
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
77450
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
77451
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
77452
+ );
77453
+ continue;
77454
+ }
76227
77455
  }
76228
77456
  }
76229
77457
 
@@ -76442,7 +77670,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76442
77670
  \\"assertionMethod\\"];
76443
77671
  const doc = Array.isArray(prop) ? prop[0] : prop;
76444
77672
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
76445
- v = await this.#assertionMethod_fromJsonLd(doc, options);
77673
+ try {
77674
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
77675
+ } catch (error) {
77676
+ if (!options.suppressError) throw error;
77677
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
77678
+ \\"Failed to parse embedded value of {property}: {error}\\",
77679
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
77680
+ );
77681
+ return null;
77682
+ }
76446
77683
  }
76447
77684
  }
76448
77685
 
@@ -76539,7 +77776,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76539
77776
  \\"assertionMethod\\"];
76540
77777
  const obj = Array.isArray(prop) ? prop[i] : prop;
76541
77778
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
76542
- v = await this.#assertionMethod_fromJsonLd(obj, options);
77779
+ try {
77780
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
77781
+ } catch (error) {
77782
+ if (!options.suppressError) throw error;
77783
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
77784
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
77785
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
77786
+ );
77787
+ continue;
77788
+ }
76543
77789
  }
76544
77790
  }
76545
77791
 
@@ -76795,7 +78041,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
76795
78041
  \\"inbox\\"];
76796
78042
  const doc = Array.isArray(prop) ? prop[0] : prop;
76797
78043
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
76798
- v = await this.#inbox_fromJsonLd(doc, options);
78044
+ try {
78045
+ v = await this.#inbox_fromJsonLd(doc, options);
78046
+ } catch (error) {
78047
+ if (!options.suppressError) throw error;
78048
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
78049
+ \\"Failed to parse embedded value of {property}: {error}\\",
78050
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
78051
+ );
78052
+ return null;
78053
+ }
76799
78054
  }
76800
78055
  }
76801
78056
 
@@ -77028,7 +78283,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77028
78283
  \\"outbox\\"];
77029
78284
  const doc = Array.isArray(prop) ? prop[0] : prop;
77030
78285
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
77031
- v = await this.#outbox_fromJsonLd(doc, options);
78286
+ try {
78287
+ v = await this.#outbox_fromJsonLd(doc, options);
78288
+ } catch (error) {
78289
+ if (!options.suppressError) throw error;
78290
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
78291
+ \\"Failed to parse embedded value of {property}: {error}\\",
78292
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
78293
+ );
78294
+ return null;
78295
+ }
77032
78296
  }
77033
78297
  }
77034
78298
 
@@ -77247,7 +78511,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77247
78511
  \\"following\\"];
77248
78512
  const doc = Array.isArray(prop) ? prop[0] : prop;
77249
78513
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
77250
- v = await this.#following_fromJsonLd(doc, options);
78514
+ try {
78515
+ v = await this.#following_fromJsonLd(doc, options);
78516
+ } catch (error) {
78517
+ if (!options.suppressError) throw error;
78518
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
78519
+ \\"Failed to parse embedded value of {property}: {error}\\",
78520
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
78521
+ );
78522
+ return null;
78523
+ }
77251
78524
  }
77252
78525
  }
77253
78526
 
@@ -77469,7 +78742,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77469
78742
  \\"followers\\"];
77470
78743
  const doc = Array.isArray(prop) ? prop[0] : prop;
77471
78744
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
77472
- v = await this.#followers_fromJsonLd(doc, options);
78745
+ try {
78746
+ v = await this.#followers_fromJsonLd(doc, options);
78747
+ } catch (error) {
78748
+ if (!options.suppressError) throw error;
78749
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
78750
+ \\"Failed to parse embedded value of {property}: {error}\\",
78751
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
78752
+ );
78753
+ return null;
78754
+ }
77473
78755
  }
77474
78756
  }
77475
78757
 
@@ -77689,7 +78971,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77689
78971
  \\"liked\\"];
77690
78972
  const doc = Array.isArray(prop) ? prop[0] : prop;
77691
78973
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
77692
- v = await this.#liked_fromJsonLd(doc, options);
78974
+ try {
78975
+ v = await this.#liked_fromJsonLd(doc, options);
78976
+ } catch (error) {
78977
+ if (!options.suppressError) throw error;
78978
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
78979
+ \\"Failed to parse embedded value of {property}: {error}\\",
78980
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
78981
+ );
78982
+ return null;
78983
+ }
77693
78984
  }
77694
78985
  }
77695
78986
 
@@ -77907,7 +79198,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
77907
79198
  \\"featured\\"];
77908
79199
  const doc = Array.isArray(prop) ? prop[0] : prop;
77909
79200
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
77910
- v = await this.#featured_fromJsonLd(doc, options);
79201
+ try {
79202
+ v = await this.#featured_fromJsonLd(doc, options);
79203
+ } catch (error) {
79204
+ if (!options.suppressError) throw error;
79205
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
79206
+ \\"Failed to parse embedded value of {property}: {error}\\",
79207
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
79208
+ );
79209
+ return null;
79210
+ }
77911
79211
  }
77912
79212
  }
77913
79213
 
@@ -78125,7 +79425,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78125
79425
  \\"featuredTags\\"];
78126
79426
  const doc = Array.isArray(prop) ? prop[0] : prop;
78127
79427
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
78128
- v = await this.#featuredTags_fromJsonLd(doc, options);
79428
+ try {
79429
+ v = await this.#featuredTags_fromJsonLd(doc, options);
79430
+ } catch (error) {
79431
+ if (!options.suppressError) throw error;
79432
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
79433
+ \\"Failed to parse embedded value of {property}: {error}\\",
79434
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
79435
+ );
79436
+ return null;
79437
+ }
78129
79438
  }
78130
79439
  }
78131
79440
 
@@ -78341,7 +79650,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78341
79650
  \\"streams\\"];
78342
79651
  const obj = Array.isArray(prop) ? prop[i] : prop;
78343
79652
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
78344
- v = await this.#stream_fromJsonLd(obj, options);
79653
+ try {
79654
+ v = await this.#stream_fromJsonLd(obj, options);
79655
+ } catch (error) {
79656
+ if (!options.suppressError) throw error;
79657
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
79658
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
79659
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
79660
+ );
79661
+ continue;
79662
+ }
78345
79663
  }
78346
79664
  }
78347
79665
 
@@ -78667,7 +79985,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78667
79985
  \\"movedTo\\"];
78668
79986
  const doc = Array.isArray(prop) ? prop[0] : prop;
78669
79987
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
78670
- v = await this.#successor_fromJsonLd(doc, options);
79988
+ try {
79989
+ v = await this.#successor_fromJsonLd(doc, options);
79990
+ } catch (error) {
79991
+ if (!options.suppressError) throw error;
79992
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
79993
+ \\"Failed to parse embedded value of {property}: {error}\\",
79994
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
79995
+ );
79996
+ return null;
79997
+ }
78671
79998
  }
78672
79999
  }
78673
80000
 
@@ -78921,7 +80248,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
78921
80248
  \\"alsoKnownAs\\"];
78922
80249
  const doc = Array.isArray(prop) ? prop[0] : prop;
78923
80250
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
78924
- v = await this.#alias_fromJsonLd(doc, options);
80251
+ try {
80252
+ v = await this.#alias_fromJsonLd(doc, options);
80253
+ } catch (error) {
80254
+ if (!options.suppressError) throw error;
80255
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
80256
+ \\"Failed to parse embedded value of {property}: {error}\\",
80257
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
80258
+ );
80259
+ return null;
80260
+ }
78925
80261
  }
78926
80262
  }
78927
80263
 
@@ -79018,7 +80354,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
79018
80354
  \\"alsoKnownAs\\"];
79019
80355
  const obj = Array.isArray(prop) ? prop[i] : prop;
79020
80356
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
79021
- v = await this.#alias_fromJsonLd(obj, options);
80357
+ try {
80358
+ v = await this.#alias_fromJsonLd(obj, options);
80359
+ } catch (error) {
80360
+ if (!options.suppressError) throw error;
80361
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
80362
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
80363
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
80364
+ );
80365
+ continue;
80366
+ }
79022
80367
  }
79023
80368
  }
79024
80369
 
@@ -79237,7 +80582,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
79237
80582
  \\"service\\"];
79238
80583
  const doc = Array.isArray(prop) ? prop[0] : prop;
79239
80584
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
79240
- v = await this.#service_fromJsonLd(doc, options);
80585
+ try {
80586
+ v = await this.#service_fromJsonLd(doc, options);
80587
+ } catch (error) {
80588
+ if (!options.suppressError) throw error;
80589
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
80590
+ \\"Failed to parse embedded value of {property}: {error}\\",
80591
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
80592
+ );
80593
+ return null;
80594
+ }
79241
80595
  }
79242
80596
  }
79243
80597
 
@@ -79334,7 +80688,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
79334
80688
  \\"service\\"];
79335
80689
  const obj = Array.isArray(prop) ? prop[i] : prop;
79336
80690
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
79337
- v = await this.#service_fromJsonLd(obj, options);
80691
+ try {
80692
+ v = await this.#service_fromJsonLd(obj, options);
80693
+ } catch (error) {
80694
+ if (!options.suppressError) throw error;
80695
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
80696
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
80697
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
80698
+ );
80699
+ continue;
80700
+ }
79338
80701
  }
79339
80702
  }
79340
80703
 
@@ -83220,7 +84583,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
83220
84583
  \\"describes\\"];
83221
84584
  const doc = Array.isArray(prop) ? prop[0] : prop;
83222
84585
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
83223
- v = await this.#describes_fromJsonLd(doc, options);
84586
+ try {
84587
+ v = await this.#describes_fromJsonLd(doc, options);
84588
+ } catch (error) {
84589
+ if (!options.suppressError) throw error;
84590
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
84591
+ \\"Failed to parse embedded value of {property}: {error}\\",
84592
+ { property: \\"https://www.w3.org/ns/activitystreams#describes\\", error },
84593
+ );
84594
+ return null;
84595
+ }
83224
84596
  }
83225
84597
  }
83226
84598
 
@@ -84123,7 +85495,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84123
85495
  \\"oneOf\\"];
84124
85496
  const obj = Array.isArray(prop) ? prop[i] : prop;
84125
85497
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
84126
- v = await this.#exclusiveOption_fromJsonLd(obj, options);
85498
+ try {
85499
+ v = await this.#exclusiveOption_fromJsonLd(obj, options);
85500
+ } catch (error) {
85501
+ if (!options.suppressError) throw error;
85502
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
85503
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
85504
+ { property: \\"https://www.w3.org/ns/activitystreams#oneOf\\", index: i, error },
85505
+ );
85506
+ continue;
85507
+ }
84127
85508
  }
84128
85509
  }
84129
85510
 
@@ -84342,7 +85723,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84342
85723
  \\"anyOf\\"];
84343
85724
  const obj = Array.isArray(prop) ? prop[i] : prop;
84344
85725
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
84345
- v = await this.#inclusiveOption_fromJsonLd(obj, options);
85726
+ try {
85727
+ v = await this.#inclusiveOption_fromJsonLd(obj, options);
85728
+ } catch (error) {
85729
+ if (!options.suppressError) throw error;
85730
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
85731
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
85732
+ { property: \\"https://www.w3.org/ns/activitystreams#anyOf\\", index: i, error },
85733
+ );
85734
+ continue;
85735
+ }
84346
85736
  }
84347
85737
  }
84348
85738
 
@@ -84590,7 +85980,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84590
85980
  \\"quote\\"];
84591
85981
  const doc = Array.isArray(prop) ? prop[0] : prop;
84592
85982
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
84593
- v = await this.#quote_fromJsonLd(doc, options);
85983
+ try {
85984
+ v = await this.#quote_fromJsonLd(doc, options);
85985
+ } catch (error) {
85986
+ if (!options.suppressError) throw error;
85987
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
85988
+ \\"Failed to parse embedded value of {property}: {error}\\",
85989
+ { property: \\"https://w3id.org/fep/044f#quote\\", error },
85990
+ );
85991
+ return null;
85992
+ }
84594
85993
  }
84595
85994
  }
84596
85995
 
@@ -84829,7 +86228,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
84829
86228
  \\"quoteAuthorization\\"];
84830
86229
  const doc = Array.isArray(prop) ? prop[0] : prop;
84831
86230
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
84832
- v = await this.#quoteAuthorization_fromJsonLd(doc, options);
86231
+ try {
86232
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
86233
+ } catch (error) {
86234
+ if (!options.suppressError) throw error;
86235
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
86236
+ \\"Failed to parse embedded value of {property}: {error}\\",
86237
+ { property: \\"https://w3id.org/fep/044f#quoteAuthorization\\", error },
86238
+ );
86239
+ return null;
86240
+ }
84833
86241
  }
84834
86242
  }
84835
86243
 
@@ -85382,7 +86790,11 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
85382
86790
  if (v == null) continue;
85383
86791
 
85384
86792
  const decoded =
85385
- new URL(v[\\"@value\\"])
86793
+ typeof v === \\"object\\" &&
86794
+ ((typeof v[\\"@id\\"] === \\"string\\" && canDecodeIri(v[\\"@id\\"])) ||
86795
+ (typeof v[\\"@value\\"] === \\"string\\" && canDecodeIri(v[\\"@value\\"]))) ? decodeIri(
86796
+ typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]
86797
+ ) : undefined
85386
86798
  ;
85387
86799
 
85388
86800
  if (typeof decoded === \\"undefined\\") {
@@ -86804,7 +88216,16 @@ relationships?: (Object | URL)[];}
86804
88216
  \\"subject\\"];
86805
88217
  const doc = Array.isArray(prop) ? prop[0] : prop;
86806
88218
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
86807
- v = await this.#subject_fromJsonLd(doc, options);
88219
+ try {
88220
+ v = await this.#subject_fromJsonLd(doc, options);
88221
+ } catch (error) {
88222
+ if (!options.suppressError) throw error;
88223
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
88224
+ \\"Failed to parse embedded value of {property}: {error}\\",
88225
+ { property: \\"https://www.w3.org/ns/activitystreams#subject\\", error },
88226
+ );
88227
+ return null;
88228
+ }
86808
88229
  }
86809
88230
  }
86810
88231
 
@@ -87019,7 +88440,16 @@ relationships?: (Object | URL)[];}
87019
88440
  \\"object\\"];
87020
88441
  const doc = Array.isArray(prop) ? prop[0] : prop;
87021
88442
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
87022
- v = await this.#object_fromJsonLd(doc, options);
88443
+ try {
88444
+ v = await this.#object_fromJsonLd(doc, options);
88445
+ } catch (error) {
88446
+ if (!options.suppressError) throw error;
88447
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
88448
+ \\"Failed to parse embedded value of {property}: {error}\\",
88449
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", error },
88450
+ );
88451
+ return null;
88452
+ }
87023
88453
  }
87024
88454
  }
87025
88455
 
@@ -87113,7 +88543,16 @@ relationships?: (Object | URL)[];}
87113
88543
  \\"object\\"];
87114
88544
  const obj = Array.isArray(prop) ? prop[i] : prop;
87115
88545
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
87116
- v = await this.#object_fromJsonLd(obj, options);
88546
+ try {
88547
+ v = await this.#object_fromJsonLd(obj, options);
88548
+ } catch (error) {
88549
+ if (!options.suppressError) throw error;
88550
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
88551
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
88552
+ { property: \\"https://www.w3.org/ns/activitystreams#object\\", index: i, error },
88553
+ );
88554
+ continue;
88555
+ }
87117
88556
  }
87118
88557
  }
87119
88558
 
@@ -87331,7 +88770,16 @@ relationships?: (Object | URL)[];}
87331
88770
  \\"relationship\\"];
87332
88771
  const doc = Array.isArray(prop) ? prop[0] : prop;
87333
88772
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
87334
- v = await this.#relationship_fromJsonLd(doc, options);
88773
+ try {
88774
+ v = await this.#relationship_fromJsonLd(doc, options);
88775
+ } catch (error) {
88776
+ if (!options.suppressError) throw error;
88777
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
88778
+ \\"Failed to parse embedded value of {property}: {error}\\",
88779
+ { property: \\"https://www.w3.org/ns/activitystreams#relationship\\", error },
88780
+ );
88781
+ return null;
88782
+ }
87335
88783
  }
87336
88784
  }
87337
88785
 
@@ -87427,7 +88875,16 @@ relationships?: (Object | URL)[];}
87427
88875
  \\"relationship\\"];
87428
88876
  const obj = Array.isArray(prop) ? prop[i] : prop;
87429
88877
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
87430
- v = await this.#relationship_fromJsonLd(obj, options);
88878
+ try {
88879
+ v = await this.#relationship_fromJsonLd(obj, options);
88880
+ } catch (error) {
88881
+ if (!options.suppressError) throw error;
88882
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
88883
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
88884
+ { property: \\"https://www.w3.org/ns/activitystreams#relationship\\", index: i, error },
88885
+ );
88886
+ continue;
88887
+ }
87431
88888
  }
87432
88889
  }
87433
88890
 
@@ -89566,7 +91023,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89566
91023
  \\"publicKey\\"];
89567
91024
  const doc = Array.isArray(prop) ? prop[0] : prop;
89568
91025
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
89569
- v = await this.#publicKey_fromJsonLd(doc, options);
91026
+ try {
91027
+ v = await this.#publicKey_fromJsonLd(doc, options);
91028
+ } catch (error) {
91029
+ if (!options.suppressError) throw error;
91030
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
91031
+ \\"Failed to parse embedded value of {property}: {error}\\",
91032
+ { property: \\"https://w3id.org/security#publicKey\\", error },
91033
+ );
91034
+ return null;
91035
+ }
89570
91036
  }
89571
91037
  }
89572
91038
 
@@ -89659,7 +91125,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89659
91125
  \\"publicKey\\"];
89660
91126
  const obj = Array.isArray(prop) ? prop[i] : prop;
89661
91127
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
89662
- v = await this.#publicKey_fromJsonLd(obj, options);
91128
+ try {
91129
+ v = await this.#publicKey_fromJsonLd(obj, options);
91130
+ } catch (error) {
91131
+ if (!options.suppressError) throw error;
91132
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
91133
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
91134
+ { property: \\"https://w3id.org/security#publicKey\\", index: i, error },
91135
+ );
91136
+ continue;
91137
+ }
89663
91138
  }
89664
91139
  }
89665
91140
 
@@ -89878,7 +91353,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89878
91353
  \\"assertionMethod\\"];
89879
91354
  const doc = Array.isArray(prop) ? prop[0] : prop;
89880
91355
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
89881
- v = await this.#assertionMethod_fromJsonLd(doc, options);
91356
+ try {
91357
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
91358
+ } catch (error) {
91359
+ if (!options.suppressError) throw error;
91360
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
91361
+ \\"Failed to parse embedded value of {property}: {error}\\",
91362
+ { property: \\"https://w3id.org/security#assertionMethod\\", error },
91363
+ );
91364
+ return null;
91365
+ }
89882
91366
  }
89883
91367
  }
89884
91368
 
@@ -89975,7 +91459,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
89975
91459
  \\"assertionMethod\\"];
89976
91460
  const obj = Array.isArray(prop) ? prop[i] : prop;
89977
91461
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
89978
- v = await this.#assertionMethod_fromJsonLd(obj, options);
91462
+ try {
91463
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
91464
+ } catch (error) {
91465
+ if (!options.suppressError) throw error;
91466
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
91467
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
91468
+ { property: \\"https://w3id.org/security#assertionMethod\\", index: i, error },
91469
+ );
91470
+ continue;
91471
+ }
89979
91472
  }
89980
91473
  }
89981
91474
 
@@ -90231,7 +91724,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90231
91724
  \\"inbox\\"];
90232
91725
  const doc = Array.isArray(prop) ? prop[0] : prop;
90233
91726
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
90234
- v = await this.#inbox_fromJsonLd(doc, options);
91727
+ try {
91728
+ v = await this.#inbox_fromJsonLd(doc, options);
91729
+ } catch (error) {
91730
+ if (!options.suppressError) throw error;
91731
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
91732
+ \\"Failed to parse embedded value of {property}: {error}\\",
91733
+ { property: \\"http://www.w3.org/ns/ldp#inbox\\", error },
91734
+ );
91735
+ return null;
91736
+ }
90235
91737
  }
90236
91738
  }
90237
91739
 
@@ -90464,7 +91966,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90464
91966
  \\"outbox\\"];
90465
91967
  const doc = Array.isArray(prop) ? prop[0] : prop;
90466
91968
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
90467
- v = await this.#outbox_fromJsonLd(doc, options);
91969
+ try {
91970
+ v = await this.#outbox_fromJsonLd(doc, options);
91971
+ } catch (error) {
91972
+ if (!options.suppressError) throw error;
91973
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
91974
+ \\"Failed to parse embedded value of {property}: {error}\\",
91975
+ { property: \\"https://www.w3.org/ns/activitystreams#outbox\\", error },
91976
+ );
91977
+ return null;
91978
+ }
90468
91979
  }
90469
91980
  }
90470
91981
 
@@ -90683,7 +92194,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90683
92194
  \\"following\\"];
90684
92195
  const doc = Array.isArray(prop) ? prop[0] : prop;
90685
92196
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
90686
- v = await this.#following_fromJsonLd(doc, options);
92197
+ try {
92198
+ v = await this.#following_fromJsonLd(doc, options);
92199
+ } catch (error) {
92200
+ if (!options.suppressError) throw error;
92201
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
92202
+ \\"Failed to parse embedded value of {property}: {error}\\",
92203
+ { property: \\"https://www.w3.org/ns/activitystreams#following\\", error },
92204
+ );
92205
+ return null;
92206
+ }
90687
92207
  }
90688
92208
  }
90689
92209
 
@@ -90905,7 +92425,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
90905
92425
  \\"followers\\"];
90906
92426
  const doc = Array.isArray(prop) ? prop[0] : prop;
90907
92427
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
90908
- v = await this.#followers_fromJsonLd(doc, options);
92428
+ try {
92429
+ v = await this.#followers_fromJsonLd(doc, options);
92430
+ } catch (error) {
92431
+ if (!options.suppressError) throw error;
92432
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
92433
+ \\"Failed to parse embedded value of {property}: {error}\\",
92434
+ { property: \\"https://www.w3.org/ns/activitystreams#followers\\", error },
92435
+ );
92436
+ return null;
92437
+ }
90909
92438
  }
90910
92439
  }
90911
92440
 
@@ -91125,7 +92654,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91125
92654
  \\"liked\\"];
91126
92655
  const doc = Array.isArray(prop) ? prop[0] : prop;
91127
92656
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
91128
- v = await this.#liked_fromJsonLd(doc, options);
92657
+ try {
92658
+ v = await this.#liked_fromJsonLd(doc, options);
92659
+ } catch (error) {
92660
+ if (!options.suppressError) throw error;
92661
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
92662
+ \\"Failed to parse embedded value of {property}: {error}\\",
92663
+ { property: \\"https://www.w3.org/ns/activitystreams#liked\\", error },
92664
+ );
92665
+ return null;
92666
+ }
91129
92667
  }
91130
92668
  }
91131
92669
 
@@ -91343,7 +92881,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91343
92881
  \\"featured\\"];
91344
92882
  const doc = Array.isArray(prop) ? prop[0] : prop;
91345
92883
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
91346
- v = await this.#featured_fromJsonLd(doc, options);
92884
+ try {
92885
+ v = await this.#featured_fromJsonLd(doc, options);
92886
+ } catch (error) {
92887
+ if (!options.suppressError) throw error;
92888
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
92889
+ \\"Failed to parse embedded value of {property}: {error}\\",
92890
+ { property: \\"http://joinmastodon.org/ns#featured\\", error },
92891
+ );
92892
+ return null;
92893
+ }
91347
92894
  }
91348
92895
  }
91349
92896
 
@@ -91561,7 +93108,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91561
93108
  \\"featuredTags\\"];
91562
93109
  const doc = Array.isArray(prop) ? prop[0] : prop;
91563
93110
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
91564
- v = await this.#featuredTags_fromJsonLd(doc, options);
93111
+ try {
93112
+ v = await this.#featuredTags_fromJsonLd(doc, options);
93113
+ } catch (error) {
93114
+ if (!options.suppressError) throw error;
93115
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
93116
+ \\"Failed to parse embedded value of {property}: {error}\\",
93117
+ { property: \\"http://joinmastodon.org/ns#featuredTags\\", error },
93118
+ );
93119
+ return null;
93120
+ }
91565
93121
  }
91566
93122
  }
91567
93123
 
@@ -91777,7 +93333,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
91777
93333
  \\"streams\\"];
91778
93334
  const obj = Array.isArray(prop) ? prop[i] : prop;
91779
93335
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
91780
- v = await this.#stream_fromJsonLd(obj, options);
93336
+ try {
93337
+ v = await this.#stream_fromJsonLd(obj, options);
93338
+ } catch (error) {
93339
+ if (!options.suppressError) throw error;
93340
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
93341
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
93342
+ { property: \\"https://www.w3.org/ns/activitystreams#streams\\", index: i, error },
93343
+ );
93344
+ continue;
93345
+ }
91781
93346
  }
91782
93347
  }
91783
93348
 
@@ -92103,7 +93668,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92103
93668
  \\"movedTo\\"];
92104
93669
  const doc = Array.isArray(prop) ? prop[0] : prop;
92105
93670
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
92106
- v = await this.#successor_fromJsonLd(doc, options);
93671
+ try {
93672
+ v = await this.#successor_fromJsonLd(doc, options);
93673
+ } catch (error) {
93674
+ if (!options.suppressError) throw error;
93675
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
93676
+ \\"Failed to parse embedded value of {property}: {error}\\",
93677
+ { property: \\"https://www.w3.org/ns/activitystreams#movedTo\\", error },
93678
+ );
93679
+ return null;
93680
+ }
92107
93681
  }
92108
93682
  }
92109
93683
 
@@ -92357,7 +93931,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92357
93931
  \\"alsoKnownAs\\"];
92358
93932
  const doc = Array.isArray(prop) ? prop[0] : prop;
92359
93933
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
92360
- v = await this.#alias_fromJsonLd(doc, options);
93934
+ try {
93935
+ v = await this.#alias_fromJsonLd(doc, options);
93936
+ } catch (error) {
93937
+ if (!options.suppressError) throw error;
93938
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
93939
+ \\"Failed to parse embedded value of {property}: {error}\\",
93940
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", error },
93941
+ );
93942
+ return null;
93943
+ }
92361
93944
  }
92362
93945
  }
92363
93946
 
@@ -92454,7 +94037,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92454
94037
  \\"alsoKnownAs\\"];
92455
94038
  const obj = Array.isArray(prop) ? prop[i] : prop;
92456
94039
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
92457
- v = await this.#alias_fromJsonLd(obj, options);
94040
+ try {
94041
+ v = await this.#alias_fromJsonLd(obj, options);
94042
+ } catch (error) {
94043
+ if (!options.suppressError) throw error;
94044
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
94045
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
94046
+ { property: \\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\", index: i, error },
94047
+ );
94048
+ continue;
94049
+ }
92458
94050
  }
92459
94051
  }
92460
94052
 
@@ -92673,7 +94265,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92673
94265
  \\"service\\"];
92674
94266
  const doc = Array.isArray(prop) ? prop[0] : prop;
92675
94267
  if (doc != null && typeof doc === \\"object\\" && \\"@context\\" in doc) {
92676
- v = await this.#service_fromJsonLd(doc, options);
94268
+ try {
94269
+ v = await this.#service_fromJsonLd(doc, options);
94270
+ } catch (error) {
94271
+ if (!options.suppressError) throw error;
94272
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
94273
+ \\"Failed to parse embedded value of {property}: {error}\\",
94274
+ { property: \\"https://www.w3.org/ns/did#service\\", error },
94275
+ );
94276
+ return null;
94277
+ }
92677
94278
  }
92678
94279
  }
92679
94280
 
@@ -92770,7 +94371,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
92770
94371
  \\"service\\"];
92771
94372
  const obj = Array.isArray(prop) ? prop[i] : prop;
92772
94373
  if (obj != null && typeof obj === \\"object\\" && \\"@context\\" in obj) {
92773
- v = await this.#service_fromJsonLd(obj, options);
94374
+ try {
94375
+ v = await this.#service_fromJsonLd(obj, options);
94376
+ } catch (error) {
94377
+ if (!options.suppressError) throw error;
94378
+ getLogger([\\"fedify\\", \\"vocab\\"]).debug(
94379
+ \\"Failed to parse embedded value of {property} at index {index}: {error}\\",
94380
+ { property: \\"https://www.w3.org/ns/did#service\\", index: i, error },
94381
+ );
94382
+ continue;
94383
+ }
92774
94384
  }
92775
94385
  }
92776
94386