@fedify/vocab 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.
@@ -121,6 +121,12 @@ var vocab_exports = /* @__PURE__ */ __exportAll({
121
121
  getEntityTypeById: () => getEntityTypeById,
122
122
  isEntityType: () => isEntityType
123
123
  });
124
+ function canDecodeIri(iri) {
125
+ return URL.canParse(iri) || iri.startsWith("at://");
126
+ }
127
+ function decodeIri(iri) {
128
+ return !URL.canParse(iri) && iri.startsWith("at://") ? new URL("at://" + encodeURIComponent(iri.substring(5))) : new URL(iri);
129
+ }
124
130
  function isValidLanguageTag(language) {
125
131
  try {
126
132
  new Intl.Locale(language);
@@ -926,7 +932,17 @@ var Object$1 = class Object$1 {
926
932
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
927
933
  const prop = this._cachedJsonLd["attachment"];
928
934
  const obj = Array.isArray(prop) ? prop[i] : prop;
929
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attachment_fromJsonLd(obj, options);
935
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
936
+ v = await this.#attachment_fromJsonLd(obj, options);
937
+ } catch (error) {
938
+ if (!options.suppressError) throw error;
939
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
940
+ property: "https://www.w3.org/ns/activitystreams#attachment",
941
+ index: i,
942
+ error
943
+ });
944
+ continue;
945
+ }
930
946
  }
931
947
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
932
948
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1095,7 +1111,16 @@ var Object$1 = class Object$1 {
1095
1111
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
1096
1112
  const prop = this._cachedJsonLd["attributedTo"];
1097
1113
  const doc = Array.isArray(prop) ? prop[0] : prop;
1098
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#attribution_fromJsonLd(doc, options);
1114
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1115
+ v = await this.#attribution_fromJsonLd(doc, options);
1116
+ } catch (error) {
1117
+ if (!options.suppressError) throw error;
1118
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1119
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
1120
+ error
1121
+ });
1122
+ return null;
1123
+ }
1099
1124
  }
1100
1125
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
1101
1126
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1138,7 +1163,17 @@ var Object$1 = class Object$1 {
1138
1163
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
1139
1164
  const prop = this._cachedJsonLd["attributedTo"];
1140
1165
  const obj = Array.isArray(prop) ? prop[i] : prop;
1141
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attribution_fromJsonLd(obj, options);
1166
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1167
+ v = await this.#attribution_fromJsonLd(obj, options);
1168
+ } catch (error) {
1169
+ if (!options.suppressError) throw error;
1170
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1171
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
1172
+ index: i,
1173
+ error
1174
+ });
1175
+ continue;
1176
+ }
1142
1177
  }
1143
1178
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
1144
1179
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1260,7 +1295,16 @@ var Object$1 = class Object$1 {
1260
1295
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1261
1296
  const prop = this._cachedJsonLd["audience"];
1262
1297
  const doc = Array.isArray(prop) ? prop[0] : prop;
1263
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#audience_fromJsonLd(doc, options);
1298
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1299
+ v = await this.#audience_fromJsonLd(doc, options);
1300
+ } catch (error) {
1301
+ if (!options.suppressError) throw error;
1302
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1303
+ property: "https://www.w3.org/ns/activitystreams#audience",
1304
+ error
1305
+ });
1306
+ return null;
1307
+ }
1264
1308
  }
1265
1309
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1266
1310
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1302,7 +1346,17 @@ var Object$1 = class Object$1 {
1302
1346
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1303
1347
  const prop = this._cachedJsonLd["audience"];
1304
1348
  const obj = Array.isArray(prop) ? prop[i] : prop;
1305
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#audience_fromJsonLd(obj, options);
1349
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1350
+ v = await this.#audience_fromJsonLd(obj, options);
1351
+ } catch (error) {
1352
+ if (!options.suppressError) throw error;
1353
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1354
+ property: "https://www.w3.org/ns/activitystreams#audience",
1355
+ index: i,
1356
+ error
1357
+ });
1358
+ continue;
1359
+ }
1306
1360
  }
1307
1361
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1308
1362
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1458,7 +1512,17 @@ var Object$1 = class Object$1 {
1458
1512
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
1459
1513
  const prop = this._cachedJsonLd["context"];
1460
1514
  const obj = Array.isArray(prop) ? prop[i] : prop;
1461
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#context_fromJsonLd(obj, options);
1515
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1516
+ v = await this.#context_fromJsonLd(obj, options);
1517
+ } catch (error) {
1518
+ if (!options.suppressError) throw error;
1519
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1520
+ property: "https://www.w3.org/ns/activitystreams#context",
1521
+ index: i,
1522
+ error
1523
+ });
1524
+ continue;
1525
+ }
1462
1526
  }
1463
1527
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
1464
1528
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1614,7 +1678,17 @@ var Object$1 = class Object$1 {
1614
1678
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
1615
1679
  const prop = this._cachedJsonLd["generator"];
1616
1680
  const obj = Array.isArray(prop) ? prop[i] : prop;
1617
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#generator_fromJsonLd(obj, options);
1681
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1682
+ v = await this.#generator_fromJsonLd(obj, options);
1683
+ } catch (error) {
1684
+ if (!options.suppressError) throw error;
1685
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1686
+ property: "https://www.w3.org/ns/activitystreams#generator",
1687
+ index: i,
1688
+ error
1689
+ });
1690
+ continue;
1691
+ }
1618
1692
  }
1619
1693
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
1620
1694
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1737,7 +1811,16 @@ var Object$1 = class Object$1 {
1737
1811
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1738
1812
  const prop = this._cachedJsonLd["icon"];
1739
1813
  const doc = Array.isArray(prop) ? prop[0] : prop;
1740
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#icon_fromJsonLd(doc, options);
1814
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1815
+ v = await this.#icon_fromJsonLd(doc, options);
1816
+ } catch (error) {
1817
+ if (!options.suppressError) throw error;
1818
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1819
+ property: "https://www.w3.org/ns/activitystreams#icon",
1820
+ error
1821
+ });
1822
+ return null;
1823
+ }
1741
1824
  }
1742
1825
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1743
1826
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1780,7 +1863,17 @@ var Object$1 = class Object$1 {
1780
1863
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1781
1864
  const prop = this._cachedJsonLd["icon"];
1782
1865
  const obj = Array.isArray(prop) ? prop[i] : prop;
1783
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#icon_fromJsonLd(obj, options);
1866
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1867
+ v = await this.#icon_fromJsonLd(obj, options);
1868
+ } catch (error) {
1869
+ if (!options.suppressError) throw error;
1870
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1871
+ property: "https://www.w3.org/ns/activitystreams#icon",
1872
+ index: i,
1873
+ error
1874
+ });
1875
+ continue;
1876
+ }
1784
1877
  }
1785
1878
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1786
1879
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1903,7 +1996,16 @@ var Object$1 = class Object$1 {
1903
1996
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1904
1997
  const prop = this._cachedJsonLd["image"];
1905
1998
  const doc = Array.isArray(prop) ? prop[0] : prop;
1906
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#image_fromJsonLd(doc, options);
1999
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2000
+ v = await this.#image_fromJsonLd(doc, options);
2001
+ } catch (error) {
2002
+ if (!options.suppressError) throw error;
2003
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2004
+ property: "https://www.w3.org/ns/activitystreams#image",
2005
+ error
2006
+ });
2007
+ return null;
2008
+ }
1907
2009
  }
1908
2010
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1909
2011
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -1946,7 +2048,17 @@ var Object$1 = class Object$1 {
1946
2048
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1947
2049
  const prop = this._cachedJsonLd["image"];
1948
2050
  const obj = Array.isArray(prop) ? prop[i] : prop;
1949
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#image_fromJsonLd(obj, options);
2051
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2052
+ v = await this.#image_fromJsonLd(obj, options);
2053
+ } catch (error) {
2054
+ if (!options.suppressError) throw error;
2055
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2056
+ property: "https://www.w3.org/ns/activitystreams#image",
2057
+ index: i,
2058
+ error
2059
+ });
2060
+ continue;
2061
+ }
1950
2062
  }
1951
2063
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1952
2064
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2078,7 +2190,16 @@ var Object$1 = class Object$1 {
2078
2190
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
2079
2191
  const prop = this._cachedJsonLd["inReplyTo"];
2080
2192
  const doc = Array.isArray(prop) ? prop[0] : prop;
2081
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replyTarget_fromJsonLd(doc, options);
2193
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2194
+ v = await this.#replyTarget_fromJsonLd(doc, options);
2195
+ } catch (error) {
2196
+ if (!options.suppressError) throw error;
2197
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2198
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2199
+ error
2200
+ });
2201
+ return null;
2202
+ }
2082
2203
  }
2083
2204
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
2084
2205
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2120,7 +2241,17 @@ var Object$1 = class Object$1 {
2120
2241
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
2121
2242
  const prop = this._cachedJsonLd["inReplyTo"];
2122
2243
  const obj = Array.isArray(prop) ? prop[i] : prop;
2123
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#replyTarget_fromJsonLd(obj, options);
2244
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2245
+ v = await this.#replyTarget_fromJsonLd(obj, options);
2246
+ } catch (error) {
2247
+ if (!options.suppressError) throw error;
2248
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2249
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2250
+ index: i,
2251
+ error
2252
+ });
2253
+ continue;
2254
+ }
2124
2255
  }
2125
2256
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
2126
2257
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2252,7 +2383,16 @@ var Object$1 = class Object$1 {
2252
2383
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2253
2384
  const prop = this._cachedJsonLd["location"];
2254
2385
  const doc = Array.isArray(prop) ? prop[0] : prop;
2255
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#location_fromJsonLd(doc, options);
2386
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2387
+ v = await this.#location_fromJsonLd(doc, options);
2388
+ } catch (error) {
2389
+ if (!options.suppressError) throw error;
2390
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2391
+ property: "https://www.w3.org/ns/activitystreams#location",
2392
+ error
2393
+ });
2394
+ return null;
2395
+ }
2256
2396
  }
2257
2397
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2258
2398
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2294,7 +2434,17 @@ var Object$1 = class Object$1 {
2294
2434
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2295
2435
  const prop = this._cachedJsonLd["location"];
2296
2436
  const obj = Array.isArray(prop) ? prop[i] : prop;
2297
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#location_fromJsonLd(obj, options);
2437
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2438
+ v = await this.#location_fromJsonLd(obj, options);
2439
+ } catch (error) {
2440
+ if (!options.suppressError) throw error;
2441
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2442
+ property: "https://www.w3.org/ns/activitystreams#location",
2443
+ index: i,
2444
+ error
2445
+ });
2446
+ continue;
2447
+ }
2298
2448
  }
2299
2449
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2300
2450
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2425,7 +2575,16 @@ var Object$1 = class Object$1 {
2425
2575
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2426
2576
  const prop = this._cachedJsonLd["preview"];
2427
2577
  const doc = Array.isArray(prop) ? prop[0] : prop;
2428
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#preview_fromJsonLd(doc, options);
2578
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2579
+ v = await this.#preview_fromJsonLd(doc, options);
2580
+ } catch (error) {
2581
+ if (!options.suppressError) throw error;
2582
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2583
+ property: "https://www.w3.org/ns/activitystreams#preview",
2584
+ error
2585
+ });
2586
+ return null;
2587
+ }
2429
2588
  }
2430
2589
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2431
2590
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2466,7 +2625,17 @@ var Object$1 = class Object$1 {
2466
2625
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2467
2626
  const prop = this._cachedJsonLd["preview"];
2468
2627
  const obj = Array.isArray(prop) ? prop[i] : prop;
2469
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
2628
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2629
+ v = await this.#preview_fromJsonLd(obj, options);
2630
+ } catch (error) {
2631
+ if (!options.suppressError) throw error;
2632
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2633
+ property: "https://www.w3.org/ns/activitystreams#preview",
2634
+ index: i,
2635
+ error
2636
+ });
2637
+ continue;
2638
+ }
2470
2639
  }
2471
2640
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2472
2641
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2595,7 +2764,16 @@ var Object$1 = class Object$1 {
2595
2764
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
2596
2765
  const prop = this._cachedJsonLd["replies"];
2597
2766
  const doc = Array.isArray(prop) ? prop[0] : prop;
2598
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replies_fromJsonLd(doc, options);
2767
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2768
+ v = await this.#replies_fromJsonLd(doc, options);
2769
+ } catch (error) {
2770
+ if (!options.suppressError) throw error;
2771
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2772
+ property: "https://www.w3.org/ns/activitystreams#replies",
2773
+ error
2774
+ });
2775
+ return null;
2776
+ }
2599
2777
  }
2600
2778
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
2601
2779
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2722,7 +2900,16 @@ var Object$1 = class Object$1 {
2722
2900
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
2723
2901
  const prop = this._cachedJsonLd["shares"];
2724
2902
  const doc = Array.isArray(prop) ? prop[0] : prop;
2725
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#shares_fromJsonLd(doc, options);
2903
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2904
+ v = await this.#shares_fromJsonLd(doc, options);
2905
+ } catch (error) {
2906
+ if (!options.suppressError) throw error;
2907
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2908
+ property: "https://www.w3.org/ns/activitystreams#shares",
2909
+ error
2910
+ });
2911
+ return null;
2912
+ }
2726
2913
  }
2727
2914
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
2728
2915
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2849,7 +3036,16 @@ var Object$1 = class Object$1 {
2849
3036
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
2850
3037
  const prop = this._cachedJsonLd["likes"];
2851
3038
  const doc = Array.isArray(prop) ? prop[0] : prop;
2852
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likes_fromJsonLd(doc, options);
3039
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3040
+ v = await this.#likes_fromJsonLd(doc, options);
3041
+ } catch (error) {
3042
+ if (!options.suppressError) throw error;
3043
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3044
+ property: "https://www.w3.org/ns/activitystreams#likes",
3045
+ error
3046
+ });
3047
+ return null;
3048
+ }
2853
3049
  }
2854
3050
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
2855
3051
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -2970,7 +3166,16 @@ var Object$1 = class Object$1 {
2970
3166
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
2971
3167
  const prop = this._cachedJsonLd["emojiReactions"];
2972
3168
  const doc = Array.isArray(prop) ? prop[0] : prop;
2973
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#emojiReactions_fromJsonLd(doc, options);
3169
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3170
+ v = await this.#emojiReactions_fromJsonLd(doc, options);
3171
+ } catch (error) {
3172
+ if (!options.suppressError) throw error;
3173
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3174
+ property: "http://fedibird.com/ns#emojiReactions",
3175
+ error
3176
+ });
3177
+ return null;
3178
+ }
2974
3179
  }
2975
3180
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
2976
3181
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3126,7 +3331,17 @@ var Object$1 = class Object$1 {
3126
3331
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
3127
3332
  const prop = this._cachedJsonLd["tag"];
3128
3333
  const obj = Array.isArray(prop) ? prop[i] : prop;
3129
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#tag_fromJsonLd(obj, options);
3334
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3335
+ v = await this.#tag_fromJsonLd(obj, options);
3336
+ } catch (error) {
3337
+ if (!options.suppressError) throw error;
3338
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3339
+ property: "https://www.w3.org/ns/activitystreams#tag",
3340
+ index: i,
3341
+ error
3342
+ });
3343
+ continue;
3344
+ }
3130
3345
  }
3131
3346
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
3132
3347
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3267,7 +3482,16 @@ var Object$1 = class Object$1 {
3267
3482
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3268
3483
  const prop = this._cachedJsonLd["to"];
3269
3484
  const doc = Array.isArray(prop) ? prop[0] : prop;
3270
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#to_fromJsonLd(doc, options);
3485
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3486
+ v = await this.#to_fromJsonLd(doc, options);
3487
+ } catch (error) {
3488
+ if (!options.suppressError) throw error;
3489
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3490
+ property: "https://www.w3.org/ns/activitystreams#to",
3491
+ error
3492
+ });
3493
+ return null;
3494
+ }
3271
3495
  }
3272
3496
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3273
3497
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3309,7 +3533,17 @@ var Object$1 = class Object$1 {
3309
3533
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3310
3534
  const prop = this._cachedJsonLd["to"];
3311
3535
  const obj = Array.isArray(prop) ? prop[i] : prop;
3312
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#to_fromJsonLd(obj, options);
3536
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3537
+ v = await this.#to_fromJsonLd(obj, options);
3538
+ } catch (error) {
3539
+ if (!options.suppressError) throw error;
3540
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3541
+ property: "https://www.w3.org/ns/activitystreams#to",
3542
+ index: i,
3543
+ error
3544
+ });
3545
+ continue;
3546
+ }
3313
3547
  }
3314
3548
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3315
3549
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3431,7 +3665,16 @@ var Object$1 = class Object$1 {
3431
3665
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3432
3666
  const prop = this._cachedJsonLd["bto"];
3433
3667
  const doc = Array.isArray(prop) ? prop[0] : prop;
3434
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bto_fromJsonLd(doc, options);
3668
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3669
+ v = await this.#bto_fromJsonLd(doc, options);
3670
+ } catch (error) {
3671
+ if (!options.suppressError) throw error;
3672
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3673
+ property: "https://www.w3.org/ns/activitystreams#bto",
3674
+ error
3675
+ });
3676
+ return null;
3677
+ }
3435
3678
  }
3436
3679
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3437
3680
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3473,7 +3716,17 @@ var Object$1 = class Object$1 {
3473
3716
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3474
3717
  const prop = this._cachedJsonLd["bto"];
3475
3718
  const obj = Array.isArray(prop) ? prop[i] : prop;
3476
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bto_fromJsonLd(obj, options);
3719
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3720
+ v = await this.#bto_fromJsonLd(obj, options);
3721
+ } catch (error) {
3722
+ if (!options.suppressError) throw error;
3723
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3724
+ property: "https://www.w3.org/ns/activitystreams#bto",
3725
+ index: i,
3726
+ error
3727
+ });
3728
+ continue;
3729
+ }
3477
3730
  }
3478
3731
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3479
3732
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3595,7 +3848,16 @@ var Object$1 = class Object$1 {
3595
3848
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3596
3849
  const prop = this._cachedJsonLd["cc"];
3597
3850
  const doc = Array.isArray(prop) ? prop[0] : prop;
3598
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#cc_fromJsonLd(doc, options);
3851
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3852
+ v = await this.#cc_fromJsonLd(doc, options);
3853
+ } catch (error) {
3854
+ if (!options.suppressError) throw error;
3855
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3856
+ property: "https://www.w3.org/ns/activitystreams#cc",
3857
+ error
3858
+ });
3859
+ return null;
3860
+ }
3599
3861
  }
3600
3862
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3601
3863
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3637,7 +3899,17 @@ var Object$1 = class Object$1 {
3637
3899
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3638
3900
  const prop = this._cachedJsonLd["cc"];
3639
3901
  const obj = Array.isArray(prop) ? prop[i] : prop;
3640
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#cc_fromJsonLd(obj, options);
3902
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3903
+ v = await this.#cc_fromJsonLd(obj, options);
3904
+ } catch (error) {
3905
+ if (!options.suppressError) throw error;
3906
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3907
+ property: "https://www.w3.org/ns/activitystreams#cc",
3908
+ index: i,
3909
+ error
3910
+ });
3911
+ continue;
3912
+ }
3641
3913
  }
3642
3914
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3643
3915
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3759,7 +4031,16 @@ var Object$1 = class Object$1 {
3759
4031
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3760
4032
  const prop = this._cachedJsonLd["bcc"];
3761
4033
  const doc = Array.isArray(prop) ? prop[0] : prop;
3762
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bcc_fromJsonLd(doc, options);
4034
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4035
+ v = await this.#bcc_fromJsonLd(doc, options);
4036
+ } catch (error) {
4037
+ if (!options.suppressError) throw error;
4038
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4039
+ property: "https://www.w3.org/ns/activitystreams#bcc",
4040
+ error
4041
+ });
4042
+ return null;
4043
+ }
3763
4044
  }
3764
4045
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3765
4046
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3801,7 +4082,17 @@ var Object$1 = class Object$1 {
3801
4082
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3802
4083
  const prop = this._cachedJsonLd["bcc"];
3803
4084
  const obj = Array.isArray(prop) ? prop[i] : prop;
3804
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bcc_fromJsonLd(obj, options);
4085
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
4086
+ v = await this.#bcc_fromJsonLd(obj, options);
4087
+ } catch (error) {
4088
+ if (!options.suppressError) throw error;
4089
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
4090
+ property: "https://www.w3.org/ns/activitystreams#bcc",
4091
+ index: i,
4092
+ error
4093
+ });
4094
+ continue;
4095
+ }
3805
4096
  }
3806
4097
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3807
4098
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -3959,7 +4250,16 @@ var Object$1 = class Object$1 {
3959
4250
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
3960
4251
  const prop = this._cachedJsonLd["proof"];
3961
4252
  const doc = Array.isArray(prop) ? prop[0] : prop;
3962
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#proof_fromJsonLd(doc, options);
4253
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4254
+ v = await this.#proof_fromJsonLd(doc, options);
4255
+ } catch (error) {
4256
+ if (!options.suppressError) throw error;
4257
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4258
+ property: "https://w3id.org/security#proof",
4259
+ error
4260
+ });
4261
+ return null;
4262
+ }
3963
4263
  }
3964
4264
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
3965
4265
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -4000,7 +4300,17 @@ var Object$1 = class Object$1 {
4000
4300
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
4001
4301
  const prop = this._cachedJsonLd["proof"];
4002
4302
  const obj = Array.isArray(prop) ? prop[i] : prop;
4003
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#proof_fromJsonLd(obj, options);
4303
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
4304
+ v = await this.#proof_fromJsonLd(obj, options);
4305
+ } catch (error) {
4306
+ if (!options.suppressError) throw error;
4307
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
4308
+ property: "https://w3id.org/security#proof",
4309
+ index: i,
4310
+ error
4311
+ });
4312
+ continue;
4313
+ }
4004
4314
  }
4005
4315
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
4006
4316
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -4147,7 +4457,16 @@ var Object$1 = class Object$1 {
4147
4457
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likeAuthorization" in this._cachedJsonLd) {
4148
4458
  const prop = this._cachedJsonLd["likeAuthorization"];
4149
4459
  const doc = Array.isArray(prop) ? prop[0] : prop;
4150
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likeAuthorization_fromJsonLd(doc, options);
4460
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4461
+ v = await this.#likeAuthorization_fromJsonLd(doc, options);
4462
+ } catch (error) {
4463
+ if (!options.suppressError) throw error;
4464
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4465
+ property: "https://gotosocial.org/ns#likeAuthorization",
4466
+ error
4467
+ });
4468
+ return null;
4469
+ }
4151
4470
  }
4152
4471
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.has(0)) {
4153
4472
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -4268,7 +4587,16 @@ var Object$1 = class Object$1 {
4268
4587
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replyAuthorization" in this._cachedJsonLd) {
4269
4588
  const prop = this._cachedJsonLd["replyAuthorization"];
4270
4589
  const doc = Array.isArray(prop) ? prop[0] : prop;
4271
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replyAuthorization_fromJsonLd(doc, options);
4590
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4591
+ v = await this.#replyAuthorization_fromJsonLd(doc, options);
4592
+ } catch (error) {
4593
+ if (!options.suppressError) throw error;
4594
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4595
+ property: "https://gotosocial.org/ns#replyAuthorization",
4596
+ error
4597
+ });
4598
+ return null;
4599
+ }
4272
4600
  }
4273
4601
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.has(0)) {
4274
4602
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -4389,7 +4717,16 @@ var Object$1 = class Object$1 {
4389
4717
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "announceAuthorization" in this._cachedJsonLd) {
4390
4718
  const prop = this._cachedJsonLd["announceAuthorization"];
4391
4719
  const doc = Array.isArray(prop) ? prop[0] : prop;
4392
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#announceAuthorization_fromJsonLd(doc, options);
4720
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4721
+ v = await this.#announceAuthorization_fromJsonLd(doc, options);
4722
+ } catch (error) {
4723
+ if (!options.suppressError) throw error;
4724
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4725
+ property: "https://gotosocial.org/ns#announceAuthorization",
4726
+ error
4727
+ });
4728
+ return null;
4729
+ }
4393
4730
  }
4394
4731
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.has(0)) {
4395
4732
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -6953,7 +7290,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
6953
7290
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
6954
7291
  const prop = this._cachedJsonLd["quote"];
6955
7292
  const doc = Array.isArray(prop) ? prop[0] : prop;
6956
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
7293
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7294
+ v = await this.#quote_fromJsonLd(doc, options);
7295
+ } catch (error) {
7296
+ if (!options.suppressError) throw error;
7297
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7298
+ property: "https://w3id.org/fep/044f#quote",
7299
+ error
7300
+ });
7301
+ return null;
7302
+ }
6957
7303
  }
6958
7304
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
6959
7305
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7090,7 +7436,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
7090
7436
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
7091
7437
  const prop = this._cachedJsonLd["quoteAuthorization"];
7092
7438
  const doc = Array.isArray(prop) ? prop[0] : prop;
7093
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
7439
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7440
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
7441
+ } catch (error) {
7442
+ if (!options.suppressError) throw error;
7443
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7444
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
7445
+ error
7446
+ });
7447
+ return null;
7448
+ }
7094
7449
  }
7095
7450
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
7096
7451
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7341,7 +7696,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
7341
7696
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
7342
7697
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
7343
7698
  if (v == null) continue;
7344
- const decoded = new URL(v["@value"]);
7699
+ const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
7345
7700
  if (typeof decoded === "undefined") {
7346
7701
  shouldCacheJsonLd = false;
7347
7702
  continue;
@@ -7760,7 +8115,16 @@ var Activity = class Activity extends Object$1 {
7760
8115
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
7761
8116
  const prop = this._cachedJsonLd["actor"];
7762
8117
  const doc = Array.isArray(prop) ? prop[0] : prop;
7763
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#actor_fromJsonLd(doc, options);
8118
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8119
+ v = await this.#actor_fromJsonLd(doc, options);
8120
+ } catch (error) {
8121
+ if (!options.suppressError) throw error;
8122
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8123
+ property: "https://www.w3.org/ns/activitystreams#actor",
8124
+ error
8125
+ });
8126
+ return null;
8127
+ }
7764
8128
  }
7765
8129
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
7766
8130
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7803,7 +8167,17 @@ var Activity = class Activity extends Object$1 {
7803
8167
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
7804
8168
  const prop = this._cachedJsonLd["actor"];
7805
8169
  const obj = Array.isArray(prop) ? prop[i] : prop;
7806
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#actor_fromJsonLd(obj, options);
8170
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8171
+ v = await this.#actor_fromJsonLd(obj, options);
8172
+ } catch (error) {
8173
+ if (!options.suppressError) throw error;
8174
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8175
+ property: "https://www.w3.org/ns/activitystreams#actor",
8176
+ index: i,
8177
+ error
8178
+ });
8179
+ continue;
8180
+ }
7807
8181
  }
7808
8182
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
7809
8183
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7926,7 +8300,16 @@ var Activity = class Activity extends Object$1 {
7926
8300
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
7927
8301
  const prop = this._cachedJsonLd["object"];
7928
8302
  const doc = Array.isArray(prop) ? prop[0] : prop;
7929
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
8303
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8304
+ v = await this.#object_fromJsonLd(doc, options);
8305
+ } catch (error) {
8306
+ if (!options.suppressError) throw error;
8307
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8308
+ property: "https://www.w3.org/ns/activitystreams#object",
8309
+ error
8310
+ });
8311
+ return null;
8312
+ }
7930
8313
  }
7931
8314
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
7932
8315
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -7969,7 +8352,17 @@ var Activity = class Activity extends Object$1 {
7969
8352
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
7970
8353
  const prop = this._cachedJsonLd["object"];
7971
8354
  const obj = Array.isArray(prop) ? prop[i] : prop;
7972
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
8355
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8356
+ v = await this.#object_fromJsonLd(obj, options);
8357
+ } catch (error) {
8358
+ if (!options.suppressError) throw error;
8359
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8360
+ property: "https://www.w3.org/ns/activitystreams#object",
8361
+ index: i,
8362
+ error
8363
+ });
8364
+ continue;
8365
+ }
7973
8366
  }
7974
8367
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
7975
8368
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8095,7 +8488,16 @@ var Activity = class Activity extends Object$1 {
8095
8488
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
8096
8489
  const prop = this._cachedJsonLd["target"];
8097
8490
  const doc = Array.isArray(prop) ? prop[0] : prop;
8098
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#target_fromJsonLd(doc, options);
8491
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8492
+ v = await this.#target_fromJsonLd(doc, options);
8493
+ } catch (error) {
8494
+ if (!options.suppressError) throw error;
8495
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8496
+ property: "https://www.w3.org/ns/activitystreams#target",
8497
+ error
8498
+ });
8499
+ return null;
8500
+ }
8099
8501
  }
8100
8502
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
8101
8503
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8141,7 +8543,17 @@ var Activity = class Activity extends Object$1 {
8141
8543
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
8142
8544
  const prop = this._cachedJsonLd["target"];
8143
8545
  const obj = Array.isArray(prop) ? prop[i] : prop;
8144
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#target_fromJsonLd(obj, options);
8546
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8547
+ v = await this.#target_fromJsonLd(obj, options);
8548
+ } catch (error) {
8549
+ if (!options.suppressError) throw error;
8550
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8551
+ property: "https://www.w3.org/ns/activitystreams#target",
8552
+ index: i,
8553
+ error
8554
+ });
8555
+ continue;
8556
+ }
8145
8557
  }
8146
8558
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
8147
8559
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8264,7 +8676,16 @@ var Activity = class Activity extends Object$1 {
8264
8676
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
8265
8677
  const prop = this._cachedJsonLd["result"];
8266
8678
  const doc = Array.isArray(prop) ? prop[0] : prop;
8267
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#result_fromJsonLd(doc, options);
8679
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8680
+ v = await this.#result_fromJsonLd(doc, options);
8681
+ } catch (error) {
8682
+ if (!options.suppressError) throw error;
8683
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8684
+ property: "https://www.w3.org/ns/activitystreams#result",
8685
+ error
8686
+ });
8687
+ return null;
8688
+ }
8268
8689
  }
8269
8690
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
8270
8691
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8307,7 +8728,17 @@ var Activity = class Activity extends Object$1 {
8307
8728
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
8308
8729
  const prop = this._cachedJsonLd["result"];
8309
8730
  const obj = Array.isArray(prop) ? prop[i] : prop;
8310
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#result_fromJsonLd(obj, options);
8731
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8732
+ v = await this.#result_fromJsonLd(obj, options);
8733
+ } catch (error) {
8734
+ if (!options.suppressError) throw error;
8735
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8736
+ property: "https://www.w3.org/ns/activitystreams#result",
8737
+ index: i,
8738
+ error
8739
+ });
8740
+ continue;
8741
+ }
8311
8742
  }
8312
8743
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
8313
8744
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8431,7 +8862,16 @@ var Activity = class Activity extends Object$1 {
8431
8862
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
8432
8863
  const prop = this._cachedJsonLd["origin"];
8433
8864
  const doc = Array.isArray(prop) ? prop[0] : prop;
8434
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#origin_fromJsonLd(doc, options);
8865
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8866
+ v = await this.#origin_fromJsonLd(doc, options);
8867
+ } catch (error) {
8868
+ if (!options.suppressError) throw error;
8869
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8870
+ property: "https://www.w3.org/ns/activitystreams#origin",
8871
+ error
8872
+ });
8873
+ return null;
8874
+ }
8435
8875
  }
8436
8876
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
8437
8877
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8475,7 +8915,17 @@ var Activity = class Activity extends Object$1 {
8475
8915
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
8476
8916
  const prop = this._cachedJsonLd["origin"];
8477
8917
  const obj = Array.isArray(prop) ? prop[i] : prop;
8478
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#origin_fromJsonLd(obj, options);
8918
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8919
+ v = await this.#origin_fromJsonLd(obj, options);
8920
+ } catch (error) {
8921
+ if (!options.suppressError) throw error;
8922
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8923
+ property: "https://www.w3.org/ns/activitystreams#origin",
8924
+ index: i,
8925
+ error
8926
+ });
8927
+ continue;
8928
+ }
8479
8929
  }
8480
8930
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
8481
8931
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8597,7 +9047,16 @@ var Activity = class Activity extends Object$1 {
8597
9047
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
8598
9048
  const prop = this._cachedJsonLd["instrument"];
8599
9049
  const doc = Array.isArray(prop) ? prop[0] : prop;
8600
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#instrument_fromJsonLd(doc, options);
9050
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
9051
+ v = await this.#instrument_fromJsonLd(doc, options);
9052
+ } catch (error) {
9053
+ if (!options.suppressError) throw error;
9054
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
9055
+ property: "https://www.w3.org/ns/activitystreams#instrument",
9056
+ error
9057
+ });
9058
+ return null;
9059
+ }
8601
9060
  }
8602
9061
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
8603
9062
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -8639,7 +9098,17 @@ var Activity = class Activity extends Object$1 {
8639
9098
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
8640
9099
  const prop = this._cachedJsonLd["instrument"];
8641
9100
  const obj = Array.isArray(prop) ? prop[i] : prop;
8642
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#instrument_fromJsonLd(obj, options);
9101
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
9102
+ v = await this.#instrument_fromJsonLd(obj, options);
9103
+ } catch (error) {
9104
+ if (!options.suppressError) throw error;
9105
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
9106
+ property: "https://www.w3.org/ns/activitystreams#instrument",
9107
+ index: i,
9108
+ error
9109
+ });
9110
+ continue;
9111
+ }
8643
9112
  }
8644
9113
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
8645
9114
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -9924,7 +10393,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
9924
10393
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
9925
10394
  const prop = this._cachedJsonLd["interactingObject"];
9926
10395
  const doc = Array.isArray(prop) ? prop[0] : prop;
9927
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
10396
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
10397
+ v = await this.#interactingObject_fromJsonLd(doc, options);
10398
+ } catch (error) {
10399
+ if (!options.suppressError) throw error;
10400
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
10401
+ property: "https://gotosocial.org/ns#interactingObject",
10402
+ error
10403
+ });
10404
+ return null;
10405
+ }
9928
10406
  }
9929
10407
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
9930
10408
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -10044,7 +10522,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
10044
10522
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
10045
10523
  const prop = this._cachedJsonLd["interactionTarget"];
10046
10524
  const doc = Array.isArray(prop) ? prop[0] : prop;
10047
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
10525
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
10526
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
10527
+ } catch (error) {
10528
+ if (!options.suppressError) throw error;
10529
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
10530
+ property: "https://gotosocial.org/ns#interactionTarget",
10531
+ error
10532
+ });
10533
+ return null;
10534
+ }
10048
10535
  }
10049
10536
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
10050
10537
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11276,7 +11763,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11276
11763
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
11277
11764
  const prop = this._cachedJsonLd["interactingObject"];
11278
11765
  const doc = Array.isArray(prop) ? prop[0] : prop;
11279
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
11766
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11767
+ v = await this.#interactingObject_fromJsonLd(doc, options);
11768
+ } catch (error) {
11769
+ if (!options.suppressError) throw error;
11770
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11771
+ property: "https://gotosocial.org/ns#interactingObject",
11772
+ error
11773
+ });
11774
+ return null;
11775
+ }
11280
11776
  }
11281
11777
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
11282
11778
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11396,7 +11892,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11396
11892
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
11397
11893
  const prop = this._cachedJsonLd["interactionTarget"];
11398
11894
  const doc = Array.isArray(prop) ? prop[0] : prop;
11399
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
11895
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11896
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
11897
+ } catch (error) {
11898
+ if (!options.suppressError) throw error;
11899
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11900
+ property: "https://gotosocial.org/ns#interactionTarget",
11901
+ error
11902
+ });
11903
+ return null;
11904
+ }
11400
11905
  }
11401
11906
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
11402
11907
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -11956,7 +12461,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
11956
12461
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
11957
12462
  const prop = this._cachedJsonLd["interactingObject"];
11958
12463
  const doc = Array.isArray(prop) ? prop[0] : prop;
11959
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
12464
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12465
+ v = await this.#interactingObject_fromJsonLd(doc, options);
12466
+ } catch (error) {
12467
+ if (!options.suppressError) throw error;
12468
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12469
+ property: "https://gotosocial.org/ns#interactingObject",
12470
+ error
12471
+ });
12472
+ return null;
12473
+ }
11960
12474
  }
11961
12475
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
11962
12476
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12076,7 +12590,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
12076
12590
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
12077
12591
  const prop = this._cachedJsonLd["interactionTarget"];
12078
12592
  const doc = Array.isArray(prop) ? prop[0] : prop;
12079
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
12593
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12594
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
12595
+ } catch (error) {
12596
+ if (!options.suppressError) throw error;
12597
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12598
+ property: "https://gotosocial.org/ns#interactionTarget",
12599
+ error
12600
+ });
12601
+ return null;
12602
+ }
12080
12603
  }
12081
12604
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
12082
12605
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12635,7 +13158,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12635
13158
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
12636
13159
  const prop = this._cachedJsonLd["interactingObject"];
12637
13160
  const doc = Array.isArray(prop) ? prop[0] : prop;
12638
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
13161
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13162
+ v = await this.#interactingObject_fromJsonLd(doc, options);
13163
+ } catch (error) {
13164
+ if (!options.suppressError) throw error;
13165
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13166
+ property: "https://gotosocial.org/ns#interactingObject",
13167
+ error
13168
+ });
13169
+ return null;
13170
+ }
12639
13171
  }
12640
13172
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
12641
13173
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -12755,7 +13287,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12755
13287
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
12756
13288
  const prop = this._cachedJsonLd["interactionTarget"];
12757
13289
  const doc = Array.isArray(prop) ? prop[0] : prop;
12758
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
13290
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13291
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
13292
+ } catch (error) {
13293
+ if (!options.suppressError) throw error;
13294
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13295
+ property: "https://gotosocial.org/ns#interactionTarget",
13296
+ error
13297
+ });
13298
+ return null;
13299
+ }
12759
13300
  }
12760
13301
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
12761
13302
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -14305,7 +14846,16 @@ var CryptographicKey = class {
14305
14846
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
14306
14847
  const prop = this._cachedJsonLd["owner"];
14307
14848
  const doc = Array.isArray(prop) ? prop[0] : prop;
14308
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#owner_fromJsonLd(doc, options);
14849
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
14850
+ v = await this.#owner_fromJsonLd(doc, options);
14851
+ } catch (error) {
14852
+ if (!options.suppressError) throw error;
14853
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
14854
+ property: "https://w3id.org/security#owner",
14855
+ error
14856
+ });
14857
+ return null;
14858
+ }
14309
14859
  }
14310
14860
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
14311
14861
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -14786,7 +15336,16 @@ var Multikey = class {
14786
15336
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
14787
15337
  const prop = this._cachedJsonLd["controller"];
14788
15338
  const doc = Array.isArray(prop) ? prop[0] : prop;
14789
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#controller_fromJsonLd(doc, options);
15339
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
15340
+ v = await this.#controller_fromJsonLd(doc, options);
15341
+ } catch (error) {
15342
+ if (!options.suppressError) throw error;
15343
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
15344
+ property: "https://w3id.org/security#controller",
15345
+ error
15346
+ });
15347
+ return null;
15348
+ }
14790
15349
  }
14791
15350
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
14792
15351
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16820,7 +17379,16 @@ var Application = class Application extends Object$1 {
16820
17379
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
16821
17380
  const prop = this._cachedJsonLd["publicKey"];
16822
17381
  const doc = Array.isArray(prop) ? prop[0] : prop;
16823
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
17382
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17383
+ v = await this.#publicKey_fromJsonLd(doc, options);
17384
+ } catch (error) {
17385
+ if (!options.suppressError) throw error;
17386
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17387
+ property: "https://w3id.org/security#publicKey",
17388
+ error
17389
+ });
17390
+ return null;
17391
+ }
16824
17392
  }
16825
17393
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
16826
17394
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16861,7 +17429,17 @@ var Application = class Application extends Object$1 {
16861
17429
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
16862
17430
  const prop = this._cachedJsonLd["publicKey"];
16863
17431
  const obj = Array.isArray(prop) ? prop[i] : prop;
16864
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
17432
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
17433
+ v = await this.#publicKey_fromJsonLd(obj, options);
17434
+ } catch (error) {
17435
+ if (!options.suppressError) throw error;
17436
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
17437
+ property: "https://w3id.org/security#publicKey",
17438
+ index: i,
17439
+ error
17440
+ });
17441
+ continue;
17442
+ }
16865
17443
  }
16866
17444
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
16867
17445
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -16985,7 +17563,16 @@ var Application = class Application extends Object$1 {
16985
17563
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
16986
17564
  const prop = this._cachedJsonLd["assertionMethod"];
16987
17565
  const doc = Array.isArray(prop) ? prop[0] : prop;
16988
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
17566
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17567
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
17568
+ } catch (error) {
17569
+ if (!options.suppressError) throw error;
17570
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17571
+ property: "https://w3id.org/security#assertionMethod",
17572
+ error
17573
+ });
17574
+ return null;
17575
+ }
16989
17576
  }
16990
17577
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
16991
17578
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17029,7 +17616,17 @@ var Application = class Application extends Object$1 {
17029
17616
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
17030
17617
  const prop = this._cachedJsonLd["assertionMethod"];
17031
17618
  const obj = Array.isArray(prop) ? prop[i] : prop;
17032
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
17619
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
17620
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
17621
+ } catch (error) {
17622
+ if (!options.suppressError) throw error;
17623
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
17624
+ property: "https://w3id.org/security#assertionMethod",
17625
+ index: i,
17626
+ error
17627
+ });
17628
+ continue;
17629
+ }
17033
17630
  }
17034
17631
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
17035
17632
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17184,7 +17781,16 @@ var Application = class Application extends Object$1 {
17184
17781
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
17185
17782
  const prop = this._cachedJsonLd["inbox"];
17186
17783
  const doc = Array.isArray(prop) ? prop[0] : prop;
17187
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
17784
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17785
+ v = await this.#inbox_fromJsonLd(doc, options);
17786
+ } catch (error) {
17787
+ if (!options.suppressError) throw error;
17788
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17789
+ property: "http://www.w3.org/ns/ldp#inbox",
17790
+ error
17791
+ });
17792
+ return null;
17793
+ }
17188
17794
  }
17189
17795
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
17190
17796
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17323,7 +17929,16 @@ var Application = class Application extends Object$1 {
17323
17929
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
17324
17930
  const prop = this._cachedJsonLd["outbox"];
17325
17931
  const doc = Array.isArray(prop) ? prop[0] : prop;
17326
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
17932
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17933
+ v = await this.#outbox_fromJsonLd(doc, options);
17934
+ } catch (error) {
17935
+ if (!options.suppressError) throw error;
17936
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17937
+ property: "https://www.w3.org/ns/activitystreams#outbox",
17938
+ error
17939
+ });
17940
+ return null;
17941
+ }
17327
17942
  }
17328
17943
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
17329
17944
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17447,7 +18062,16 @@ var Application = class Application extends Object$1 {
17447
18062
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
17448
18063
  const prop = this._cachedJsonLd["following"];
17449
18064
  const doc = Array.isArray(prop) ? prop[0] : prop;
17450
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
18065
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18066
+ v = await this.#following_fromJsonLd(doc, options);
18067
+ } catch (error) {
18068
+ if (!options.suppressError) throw error;
18069
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18070
+ property: "https://www.w3.org/ns/activitystreams#following",
18071
+ error
18072
+ });
18073
+ return null;
18074
+ }
17451
18075
  }
17452
18076
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
17453
18077
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17574,7 +18198,16 @@ var Application = class Application extends Object$1 {
17574
18198
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
17575
18199
  const prop = this._cachedJsonLd["followers"];
17576
18200
  const doc = Array.isArray(prop) ? prop[0] : prop;
17577
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
18201
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18202
+ v = await this.#followers_fromJsonLd(doc, options);
18203
+ } catch (error) {
18204
+ if (!options.suppressError) throw error;
18205
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18206
+ property: "https://www.w3.org/ns/activitystreams#followers",
18207
+ error
18208
+ });
18209
+ return null;
18210
+ }
17578
18211
  }
17579
18212
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
17580
18213
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17699,7 +18332,16 @@ var Application = class Application extends Object$1 {
17699
18332
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
17700
18333
  const prop = this._cachedJsonLd["liked"];
17701
18334
  const doc = Array.isArray(prop) ? prop[0] : prop;
17702
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
18335
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18336
+ v = await this.#liked_fromJsonLd(doc, options);
18337
+ } catch (error) {
18338
+ if (!options.suppressError) throw error;
18339
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18340
+ property: "https://www.w3.org/ns/activitystreams#liked",
18341
+ error
18342
+ });
18343
+ return null;
18344
+ }
17703
18345
  }
17704
18346
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
17705
18347
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17822,7 +18464,16 @@ var Application = class Application extends Object$1 {
17822
18464
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
17823
18465
  const prop = this._cachedJsonLd["featured"];
17824
18466
  const doc = Array.isArray(prop) ? prop[0] : prop;
17825
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
18467
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18468
+ v = await this.#featured_fromJsonLd(doc, options);
18469
+ } catch (error) {
18470
+ if (!options.suppressError) throw error;
18471
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18472
+ property: "http://joinmastodon.org/ns#featured",
18473
+ error
18474
+ });
18475
+ return null;
18476
+ }
17826
18477
  }
17827
18478
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
17828
18479
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -17945,7 +18596,16 @@ var Application = class Application extends Object$1 {
17945
18596
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
17946
18597
  const prop = this._cachedJsonLd["featuredTags"];
17947
18598
  const doc = Array.isArray(prop) ? prop[0] : prop;
17948
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
18599
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18600
+ v = await this.#featuredTags_fromJsonLd(doc, options);
18601
+ } catch (error) {
18602
+ if (!options.suppressError) throw error;
18603
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18604
+ property: "http://joinmastodon.org/ns#featuredTags",
18605
+ error
18606
+ });
18607
+ return null;
18608
+ }
17949
18609
  }
17950
18610
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
17951
18611
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -18064,7 +18724,17 @@ var Application = class Application extends Object$1 {
18064
18724
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
18065
18725
  const prop = this._cachedJsonLd["streams"];
18066
18726
  const obj = Array.isArray(prop) ? prop[i] : prop;
18067
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
18727
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
18728
+ v = await this.#stream_fromJsonLd(obj, options);
18729
+ } catch (error) {
18730
+ if (!options.suppressError) throw error;
18731
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
18732
+ property: "https://www.w3.org/ns/activitystreams#streams",
18733
+ index: i,
18734
+ error
18735
+ });
18736
+ continue;
18737
+ }
18068
18738
  }
18069
18739
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
18070
18740
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -18273,7 +18943,16 @@ var Application = class Application extends Object$1 {
18273
18943
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
18274
18944
  const prop = this._cachedJsonLd["movedTo"];
18275
18945
  const doc = Array.isArray(prop) ? prop[0] : prop;
18276
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
18946
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18947
+ v = await this.#successor_fromJsonLd(doc, options);
18948
+ } catch (error) {
18949
+ if (!options.suppressError) throw error;
18950
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18951
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
18952
+ error
18953
+ });
18954
+ return null;
18955
+ }
18277
18956
  }
18278
18957
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
18279
18958
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -18442,7 +19121,16 @@ var Application = class Application extends Object$1 {
18442
19121
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
18443
19122
  const prop = this._cachedJsonLd["alsoKnownAs"];
18444
19123
  const doc = Array.isArray(prop) ? prop[0] : prop;
18445
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
19124
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
19125
+ v = await this.#alias_fromJsonLd(doc, options);
19126
+ } catch (error) {
19127
+ if (!options.suppressError) throw error;
19128
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
19129
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
19130
+ error
19131
+ });
19132
+ return null;
19133
+ }
18446
19134
  }
18447
19135
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
18448
19136
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -18486,7 +19174,17 @@ var Application = class Application extends Object$1 {
18486
19174
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
18487
19175
  const prop = this._cachedJsonLd["alsoKnownAs"];
18488
19176
  const obj = Array.isArray(prop) ? prop[i] : prop;
18489
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
19177
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
19178
+ v = await this.#alias_fromJsonLd(obj, options);
19179
+ } catch (error) {
19180
+ if (!options.suppressError) throw error;
19181
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
19182
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
19183
+ index: i,
19184
+ error
19185
+ });
19186
+ continue;
19187
+ }
18490
19188
  }
18491
19189
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
18492
19190
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -18610,7 +19308,16 @@ var Application = class Application extends Object$1 {
18610
19308
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
18611
19309
  const prop = this._cachedJsonLd["service"];
18612
19310
  const doc = Array.isArray(prop) ? prop[0] : prop;
18613
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
19311
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
19312
+ v = await this.#service_fromJsonLd(doc, options);
19313
+ } catch (error) {
19314
+ if (!options.suppressError) throw error;
19315
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
19316
+ property: "https://www.w3.org/ns/did#service",
19317
+ error
19318
+ });
19319
+ return null;
19320
+ }
18614
19321
  }
18615
19322
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
18616
19323
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -18654,7 +19361,17 @@ var Application = class Application extends Object$1 {
18654
19361
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
18655
19362
  const prop = this._cachedJsonLd["service"];
18656
19363
  const obj = Array.isArray(prop) ? prop[i] : prop;
18657
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
19364
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
19365
+ v = await this.#service_fromJsonLd(obj, options);
19366
+ } catch (error) {
19367
+ if (!options.suppressError) throw error;
19368
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
19369
+ property: "https://www.w3.org/ns/did#service",
19370
+ index: i,
19371
+ error
19372
+ });
19373
+ continue;
19374
+ }
18658
19375
  }
18659
19376
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
18660
19377
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20259,7 +20976,16 @@ var Article = class Article extends Object$1 {
20259
20976
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
20260
20977
  const prop = this._cachedJsonLd["quote"];
20261
20978
  const doc = Array.isArray(prop) ? prop[0] : prop;
20262
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
20979
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
20980
+ v = await this.#quote_fromJsonLd(doc, options);
20981
+ } catch (error) {
20982
+ if (!options.suppressError) throw error;
20983
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
20984
+ property: "https://w3id.org/fep/044f#quote",
20985
+ error
20986
+ });
20987
+ return null;
20988
+ }
20263
20989
  }
20264
20990
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
20265
20991
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20396,7 +21122,16 @@ var Article = class Article extends Object$1 {
20396
21122
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
20397
21123
  const prop = this._cachedJsonLd["quoteAuthorization"];
20398
21124
  const doc = Array.isArray(prop) ? prop[0] : prop;
20399
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
21125
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21126
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
21127
+ } catch (error) {
21128
+ if (!options.suppressError) throw error;
21129
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21130
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
21131
+ error
21132
+ });
21133
+ return null;
21134
+ }
20400
21135
  }
20401
21136
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
20402
21137
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -20649,7 +21384,7 @@ var Article = class Article extends Object$1 {
20649
21384
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
20650
21385
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
20651
21386
  if (v == null) continue;
20652
- const decoded = new URL(v["@value"]);
21387
+ const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
20653
21388
  if (typeof decoded === "undefined") {
20654
21389
  shouldCacheJsonLd = false;
20655
21390
  continue;
@@ -21753,7 +22488,16 @@ var Collection = class Collection extends Object$1 {
21753
22488
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
21754
22489
  const prop = this._cachedJsonLd["current"];
21755
22490
  const doc = Array.isArray(prop) ? prop[0] : prop;
21756
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#current_fromJsonLd(doc, options);
22491
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22492
+ v = await this.#current_fromJsonLd(doc, options);
22493
+ } catch (error) {
22494
+ if (!options.suppressError) throw error;
22495
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22496
+ property: "https://www.w3.org/ns/activitystreams#current",
22497
+ error
22498
+ });
22499
+ return null;
22500
+ }
21757
22501
  }
21758
22502
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
21759
22503
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21874,7 +22618,16 @@ var Collection = class Collection extends Object$1 {
21874
22618
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
21875
22619
  const prop = this._cachedJsonLd["first"];
21876
22620
  const doc = Array.isArray(prop) ? prop[0] : prop;
21877
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#first_fromJsonLd(doc, options);
22621
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22622
+ v = await this.#first_fromJsonLd(doc, options);
22623
+ } catch (error) {
22624
+ if (!options.suppressError) throw error;
22625
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22626
+ property: "https://www.w3.org/ns/activitystreams#first",
22627
+ error
22628
+ });
22629
+ return null;
22630
+ }
21878
22631
  }
21879
22632
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
21880
22633
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -21995,7 +22748,16 @@ var Collection = class Collection extends Object$1 {
21995
22748
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
21996
22749
  const prop = this._cachedJsonLd["last"];
21997
22750
  const doc = Array.isArray(prop) ? prop[0] : prop;
21998
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#last_fromJsonLd(doc, options);
22751
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22752
+ v = await this.#last_fromJsonLd(doc, options);
22753
+ } catch (error) {
22754
+ if (!options.suppressError) throw error;
22755
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22756
+ property: "https://www.w3.org/ns/activitystreams#last",
22757
+ error
22758
+ });
22759
+ return null;
22760
+ }
21999
22761
  }
22000
22762
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
22001
22763
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22125,7 +22887,17 @@ var Collection = class Collection extends Object$1 {
22125
22887
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
22126
22888
  const prop = this._cachedJsonLd["items"];
22127
22889
  const obj = Array.isArray(prop) ? prop[i] : prop;
22128
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
22890
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22891
+ v = await this.#item_fromJsonLd(obj, options);
22892
+ } catch (error) {
22893
+ if (!options.suppressError) throw error;
22894
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22895
+ property: "https://www.w3.org/ns/activitystreams#items",
22896
+ index: i,
22897
+ error
22898
+ });
22899
+ continue;
22900
+ }
22129
22901
  }
22130
22902
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
22131
22903
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22246,7 +23018,16 @@ var Collection = class Collection extends Object$1 {
22246
23018
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
22247
23019
  const prop = this._cachedJsonLd["likesOf"];
22248
23020
  const doc = Array.isArray(prop) ? prop[0] : prop;
22249
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likesOf_fromJsonLd(doc, options);
23021
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23022
+ v = await this.#likesOf_fromJsonLd(doc, options);
23023
+ } catch (error) {
23024
+ if (!options.suppressError) throw error;
23025
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23026
+ property: "https://w3id.org/fep/5711#likesOf",
23027
+ error
23028
+ });
23029
+ return null;
23030
+ }
22250
23031
  }
22251
23032
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
22252
23033
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22366,7 +23147,16 @@ var Collection = class Collection extends Object$1 {
22366
23147
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
22367
23148
  const prop = this._cachedJsonLd["sharesOf"];
22368
23149
  const doc = Array.isArray(prop) ? prop[0] : prop;
22369
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#sharesOf_fromJsonLd(doc, options);
23150
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23151
+ v = await this.#sharesOf_fromJsonLd(doc, options);
23152
+ } catch (error) {
23153
+ if (!options.suppressError) throw error;
23154
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23155
+ property: "https://w3id.org/fep/5711#sharesOf",
23156
+ error
23157
+ });
23158
+ return null;
23159
+ }
22370
23160
  }
22371
23161
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
22372
23162
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22486,7 +23276,16 @@ var Collection = class Collection extends Object$1 {
22486
23276
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
22487
23277
  const prop = this._cachedJsonLd["repliesOf"];
22488
23278
  const doc = Array.isArray(prop) ? prop[0] : prop;
22489
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#repliesOf_fromJsonLd(doc, options);
23279
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23280
+ v = await this.#repliesOf_fromJsonLd(doc, options);
23281
+ } catch (error) {
23282
+ if (!options.suppressError) throw error;
23283
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23284
+ property: "https://w3id.org/fep/5711#repliesOf",
23285
+ error
23286
+ });
23287
+ return null;
23288
+ }
22490
23289
  }
22491
23290
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
22492
23291
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22606,7 +23405,16 @@ var Collection = class Collection extends Object$1 {
22606
23405
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
22607
23406
  const prop = this._cachedJsonLd["inboxOf"];
22608
23407
  const doc = Array.isArray(prop) ? prop[0] : prop;
22609
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inboxOf_fromJsonLd(doc, options);
23408
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23409
+ v = await this.#inboxOf_fromJsonLd(doc, options);
23410
+ } catch (error) {
23411
+ if (!options.suppressError) throw error;
23412
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23413
+ property: "https://w3id.org/fep/5711#inboxOf",
23414
+ error
23415
+ });
23416
+ return null;
23417
+ }
22610
23418
  }
22611
23419
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
22612
23420
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22726,7 +23534,16 @@ var Collection = class Collection extends Object$1 {
22726
23534
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
22727
23535
  const prop = this._cachedJsonLd["outboxOf"];
22728
23536
  const doc = Array.isArray(prop) ? prop[0] : prop;
22729
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outboxOf_fromJsonLd(doc, options);
23537
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23538
+ v = await this.#outboxOf_fromJsonLd(doc, options);
23539
+ } catch (error) {
23540
+ if (!options.suppressError) throw error;
23541
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23542
+ property: "https://w3id.org/fep/5711#outboxOf",
23543
+ error
23544
+ });
23545
+ return null;
23546
+ }
22730
23547
  }
22731
23548
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
22732
23549
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22846,7 +23663,16 @@ var Collection = class Collection extends Object$1 {
22846
23663
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
22847
23664
  const prop = this._cachedJsonLd["followersOf"];
22848
23665
  const doc = Array.isArray(prop) ? prop[0] : prop;
22849
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followersOf_fromJsonLd(doc, options);
23666
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23667
+ v = await this.#followersOf_fromJsonLd(doc, options);
23668
+ } catch (error) {
23669
+ if (!options.suppressError) throw error;
23670
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23671
+ property: "https://w3id.org/fep/5711#followersOf",
23672
+ error
23673
+ });
23674
+ return null;
23675
+ }
22850
23676
  }
22851
23677
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
22852
23678
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -22966,7 +23792,16 @@ var Collection = class Collection extends Object$1 {
22966
23792
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
22967
23793
  const prop = this._cachedJsonLd["followingOf"];
22968
23794
  const doc = Array.isArray(prop) ? prop[0] : prop;
22969
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followingOf_fromJsonLd(doc, options);
23795
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23796
+ v = await this.#followingOf_fromJsonLd(doc, options);
23797
+ } catch (error) {
23798
+ if (!options.suppressError) throw error;
23799
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23800
+ property: "https://w3id.org/fep/5711#followingOf",
23801
+ error
23802
+ });
23803
+ return null;
23804
+ }
22970
23805
  }
22971
23806
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
22972
23807
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -23086,7 +23921,16 @@ var Collection = class Collection extends Object$1 {
23086
23921
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
23087
23922
  const prop = this._cachedJsonLd["likedOf"];
23088
23923
  const doc = Array.isArray(prop) ? prop[0] : prop;
23089
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likedOf_fromJsonLd(doc, options);
23924
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23925
+ v = await this.#likedOf_fromJsonLd(doc, options);
23926
+ } catch (error) {
23927
+ if (!options.suppressError) throw error;
23928
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23929
+ property: "https://w3id.org/fep/5711#likedOf",
23930
+ error
23931
+ });
23932
+ return null;
23933
+ }
23090
23934
  }
23091
23935
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
23092
23936
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -24070,7 +24914,16 @@ var CollectionPage = class CollectionPage extends Collection {
24070
24914
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
24071
24915
  const prop = this._cachedJsonLd["partOf"];
24072
24916
  const doc = Array.isArray(prop) ? prop[0] : prop;
24073
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#partOf_fromJsonLd(doc, options);
24917
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
24918
+ v = await this.#partOf_fromJsonLd(doc, options);
24919
+ } catch (error) {
24920
+ if (!options.suppressError) throw error;
24921
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
24922
+ property: "https://www.w3.org/ns/activitystreams#partOf",
24923
+ error
24924
+ });
24925
+ return null;
24926
+ }
24074
24927
  }
24075
24928
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
24076
24929
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -24190,7 +25043,16 @@ var CollectionPage = class CollectionPage extends Collection {
24190
25043
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
24191
25044
  const prop = this._cachedJsonLd["next"];
24192
25045
  const doc = Array.isArray(prop) ? prop[0] : prop;
24193
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#next_fromJsonLd(doc, options);
25046
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
25047
+ v = await this.#next_fromJsonLd(doc, options);
25048
+ } catch (error) {
25049
+ if (!options.suppressError) throw error;
25050
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
25051
+ property: "https://www.w3.org/ns/activitystreams#next",
25052
+ error
25053
+ });
25054
+ return null;
25055
+ }
24194
25056
  }
24195
25057
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
24196
25058
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -24310,7 +25172,16 @@ var CollectionPage = class CollectionPage extends Collection {
24310
25172
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
24311
25173
  const prop = this._cachedJsonLd["prev"];
24312
25174
  const doc = Array.isArray(prop) ? prop[0] : prop;
24313
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#prev_fromJsonLd(doc, options);
25175
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
25176
+ v = await this.#prev_fromJsonLd(doc, options);
25177
+ } catch (error) {
25178
+ if (!options.suppressError) throw error;
25179
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
25180
+ property: "https://www.w3.org/ns/activitystreams#prev",
25181
+ error
25182
+ });
25183
+ return null;
25184
+ }
24314
25185
  }
24315
25186
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
24316
25187
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26520,7 +27391,16 @@ var Group = class Group extends Object$1 {
26520
27391
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26521
27392
  const prop = this._cachedJsonLd["publicKey"];
26522
27393
  const doc = Array.isArray(prop) ? prop[0] : prop;
26523
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
27394
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27395
+ v = await this.#publicKey_fromJsonLd(doc, options);
27396
+ } catch (error) {
27397
+ if (!options.suppressError) throw error;
27398
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27399
+ property: "https://w3id.org/security#publicKey",
27400
+ error
27401
+ });
27402
+ return null;
27403
+ }
26524
27404
  }
26525
27405
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26526
27406
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26561,7 +27441,17 @@ var Group = class Group extends Object$1 {
26561
27441
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26562
27442
  const prop = this._cachedJsonLd["publicKey"];
26563
27443
  const obj = Array.isArray(prop) ? prop[i] : prop;
26564
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
27444
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27445
+ v = await this.#publicKey_fromJsonLd(obj, options);
27446
+ } catch (error) {
27447
+ if (!options.suppressError) throw error;
27448
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27449
+ property: "https://w3id.org/security#publicKey",
27450
+ index: i,
27451
+ error
27452
+ });
27453
+ continue;
27454
+ }
26565
27455
  }
26566
27456
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26567
27457
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26685,7 +27575,16 @@ var Group = class Group extends Object$1 {
26685
27575
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
26686
27576
  const prop = this._cachedJsonLd["assertionMethod"];
26687
27577
  const doc = Array.isArray(prop) ? prop[0] : prop;
26688
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
27578
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27579
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
27580
+ } catch (error) {
27581
+ if (!options.suppressError) throw error;
27582
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27583
+ property: "https://w3id.org/security#assertionMethod",
27584
+ error
27585
+ });
27586
+ return null;
27587
+ }
26689
27588
  }
26690
27589
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
26691
27590
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26729,7 +27628,17 @@ var Group = class Group extends Object$1 {
26729
27628
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
26730
27629
  const prop = this._cachedJsonLd["assertionMethod"];
26731
27630
  const obj = Array.isArray(prop) ? prop[i] : prop;
26732
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
27631
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27632
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
27633
+ } catch (error) {
27634
+ if (!options.suppressError) throw error;
27635
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27636
+ property: "https://w3id.org/security#assertionMethod",
27637
+ index: i,
27638
+ error
27639
+ });
27640
+ continue;
27641
+ }
26733
27642
  }
26734
27643
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
26735
27644
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -26884,7 +27793,16 @@ var Group = class Group extends Object$1 {
26884
27793
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
26885
27794
  const prop = this._cachedJsonLd["inbox"];
26886
27795
  const doc = Array.isArray(prop) ? prop[0] : prop;
26887
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
27796
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27797
+ v = await this.#inbox_fromJsonLd(doc, options);
27798
+ } catch (error) {
27799
+ if (!options.suppressError) throw error;
27800
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27801
+ property: "http://www.w3.org/ns/ldp#inbox",
27802
+ error
27803
+ });
27804
+ return null;
27805
+ }
26888
27806
  }
26889
27807
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
26890
27808
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27023,7 +27941,16 @@ var Group = class Group extends Object$1 {
27023
27941
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
27024
27942
  const prop = this._cachedJsonLd["outbox"];
27025
27943
  const doc = Array.isArray(prop) ? prop[0] : prop;
27026
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
27944
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27945
+ v = await this.#outbox_fromJsonLd(doc, options);
27946
+ } catch (error) {
27947
+ if (!options.suppressError) throw error;
27948
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27949
+ property: "https://www.w3.org/ns/activitystreams#outbox",
27950
+ error
27951
+ });
27952
+ return null;
27953
+ }
27027
27954
  }
27028
27955
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
27029
27956
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27147,7 +28074,16 @@ var Group = class Group extends Object$1 {
27147
28074
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
27148
28075
  const prop = this._cachedJsonLd["following"];
27149
28076
  const doc = Array.isArray(prop) ? prop[0] : prop;
27150
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
28077
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28078
+ v = await this.#following_fromJsonLd(doc, options);
28079
+ } catch (error) {
28080
+ if (!options.suppressError) throw error;
28081
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28082
+ property: "https://www.w3.org/ns/activitystreams#following",
28083
+ error
28084
+ });
28085
+ return null;
28086
+ }
27151
28087
  }
27152
28088
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
27153
28089
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27274,7 +28210,16 @@ var Group = class Group extends Object$1 {
27274
28210
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
27275
28211
  const prop = this._cachedJsonLd["followers"];
27276
28212
  const doc = Array.isArray(prop) ? prop[0] : prop;
27277
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
28213
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28214
+ v = await this.#followers_fromJsonLd(doc, options);
28215
+ } catch (error) {
28216
+ if (!options.suppressError) throw error;
28217
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28218
+ property: "https://www.w3.org/ns/activitystreams#followers",
28219
+ error
28220
+ });
28221
+ return null;
28222
+ }
27278
28223
  }
27279
28224
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
27280
28225
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27399,7 +28344,16 @@ var Group = class Group extends Object$1 {
27399
28344
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
27400
28345
  const prop = this._cachedJsonLd["liked"];
27401
28346
  const doc = Array.isArray(prop) ? prop[0] : prop;
27402
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
28347
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28348
+ v = await this.#liked_fromJsonLd(doc, options);
28349
+ } catch (error) {
28350
+ if (!options.suppressError) throw error;
28351
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28352
+ property: "https://www.w3.org/ns/activitystreams#liked",
28353
+ error
28354
+ });
28355
+ return null;
28356
+ }
27403
28357
  }
27404
28358
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
27405
28359
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27522,7 +28476,16 @@ var Group = class Group extends Object$1 {
27522
28476
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
27523
28477
  const prop = this._cachedJsonLd["featured"];
27524
28478
  const doc = Array.isArray(prop) ? prop[0] : prop;
27525
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
28479
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28480
+ v = await this.#featured_fromJsonLd(doc, options);
28481
+ } catch (error) {
28482
+ if (!options.suppressError) throw error;
28483
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28484
+ property: "http://joinmastodon.org/ns#featured",
28485
+ error
28486
+ });
28487
+ return null;
28488
+ }
27526
28489
  }
27527
28490
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
27528
28491
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27645,7 +28608,16 @@ var Group = class Group extends Object$1 {
27645
28608
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
27646
28609
  const prop = this._cachedJsonLd["featuredTags"];
27647
28610
  const doc = Array.isArray(prop) ? prop[0] : prop;
27648
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
28611
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28612
+ v = await this.#featuredTags_fromJsonLd(doc, options);
28613
+ } catch (error) {
28614
+ if (!options.suppressError) throw error;
28615
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28616
+ property: "http://joinmastodon.org/ns#featuredTags",
28617
+ error
28618
+ });
28619
+ return null;
28620
+ }
27649
28621
  }
27650
28622
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
27651
28623
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27764,7 +28736,17 @@ var Group = class Group extends Object$1 {
27764
28736
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
27765
28737
  const prop = this._cachedJsonLd["streams"];
27766
28738
  const obj = Array.isArray(prop) ? prop[i] : prop;
27767
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
28739
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
28740
+ v = await this.#stream_fromJsonLd(obj, options);
28741
+ } catch (error) {
28742
+ if (!options.suppressError) throw error;
28743
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
28744
+ property: "https://www.w3.org/ns/activitystreams#streams",
28745
+ index: i,
28746
+ error
28747
+ });
28748
+ continue;
28749
+ }
27768
28750
  }
27769
28751
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
27770
28752
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -27973,7 +28955,16 @@ var Group = class Group extends Object$1 {
27973
28955
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
27974
28956
  const prop = this._cachedJsonLd["movedTo"];
27975
28957
  const doc = Array.isArray(prop) ? prop[0] : prop;
27976
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
28958
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28959
+ v = await this.#successor_fromJsonLd(doc, options);
28960
+ } catch (error) {
28961
+ if (!options.suppressError) throw error;
28962
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28963
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
28964
+ error
28965
+ });
28966
+ return null;
28967
+ }
27977
28968
  }
27978
28969
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
27979
28970
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28142,7 +29133,16 @@ var Group = class Group extends Object$1 {
28142
29133
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28143
29134
  const prop = this._cachedJsonLd["alsoKnownAs"];
28144
29135
  const doc = Array.isArray(prop) ? prop[0] : prop;
28145
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
29136
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29137
+ v = await this.#alias_fromJsonLd(doc, options);
29138
+ } catch (error) {
29139
+ if (!options.suppressError) throw error;
29140
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29141
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29142
+ error
29143
+ });
29144
+ return null;
29145
+ }
28146
29146
  }
28147
29147
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28148
29148
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28186,7 +29186,17 @@ var Group = class Group extends Object$1 {
28186
29186
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28187
29187
  const prop = this._cachedJsonLd["alsoKnownAs"];
28188
29188
  const obj = Array.isArray(prop) ? prop[i] : prop;
28189
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
29189
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29190
+ v = await this.#alias_fromJsonLd(obj, options);
29191
+ } catch (error) {
29192
+ if (!options.suppressError) throw error;
29193
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29194
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29195
+ index: i,
29196
+ error
29197
+ });
29198
+ continue;
29199
+ }
28190
29200
  }
28191
29201
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28192
29202
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28310,7 +29320,16 @@ var Group = class Group extends Object$1 {
28310
29320
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28311
29321
  const prop = this._cachedJsonLd["service"];
28312
29322
  const doc = Array.isArray(prop) ? prop[0] : prop;
28313
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
29323
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29324
+ v = await this.#service_fromJsonLd(doc, options);
29325
+ } catch (error) {
29326
+ if (!options.suppressError) throw error;
29327
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29328
+ property: "https://www.w3.org/ns/did#service",
29329
+ error
29330
+ });
29331
+ return null;
29332
+ }
28314
29333
  }
28315
29334
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28316
29335
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -28354,7 +29373,17 @@ var Group = class Group extends Object$1 {
28354
29373
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28355
29374
  const prop = this._cachedJsonLd["service"];
28356
29375
  const obj = Array.isArray(prop) ? prop[i] : prop;
28357
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
29376
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29377
+ v = await this.#service_fromJsonLd(obj, options);
29378
+ } catch (error) {
29379
+ if (!options.suppressError) throw error;
29380
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29381
+ property: "https://www.w3.org/ns/did#service",
29382
+ index: i,
29383
+ error
29384
+ });
29385
+ continue;
29386
+ }
28358
29387
  }
28359
29388
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28360
29389
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -29829,7 +30858,17 @@ var Link = class Link {
29829
30858
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
29830
30859
  const prop = this._cachedJsonLd["preview"];
29831
30860
  const obj = Array.isArray(prop) ? prop[i] : prop;
29832
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
30861
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
30862
+ v = await this.#preview_fromJsonLd(obj, options);
30863
+ } catch (error) {
30864
+ if (!options.suppressError) throw error;
30865
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
30866
+ property: "https://www.w3.org/ns/activitystreams#preview",
30867
+ index: i,
30868
+ error
30869
+ });
30870
+ continue;
30871
+ }
29833
30872
  }
29834
30873
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
29835
30874
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32009,7 +33048,16 @@ var Note = class Note extends Object$1 {
32009
33048
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
32010
33049
  const prop = this._cachedJsonLd["quote"];
32011
33050
  const doc = Array.isArray(prop) ? prop[0] : prop;
32012
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
33051
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33052
+ v = await this.#quote_fromJsonLd(doc, options);
33053
+ } catch (error) {
33054
+ if (!options.suppressError) throw error;
33055
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33056
+ property: "https://w3id.org/fep/044f#quote",
33057
+ error
33058
+ });
33059
+ return null;
33060
+ }
32013
33061
  }
32014
33062
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
32015
33063
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32146,7 +33194,16 @@ var Note = class Note extends Object$1 {
32146
33194
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
32147
33195
  const prop = this._cachedJsonLd["quoteAuthorization"];
32148
33196
  const doc = Array.isArray(prop) ? prop[0] : prop;
32149
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
33197
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33198
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
33199
+ } catch (error) {
33200
+ if (!options.suppressError) throw error;
33201
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33202
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
33203
+ error
33204
+ });
33205
+ return null;
33206
+ }
32150
33207
  }
32151
33208
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
32152
33209
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -32399,7 +33456,7 @@ var Note = class Note extends Object$1 {
32399
33456
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
32400
33457
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
32401
33458
  if (v == null) continue;
32402
- const decoded = new URL(v["@value"]);
33459
+ const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
32403
33460
  if (typeof decoded === "undefined") {
32404
33461
  shouldCacheJsonLd = false;
32405
33462
  continue;
@@ -32628,7 +33685,17 @@ var OrderedCollection = class OrderedCollection extends Collection {
32628
33685
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
32629
33686
  const prop = this._cachedJsonLd["orderedItems"];
32630
33687
  const obj = Array.isArray(prop) ? prop[i] : prop;
32631
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
33688
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
33689
+ v = await this.#item_fromJsonLd(obj, options);
33690
+ } catch (error) {
33691
+ if (!options.suppressError) throw error;
33692
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
33693
+ property: "https://www.w3.org/ns/activitystreams#items",
33694
+ index: i,
33695
+ error
33696
+ });
33697
+ continue;
33698
+ }
32632
33699
  }
32633
33700
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
32634
33701
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -33119,7 +34186,17 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
33119
34186
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
33120
34187
  const prop = this._cachedJsonLd["orderedItems"];
33121
34188
  const obj = Array.isArray(prop) ? prop[i] : prop;
33122
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
34189
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
34190
+ v = await this.#item_fromJsonLd(obj, options);
34191
+ } catch (error) {
34192
+ if (!options.suppressError) throw error;
34193
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
34194
+ property: "https://www.w3.org/ns/activitystreams#items",
34195
+ index: i,
34196
+ error
34197
+ });
34198
+ continue;
34199
+ }
33123
34200
  }
33124
34201
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
33125
34202
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -33915,7 +34992,16 @@ var Organization = class Organization extends Object$1 {
33915
34992
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
33916
34993
  const prop = this._cachedJsonLd["publicKey"];
33917
34994
  const doc = Array.isArray(prop) ? prop[0] : prop;
33918
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
34995
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
34996
+ v = await this.#publicKey_fromJsonLd(doc, options);
34997
+ } catch (error) {
34998
+ if (!options.suppressError) throw error;
34999
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35000
+ property: "https://w3id.org/security#publicKey",
35001
+ error
35002
+ });
35003
+ return null;
35004
+ }
33919
35005
  }
33920
35006
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
33921
35007
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -33956,7 +35042,17 @@ var Organization = class Organization extends Object$1 {
33956
35042
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
33957
35043
  const prop = this._cachedJsonLd["publicKey"];
33958
35044
  const obj = Array.isArray(prop) ? prop[i] : prop;
33959
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
35045
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
35046
+ v = await this.#publicKey_fromJsonLd(obj, options);
35047
+ } catch (error) {
35048
+ if (!options.suppressError) throw error;
35049
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
35050
+ property: "https://w3id.org/security#publicKey",
35051
+ index: i,
35052
+ error
35053
+ });
35054
+ continue;
35055
+ }
33960
35056
  }
33961
35057
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
33962
35058
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34080,7 +35176,16 @@ var Organization = class Organization extends Object$1 {
34080
35176
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
34081
35177
  const prop = this._cachedJsonLd["assertionMethod"];
34082
35178
  const doc = Array.isArray(prop) ? prop[0] : prop;
34083
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
35179
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35180
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
35181
+ } catch (error) {
35182
+ if (!options.suppressError) throw error;
35183
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35184
+ property: "https://w3id.org/security#assertionMethod",
35185
+ error
35186
+ });
35187
+ return null;
35188
+ }
34084
35189
  }
34085
35190
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
34086
35191
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34124,7 +35229,17 @@ var Organization = class Organization extends Object$1 {
34124
35229
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
34125
35230
  const prop = this._cachedJsonLd["assertionMethod"];
34126
35231
  const obj = Array.isArray(prop) ? prop[i] : prop;
34127
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
35232
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
35233
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
35234
+ } catch (error) {
35235
+ if (!options.suppressError) throw error;
35236
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
35237
+ property: "https://w3id.org/security#assertionMethod",
35238
+ index: i,
35239
+ error
35240
+ });
35241
+ continue;
35242
+ }
34128
35243
  }
34129
35244
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
34130
35245
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34279,7 +35394,16 @@ var Organization = class Organization extends Object$1 {
34279
35394
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
34280
35395
  const prop = this._cachedJsonLd["inbox"];
34281
35396
  const doc = Array.isArray(prop) ? prop[0] : prop;
34282
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
35397
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35398
+ v = await this.#inbox_fromJsonLd(doc, options);
35399
+ } catch (error) {
35400
+ if (!options.suppressError) throw error;
35401
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35402
+ property: "http://www.w3.org/ns/ldp#inbox",
35403
+ error
35404
+ });
35405
+ return null;
35406
+ }
34283
35407
  }
34284
35408
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
34285
35409
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34418,7 +35542,16 @@ var Organization = class Organization extends Object$1 {
34418
35542
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
34419
35543
  const prop = this._cachedJsonLd["outbox"];
34420
35544
  const doc = Array.isArray(prop) ? prop[0] : prop;
34421
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
35545
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35546
+ v = await this.#outbox_fromJsonLd(doc, options);
35547
+ } catch (error) {
35548
+ if (!options.suppressError) throw error;
35549
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35550
+ property: "https://www.w3.org/ns/activitystreams#outbox",
35551
+ error
35552
+ });
35553
+ return null;
35554
+ }
34422
35555
  }
34423
35556
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
34424
35557
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34542,7 +35675,16 @@ var Organization = class Organization extends Object$1 {
34542
35675
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
34543
35676
  const prop = this._cachedJsonLd["following"];
34544
35677
  const doc = Array.isArray(prop) ? prop[0] : prop;
34545
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
35678
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35679
+ v = await this.#following_fromJsonLd(doc, options);
35680
+ } catch (error) {
35681
+ if (!options.suppressError) throw error;
35682
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35683
+ property: "https://www.w3.org/ns/activitystreams#following",
35684
+ error
35685
+ });
35686
+ return null;
35687
+ }
34546
35688
  }
34547
35689
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
34548
35690
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34669,7 +35811,16 @@ var Organization = class Organization extends Object$1 {
34669
35811
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
34670
35812
  const prop = this._cachedJsonLd["followers"];
34671
35813
  const doc = Array.isArray(prop) ? prop[0] : prop;
34672
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
35814
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35815
+ v = await this.#followers_fromJsonLd(doc, options);
35816
+ } catch (error) {
35817
+ if (!options.suppressError) throw error;
35818
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35819
+ property: "https://www.w3.org/ns/activitystreams#followers",
35820
+ error
35821
+ });
35822
+ return null;
35823
+ }
34673
35824
  }
34674
35825
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
34675
35826
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34794,7 +35945,16 @@ var Organization = class Organization extends Object$1 {
34794
35945
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
34795
35946
  const prop = this._cachedJsonLd["liked"];
34796
35947
  const doc = Array.isArray(prop) ? prop[0] : prop;
34797
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
35948
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35949
+ v = await this.#liked_fromJsonLd(doc, options);
35950
+ } catch (error) {
35951
+ if (!options.suppressError) throw error;
35952
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35953
+ property: "https://www.w3.org/ns/activitystreams#liked",
35954
+ error
35955
+ });
35956
+ return null;
35957
+ }
34798
35958
  }
34799
35959
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
34800
35960
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -34917,7 +36077,16 @@ var Organization = class Organization extends Object$1 {
34917
36077
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
34918
36078
  const prop = this._cachedJsonLd["featured"];
34919
36079
  const doc = Array.isArray(prop) ? prop[0] : prop;
34920
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
36080
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36081
+ v = await this.#featured_fromJsonLd(doc, options);
36082
+ } catch (error) {
36083
+ if (!options.suppressError) throw error;
36084
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36085
+ property: "http://joinmastodon.org/ns#featured",
36086
+ error
36087
+ });
36088
+ return null;
36089
+ }
34921
36090
  }
34922
36091
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
34923
36092
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35040,7 +36209,16 @@ var Organization = class Organization extends Object$1 {
35040
36209
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
35041
36210
  const prop = this._cachedJsonLd["featuredTags"];
35042
36211
  const doc = Array.isArray(prop) ? prop[0] : prop;
35043
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
36212
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36213
+ v = await this.#featuredTags_fromJsonLd(doc, options);
36214
+ } catch (error) {
36215
+ if (!options.suppressError) throw error;
36216
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36217
+ property: "http://joinmastodon.org/ns#featuredTags",
36218
+ error
36219
+ });
36220
+ return null;
36221
+ }
35044
36222
  }
35045
36223
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
35046
36224
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35159,7 +36337,17 @@ var Organization = class Organization extends Object$1 {
35159
36337
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
35160
36338
  const prop = this._cachedJsonLd["streams"];
35161
36339
  const obj = Array.isArray(prop) ? prop[i] : prop;
35162
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
36340
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36341
+ v = await this.#stream_fromJsonLd(obj, options);
36342
+ } catch (error) {
36343
+ if (!options.suppressError) throw error;
36344
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36345
+ property: "https://www.w3.org/ns/activitystreams#streams",
36346
+ index: i,
36347
+ error
36348
+ });
36349
+ continue;
36350
+ }
35163
36351
  }
35164
36352
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
35165
36353
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35368,7 +36556,16 @@ var Organization = class Organization extends Object$1 {
35368
36556
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
35369
36557
  const prop = this._cachedJsonLd["movedTo"];
35370
36558
  const doc = Array.isArray(prop) ? prop[0] : prop;
35371
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
36559
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36560
+ v = await this.#successor_fromJsonLd(doc, options);
36561
+ } catch (error) {
36562
+ if (!options.suppressError) throw error;
36563
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36564
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
36565
+ error
36566
+ });
36567
+ return null;
36568
+ }
35372
36569
  }
35373
36570
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
35374
36571
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35537,7 +36734,16 @@ var Organization = class Organization extends Object$1 {
35537
36734
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
35538
36735
  const prop = this._cachedJsonLd["alsoKnownAs"];
35539
36736
  const doc = Array.isArray(prop) ? prop[0] : prop;
35540
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
36737
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36738
+ v = await this.#alias_fromJsonLd(doc, options);
36739
+ } catch (error) {
36740
+ if (!options.suppressError) throw error;
36741
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36742
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
36743
+ error
36744
+ });
36745
+ return null;
36746
+ }
35541
36747
  }
35542
36748
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
35543
36749
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35581,7 +36787,17 @@ var Organization = class Organization extends Object$1 {
35581
36787
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
35582
36788
  const prop = this._cachedJsonLd["alsoKnownAs"];
35583
36789
  const obj = Array.isArray(prop) ? prop[i] : prop;
35584
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
36790
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36791
+ v = await this.#alias_fromJsonLd(obj, options);
36792
+ } catch (error) {
36793
+ if (!options.suppressError) throw error;
36794
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36795
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
36796
+ index: i,
36797
+ error
36798
+ });
36799
+ continue;
36800
+ }
35585
36801
  }
35586
36802
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
35587
36803
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35705,7 +36921,16 @@ var Organization = class Organization extends Object$1 {
35705
36921
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
35706
36922
  const prop = this._cachedJsonLd["service"];
35707
36923
  const doc = Array.isArray(prop) ? prop[0] : prop;
35708
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
36924
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36925
+ v = await this.#service_fromJsonLd(doc, options);
36926
+ } catch (error) {
36927
+ if (!options.suppressError) throw error;
36928
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36929
+ property: "https://www.w3.org/ns/did#service",
36930
+ error
36931
+ });
36932
+ return null;
36933
+ }
35709
36934
  }
35710
36935
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
35711
36936
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -35749,7 +36974,17 @@ var Organization = class Organization extends Object$1 {
35749
36974
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
35750
36975
  const prop = this._cachedJsonLd["service"];
35751
36976
  const obj = Array.isArray(prop) ? prop[i] : prop;
35752
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
36977
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36978
+ v = await this.#service_fromJsonLd(obj, options);
36979
+ } catch (error) {
36980
+ if (!options.suppressError) throw error;
36981
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36982
+ property: "https://www.w3.org/ns/did#service",
36983
+ index: i,
36984
+ error
36985
+ });
36986
+ continue;
36987
+ }
35753
36988
  }
35754
36989
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
35755
36990
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37474,7 +38709,16 @@ var Person = class Person extends Object$1 {
37474
38709
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
37475
38710
  const prop = this._cachedJsonLd["publicKey"];
37476
38711
  const doc = Array.isArray(prop) ? prop[0] : prop;
37477
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
38712
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38713
+ v = await this.#publicKey_fromJsonLd(doc, options);
38714
+ } catch (error) {
38715
+ if (!options.suppressError) throw error;
38716
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38717
+ property: "https://w3id.org/security#publicKey",
38718
+ error
38719
+ });
38720
+ return null;
38721
+ }
37478
38722
  }
37479
38723
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
37480
38724
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37515,7 +38759,17 @@ var Person = class Person extends Object$1 {
37515
38759
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
37516
38760
  const prop = this._cachedJsonLd["publicKey"];
37517
38761
  const obj = Array.isArray(prop) ? prop[i] : prop;
37518
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
38762
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
38763
+ v = await this.#publicKey_fromJsonLd(obj, options);
38764
+ } catch (error) {
38765
+ if (!options.suppressError) throw error;
38766
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
38767
+ property: "https://w3id.org/security#publicKey",
38768
+ index: i,
38769
+ error
38770
+ });
38771
+ continue;
38772
+ }
37519
38773
  }
37520
38774
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
37521
38775
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37639,7 +38893,16 @@ var Person = class Person extends Object$1 {
37639
38893
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
37640
38894
  const prop = this._cachedJsonLd["assertionMethod"];
37641
38895
  const doc = Array.isArray(prop) ? prop[0] : prop;
37642
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
38896
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38897
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
38898
+ } catch (error) {
38899
+ if (!options.suppressError) throw error;
38900
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38901
+ property: "https://w3id.org/security#assertionMethod",
38902
+ error
38903
+ });
38904
+ return null;
38905
+ }
37643
38906
  }
37644
38907
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
37645
38908
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37683,7 +38946,17 @@ var Person = class Person extends Object$1 {
37683
38946
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
37684
38947
  const prop = this._cachedJsonLd["assertionMethod"];
37685
38948
  const obj = Array.isArray(prop) ? prop[i] : prop;
37686
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
38949
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
38950
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
38951
+ } catch (error) {
38952
+ if (!options.suppressError) throw error;
38953
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
38954
+ property: "https://w3id.org/security#assertionMethod",
38955
+ index: i,
38956
+ error
38957
+ });
38958
+ continue;
38959
+ }
37687
38960
  }
37688
38961
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
37689
38962
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37838,7 +39111,16 @@ var Person = class Person extends Object$1 {
37838
39111
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
37839
39112
  const prop = this._cachedJsonLd["inbox"];
37840
39113
  const doc = Array.isArray(prop) ? prop[0] : prop;
37841
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
39114
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39115
+ v = await this.#inbox_fromJsonLd(doc, options);
39116
+ } catch (error) {
39117
+ if (!options.suppressError) throw error;
39118
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39119
+ property: "http://www.w3.org/ns/ldp#inbox",
39120
+ error
39121
+ });
39122
+ return null;
39123
+ }
37842
39124
  }
37843
39125
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
37844
39126
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -37977,7 +39259,16 @@ var Person = class Person extends Object$1 {
37977
39259
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
37978
39260
  const prop = this._cachedJsonLd["outbox"];
37979
39261
  const doc = Array.isArray(prop) ? prop[0] : prop;
37980
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
39262
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39263
+ v = await this.#outbox_fromJsonLd(doc, options);
39264
+ } catch (error) {
39265
+ if (!options.suppressError) throw error;
39266
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39267
+ property: "https://www.w3.org/ns/activitystreams#outbox",
39268
+ error
39269
+ });
39270
+ return null;
39271
+ }
37981
39272
  }
37982
39273
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
37983
39274
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38101,7 +39392,16 @@ var Person = class Person extends Object$1 {
38101
39392
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
38102
39393
  const prop = this._cachedJsonLd["following"];
38103
39394
  const doc = Array.isArray(prop) ? prop[0] : prop;
38104
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
39395
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39396
+ v = await this.#following_fromJsonLd(doc, options);
39397
+ } catch (error) {
39398
+ if (!options.suppressError) throw error;
39399
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39400
+ property: "https://www.w3.org/ns/activitystreams#following",
39401
+ error
39402
+ });
39403
+ return null;
39404
+ }
38105
39405
  }
38106
39406
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
38107
39407
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38228,7 +39528,16 @@ var Person = class Person extends Object$1 {
38228
39528
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
38229
39529
  const prop = this._cachedJsonLd["followers"];
38230
39530
  const doc = Array.isArray(prop) ? prop[0] : prop;
38231
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
39531
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39532
+ v = await this.#followers_fromJsonLd(doc, options);
39533
+ } catch (error) {
39534
+ if (!options.suppressError) throw error;
39535
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39536
+ property: "https://www.w3.org/ns/activitystreams#followers",
39537
+ error
39538
+ });
39539
+ return null;
39540
+ }
38232
39541
  }
38233
39542
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
38234
39543
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38353,7 +39662,16 @@ var Person = class Person extends Object$1 {
38353
39662
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
38354
39663
  const prop = this._cachedJsonLd["liked"];
38355
39664
  const doc = Array.isArray(prop) ? prop[0] : prop;
38356
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
39665
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39666
+ v = await this.#liked_fromJsonLd(doc, options);
39667
+ } catch (error) {
39668
+ if (!options.suppressError) throw error;
39669
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39670
+ property: "https://www.w3.org/ns/activitystreams#liked",
39671
+ error
39672
+ });
39673
+ return null;
39674
+ }
38357
39675
  }
38358
39676
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
38359
39677
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38476,7 +39794,16 @@ var Person = class Person extends Object$1 {
38476
39794
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
38477
39795
  const prop = this._cachedJsonLd["featured"];
38478
39796
  const doc = Array.isArray(prop) ? prop[0] : prop;
38479
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
39797
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39798
+ v = await this.#featured_fromJsonLd(doc, options);
39799
+ } catch (error) {
39800
+ if (!options.suppressError) throw error;
39801
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39802
+ property: "http://joinmastodon.org/ns#featured",
39803
+ error
39804
+ });
39805
+ return null;
39806
+ }
38480
39807
  }
38481
39808
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
38482
39809
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38599,7 +39926,16 @@ var Person = class Person extends Object$1 {
38599
39926
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
38600
39927
  const prop = this._cachedJsonLd["featuredTags"];
38601
39928
  const doc = Array.isArray(prop) ? prop[0] : prop;
38602
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
39929
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39930
+ v = await this.#featuredTags_fromJsonLd(doc, options);
39931
+ } catch (error) {
39932
+ if (!options.suppressError) throw error;
39933
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39934
+ property: "http://joinmastodon.org/ns#featuredTags",
39935
+ error
39936
+ });
39937
+ return null;
39938
+ }
38603
39939
  }
38604
39940
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
38605
39941
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38718,7 +40054,17 @@ var Person = class Person extends Object$1 {
38718
40054
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
38719
40055
  const prop = this._cachedJsonLd["streams"];
38720
40056
  const obj = Array.isArray(prop) ? prop[i] : prop;
38721
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
40057
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
40058
+ v = await this.#stream_fromJsonLd(obj, options);
40059
+ } catch (error) {
40060
+ if (!options.suppressError) throw error;
40061
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
40062
+ property: "https://www.w3.org/ns/activitystreams#streams",
40063
+ index: i,
40064
+ error
40065
+ });
40066
+ continue;
40067
+ }
38722
40068
  }
38723
40069
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
38724
40070
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -38927,7 +40273,16 @@ var Person = class Person extends Object$1 {
38927
40273
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
38928
40274
  const prop = this._cachedJsonLd["movedTo"];
38929
40275
  const doc = Array.isArray(prop) ? prop[0] : prop;
38930
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
40276
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
40277
+ v = await this.#successor_fromJsonLd(doc, options);
40278
+ } catch (error) {
40279
+ if (!options.suppressError) throw error;
40280
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
40281
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
40282
+ error
40283
+ });
40284
+ return null;
40285
+ }
38931
40286
  }
38932
40287
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
38933
40288
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -39096,7 +40451,16 @@ var Person = class Person extends Object$1 {
39096
40451
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
39097
40452
  const prop = this._cachedJsonLd["alsoKnownAs"];
39098
40453
  const doc = Array.isArray(prop) ? prop[0] : prop;
39099
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
40454
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
40455
+ v = await this.#alias_fromJsonLd(doc, options);
40456
+ } catch (error) {
40457
+ if (!options.suppressError) throw error;
40458
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
40459
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
40460
+ error
40461
+ });
40462
+ return null;
40463
+ }
39100
40464
  }
39101
40465
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
39102
40466
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -39140,7 +40504,17 @@ var Person = class Person extends Object$1 {
39140
40504
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
39141
40505
  const prop = this._cachedJsonLd["alsoKnownAs"];
39142
40506
  const obj = Array.isArray(prop) ? prop[i] : prop;
39143
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
40507
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
40508
+ v = await this.#alias_fromJsonLd(obj, options);
40509
+ } catch (error) {
40510
+ if (!options.suppressError) throw error;
40511
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
40512
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
40513
+ index: i,
40514
+ error
40515
+ });
40516
+ continue;
40517
+ }
39144
40518
  }
39145
40519
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
39146
40520
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -39264,7 +40638,16 @@ var Person = class Person extends Object$1 {
39264
40638
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
39265
40639
  const prop = this._cachedJsonLd["service"];
39266
40640
  const doc = Array.isArray(prop) ? prop[0] : prop;
39267
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
40641
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
40642
+ v = await this.#service_fromJsonLd(doc, options);
40643
+ } catch (error) {
40644
+ if (!options.suppressError) throw error;
40645
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
40646
+ property: "https://www.w3.org/ns/did#service",
40647
+ error
40648
+ });
40649
+ return null;
40650
+ }
39268
40651
  }
39269
40652
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
39270
40653
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -39308,7 +40691,17 @@ var Person = class Person extends Object$1 {
39308
40691
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
39309
40692
  const prop = this._cachedJsonLd["service"];
39310
40693
  const obj = Array.isArray(prop) ? prop[i] : prop;
39311
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
40694
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
40695
+ v = await this.#service_fromJsonLd(obj, options);
40696
+ } catch (error) {
40697
+ if (!options.suppressError) throw error;
40698
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
40699
+ property: "https://www.w3.org/ns/did#service",
40700
+ index: i,
40701
+ error
40702
+ });
40703
+ continue;
40704
+ }
39312
40705
  }
39313
40706
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
39314
40707
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -41041,7 +42434,16 @@ var Profile = class Profile extends Object$1 {
41041
42434
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
41042
42435
  const prop = this._cachedJsonLd["describes"];
41043
42436
  const doc = Array.isArray(prop) ? prop[0] : prop;
41044
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#describes_fromJsonLd(doc, options);
42437
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
42438
+ v = await this.#describes_fromJsonLd(doc, options);
42439
+ } catch (error) {
42440
+ if (!options.suppressError) throw error;
42441
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
42442
+ property: "https://www.w3.org/ns/activitystreams#describes",
42443
+ error
42444
+ });
42445
+ return null;
42446
+ }
41045
42447
  }
41046
42448
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
41047
42449
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -41445,7 +42847,17 @@ var Question = class Question extends IntransitiveActivity {
41445
42847
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
41446
42848
  const prop = this._cachedJsonLd["oneOf"];
41447
42849
  const obj = Array.isArray(prop) ? prop[i] : prop;
41448
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#exclusiveOption_fromJsonLd(obj, options);
42850
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
42851
+ v = await this.#exclusiveOption_fromJsonLd(obj, options);
42852
+ } catch (error) {
42853
+ if (!options.suppressError) throw error;
42854
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
42855
+ property: "https://www.w3.org/ns/activitystreams#oneOf",
42856
+ index: i,
42857
+ error
42858
+ });
42859
+ continue;
42860
+ }
41449
42861
  }
41450
42862
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
41451
42863
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -41567,7 +42979,17 @@ var Question = class Question extends IntransitiveActivity {
41567
42979
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
41568
42980
  const prop = this._cachedJsonLd["anyOf"];
41569
42981
  const obj = Array.isArray(prop) ? prop[i] : prop;
41570
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#inclusiveOption_fromJsonLd(obj, options);
42982
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
42983
+ v = await this.#inclusiveOption_fromJsonLd(obj, options);
42984
+ } catch (error) {
42985
+ if (!options.suppressError) throw error;
42986
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
42987
+ property: "https://www.w3.org/ns/activitystreams#anyOf",
42988
+ index: i,
42989
+ error
42990
+ });
42991
+ continue;
42992
+ }
41571
42993
  }
41572
42994
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
41573
42995
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -41706,7 +43128,16 @@ var Question = class Question extends IntransitiveActivity {
41706
43128
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
41707
43129
  const prop = this._cachedJsonLd["quote"];
41708
43130
  const doc = Array.isArray(prop) ? prop[0] : prop;
41709
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
43131
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
43132
+ v = await this.#quote_fromJsonLd(doc, options);
43133
+ } catch (error) {
43134
+ if (!options.suppressError) throw error;
43135
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
43136
+ property: "https://w3id.org/fep/044f#quote",
43137
+ error
43138
+ });
43139
+ return null;
43140
+ }
41710
43141
  }
41711
43142
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
41712
43143
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -41843,7 +43274,16 @@ var Question = class Question extends IntransitiveActivity {
41843
43274
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
41844
43275
  const prop = this._cachedJsonLd["quoteAuthorization"];
41845
43276
  const doc = Array.isArray(prop) ? prop[0] : prop;
41846
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
43277
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
43278
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
43279
+ } catch (error) {
43280
+ if (!options.suppressError) throw error;
43281
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
43282
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
43283
+ error
43284
+ });
43285
+ return null;
43286
+ }
41847
43287
  }
41848
43288
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
41849
43289
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -42128,7 +43568,7 @@ var Question = class Question extends IntransitiveActivity {
42128
43568
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
42129
43569
  for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
42130
43570
  if (v == null) continue;
42131
- const decoded = new URL(v["@value"]);
43571
+ const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
42132
43572
  if (typeof decoded === "undefined") {
42133
43573
  shouldCacheJsonLd = false;
42134
43574
  continue;
@@ -42730,7 +44170,16 @@ var Relationship = class Relationship extends Object$1 {
42730
44170
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
42731
44171
  const prop = this._cachedJsonLd["subject"];
42732
44172
  const doc = Array.isArray(prop) ? prop[0] : prop;
42733
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#subject_fromJsonLd(doc, options);
44173
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
44174
+ v = await this.#subject_fromJsonLd(doc, options);
44175
+ } catch (error) {
44176
+ if (!options.suppressError) throw error;
44177
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
44178
+ property: "https://www.w3.org/ns/activitystreams#subject",
44179
+ error
44180
+ });
44181
+ return null;
44182
+ }
42734
44183
  }
42735
44184
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
42736
44185
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -42850,7 +44299,16 @@ var Relationship = class Relationship extends Object$1 {
42850
44299
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
42851
44300
  const prop = this._cachedJsonLd["object"];
42852
44301
  const doc = Array.isArray(prop) ? prop[0] : prop;
42853
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
44302
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
44303
+ v = await this.#object_fromJsonLd(doc, options);
44304
+ } catch (error) {
44305
+ if (!options.suppressError) throw error;
44306
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
44307
+ property: "https://www.w3.org/ns/activitystreams#object",
44308
+ error
44309
+ });
44310
+ return null;
44311
+ }
42854
44312
  }
42855
44313
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
42856
44314
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -42891,7 +44349,17 @@ var Relationship = class Relationship extends Object$1 {
42891
44349
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
42892
44350
  const prop = this._cachedJsonLd["object"];
42893
44351
  const obj = Array.isArray(prop) ? prop[i] : prop;
42894
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
44352
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
44353
+ v = await this.#object_fromJsonLd(obj, options);
44354
+ } catch (error) {
44355
+ if (!options.suppressError) throw error;
44356
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
44357
+ property: "https://www.w3.org/ns/activitystreams#object",
44358
+ index: i,
44359
+ error
44360
+ });
44361
+ continue;
44362
+ }
42895
44363
  }
42896
44364
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
42897
44365
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -43014,7 +44482,16 @@ var Relationship = class Relationship extends Object$1 {
43014
44482
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
43015
44483
  const prop = this._cachedJsonLd["relationship"];
43016
44484
  const doc = Array.isArray(prop) ? prop[0] : prop;
43017
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#relationship_fromJsonLd(doc, options);
44485
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
44486
+ v = await this.#relationship_fromJsonLd(doc, options);
44487
+ } catch (error) {
44488
+ if (!options.suppressError) throw error;
44489
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
44490
+ property: "https://www.w3.org/ns/activitystreams#relationship",
44491
+ error
44492
+ });
44493
+ return null;
44494
+ }
43018
44495
  }
43019
44496
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
43020
44497
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -43057,7 +44534,17 @@ var Relationship = class Relationship extends Object$1 {
43057
44534
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
43058
44535
  const prop = this._cachedJsonLd["relationship"];
43059
44536
  const obj = Array.isArray(prop) ? prop[i] : prop;
43060
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#relationship_fromJsonLd(obj, options);
44537
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
44538
+ v = await this.#relationship_fromJsonLd(obj, options);
44539
+ } catch (error) {
44540
+ if (!options.suppressError) throw error;
44541
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
44542
+ property: "https://www.w3.org/ns/activitystreams#relationship",
44543
+ index: i,
44544
+ error
44545
+ });
44546
+ continue;
44547
+ }
43061
44548
  }
43062
44549
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
43063
44550
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -43916,7 +45403,16 @@ var Service = class Service extends Object$1 {
43916
45403
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
43917
45404
  const prop = this._cachedJsonLd["publicKey"];
43918
45405
  const doc = Array.isArray(prop) ? prop[0] : prop;
43919
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
45406
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45407
+ v = await this.#publicKey_fromJsonLd(doc, options);
45408
+ } catch (error) {
45409
+ if (!options.suppressError) throw error;
45410
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45411
+ property: "https://w3id.org/security#publicKey",
45412
+ error
45413
+ });
45414
+ return null;
45415
+ }
43920
45416
  }
43921
45417
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
43922
45418
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -43957,7 +45453,17 @@ var Service = class Service extends Object$1 {
43957
45453
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
43958
45454
  const prop = this._cachedJsonLd["publicKey"];
43959
45455
  const obj = Array.isArray(prop) ? prop[i] : prop;
43960
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
45456
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
45457
+ v = await this.#publicKey_fromJsonLd(obj, options);
45458
+ } catch (error) {
45459
+ if (!options.suppressError) throw error;
45460
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
45461
+ property: "https://w3id.org/security#publicKey",
45462
+ index: i,
45463
+ error
45464
+ });
45465
+ continue;
45466
+ }
43961
45467
  }
43962
45468
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
43963
45469
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44081,7 +45587,16 @@ var Service = class Service extends Object$1 {
44081
45587
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
44082
45588
  const prop = this._cachedJsonLd["assertionMethod"];
44083
45589
  const doc = Array.isArray(prop) ? prop[0] : prop;
44084
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
45590
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45591
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
45592
+ } catch (error) {
45593
+ if (!options.suppressError) throw error;
45594
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45595
+ property: "https://w3id.org/security#assertionMethod",
45596
+ error
45597
+ });
45598
+ return null;
45599
+ }
44085
45600
  }
44086
45601
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
44087
45602
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44125,7 +45640,17 @@ var Service = class Service extends Object$1 {
44125
45640
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
44126
45641
  const prop = this._cachedJsonLd["assertionMethod"];
44127
45642
  const obj = Array.isArray(prop) ? prop[i] : prop;
44128
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
45643
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
45644
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
45645
+ } catch (error) {
45646
+ if (!options.suppressError) throw error;
45647
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
45648
+ property: "https://w3id.org/security#assertionMethod",
45649
+ index: i,
45650
+ error
45651
+ });
45652
+ continue;
45653
+ }
44129
45654
  }
44130
45655
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
44131
45656
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44280,7 +45805,16 @@ var Service = class Service extends Object$1 {
44280
45805
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
44281
45806
  const prop = this._cachedJsonLd["inbox"];
44282
45807
  const doc = Array.isArray(prop) ? prop[0] : prop;
44283
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
45808
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45809
+ v = await this.#inbox_fromJsonLd(doc, options);
45810
+ } catch (error) {
45811
+ if (!options.suppressError) throw error;
45812
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45813
+ property: "http://www.w3.org/ns/ldp#inbox",
45814
+ error
45815
+ });
45816
+ return null;
45817
+ }
44284
45818
  }
44285
45819
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
44286
45820
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44419,7 +45953,16 @@ var Service = class Service extends Object$1 {
44419
45953
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
44420
45954
  const prop = this._cachedJsonLd["outbox"];
44421
45955
  const doc = Array.isArray(prop) ? prop[0] : prop;
44422
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
45956
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45957
+ v = await this.#outbox_fromJsonLd(doc, options);
45958
+ } catch (error) {
45959
+ if (!options.suppressError) throw error;
45960
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45961
+ property: "https://www.w3.org/ns/activitystreams#outbox",
45962
+ error
45963
+ });
45964
+ return null;
45965
+ }
44423
45966
  }
44424
45967
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
44425
45968
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44543,7 +46086,16 @@ var Service = class Service extends Object$1 {
44543
46086
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
44544
46087
  const prop = this._cachedJsonLd["following"];
44545
46088
  const doc = Array.isArray(prop) ? prop[0] : prop;
44546
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
46089
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46090
+ v = await this.#following_fromJsonLd(doc, options);
46091
+ } catch (error) {
46092
+ if (!options.suppressError) throw error;
46093
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46094
+ property: "https://www.w3.org/ns/activitystreams#following",
46095
+ error
46096
+ });
46097
+ return null;
46098
+ }
44547
46099
  }
44548
46100
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
44549
46101
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44670,7 +46222,16 @@ var Service = class Service extends Object$1 {
44670
46222
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
44671
46223
  const prop = this._cachedJsonLd["followers"];
44672
46224
  const doc = Array.isArray(prop) ? prop[0] : prop;
44673
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
46225
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46226
+ v = await this.#followers_fromJsonLd(doc, options);
46227
+ } catch (error) {
46228
+ if (!options.suppressError) throw error;
46229
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46230
+ property: "https://www.w3.org/ns/activitystreams#followers",
46231
+ error
46232
+ });
46233
+ return null;
46234
+ }
44674
46235
  }
44675
46236
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
44676
46237
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44795,7 +46356,16 @@ var Service = class Service extends Object$1 {
44795
46356
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
44796
46357
  const prop = this._cachedJsonLd["liked"];
44797
46358
  const doc = Array.isArray(prop) ? prop[0] : prop;
44798
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
46359
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46360
+ v = await this.#liked_fromJsonLd(doc, options);
46361
+ } catch (error) {
46362
+ if (!options.suppressError) throw error;
46363
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46364
+ property: "https://www.w3.org/ns/activitystreams#liked",
46365
+ error
46366
+ });
46367
+ return null;
46368
+ }
44799
46369
  }
44800
46370
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
44801
46371
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -44918,7 +46488,16 @@ var Service = class Service extends Object$1 {
44918
46488
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
44919
46489
  const prop = this._cachedJsonLd["featured"];
44920
46490
  const doc = Array.isArray(prop) ? prop[0] : prop;
44921
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
46491
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46492
+ v = await this.#featured_fromJsonLd(doc, options);
46493
+ } catch (error) {
46494
+ if (!options.suppressError) throw error;
46495
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46496
+ property: "http://joinmastodon.org/ns#featured",
46497
+ error
46498
+ });
46499
+ return null;
46500
+ }
44922
46501
  }
44923
46502
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
44924
46503
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -45041,7 +46620,16 @@ var Service = class Service extends Object$1 {
45041
46620
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
45042
46621
  const prop = this._cachedJsonLd["featuredTags"];
45043
46622
  const doc = Array.isArray(prop) ? prop[0] : prop;
45044
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
46623
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46624
+ v = await this.#featuredTags_fromJsonLd(doc, options);
46625
+ } catch (error) {
46626
+ if (!options.suppressError) throw error;
46627
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46628
+ property: "http://joinmastodon.org/ns#featuredTags",
46629
+ error
46630
+ });
46631
+ return null;
46632
+ }
45045
46633
  }
45046
46634
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
45047
46635
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -45160,7 +46748,17 @@ var Service = class Service extends Object$1 {
45160
46748
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
45161
46749
  const prop = this._cachedJsonLd["streams"];
45162
46750
  const obj = Array.isArray(prop) ? prop[i] : prop;
45163
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
46751
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
46752
+ v = await this.#stream_fromJsonLd(obj, options);
46753
+ } catch (error) {
46754
+ if (!options.suppressError) throw error;
46755
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
46756
+ property: "https://www.w3.org/ns/activitystreams#streams",
46757
+ index: i,
46758
+ error
46759
+ });
46760
+ continue;
46761
+ }
45164
46762
  }
45165
46763
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
45166
46764
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -45369,7 +46967,16 @@ var Service = class Service extends Object$1 {
45369
46967
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
45370
46968
  const prop = this._cachedJsonLd["movedTo"];
45371
46969
  const doc = Array.isArray(prop) ? prop[0] : prop;
45372
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
46970
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46971
+ v = await this.#successor_fromJsonLd(doc, options);
46972
+ } catch (error) {
46973
+ if (!options.suppressError) throw error;
46974
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46975
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
46976
+ error
46977
+ });
46978
+ return null;
46979
+ }
45373
46980
  }
45374
46981
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
45375
46982
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -45538,7 +47145,16 @@ var Service = class Service extends Object$1 {
45538
47145
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
45539
47146
  const prop = this._cachedJsonLd["alsoKnownAs"];
45540
47147
  const doc = Array.isArray(prop) ? prop[0] : prop;
45541
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
47148
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
47149
+ v = await this.#alias_fromJsonLd(doc, options);
47150
+ } catch (error) {
47151
+ if (!options.suppressError) throw error;
47152
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
47153
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
47154
+ error
47155
+ });
47156
+ return null;
47157
+ }
45542
47158
  }
45543
47159
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
45544
47160
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -45582,7 +47198,17 @@ var Service = class Service extends Object$1 {
45582
47198
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
45583
47199
  const prop = this._cachedJsonLd["alsoKnownAs"];
45584
47200
  const obj = Array.isArray(prop) ? prop[i] : prop;
45585
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
47201
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
47202
+ v = await this.#alias_fromJsonLd(obj, options);
47203
+ } catch (error) {
47204
+ if (!options.suppressError) throw error;
47205
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
47206
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
47207
+ index: i,
47208
+ error
47209
+ });
47210
+ continue;
47211
+ }
45586
47212
  }
45587
47213
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
45588
47214
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -45706,7 +47332,16 @@ var Service = class Service extends Object$1 {
45706
47332
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
45707
47333
  const prop = this._cachedJsonLd["service"];
45708
47334
  const doc = Array.isArray(prop) ? prop[0] : prop;
45709
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
47335
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
47336
+ v = await this.#service_fromJsonLd(doc, options);
47337
+ } catch (error) {
47338
+ if (!options.suppressError) throw error;
47339
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
47340
+ property: "https://www.w3.org/ns/did#service",
47341
+ error
47342
+ });
47343
+ return null;
47344
+ }
45710
47345
  }
45711
47346
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
45712
47347
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
@@ -45750,7 +47385,17 @@ var Service = class Service extends Object$1 {
45750
47385
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
45751
47386
  const prop = this._cachedJsonLd["service"];
45752
47387
  const obj = Array.isArray(prop) ? prop[i] : prop;
45753
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
47388
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
47389
+ v = await this.#service_fromJsonLd(obj, options);
47390
+ } catch (error) {
47391
+ if (!options.suppressError) throw error;
47392
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
47393
+ property: "https://www.w3.org/ns/did#service",
47394
+ index: i,
47395
+ error
47396
+ });
47397
+ continue;
47398
+ }
45754
47399
  }
45755
47400
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
45756
47401
  if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");