@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.
package/dist/mod.js CHANGED
@@ -9,7 +9,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
9
9
  import { delay } from "es-toolkit";
10
10
  //#region deno.json
11
11
  var name = "@fedify/vocab";
12
- var version = "2.2.14-dev.2082+79cd52e9";
12
+ var version = "2.2.14";
13
13
  //#endregion
14
14
  //#region src/type.ts
15
15
  function getTypeId(object) {
@@ -18,6 +18,12 @@ function getTypeId(object) {
18
18
  }
19
19
  //#endregion
20
20
  //#region src/vocab.ts
21
+ function canDecodeIri(iri) {
22
+ return URL.canParse(iri) || iri.startsWith("at://");
23
+ }
24
+ function decodeIri(iri) {
25
+ return !URL.canParse(iri) && iri.startsWith("at://") ? new URL("at://" + encodeURIComponent(iri.substring(5))) : new URL(iri);
26
+ }
21
27
  function isValidLanguageTag(language) {
22
28
  try {
23
29
  new Intl.Locale(language);
@@ -823,7 +829,17 @@ var Object$1 = class Object$1 {
823
829
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
824
830
  const prop = this._cachedJsonLd["attachment"];
825
831
  const obj = Array.isArray(prop) ? prop[i] : prop;
826
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attachment_fromJsonLd(obj, options);
832
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
833
+ v = await this.#attachment_fromJsonLd(obj, options);
834
+ } catch (error) {
835
+ if (!options.suppressError) throw error;
836
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
837
+ property: "https://www.w3.org/ns/activitystreams#attachment",
838
+ index: i,
839
+ error
840
+ });
841
+ continue;
842
+ }
827
843
  }
828
844
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
829
845
  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\".");
@@ -992,7 +1008,16 @@ var Object$1 = class Object$1 {
992
1008
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
993
1009
  const prop = this._cachedJsonLd["attributedTo"];
994
1010
  const doc = Array.isArray(prop) ? prop[0] : prop;
995
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#attribution_fromJsonLd(doc, options);
1011
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1012
+ v = await this.#attribution_fromJsonLd(doc, options);
1013
+ } catch (error) {
1014
+ if (!options.suppressError) throw error;
1015
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1016
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
1017
+ error
1018
+ });
1019
+ return null;
1020
+ }
996
1021
  }
997
1022
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
998
1023
  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\".");
@@ -1035,7 +1060,17 @@ var Object$1 = class Object$1 {
1035
1060
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
1036
1061
  const prop = this._cachedJsonLd["attributedTo"];
1037
1062
  const obj = Array.isArray(prop) ? prop[i] : prop;
1038
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#attribution_fromJsonLd(obj, options);
1063
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1064
+ v = await this.#attribution_fromJsonLd(obj, options);
1065
+ } catch (error) {
1066
+ if (!options.suppressError) throw error;
1067
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1068
+ property: "https://www.w3.org/ns/activitystreams#attributedTo",
1069
+ index: i,
1070
+ error
1071
+ });
1072
+ continue;
1073
+ }
1039
1074
  }
1040
1075
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
1041
1076
  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\".");
@@ -1157,7 +1192,16 @@ var Object$1 = class Object$1 {
1157
1192
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1158
1193
  const prop = this._cachedJsonLd["audience"];
1159
1194
  const doc = Array.isArray(prop) ? prop[0] : prop;
1160
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#audience_fromJsonLd(doc, options);
1195
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1196
+ v = await this.#audience_fromJsonLd(doc, options);
1197
+ } catch (error) {
1198
+ if (!options.suppressError) throw error;
1199
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1200
+ property: "https://www.w3.org/ns/activitystreams#audience",
1201
+ error
1202
+ });
1203
+ return null;
1204
+ }
1161
1205
  }
1162
1206
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1163
1207
  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\".");
@@ -1199,7 +1243,17 @@ var Object$1 = class Object$1 {
1199
1243
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
1200
1244
  const prop = this._cachedJsonLd["audience"];
1201
1245
  const obj = Array.isArray(prop) ? prop[i] : prop;
1202
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#audience_fromJsonLd(obj, options);
1246
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1247
+ v = await this.#audience_fromJsonLd(obj, options);
1248
+ } catch (error) {
1249
+ if (!options.suppressError) throw error;
1250
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1251
+ property: "https://www.w3.org/ns/activitystreams#audience",
1252
+ index: i,
1253
+ error
1254
+ });
1255
+ continue;
1256
+ }
1203
1257
  }
1204
1258
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
1205
1259
  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\".");
@@ -1355,7 +1409,17 @@ var Object$1 = class Object$1 {
1355
1409
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
1356
1410
  const prop = this._cachedJsonLd["context"];
1357
1411
  const obj = Array.isArray(prop) ? prop[i] : prop;
1358
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#context_fromJsonLd(obj, options);
1412
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1413
+ v = await this.#context_fromJsonLd(obj, options);
1414
+ } catch (error) {
1415
+ if (!options.suppressError) throw error;
1416
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1417
+ property: "https://www.w3.org/ns/activitystreams#context",
1418
+ index: i,
1419
+ error
1420
+ });
1421
+ continue;
1422
+ }
1359
1423
  }
1360
1424
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
1361
1425
  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\".");
@@ -1511,7 +1575,17 @@ var Object$1 = class Object$1 {
1511
1575
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
1512
1576
  const prop = this._cachedJsonLd["generator"];
1513
1577
  const obj = Array.isArray(prop) ? prop[i] : prop;
1514
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#generator_fromJsonLd(obj, options);
1578
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1579
+ v = await this.#generator_fromJsonLd(obj, options);
1580
+ } catch (error) {
1581
+ if (!options.suppressError) throw error;
1582
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1583
+ property: "https://www.w3.org/ns/activitystreams#generator",
1584
+ index: i,
1585
+ error
1586
+ });
1587
+ continue;
1588
+ }
1515
1589
  }
1516
1590
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
1517
1591
  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\".");
@@ -1634,7 +1708,16 @@ var Object$1 = class Object$1 {
1634
1708
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1635
1709
  const prop = this._cachedJsonLd["icon"];
1636
1710
  const doc = Array.isArray(prop) ? prop[0] : prop;
1637
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#icon_fromJsonLd(doc, options);
1711
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1712
+ v = await this.#icon_fromJsonLd(doc, options);
1713
+ } catch (error) {
1714
+ if (!options.suppressError) throw error;
1715
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1716
+ property: "https://www.w3.org/ns/activitystreams#icon",
1717
+ error
1718
+ });
1719
+ return null;
1720
+ }
1638
1721
  }
1639
1722
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1640
1723
  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\".");
@@ -1677,7 +1760,17 @@ var Object$1 = class Object$1 {
1677
1760
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
1678
1761
  const prop = this._cachedJsonLd["icon"];
1679
1762
  const obj = Array.isArray(prop) ? prop[i] : prop;
1680
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#icon_fromJsonLd(obj, options);
1763
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1764
+ v = await this.#icon_fromJsonLd(obj, options);
1765
+ } catch (error) {
1766
+ if (!options.suppressError) throw error;
1767
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1768
+ property: "https://www.w3.org/ns/activitystreams#icon",
1769
+ index: i,
1770
+ error
1771
+ });
1772
+ continue;
1773
+ }
1681
1774
  }
1682
1775
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
1683
1776
  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\".");
@@ -1800,7 +1893,16 @@ var Object$1 = class Object$1 {
1800
1893
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1801
1894
  const prop = this._cachedJsonLd["image"];
1802
1895
  const doc = Array.isArray(prop) ? prop[0] : prop;
1803
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#image_fromJsonLd(doc, options);
1896
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
1897
+ v = await this.#image_fromJsonLd(doc, options);
1898
+ } catch (error) {
1899
+ if (!options.suppressError) throw error;
1900
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
1901
+ property: "https://www.w3.org/ns/activitystreams#image",
1902
+ error
1903
+ });
1904
+ return null;
1905
+ }
1804
1906
  }
1805
1907
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1806
1908
  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\".");
@@ -1843,7 +1945,17 @@ var Object$1 = class Object$1 {
1843
1945
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
1844
1946
  const prop = this._cachedJsonLd["image"];
1845
1947
  const obj = Array.isArray(prop) ? prop[i] : prop;
1846
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#image_fromJsonLd(obj, options);
1948
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
1949
+ v = await this.#image_fromJsonLd(obj, options);
1950
+ } catch (error) {
1951
+ if (!options.suppressError) throw error;
1952
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
1953
+ property: "https://www.w3.org/ns/activitystreams#image",
1954
+ index: i,
1955
+ error
1956
+ });
1957
+ continue;
1958
+ }
1847
1959
  }
1848
1960
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
1849
1961
  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\".");
@@ -1975,7 +2087,16 @@ var Object$1 = class Object$1 {
1975
2087
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
1976
2088
  const prop = this._cachedJsonLd["inReplyTo"];
1977
2089
  const doc = Array.isArray(prop) ? prop[0] : prop;
1978
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replyTarget_fromJsonLd(doc, options);
2090
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2091
+ v = await this.#replyTarget_fromJsonLd(doc, options);
2092
+ } catch (error) {
2093
+ if (!options.suppressError) throw error;
2094
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2095
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2096
+ error
2097
+ });
2098
+ return null;
2099
+ }
1979
2100
  }
1980
2101
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
1981
2102
  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\".");
@@ -2017,7 +2138,17 @@ var Object$1 = class Object$1 {
2017
2138
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
2018
2139
  const prop = this._cachedJsonLd["inReplyTo"];
2019
2140
  const obj = Array.isArray(prop) ? prop[i] : prop;
2020
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#replyTarget_fromJsonLd(obj, options);
2141
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2142
+ v = await this.#replyTarget_fromJsonLd(obj, options);
2143
+ } catch (error) {
2144
+ if (!options.suppressError) throw error;
2145
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2146
+ property: "https://www.w3.org/ns/activitystreams#inReplyTo",
2147
+ index: i,
2148
+ error
2149
+ });
2150
+ continue;
2151
+ }
2021
2152
  }
2022
2153
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
2023
2154
  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\".");
@@ -2149,7 +2280,16 @@ var Object$1 = class Object$1 {
2149
2280
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2150
2281
  const prop = this._cachedJsonLd["location"];
2151
2282
  const doc = Array.isArray(prop) ? prop[0] : prop;
2152
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#location_fromJsonLd(doc, options);
2283
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2284
+ v = await this.#location_fromJsonLd(doc, options);
2285
+ } catch (error) {
2286
+ if (!options.suppressError) throw error;
2287
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2288
+ property: "https://www.w3.org/ns/activitystreams#location",
2289
+ error
2290
+ });
2291
+ return null;
2292
+ }
2153
2293
  }
2154
2294
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2155
2295
  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\".");
@@ -2191,7 +2331,17 @@ var Object$1 = class Object$1 {
2191
2331
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
2192
2332
  const prop = this._cachedJsonLd["location"];
2193
2333
  const obj = Array.isArray(prop) ? prop[i] : prop;
2194
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#location_fromJsonLd(obj, options);
2334
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2335
+ v = await this.#location_fromJsonLd(obj, options);
2336
+ } catch (error) {
2337
+ if (!options.suppressError) throw error;
2338
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2339
+ property: "https://www.w3.org/ns/activitystreams#location",
2340
+ index: i,
2341
+ error
2342
+ });
2343
+ continue;
2344
+ }
2195
2345
  }
2196
2346
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
2197
2347
  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\".");
@@ -2322,7 +2472,16 @@ var Object$1 = class Object$1 {
2322
2472
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2323
2473
  const prop = this._cachedJsonLd["preview"];
2324
2474
  const doc = Array.isArray(prop) ? prop[0] : prop;
2325
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#preview_fromJsonLd(doc, options);
2475
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2476
+ v = await this.#preview_fromJsonLd(doc, options);
2477
+ } catch (error) {
2478
+ if (!options.suppressError) throw error;
2479
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2480
+ property: "https://www.w3.org/ns/activitystreams#preview",
2481
+ error
2482
+ });
2483
+ return null;
2484
+ }
2326
2485
  }
2327
2486
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2328
2487
  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\".");
@@ -2363,7 +2522,17 @@ var Object$1 = class Object$1 {
2363
2522
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
2364
2523
  const prop = this._cachedJsonLd["preview"];
2365
2524
  const obj = Array.isArray(prop) ? prop[i] : prop;
2366
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
2525
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
2526
+ v = await this.#preview_fromJsonLd(obj, options);
2527
+ } catch (error) {
2528
+ if (!options.suppressError) throw error;
2529
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
2530
+ property: "https://www.w3.org/ns/activitystreams#preview",
2531
+ index: i,
2532
+ error
2533
+ });
2534
+ continue;
2535
+ }
2367
2536
  }
2368
2537
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
2369
2538
  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\".");
@@ -2492,7 +2661,16 @@ var Object$1 = class Object$1 {
2492
2661
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
2493
2662
  const prop = this._cachedJsonLd["replies"];
2494
2663
  const doc = Array.isArray(prop) ? prop[0] : prop;
2495
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replies_fromJsonLd(doc, options);
2664
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2665
+ v = await this.#replies_fromJsonLd(doc, options);
2666
+ } catch (error) {
2667
+ if (!options.suppressError) throw error;
2668
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2669
+ property: "https://www.w3.org/ns/activitystreams#replies",
2670
+ error
2671
+ });
2672
+ return null;
2673
+ }
2496
2674
  }
2497
2675
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
2498
2676
  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\".");
@@ -2619,7 +2797,16 @@ var Object$1 = class Object$1 {
2619
2797
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
2620
2798
  const prop = this._cachedJsonLd["shares"];
2621
2799
  const doc = Array.isArray(prop) ? prop[0] : prop;
2622
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#shares_fromJsonLd(doc, options);
2800
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2801
+ v = await this.#shares_fromJsonLd(doc, options);
2802
+ } catch (error) {
2803
+ if (!options.suppressError) throw error;
2804
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2805
+ property: "https://www.w3.org/ns/activitystreams#shares",
2806
+ error
2807
+ });
2808
+ return null;
2809
+ }
2623
2810
  }
2624
2811
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
2625
2812
  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\".");
@@ -2746,7 +2933,16 @@ var Object$1 = class Object$1 {
2746
2933
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
2747
2934
  const prop = this._cachedJsonLd["likes"];
2748
2935
  const doc = Array.isArray(prop) ? prop[0] : prop;
2749
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likes_fromJsonLd(doc, options);
2936
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
2937
+ v = await this.#likes_fromJsonLd(doc, options);
2938
+ } catch (error) {
2939
+ if (!options.suppressError) throw error;
2940
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
2941
+ property: "https://www.w3.org/ns/activitystreams#likes",
2942
+ error
2943
+ });
2944
+ return null;
2945
+ }
2750
2946
  }
2751
2947
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
2752
2948
  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\".");
@@ -2867,7 +3063,16 @@ var Object$1 = class Object$1 {
2867
3063
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
2868
3064
  const prop = this._cachedJsonLd["emojiReactions"];
2869
3065
  const doc = Array.isArray(prop) ? prop[0] : prop;
2870
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#emojiReactions_fromJsonLd(doc, options);
3066
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3067
+ v = await this.#emojiReactions_fromJsonLd(doc, options);
3068
+ } catch (error) {
3069
+ if (!options.suppressError) throw error;
3070
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3071
+ property: "http://fedibird.com/ns#emojiReactions",
3072
+ error
3073
+ });
3074
+ return null;
3075
+ }
2871
3076
  }
2872
3077
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
2873
3078
  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\".");
@@ -3023,7 +3228,17 @@ var Object$1 = class Object$1 {
3023
3228
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
3024
3229
  const prop = this._cachedJsonLd["tag"];
3025
3230
  const obj = Array.isArray(prop) ? prop[i] : prop;
3026
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#tag_fromJsonLd(obj, options);
3231
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3232
+ v = await this.#tag_fromJsonLd(obj, options);
3233
+ } catch (error) {
3234
+ if (!options.suppressError) throw error;
3235
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3236
+ property: "https://www.w3.org/ns/activitystreams#tag",
3237
+ index: i,
3238
+ error
3239
+ });
3240
+ continue;
3241
+ }
3027
3242
  }
3028
3243
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
3029
3244
  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\".");
@@ -3164,7 +3379,16 @@ var Object$1 = class Object$1 {
3164
3379
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3165
3380
  const prop = this._cachedJsonLd["to"];
3166
3381
  const doc = Array.isArray(prop) ? prop[0] : prop;
3167
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#to_fromJsonLd(doc, options);
3382
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3383
+ v = await this.#to_fromJsonLd(doc, options);
3384
+ } catch (error) {
3385
+ if (!options.suppressError) throw error;
3386
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3387
+ property: "https://www.w3.org/ns/activitystreams#to",
3388
+ error
3389
+ });
3390
+ return null;
3391
+ }
3168
3392
  }
3169
3393
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3170
3394
  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\".");
@@ -3206,7 +3430,17 @@ var Object$1 = class Object$1 {
3206
3430
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
3207
3431
  const prop = this._cachedJsonLd["to"];
3208
3432
  const obj = Array.isArray(prop) ? prop[i] : prop;
3209
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#to_fromJsonLd(obj, options);
3433
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3434
+ v = await this.#to_fromJsonLd(obj, options);
3435
+ } catch (error) {
3436
+ if (!options.suppressError) throw error;
3437
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3438
+ property: "https://www.w3.org/ns/activitystreams#to",
3439
+ index: i,
3440
+ error
3441
+ });
3442
+ continue;
3443
+ }
3210
3444
  }
3211
3445
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
3212
3446
  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\".");
@@ -3328,7 +3562,16 @@ var Object$1 = class Object$1 {
3328
3562
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3329
3563
  const prop = this._cachedJsonLd["bto"];
3330
3564
  const doc = Array.isArray(prop) ? prop[0] : prop;
3331
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bto_fromJsonLd(doc, options);
3565
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3566
+ v = await this.#bto_fromJsonLd(doc, options);
3567
+ } catch (error) {
3568
+ if (!options.suppressError) throw error;
3569
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3570
+ property: "https://www.w3.org/ns/activitystreams#bto",
3571
+ error
3572
+ });
3573
+ return null;
3574
+ }
3332
3575
  }
3333
3576
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3334
3577
  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\".");
@@ -3370,7 +3613,17 @@ var Object$1 = class Object$1 {
3370
3613
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
3371
3614
  const prop = this._cachedJsonLd["bto"];
3372
3615
  const obj = Array.isArray(prop) ? prop[i] : prop;
3373
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bto_fromJsonLd(obj, options);
3616
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3617
+ v = await this.#bto_fromJsonLd(obj, options);
3618
+ } catch (error) {
3619
+ if (!options.suppressError) throw error;
3620
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3621
+ property: "https://www.w3.org/ns/activitystreams#bto",
3622
+ index: i,
3623
+ error
3624
+ });
3625
+ continue;
3626
+ }
3374
3627
  }
3375
3628
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
3376
3629
  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\".");
@@ -3492,7 +3745,16 @@ var Object$1 = class Object$1 {
3492
3745
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3493
3746
  const prop = this._cachedJsonLd["cc"];
3494
3747
  const doc = Array.isArray(prop) ? prop[0] : prop;
3495
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#cc_fromJsonLd(doc, options);
3748
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3749
+ v = await this.#cc_fromJsonLd(doc, options);
3750
+ } catch (error) {
3751
+ if (!options.suppressError) throw error;
3752
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3753
+ property: "https://www.w3.org/ns/activitystreams#cc",
3754
+ error
3755
+ });
3756
+ return null;
3757
+ }
3496
3758
  }
3497
3759
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3498
3760
  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\".");
@@ -3534,7 +3796,17 @@ var Object$1 = class Object$1 {
3534
3796
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
3535
3797
  const prop = this._cachedJsonLd["cc"];
3536
3798
  const obj = Array.isArray(prop) ? prop[i] : prop;
3537
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#cc_fromJsonLd(obj, options);
3799
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3800
+ v = await this.#cc_fromJsonLd(obj, options);
3801
+ } catch (error) {
3802
+ if (!options.suppressError) throw error;
3803
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3804
+ property: "https://www.w3.org/ns/activitystreams#cc",
3805
+ index: i,
3806
+ error
3807
+ });
3808
+ continue;
3809
+ }
3538
3810
  }
3539
3811
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
3540
3812
  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\".");
@@ -3656,7 +3928,16 @@ var Object$1 = class Object$1 {
3656
3928
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3657
3929
  const prop = this._cachedJsonLd["bcc"];
3658
3930
  const doc = Array.isArray(prop) ? prop[0] : prop;
3659
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#bcc_fromJsonLd(doc, options);
3931
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
3932
+ v = await this.#bcc_fromJsonLd(doc, options);
3933
+ } catch (error) {
3934
+ if (!options.suppressError) throw error;
3935
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
3936
+ property: "https://www.w3.org/ns/activitystreams#bcc",
3937
+ error
3938
+ });
3939
+ return null;
3940
+ }
3660
3941
  }
3661
3942
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3662
3943
  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\".");
@@ -3698,7 +3979,17 @@ var Object$1 = class Object$1 {
3698
3979
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
3699
3980
  const prop = this._cachedJsonLd["bcc"];
3700
3981
  const obj = Array.isArray(prop) ? prop[i] : prop;
3701
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#bcc_fromJsonLd(obj, options);
3982
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
3983
+ v = await this.#bcc_fromJsonLd(obj, options);
3984
+ } catch (error) {
3985
+ if (!options.suppressError) throw error;
3986
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
3987
+ property: "https://www.w3.org/ns/activitystreams#bcc",
3988
+ index: i,
3989
+ error
3990
+ });
3991
+ continue;
3992
+ }
3702
3993
  }
3703
3994
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
3704
3995
  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\".");
@@ -3856,7 +4147,16 @@ var Object$1 = class Object$1 {
3856
4147
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
3857
4148
  const prop = this._cachedJsonLd["proof"];
3858
4149
  const doc = Array.isArray(prop) ? prop[0] : prop;
3859
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#proof_fromJsonLd(doc, options);
4150
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4151
+ v = await this.#proof_fromJsonLd(doc, options);
4152
+ } catch (error) {
4153
+ if (!options.suppressError) throw error;
4154
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4155
+ property: "https://w3id.org/security#proof",
4156
+ error
4157
+ });
4158
+ return null;
4159
+ }
3860
4160
  }
3861
4161
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
3862
4162
  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\".");
@@ -3897,7 +4197,17 @@ var Object$1 = class Object$1 {
3897
4197
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
3898
4198
  const prop = this._cachedJsonLd["proof"];
3899
4199
  const obj = Array.isArray(prop) ? prop[i] : prop;
3900
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#proof_fromJsonLd(obj, options);
4200
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
4201
+ v = await this.#proof_fromJsonLd(obj, options);
4202
+ } catch (error) {
4203
+ if (!options.suppressError) throw error;
4204
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
4205
+ property: "https://w3id.org/security#proof",
4206
+ index: i,
4207
+ error
4208
+ });
4209
+ continue;
4210
+ }
3901
4211
  }
3902
4212
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
3903
4213
  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\".");
@@ -4044,7 +4354,16 @@ var Object$1 = class Object$1 {
4044
4354
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likeAuthorization" in this._cachedJsonLd) {
4045
4355
  const prop = this._cachedJsonLd["likeAuthorization"];
4046
4356
  const doc = Array.isArray(prop) ? prop[0] : prop;
4047
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likeAuthorization_fromJsonLd(doc, options);
4357
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4358
+ v = await this.#likeAuthorization_fromJsonLd(doc, options);
4359
+ } catch (error) {
4360
+ if (!options.suppressError) throw error;
4361
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4362
+ property: "https://gotosocial.org/ns#likeAuthorization",
4363
+ error
4364
+ });
4365
+ return null;
4366
+ }
4048
4367
  }
4049
4368
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.has(0)) {
4050
4369
  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\".");
@@ -4165,7 +4484,16 @@ var Object$1 = class Object$1 {
4165
4484
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replyAuthorization" in this._cachedJsonLd) {
4166
4485
  const prop = this._cachedJsonLd["replyAuthorization"];
4167
4486
  const doc = Array.isArray(prop) ? prop[0] : prop;
4168
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#replyAuthorization_fromJsonLd(doc, options);
4487
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4488
+ v = await this.#replyAuthorization_fromJsonLd(doc, options);
4489
+ } catch (error) {
4490
+ if (!options.suppressError) throw error;
4491
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4492
+ property: "https://gotosocial.org/ns#replyAuthorization",
4493
+ error
4494
+ });
4495
+ return null;
4496
+ }
4169
4497
  }
4170
4498
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.has(0)) {
4171
4499
  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\".");
@@ -4286,7 +4614,16 @@ var Object$1 = class Object$1 {
4286
4614
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "announceAuthorization" in this._cachedJsonLd) {
4287
4615
  const prop = this._cachedJsonLd["announceAuthorization"];
4288
4616
  const doc = Array.isArray(prop) ? prop[0] : prop;
4289
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#announceAuthorization_fromJsonLd(doc, options);
4617
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
4618
+ v = await this.#announceAuthorization_fromJsonLd(doc, options);
4619
+ } catch (error) {
4620
+ if (!options.suppressError) throw error;
4621
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
4622
+ property: "https://gotosocial.org/ns#announceAuthorization",
4623
+ error
4624
+ });
4625
+ return null;
4626
+ }
4290
4627
  }
4291
4628
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.has(0)) {
4292
4629
  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\".");
@@ -6850,7 +7187,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
6850
7187
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
6851
7188
  const prop = this._cachedJsonLd["quote"];
6852
7189
  const doc = Array.isArray(prop) ? prop[0] : prop;
6853
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
7190
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7191
+ v = await this.#quote_fromJsonLd(doc, options);
7192
+ } catch (error) {
7193
+ if (!options.suppressError) throw error;
7194
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7195
+ property: "https://w3id.org/fep/044f#quote",
7196
+ error
7197
+ });
7198
+ return null;
7199
+ }
6854
7200
  }
6855
7201
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
6856
7202
  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\".");
@@ -6987,7 +7333,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
6987
7333
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
6988
7334
  const prop = this._cachedJsonLd["quoteAuthorization"];
6989
7335
  const doc = Array.isArray(prop) ? prop[0] : prop;
6990
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
7336
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
7337
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
7338
+ } catch (error) {
7339
+ if (!options.suppressError) throw error;
7340
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
7341
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
7342
+ error
7343
+ });
7344
+ return null;
7345
+ }
6991
7346
  }
6992
7347
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
6993
7348
  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\".");
@@ -7238,7 +7593,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
7238
7593
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
7239
7594
  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) {
7240
7595
  if (v == null) continue;
7241
- const decoded = new URL(v["@value"]);
7596
+ 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;
7242
7597
  if (typeof decoded === "undefined") {
7243
7598
  shouldCacheJsonLd = false;
7244
7599
  continue;
@@ -7657,7 +8012,16 @@ var Activity = class Activity extends Object$1 {
7657
8012
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
7658
8013
  const prop = this._cachedJsonLd["actor"];
7659
8014
  const doc = Array.isArray(prop) ? prop[0] : prop;
7660
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#actor_fromJsonLd(doc, options);
8015
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8016
+ v = await this.#actor_fromJsonLd(doc, options);
8017
+ } catch (error) {
8018
+ if (!options.suppressError) throw error;
8019
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8020
+ property: "https://www.w3.org/ns/activitystreams#actor",
8021
+ error
8022
+ });
8023
+ return null;
8024
+ }
7661
8025
  }
7662
8026
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
7663
8027
  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\".");
@@ -7700,7 +8064,17 @@ var Activity = class Activity extends Object$1 {
7700
8064
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
7701
8065
  const prop = this._cachedJsonLd["actor"];
7702
8066
  const obj = Array.isArray(prop) ? prop[i] : prop;
7703
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#actor_fromJsonLd(obj, options);
8067
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8068
+ v = await this.#actor_fromJsonLd(obj, options);
8069
+ } catch (error) {
8070
+ if (!options.suppressError) throw error;
8071
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8072
+ property: "https://www.w3.org/ns/activitystreams#actor",
8073
+ index: i,
8074
+ error
8075
+ });
8076
+ continue;
8077
+ }
7704
8078
  }
7705
8079
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
7706
8080
  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\".");
@@ -7823,7 +8197,16 @@ var Activity = class Activity extends Object$1 {
7823
8197
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
7824
8198
  const prop = this._cachedJsonLd["object"];
7825
8199
  const doc = Array.isArray(prop) ? prop[0] : prop;
7826
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
8200
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8201
+ v = await this.#object_fromJsonLd(doc, options);
8202
+ } catch (error) {
8203
+ if (!options.suppressError) throw error;
8204
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8205
+ property: "https://www.w3.org/ns/activitystreams#object",
8206
+ error
8207
+ });
8208
+ return null;
8209
+ }
7827
8210
  }
7828
8211
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
7829
8212
  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\".");
@@ -7866,7 +8249,17 @@ var Activity = class Activity extends Object$1 {
7866
8249
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
7867
8250
  const prop = this._cachedJsonLd["object"];
7868
8251
  const obj = Array.isArray(prop) ? prop[i] : prop;
7869
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
8252
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8253
+ v = await this.#object_fromJsonLd(obj, options);
8254
+ } catch (error) {
8255
+ if (!options.suppressError) throw error;
8256
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8257
+ property: "https://www.w3.org/ns/activitystreams#object",
8258
+ index: i,
8259
+ error
8260
+ });
8261
+ continue;
8262
+ }
7870
8263
  }
7871
8264
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
7872
8265
  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\".");
@@ -7992,7 +8385,16 @@ var Activity = class Activity extends Object$1 {
7992
8385
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
7993
8386
  const prop = this._cachedJsonLd["target"];
7994
8387
  const doc = Array.isArray(prop) ? prop[0] : prop;
7995
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#target_fromJsonLd(doc, options);
8388
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8389
+ v = await this.#target_fromJsonLd(doc, options);
8390
+ } catch (error) {
8391
+ if (!options.suppressError) throw error;
8392
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8393
+ property: "https://www.w3.org/ns/activitystreams#target",
8394
+ error
8395
+ });
8396
+ return null;
8397
+ }
7996
8398
  }
7997
8399
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
7998
8400
  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\".");
@@ -8038,7 +8440,17 @@ var Activity = class Activity extends Object$1 {
8038
8440
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
8039
8441
  const prop = this._cachedJsonLd["target"];
8040
8442
  const obj = Array.isArray(prop) ? prop[i] : prop;
8041
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#target_fromJsonLd(obj, options);
8443
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8444
+ v = await this.#target_fromJsonLd(obj, options);
8445
+ } catch (error) {
8446
+ if (!options.suppressError) throw error;
8447
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8448
+ property: "https://www.w3.org/ns/activitystreams#target",
8449
+ index: i,
8450
+ error
8451
+ });
8452
+ continue;
8453
+ }
8042
8454
  }
8043
8455
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
8044
8456
  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\".");
@@ -8161,7 +8573,16 @@ var Activity = class Activity extends Object$1 {
8161
8573
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
8162
8574
  const prop = this._cachedJsonLd["result"];
8163
8575
  const doc = Array.isArray(prop) ? prop[0] : prop;
8164
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#result_fromJsonLd(doc, options);
8576
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8577
+ v = await this.#result_fromJsonLd(doc, options);
8578
+ } catch (error) {
8579
+ if (!options.suppressError) throw error;
8580
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8581
+ property: "https://www.w3.org/ns/activitystreams#result",
8582
+ error
8583
+ });
8584
+ return null;
8585
+ }
8165
8586
  }
8166
8587
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
8167
8588
  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\".");
@@ -8204,7 +8625,17 @@ var Activity = class Activity extends Object$1 {
8204
8625
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
8205
8626
  const prop = this._cachedJsonLd["result"];
8206
8627
  const obj = Array.isArray(prop) ? prop[i] : prop;
8207
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#result_fromJsonLd(obj, options);
8628
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8629
+ v = await this.#result_fromJsonLd(obj, options);
8630
+ } catch (error) {
8631
+ if (!options.suppressError) throw error;
8632
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8633
+ property: "https://www.w3.org/ns/activitystreams#result",
8634
+ index: i,
8635
+ error
8636
+ });
8637
+ continue;
8638
+ }
8208
8639
  }
8209
8640
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
8210
8641
  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\".");
@@ -8328,7 +8759,16 @@ var Activity = class Activity extends Object$1 {
8328
8759
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
8329
8760
  const prop = this._cachedJsonLd["origin"];
8330
8761
  const doc = Array.isArray(prop) ? prop[0] : prop;
8331
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#origin_fromJsonLd(doc, options);
8762
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8763
+ v = await this.#origin_fromJsonLd(doc, options);
8764
+ } catch (error) {
8765
+ if (!options.suppressError) throw error;
8766
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8767
+ property: "https://www.w3.org/ns/activitystreams#origin",
8768
+ error
8769
+ });
8770
+ return null;
8771
+ }
8332
8772
  }
8333
8773
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
8334
8774
  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\".");
@@ -8372,7 +8812,17 @@ var Activity = class Activity extends Object$1 {
8372
8812
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
8373
8813
  const prop = this._cachedJsonLd["origin"];
8374
8814
  const obj = Array.isArray(prop) ? prop[i] : prop;
8375
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#origin_fromJsonLd(obj, options);
8815
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8816
+ v = await this.#origin_fromJsonLd(obj, options);
8817
+ } catch (error) {
8818
+ if (!options.suppressError) throw error;
8819
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
8820
+ property: "https://www.w3.org/ns/activitystreams#origin",
8821
+ index: i,
8822
+ error
8823
+ });
8824
+ continue;
8825
+ }
8376
8826
  }
8377
8827
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
8378
8828
  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\".");
@@ -8494,7 +8944,16 @@ var Activity = class Activity extends Object$1 {
8494
8944
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
8495
8945
  const prop = this._cachedJsonLd["instrument"];
8496
8946
  const doc = Array.isArray(prop) ? prop[0] : prop;
8497
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#instrument_fromJsonLd(doc, options);
8947
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
8948
+ v = await this.#instrument_fromJsonLd(doc, options);
8949
+ } catch (error) {
8950
+ if (!options.suppressError) throw error;
8951
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
8952
+ property: "https://www.w3.org/ns/activitystreams#instrument",
8953
+ error
8954
+ });
8955
+ return null;
8956
+ }
8498
8957
  }
8499
8958
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
8500
8959
  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\".");
@@ -8536,7 +8995,17 @@ var Activity = class Activity extends Object$1 {
8536
8995
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
8537
8996
  const prop = this._cachedJsonLd["instrument"];
8538
8997
  const obj = Array.isArray(prop) ? prop[i] : prop;
8539
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#instrument_fromJsonLd(obj, options);
8998
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
8999
+ v = await this.#instrument_fromJsonLd(obj, options);
9000
+ } catch (error) {
9001
+ if (!options.suppressError) throw error;
9002
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
9003
+ property: "https://www.w3.org/ns/activitystreams#instrument",
9004
+ index: i,
9005
+ error
9006
+ });
9007
+ continue;
9008
+ }
8540
9009
  }
8541
9010
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
8542
9011
  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\".");
@@ -9821,7 +10290,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
9821
10290
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
9822
10291
  const prop = this._cachedJsonLd["interactingObject"];
9823
10292
  const doc = Array.isArray(prop) ? prop[0] : prop;
9824
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
10293
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
10294
+ v = await this.#interactingObject_fromJsonLd(doc, options);
10295
+ } catch (error) {
10296
+ if (!options.suppressError) throw error;
10297
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
10298
+ property: "https://gotosocial.org/ns#interactingObject",
10299
+ error
10300
+ });
10301
+ return null;
10302
+ }
9825
10303
  }
9826
10304
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
9827
10305
  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\".");
@@ -9941,7 +10419,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
9941
10419
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
9942
10420
  const prop = this._cachedJsonLd["interactionTarget"];
9943
10421
  const doc = Array.isArray(prop) ? prop[0] : prop;
9944
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
10422
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
10423
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
10424
+ } catch (error) {
10425
+ if (!options.suppressError) throw error;
10426
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
10427
+ property: "https://gotosocial.org/ns#interactionTarget",
10428
+ error
10429
+ });
10430
+ return null;
10431
+ }
9945
10432
  }
9946
10433
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
9947
10434
  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\".");
@@ -11173,7 +11660,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11173
11660
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
11174
11661
  const prop = this._cachedJsonLd["interactingObject"];
11175
11662
  const doc = Array.isArray(prop) ? prop[0] : prop;
11176
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
11663
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11664
+ v = await this.#interactingObject_fromJsonLd(doc, options);
11665
+ } catch (error) {
11666
+ if (!options.suppressError) throw error;
11667
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11668
+ property: "https://gotosocial.org/ns#interactingObject",
11669
+ error
11670
+ });
11671
+ return null;
11672
+ }
11177
11673
  }
11178
11674
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
11179
11675
  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\".");
@@ -11293,7 +11789,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11293
11789
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
11294
11790
  const prop = this._cachedJsonLd["interactionTarget"];
11295
11791
  const doc = Array.isArray(prop) ? prop[0] : prop;
11296
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
11792
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
11793
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
11794
+ } catch (error) {
11795
+ if (!options.suppressError) throw error;
11796
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
11797
+ property: "https://gotosocial.org/ns#interactionTarget",
11798
+ error
11799
+ });
11800
+ return null;
11801
+ }
11297
11802
  }
11298
11803
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
11299
11804
  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\".");
@@ -11853,7 +12358,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
11853
12358
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
11854
12359
  const prop = this._cachedJsonLd["interactingObject"];
11855
12360
  const doc = Array.isArray(prop) ? prop[0] : prop;
11856
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
12361
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12362
+ v = await this.#interactingObject_fromJsonLd(doc, options);
12363
+ } catch (error) {
12364
+ if (!options.suppressError) throw error;
12365
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12366
+ property: "https://gotosocial.org/ns#interactingObject",
12367
+ error
12368
+ });
12369
+ return null;
12370
+ }
11857
12371
  }
11858
12372
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
11859
12373
  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\".");
@@ -11973,7 +12487,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
11973
12487
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
11974
12488
  const prop = this._cachedJsonLd["interactionTarget"];
11975
12489
  const doc = Array.isArray(prop) ? prop[0] : prop;
11976
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
12490
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
12491
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
12492
+ } catch (error) {
12493
+ if (!options.suppressError) throw error;
12494
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
12495
+ property: "https://gotosocial.org/ns#interactionTarget",
12496
+ error
12497
+ });
12498
+ return null;
12499
+ }
11977
12500
  }
11978
12501
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
11979
12502
  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\".");
@@ -12532,7 +13055,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12532
13055
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
12533
13056
  const prop = this._cachedJsonLd["interactingObject"];
12534
13057
  const doc = Array.isArray(prop) ? prop[0] : prop;
12535
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactingObject_fromJsonLd(doc, options);
13058
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13059
+ v = await this.#interactingObject_fromJsonLd(doc, options);
13060
+ } catch (error) {
13061
+ if (!options.suppressError) throw error;
13062
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13063
+ property: "https://gotosocial.org/ns#interactingObject",
13064
+ error
13065
+ });
13066
+ return null;
13067
+ }
12536
13068
  }
12537
13069
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
12538
13070
  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\".");
@@ -12652,7 +13184,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
12652
13184
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
12653
13185
  const prop = this._cachedJsonLd["interactionTarget"];
12654
13186
  const doc = Array.isArray(prop) ? prop[0] : prop;
12655
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#interactionTarget_fromJsonLd(doc, options);
13187
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
13188
+ v = await this.#interactionTarget_fromJsonLd(doc, options);
13189
+ } catch (error) {
13190
+ if (!options.suppressError) throw error;
13191
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
13192
+ property: "https://gotosocial.org/ns#interactionTarget",
13193
+ error
13194
+ });
13195
+ return null;
13196
+ }
12656
13197
  }
12657
13198
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
12658
13199
  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\".");
@@ -14202,7 +14743,16 @@ var CryptographicKey = class {
14202
14743
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
14203
14744
  const prop = this._cachedJsonLd["owner"];
14204
14745
  const doc = Array.isArray(prop) ? prop[0] : prop;
14205
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#owner_fromJsonLd(doc, options);
14746
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
14747
+ v = await this.#owner_fromJsonLd(doc, options);
14748
+ } catch (error) {
14749
+ if (!options.suppressError) throw error;
14750
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
14751
+ property: "https://w3id.org/security#owner",
14752
+ error
14753
+ });
14754
+ return null;
14755
+ }
14206
14756
  }
14207
14757
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
14208
14758
  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\".");
@@ -14683,7 +15233,16 @@ var Multikey = class {
14683
15233
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
14684
15234
  const prop = this._cachedJsonLd["controller"];
14685
15235
  const doc = Array.isArray(prop) ? prop[0] : prop;
14686
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#controller_fromJsonLd(doc, options);
15236
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
15237
+ v = await this.#controller_fromJsonLd(doc, options);
15238
+ } catch (error) {
15239
+ if (!options.suppressError) throw error;
15240
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
15241
+ property: "https://w3id.org/security#controller",
15242
+ error
15243
+ });
15244
+ return null;
15245
+ }
14687
15246
  }
14688
15247
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
14689
15248
  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\".");
@@ -16717,7 +17276,16 @@ var Application = class Application extends Object$1 {
16717
17276
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
16718
17277
  const prop = this._cachedJsonLd["publicKey"];
16719
17278
  const doc = Array.isArray(prop) ? prop[0] : prop;
16720
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
17279
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17280
+ v = await this.#publicKey_fromJsonLd(doc, options);
17281
+ } catch (error) {
17282
+ if (!options.suppressError) throw error;
17283
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17284
+ property: "https://w3id.org/security#publicKey",
17285
+ error
17286
+ });
17287
+ return null;
17288
+ }
16721
17289
  }
16722
17290
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
16723
17291
  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\".");
@@ -16758,7 +17326,17 @@ var Application = class Application extends Object$1 {
16758
17326
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
16759
17327
  const prop = this._cachedJsonLd["publicKey"];
16760
17328
  const obj = Array.isArray(prop) ? prop[i] : prop;
16761
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
17329
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
17330
+ v = await this.#publicKey_fromJsonLd(obj, options);
17331
+ } catch (error) {
17332
+ if (!options.suppressError) throw error;
17333
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
17334
+ property: "https://w3id.org/security#publicKey",
17335
+ index: i,
17336
+ error
17337
+ });
17338
+ continue;
17339
+ }
16762
17340
  }
16763
17341
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
16764
17342
  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\".");
@@ -16882,7 +17460,16 @@ var Application = class Application extends Object$1 {
16882
17460
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
16883
17461
  const prop = this._cachedJsonLd["assertionMethod"];
16884
17462
  const doc = Array.isArray(prop) ? prop[0] : prop;
16885
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
17463
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17464
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
17465
+ } catch (error) {
17466
+ if (!options.suppressError) throw error;
17467
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17468
+ property: "https://w3id.org/security#assertionMethod",
17469
+ error
17470
+ });
17471
+ return null;
17472
+ }
16886
17473
  }
16887
17474
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
16888
17475
  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\".");
@@ -16926,7 +17513,17 @@ var Application = class Application extends Object$1 {
16926
17513
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
16927
17514
  const prop = this._cachedJsonLd["assertionMethod"];
16928
17515
  const obj = Array.isArray(prop) ? prop[i] : prop;
16929
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
17516
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
17517
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
17518
+ } catch (error) {
17519
+ if (!options.suppressError) throw error;
17520
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
17521
+ property: "https://w3id.org/security#assertionMethod",
17522
+ index: i,
17523
+ error
17524
+ });
17525
+ continue;
17526
+ }
16930
17527
  }
16931
17528
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
16932
17529
  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\".");
@@ -17081,7 +17678,16 @@ var Application = class Application extends Object$1 {
17081
17678
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
17082
17679
  const prop = this._cachedJsonLd["inbox"];
17083
17680
  const doc = Array.isArray(prop) ? prop[0] : prop;
17084
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
17681
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17682
+ v = await this.#inbox_fromJsonLd(doc, options);
17683
+ } catch (error) {
17684
+ if (!options.suppressError) throw error;
17685
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17686
+ property: "http://www.w3.org/ns/ldp#inbox",
17687
+ error
17688
+ });
17689
+ return null;
17690
+ }
17085
17691
  }
17086
17692
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
17087
17693
  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\".");
@@ -17220,7 +17826,16 @@ var Application = class Application extends Object$1 {
17220
17826
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
17221
17827
  const prop = this._cachedJsonLd["outbox"];
17222
17828
  const doc = Array.isArray(prop) ? prop[0] : prop;
17223
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
17829
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17830
+ v = await this.#outbox_fromJsonLd(doc, options);
17831
+ } catch (error) {
17832
+ if (!options.suppressError) throw error;
17833
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17834
+ property: "https://www.w3.org/ns/activitystreams#outbox",
17835
+ error
17836
+ });
17837
+ return null;
17838
+ }
17224
17839
  }
17225
17840
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
17226
17841
  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\".");
@@ -17344,7 +17959,16 @@ var Application = class Application extends Object$1 {
17344
17959
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
17345
17960
  const prop = this._cachedJsonLd["following"];
17346
17961
  const doc = Array.isArray(prop) ? prop[0] : prop;
17347
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
17962
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
17963
+ v = await this.#following_fromJsonLd(doc, options);
17964
+ } catch (error) {
17965
+ if (!options.suppressError) throw error;
17966
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
17967
+ property: "https://www.w3.org/ns/activitystreams#following",
17968
+ error
17969
+ });
17970
+ return null;
17971
+ }
17348
17972
  }
17349
17973
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
17350
17974
  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\".");
@@ -17471,7 +18095,16 @@ var Application = class Application extends Object$1 {
17471
18095
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
17472
18096
  const prop = this._cachedJsonLd["followers"];
17473
18097
  const doc = Array.isArray(prop) ? prop[0] : prop;
17474
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
18098
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18099
+ v = await this.#followers_fromJsonLd(doc, options);
18100
+ } catch (error) {
18101
+ if (!options.suppressError) throw error;
18102
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18103
+ property: "https://www.w3.org/ns/activitystreams#followers",
18104
+ error
18105
+ });
18106
+ return null;
18107
+ }
17475
18108
  }
17476
18109
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
17477
18110
  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\".");
@@ -17596,7 +18229,16 @@ var Application = class Application extends Object$1 {
17596
18229
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
17597
18230
  const prop = this._cachedJsonLd["liked"];
17598
18231
  const doc = Array.isArray(prop) ? prop[0] : prop;
17599
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
18232
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18233
+ v = await this.#liked_fromJsonLd(doc, options);
18234
+ } catch (error) {
18235
+ if (!options.suppressError) throw error;
18236
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18237
+ property: "https://www.w3.org/ns/activitystreams#liked",
18238
+ error
18239
+ });
18240
+ return null;
18241
+ }
17600
18242
  }
17601
18243
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
17602
18244
  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\".");
@@ -17719,7 +18361,16 @@ var Application = class Application extends Object$1 {
17719
18361
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
17720
18362
  const prop = this._cachedJsonLd["featured"];
17721
18363
  const doc = Array.isArray(prop) ? prop[0] : prop;
17722
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
18364
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18365
+ v = await this.#featured_fromJsonLd(doc, options);
18366
+ } catch (error) {
18367
+ if (!options.suppressError) throw error;
18368
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18369
+ property: "http://joinmastodon.org/ns#featured",
18370
+ error
18371
+ });
18372
+ return null;
18373
+ }
17723
18374
  }
17724
18375
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
17725
18376
  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\".");
@@ -17842,7 +18493,16 @@ var Application = class Application extends Object$1 {
17842
18493
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
17843
18494
  const prop = this._cachedJsonLd["featuredTags"];
17844
18495
  const doc = Array.isArray(prop) ? prop[0] : prop;
17845
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
18496
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18497
+ v = await this.#featuredTags_fromJsonLd(doc, options);
18498
+ } catch (error) {
18499
+ if (!options.suppressError) throw error;
18500
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18501
+ property: "http://joinmastodon.org/ns#featuredTags",
18502
+ error
18503
+ });
18504
+ return null;
18505
+ }
17846
18506
  }
17847
18507
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
17848
18508
  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\".");
@@ -17961,7 +18621,17 @@ var Application = class Application extends Object$1 {
17961
18621
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
17962
18622
  const prop = this._cachedJsonLd["streams"];
17963
18623
  const obj = Array.isArray(prop) ? prop[i] : prop;
17964
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
18624
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
18625
+ v = await this.#stream_fromJsonLd(obj, options);
18626
+ } catch (error) {
18627
+ if (!options.suppressError) throw error;
18628
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
18629
+ property: "https://www.w3.org/ns/activitystreams#streams",
18630
+ index: i,
18631
+ error
18632
+ });
18633
+ continue;
18634
+ }
17965
18635
  }
17966
18636
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
17967
18637
  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\".");
@@ -18170,7 +18840,16 @@ var Application = class Application extends Object$1 {
18170
18840
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
18171
18841
  const prop = this._cachedJsonLd["movedTo"];
18172
18842
  const doc = Array.isArray(prop) ? prop[0] : prop;
18173
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
18843
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
18844
+ v = await this.#successor_fromJsonLd(doc, options);
18845
+ } catch (error) {
18846
+ if (!options.suppressError) throw error;
18847
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
18848
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
18849
+ error
18850
+ });
18851
+ return null;
18852
+ }
18174
18853
  }
18175
18854
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
18176
18855
  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\".");
@@ -18339,7 +19018,16 @@ var Application = class Application extends Object$1 {
18339
19018
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
18340
19019
  const prop = this._cachedJsonLd["alsoKnownAs"];
18341
19020
  const doc = Array.isArray(prop) ? prop[0] : prop;
18342
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
19021
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
19022
+ v = await this.#alias_fromJsonLd(doc, options);
19023
+ } catch (error) {
19024
+ if (!options.suppressError) throw error;
19025
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
19026
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
19027
+ error
19028
+ });
19029
+ return null;
19030
+ }
18343
19031
  }
18344
19032
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
18345
19033
  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\".");
@@ -18383,7 +19071,17 @@ var Application = class Application extends Object$1 {
18383
19071
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
18384
19072
  const prop = this._cachedJsonLd["alsoKnownAs"];
18385
19073
  const obj = Array.isArray(prop) ? prop[i] : prop;
18386
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
19074
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
19075
+ v = await this.#alias_fromJsonLd(obj, options);
19076
+ } catch (error) {
19077
+ if (!options.suppressError) throw error;
19078
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
19079
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
19080
+ index: i,
19081
+ error
19082
+ });
19083
+ continue;
19084
+ }
18387
19085
  }
18388
19086
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
18389
19087
  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\".");
@@ -18507,7 +19205,16 @@ var Application = class Application extends Object$1 {
18507
19205
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
18508
19206
  const prop = this._cachedJsonLd["service"];
18509
19207
  const doc = Array.isArray(prop) ? prop[0] : prop;
18510
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
19208
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
19209
+ v = await this.#service_fromJsonLd(doc, options);
19210
+ } catch (error) {
19211
+ if (!options.suppressError) throw error;
19212
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
19213
+ property: "https://www.w3.org/ns/did#service",
19214
+ error
19215
+ });
19216
+ return null;
19217
+ }
18511
19218
  }
18512
19219
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
18513
19220
  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\".");
@@ -18551,7 +19258,17 @@ var Application = class Application extends Object$1 {
18551
19258
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
18552
19259
  const prop = this._cachedJsonLd["service"];
18553
19260
  const obj = Array.isArray(prop) ? prop[i] : prop;
18554
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
19261
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
19262
+ v = await this.#service_fromJsonLd(obj, options);
19263
+ } catch (error) {
19264
+ if (!options.suppressError) throw error;
19265
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
19266
+ property: "https://www.w3.org/ns/did#service",
19267
+ index: i,
19268
+ error
19269
+ });
19270
+ continue;
19271
+ }
18555
19272
  }
18556
19273
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
18557
19274
  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\".");
@@ -20156,7 +20873,16 @@ var Article = class Article extends Object$1 {
20156
20873
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
20157
20874
  const prop = this._cachedJsonLd["quote"];
20158
20875
  const doc = Array.isArray(prop) ? prop[0] : prop;
20159
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
20876
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
20877
+ v = await this.#quote_fromJsonLd(doc, options);
20878
+ } catch (error) {
20879
+ if (!options.suppressError) throw error;
20880
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
20881
+ property: "https://w3id.org/fep/044f#quote",
20882
+ error
20883
+ });
20884
+ return null;
20885
+ }
20160
20886
  }
20161
20887
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
20162
20888
  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\".");
@@ -20293,7 +21019,16 @@ var Article = class Article extends Object$1 {
20293
21019
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
20294
21020
  const prop = this._cachedJsonLd["quoteAuthorization"];
20295
21021
  const doc = Array.isArray(prop) ? prop[0] : prop;
20296
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
21022
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
21023
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
21024
+ } catch (error) {
21025
+ if (!options.suppressError) throw error;
21026
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
21027
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
21028
+ error
21029
+ });
21030
+ return null;
21031
+ }
20297
21032
  }
20298
21033
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
20299
21034
  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\".");
@@ -20546,7 +21281,7 @@ var Article = class Article extends Object$1 {
20546
21281
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
20547
21282
  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) {
20548
21283
  if (v == null) continue;
20549
- const decoded = new URL(v["@value"]);
21284
+ 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;
20550
21285
  if (typeof decoded === "undefined") {
20551
21286
  shouldCacheJsonLd = false;
20552
21287
  continue;
@@ -21650,7 +22385,16 @@ var Collection = class Collection extends Object$1 {
21650
22385
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
21651
22386
  const prop = this._cachedJsonLd["current"];
21652
22387
  const doc = Array.isArray(prop) ? prop[0] : prop;
21653
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#current_fromJsonLd(doc, options);
22388
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22389
+ v = await this.#current_fromJsonLd(doc, options);
22390
+ } catch (error) {
22391
+ if (!options.suppressError) throw error;
22392
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22393
+ property: "https://www.w3.org/ns/activitystreams#current",
22394
+ error
22395
+ });
22396
+ return null;
22397
+ }
21654
22398
  }
21655
22399
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
21656
22400
  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\".");
@@ -21771,7 +22515,16 @@ var Collection = class Collection extends Object$1 {
21771
22515
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
21772
22516
  const prop = this._cachedJsonLd["first"];
21773
22517
  const doc = Array.isArray(prop) ? prop[0] : prop;
21774
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#first_fromJsonLd(doc, options);
22518
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22519
+ v = await this.#first_fromJsonLd(doc, options);
22520
+ } catch (error) {
22521
+ if (!options.suppressError) throw error;
22522
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22523
+ property: "https://www.w3.org/ns/activitystreams#first",
22524
+ error
22525
+ });
22526
+ return null;
22527
+ }
21775
22528
  }
21776
22529
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
21777
22530
  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\".");
@@ -21892,7 +22645,16 @@ var Collection = class Collection extends Object$1 {
21892
22645
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
21893
22646
  const prop = this._cachedJsonLd["last"];
21894
22647
  const doc = Array.isArray(prop) ? prop[0] : prop;
21895
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#last_fromJsonLd(doc, options);
22648
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22649
+ v = await this.#last_fromJsonLd(doc, options);
22650
+ } catch (error) {
22651
+ if (!options.suppressError) throw error;
22652
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22653
+ property: "https://www.w3.org/ns/activitystreams#last",
22654
+ error
22655
+ });
22656
+ return null;
22657
+ }
21896
22658
  }
21897
22659
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
21898
22660
  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\".");
@@ -22022,7 +22784,17 @@ var Collection = class Collection extends Object$1 {
22022
22784
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
22023
22785
  const prop = this._cachedJsonLd["items"];
22024
22786
  const obj = Array.isArray(prop) ? prop[i] : prop;
22025
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
22787
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
22788
+ v = await this.#item_fromJsonLd(obj, options);
22789
+ } catch (error) {
22790
+ if (!options.suppressError) throw error;
22791
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
22792
+ property: "https://www.w3.org/ns/activitystreams#items",
22793
+ index: i,
22794
+ error
22795
+ });
22796
+ continue;
22797
+ }
22026
22798
  }
22027
22799
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
22028
22800
  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\".");
@@ -22143,7 +22915,16 @@ var Collection = class Collection extends Object$1 {
22143
22915
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
22144
22916
  const prop = this._cachedJsonLd["likesOf"];
22145
22917
  const doc = Array.isArray(prop) ? prop[0] : prop;
22146
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likesOf_fromJsonLd(doc, options);
22918
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
22919
+ v = await this.#likesOf_fromJsonLd(doc, options);
22920
+ } catch (error) {
22921
+ if (!options.suppressError) throw error;
22922
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
22923
+ property: "https://w3id.org/fep/5711#likesOf",
22924
+ error
22925
+ });
22926
+ return null;
22927
+ }
22147
22928
  }
22148
22929
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
22149
22930
  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\".");
@@ -22263,7 +23044,16 @@ var Collection = class Collection extends Object$1 {
22263
23044
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
22264
23045
  const prop = this._cachedJsonLd["sharesOf"];
22265
23046
  const doc = Array.isArray(prop) ? prop[0] : prop;
22266
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#sharesOf_fromJsonLd(doc, options);
23047
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23048
+ v = await this.#sharesOf_fromJsonLd(doc, options);
23049
+ } catch (error) {
23050
+ if (!options.suppressError) throw error;
23051
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23052
+ property: "https://w3id.org/fep/5711#sharesOf",
23053
+ error
23054
+ });
23055
+ return null;
23056
+ }
22267
23057
  }
22268
23058
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
22269
23059
  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\".");
@@ -22383,7 +23173,16 @@ var Collection = class Collection extends Object$1 {
22383
23173
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
22384
23174
  const prop = this._cachedJsonLd["repliesOf"];
22385
23175
  const doc = Array.isArray(prop) ? prop[0] : prop;
22386
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#repliesOf_fromJsonLd(doc, options);
23176
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23177
+ v = await this.#repliesOf_fromJsonLd(doc, options);
23178
+ } catch (error) {
23179
+ if (!options.suppressError) throw error;
23180
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23181
+ property: "https://w3id.org/fep/5711#repliesOf",
23182
+ error
23183
+ });
23184
+ return null;
23185
+ }
22387
23186
  }
22388
23187
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
22389
23188
  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\".");
@@ -22503,7 +23302,16 @@ var Collection = class Collection extends Object$1 {
22503
23302
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
22504
23303
  const prop = this._cachedJsonLd["inboxOf"];
22505
23304
  const doc = Array.isArray(prop) ? prop[0] : prop;
22506
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inboxOf_fromJsonLd(doc, options);
23305
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23306
+ v = await this.#inboxOf_fromJsonLd(doc, options);
23307
+ } catch (error) {
23308
+ if (!options.suppressError) throw error;
23309
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23310
+ property: "https://w3id.org/fep/5711#inboxOf",
23311
+ error
23312
+ });
23313
+ return null;
23314
+ }
22507
23315
  }
22508
23316
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
22509
23317
  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\".");
@@ -22623,7 +23431,16 @@ var Collection = class Collection extends Object$1 {
22623
23431
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
22624
23432
  const prop = this._cachedJsonLd["outboxOf"];
22625
23433
  const doc = Array.isArray(prop) ? prop[0] : prop;
22626
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outboxOf_fromJsonLd(doc, options);
23434
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23435
+ v = await this.#outboxOf_fromJsonLd(doc, options);
23436
+ } catch (error) {
23437
+ if (!options.suppressError) throw error;
23438
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23439
+ property: "https://w3id.org/fep/5711#outboxOf",
23440
+ error
23441
+ });
23442
+ return null;
23443
+ }
22627
23444
  }
22628
23445
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
22629
23446
  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\".");
@@ -22743,7 +23560,16 @@ var Collection = class Collection extends Object$1 {
22743
23560
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
22744
23561
  const prop = this._cachedJsonLd["followersOf"];
22745
23562
  const doc = Array.isArray(prop) ? prop[0] : prop;
22746
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followersOf_fromJsonLd(doc, options);
23563
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23564
+ v = await this.#followersOf_fromJsonLd(doc, options);
23565
+ } catch (error) {
23566
+ if (!options.suppressError) throw error;
23567
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23568
+ property: "https://w3id.org/fep/5711#followersOf",
23569
+ error
23570
+ });
23571
+ return null;
23572
+ }
22747
23573
  }
22748
23574
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
22749
23575
  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\".");
@@ -22863,7 +23689,16 @@ var Collection = class Collection extends Object$1 {
22863
23689
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
22864
23690
  const prop = this._cachedJsonLd["followingOf"];
22865
23691
  const doc = Array.isArray(prop) ? prop[0] : prop;
22866
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followingOf_fromJsonLd(doc, options);
23692
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23693
+ v = await this.#followingOf_fromJsonLd(doc, options);
23694
+ } catch (error) {
23695
+ if (!options.suppressError) throw error;
23696
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23697
+ property: "https://w3id.org/fep/5711#followingOf",
23698
+ error
23699
+ });
23700
+ return null;
23701
+ }
22867
23702
  }
22868
23703
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
22869
23704
  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\".");
@@ -22983,7 +23818,16 @@ var Collection = class Collection extends Object$1 {
22983
23818
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
22984
23819
  const prop = this._cachedJsonLd["likedOf"];
22985
23820
  const doc = Array.isArray(prop) ? prop[0] : prop;
22986
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#likedOf_fromJsonLd(doc, options);
23821
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
23822
+ v = await this.#likedOf_fromJsonLd(doc, options);
23823
+ } catch (error) {
23824
+ if (!options.suppressError) throw error;
23825
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
23826
+ property: "https://w3id.org/fep/5711#likedOf",
23827
+ error
23828
+ });
23829
+ return null;
23830
+ }
22987
23831
  }
22988
23832
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
22989
23833
  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\".");
@@ -23967,7 +24811,16 @@ var CollectionPage = class CollectionPage extends Collection {
23967
24811
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
23968
24812
  const prop = this._cachedJsonLd["partOf"];
23969
24813
  const doc = Array.isArray(prop) ? prop[0] : prop;
23970
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#partOf_fromJsonLd(doc, options);
24814
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
24815
+ v = await this.#partOf_fromJsonLd(doc, options);
24816
+ } catch (error) {
24817
+ if (!options.suppressError) throw error;
24818
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
24819
+ property: "https://www.w3.org/ns/activitystreams#partOf",
24820
+ error
24821
+ });
24822
+ return null;
24823
+ }
23971
24824
  }
23972
24825
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
23973
24826
  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\".");
@@ -24087,7 +24940,16 @@ var CollectionPage = class CollectionPage extends Collection {
24087
24940
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
24088
24941
  const prop = this._cachedJsonLd["next"];
24089
24942
  const doc = Array.isArray(prop) ? prop[0] : prop;
24090
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#next_fromJsonLd(doc, options);
24943
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
24944
+ v = await this.#next_fromJsonLd(doc, options);
24945
+ } catch (error) {
24946
+ if (!options.suppressError) throw error;
24947
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
24948
+ property: "https://www.w3.org/ns/activitystreams#next",
24949
+ error
24950
+ });
24951
+ return null;
24952
+ }
24091
24953
  }
24092
24954
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
24093
24955
  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\".");
@@ -24207,7 +25069,16 @@ var CollectionPage = class CollectionPage extends Collection {
24207
25069
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
24208
25070
  const prop = this._cachedJsonLd["prev"];
24209
25071
  const doc = Array.isArray(prop) ? prop[0] : prop;
24210
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#prev_fromJsonLd(doc, options);
25072
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
25073
+ v = await this.#prev_fromJsonLd(doc, options);
25074
+ } catch (error) {
25075
+ if (!options.suppressError) throw error;
25076
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
25077
+ property: "https://www.w3.org/ns/activitystreams#prev",
25078
+ error
25079
+ });
25080
+ return null;
25081
+ }
24211
25082
  }
24212
25083
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
24213
25084
  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\".");
@@ -26417,7 +27288,16 @@ var Group = class Group extends Object$1 {
26417
27288
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26418
27289
  const prop = this._cachedJsonLd["publicKey"];
26419
27290
  const doc = Array.isArray(prop) ? prop[0] : prop;
26420
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
27291
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27292
+ v = await this.#publicKey_fromJsonLd(doc, options);
27293
+ } catch (error) {
27294
+ if (!options.suppressError) throw error;
27295
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27296
+ property: "https://w3id.org/security#publicKey",
27297
+ error
27298
+ });
27299
+ return null;
27300
+ }
26421
27301
  }
26422
27302
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26423
27303
  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\".");
@@ -26458,7 +27338,17 @@ var Group = class Group extends Object$1 {
26458
27338
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
26459
27339
  const prop = this._cachedJsonLd["publicKey"];
26460
27340
  const obj = Array.isArray(prop) ? prop[i] : prop;
26461
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
27341
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27342
+ v = await this.#publicKey_fromJsonLd(obj, options);
27343
+ } catch (error) {
27344
+ if (!options.suppressError) throw error;
27345
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27346
+ property: "https://w3id.org/security#publicKey",
27347
+ index: i,
27348
+ error
27349
+ });
27350
+ continue;
27351
+ }
26462
27352
  }
26463
27353
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
26464
27354
  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\".");
@@ -26582,7 +27472,16 @@ var Group = class Group extends Object$1 {
26582
27472
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
26583
27473
  const prop = this._cachedJsonLd["assertionMethod"];
26584
27474
  const doc = Array.isArray(prop) ? prop[0] : prop;
26585
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
27475
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27476
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
27477
+ } catch (error) {
27478
+ if (!options.suppressError) throw error;
27479
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27480
+ property: "https://w3id.org/security#assertionMethod",
27481
+ error
27482
+ });
27483
+ return null;
27484
+ }
26586
27485
  }
26587
27486
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
26588
27487
  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\".");
@@ -26626,7 +27525,17 @@ var Group = class Group extends Object$1 {
26626
27525
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
26627
27526
  const prop = this._cachedJsonLd["assertionMethod"];
26628
27527
  const obj = Array.isArray(prop) ? prop[i] : prop;
26629
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
27528
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
27529
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
27530
+ } catch (error) {
27531
+ if (!options.suppressError) throw error;
27532
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
27533
+ property: "https://w3id.org/security#assertionMethod",
27534
+ index: i,
27535
+ error
27536
+ });
27537
+ continue;
27538
+ }
26630
27539
  }
26631
27540
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
26632
27541
  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\".");
@@ -26781,7 +27690,16 @@ var Group = class Group extends Object$1 {
26781
27690
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
26782
27691
  const prop = this._cachedJsonLd["inbox"];
26783
27692
  const doc = Array.isArray(prop) ? prop[0] : prop;
26784
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
27693
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27694
+ v = await this.#inbox_fromJsonLd(doc, options);
27695
+ } catch (error) {
27696
+ if (!options.suppressError) throw error;
27697
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27698
+ property: "http://www.w3.org/ns/ldp#inbox",
27699
+ error
27700
+ });
27701
+ return null;
27702
+ }
26785
27703
  }
26786
27704
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
26787
27705
  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\".");
@@ -26920,7 +27838,16 @@ var Group = class Group extends Object$1 {
26920
27838
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
26921
27839
  const prop = this._cachedJsonLd["outbox"];
26922
27840
  const doc = Array.isArray(prop) ? prop[0] : prop;
26923
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
27841
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27842
+ v = await this.#outbox_fromJsonLd(doc, options);
27843
+ } catch (error) {
27844
+ if (!options.suppressError) throw error;
27845
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27846
+ property: "https://www.w3.org/ns/activitystreams#outbox",
27847
+ error
27848
+ });
27849
+ return null;
27850
+ }
26924
27851
  }
26925
27852
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
26926
27853
  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\".");
@@ -27044,7 +27971,16 @@ var Group = class Group extends Object$1 {
27044
27971
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
27045
27972
  const prop = this._cachedJsonLd["following"];
27046
27973
  const doc = Array.isArray(prop) ? prop[0] : prop;
27047
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
27974
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
27975
+ v = await this.#following_fromJsonLd(doc, options);
27976
+ } catch (error) {
27977
+ if (!options.suppressError) throw error;
27978
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
27979
+ property: "https://www.w3.org/ns/activitystreams#following",
27980
+ error
27981
+ });
27982
+ return null;
27983
+ }
27048
27984
  }
27049
27985
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
27050
27986
  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\".");
@@ -27171,7 +28107,16 @@ var Group = class Group extends Object$1 {
27171
28107
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
27172
28108
  const prop = this._cachedJsonLd["followers"];
27173
28109
  const doc = Array.isArray(prop) ? prop[0] : prop;
27174
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
28110
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28111
+ v = await this.#followers_fromJsonLd(doc, options);
28112
+ } catch (error) {
28113
+ if (!options.suppressError) throw error;
28114
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28115
+ property: "https://www.w3.org/ns/activitystreams#followers",
28116
+ error
28117
+ });
28118
+ return null;
28119
+ }
27175
28120
  }
27176
28121
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
27177
28122
  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\".");
@@ -27296,7 +28241,16 @@ var Group = class Group extends Object$1 {
27296
28241
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
27297
28242
  const prop = this._cachedJsonLd["liked"];
27298
28243
  const doc = Array.isArray(prop) ? prop[0] : prop;
27299
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
28244
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28245
+ v = await this.#liked_fromJsonLd(doc, options);
28246
+ } catch (error) {
28247
+ if (!options.suppressError) throw error;
28248
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28249
+ property: "https://www.w3.org/ns/activitystreams#liked",
28250
+ error
28251
+ });
28252
+ return null;
28253
+ }
27300
28254
  }
27301
28255
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
27302
28256
  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\".");
@@ -27419,7 +28373,16 @@ var Group = class Group extends Object$1 {
27419
28373
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
27420
28374
  const prop = this._cachedJsonLd["featured"];
27421
28375
  const doc = Array.isArray(prop) ? prop[0] : prop;
27422
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
28376
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28377
+ v = await this.#featured_fromJsonLd(doc, options);
28378
+ } catch (error) {
28379
+ if (!options.suppressError) throw error;
28380
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28381
+ property: "http://joinmastodon.org/ns#featured",
28382
+ error
28383
+ });
28384
+ return null;
28385
+ }
27423
28386
  }
27424
28387
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
27425
28388
  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\".");
@@ -27542,7 +28505,16 @@ var Group = class Group extends Object$1 {
27542
28505
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
27543
28506
  const prop = this._cachedJsonLd["featuredTags"];
27544
28507
  const doc = Array.isArray(prop) ? prop[0] : prop;
27545
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
28508
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28509
+ v = await this.#featuredTags_fromJsonLd(doc, options);
28510
+ } catch (error) {
28511
+ if (!options.suppressError) throw error;
28512
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28513
+ property: "http://joinmastodon.org/ns#featuredTags",
28514
+ error
28515
+ });
28516
+ return null;
28517
+ }
27546
28518
  }
27547
28519
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
27548
28520
  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\".");
@@ -27661,7 +28633,17 @@ var Group = class Group extends Object$1 {
27661
28633
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
27662
28634
  const prop = this._cachedJsonLd["streams"];
27663
28635
  const obj = Array.isArray(prop) ? prop[i] : prop;
27664
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
28636
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
28637
+ v = await this.#stream_fromJsonLd(obj, options);
28638
+ } catch (error) {
28639
+ if (!options.suppressError) throw error;
28640
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
28641
+ property: "https://www.w3.org/ns/activitystreams#streams",
28642
+ index: i,
28643
+ error
28644
+ });
28645
+ continue;
28646
+ }
27665
28647
  }
27666
28648
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
27667
28649
  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\".");
@@ -27870,7 +28852,16 @@ var Group = class Group extends Object$1 {
27870
28852
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
27871
28853
  const prop = this._cachedJsonLd["movedTo"];
27872
28854
  const doc = Array.isArray(prop) ? prop[0] : prop;
27873
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
28855
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
28856
+ v = await this.#successor_fromJsonLd(doc, options);
28857
+ } catch (error) {
28858
+ if (!options.suppressError) throw error;
28859
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
28860
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
28861
+ error
28862
+ });
28863
+ return null;
28864
+ }
27874
28865
  }
27875
28866
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
27876
28867
  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\".");
@@ -28039,7 +29030,16 @@ var Group = class Group extends Object$1 {
28039
29030
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28040
29031
  const prop = this._cachedJsonLd["alsoKnownAs"];
28041
29032
  const doc = Array.isArray(prop) ? prop[0] : prop;
28042
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
29033
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29034
+ v = await this.#alias_fromJsonLd(doc, options);
29035
+ } catch (error) {
29036
+ if (!options.suppressError) throw error;
29037
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29038
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29039
+ error
29040
+ });
29041
+ return null;
29042
+ }
28043
29043
  }
28044
29044
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28045
29045
  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\".");
@@ -28083,7 +29083,17 @@ var Group = class Group extends Object$1 {
28083
29083
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
28084
29084
  const prop = this._cachedJsonLd["alsoKnownAs"];
28085
29085
  const obj = Array.isArray(prop) ? prop[i] : prop;
28086
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
29086
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29087
+ v = await this.#alias_fromJsonLd(obj, options);
29088
+ } catch (error) {
29089
+ if (!options.suppressError) throw error;
29090
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29091
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
29092
+ index: i,
29093
+ error
29094
+ });
29095
+ continue;
29096
+ }
28087
29097
  }
28088
29098
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
28089
29099
  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\".");
@@ -28207,7 +29217,16 @@ var Group = class Group extends Object$1 {
28207
29217
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28208
29218
  const prop = this._cachedJsonLd["service"];
28209
29219
  const doc = Array.isArray(prop) ? prop[0] : prop;
28210
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
29220
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
29221
+ v = await this.#service_fromJsonLd(doc, options);
29222
+ } catch (error) {
29223
+ if (!options.suppressError) throw error;
29224
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
29225
+ property: "https://www.w3.org/ns/did#service",
29226
+ error
29227
+ });
29228
+ return null;
29229
+ }
28211
29230
  }
28212
29231
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28213
29232
  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\".");
@@ -28251,7 +29270,17 @@ var Group = class Group extends Object$1 {
28251
29270
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
28252
29271
  const prop = this._cachedJsonLd["service"];
28253
29272
  const obj = Array.isArray(prop) ? prop[i] : prop;
28254
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
29273
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
29274
+ v = await this.#service_fromJsonLd(obj, options);
29275
+ } catch (error) {
29276
+ if (!options.suppressError) throw error;
29277
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
29278
+ property: "https://www.w3.org/ns/did#service",
29279
+ index: i,
29280
+ error
29281
+ });
29282
+ continue;
29283
+ }
28255
29284
  }
28256
29285
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
28257
29286
  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\".");
@@ -29726,7 +30755,17 @@ var Link = class Link {
29726
30755
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
29727
30756
  const prop = this._cachedJsonLd["preview"];
29728
30757
  const obj = Array.isArray(prop) ? prop[i] : prop;
29729
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#preview_fromJsonLd(obj, options);
30758
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
30759
+ v = await this.#preview_fromJsonLd(obj, options);
30760
+ } catch (error) {
30761
+ if (!options.suppressError) throw error;
30762
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
30763
+ property: "https://www.w3.org/ns/activitystreams#preview",
30764
+ index: i,
30765
+ error
30766
+ });
30767
+ continue;
30768
+ }
29730
30769
  }
29731
30770
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
29732
30771
  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\".");
@@ -31906,7 +32945,16 @@ var Note = class Note extends Object$1 {
31906
32945
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
31907
32946
  const prop = this._cachedJsonLd["quote"];
31908
32947
  const doc = Array.isArray(prop) ? prop[0] : prop;
31909
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
32948
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
32949
+ v = await this.#quote_fromJsonLd(doc, options);
32950
+ } catch (error) {
32951
+ if (!options.suppressError) throw error;
32952
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
32953
+ property: "https://w3id.org/fep/044f#quote",
32954
+ error
32955
+ });
32956
+ return null;
32957
+ }
31910
32958
  }
31911
32959
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
31912
32960
  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\".");
@@ -32043,7 +33091,16 @@ var Note = class Note extends Object$1 {
32043
33091
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
32044
33092
  const prop = this._cachedJsonLd["quoteAuthorization"];
32045
33093
  const doc = Array.isArray(prop) ? prop[0] : prop;
32046
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
33094
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
33095
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
33096
+ } catch (error) {
33097
+ if (!options.suppressError) throw error;
33098
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
33099
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
33100
+ error
33101
+ });
33102
+ return null;
33103
+ }
32047
33104
  }
32048
33105
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
32049
33106
  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\".");
@@ -32296,7 +33353,7 @@ var Note = class Note extends Object$1 {
32296
33353
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
32297
33354
  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) {
32298
33355
  if (v == null) continue;
32299
- const decoded = new URL(v["@value"]);
33356
+ 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;
32300
33357
  if (typeof decoded === "undefined") {
32301
33358
  shouldCacheJsonLd = false;
32302
33359
  continue;
@@ -32525,7 +33582,17 @@ var OrderedCollection = class OrderedCollection extends Collection {
32525
33582
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
32526
33583
  const prop = this._cachedJsonLd["orderedItems"];
32527
33584
  const obj = Array.isArray(prop) ? prop[i] : prop;
32528
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
33585
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
33586
+ v = await this.#item_fromJsonLd(obj, options);
33587
+ } catch (error) {
33588
+ if (!options.suppressError) throw error;
33589
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
33590
+ property: "https://www.w3.org/ns/activitystreams#items",
33591
+ index: i,
33592
+ error
33593
+ });
33594
+ continue;
33595
+ }
32529
33596
  }
32530
33597
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
32531
33598
  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\".");
@@ -33016,7 +34083,17 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
33016
34083
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
33017
34084
  const prop = this._cachedJsonLd["orderedItems"];
33018
34085
  const obj = Array.isArray(prop) ? prop[i] : prop;
33019
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#item_fromJsonLd(obj, options);
34086
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
34087
+ v = await this.#item_fromJsonLd(obj, options);
34088
+ } catch (error) {
34089
+ if (!options.suppressError) throw error;
34090
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
34091
+ property: "https://www.w3.org/ns/activitystreams#items",
34092
+ index: i,
34093
+ error
34094
+ });
34095
+ continue;
34096
+ }
33020
34097
  }
33021
34098
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
33022
34099
  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\".");
@@ -33812,7 +34889,16 @@ var Organization = class Organization extends Object$1 {
33812
34889
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
33813
34890
  const prop = this._cachedJsonLd["publicKey"];
33814
34891
  const doc = Array.isArray(prop) ? prop[0] : prop;
33815
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
34892
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
34893
+ v = await this.#publicKey_fromJsonLd(doc, options);
34894
+ } catch (error) {
34895
+ if (!options.suppressError) throw error;
34896
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
34897
+ property: "https://w3id.org/security#publicKey",
34898
+ error
34899
+ });
34900
+ return null;
34901
+ }
33816
34902
  }
33817
34903
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
33818
34904
  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\".");
@@ -33853,7 +34939,17 @@ var Organization = class Organization extends Object$1 {
33853
34939
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
33854
34940
  const prop = this._cachedJsonLd["publicKey"];
33855
34941
  const obj = Array.isArray(prop) ? prop[i] : prop;
33856
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
34942
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
34943
+ v = await this.#publicKey_fromJsonLd(obj, options);
34944
+ } catch (error) {
34945
+ if (!options.suppressError) throw error;
34946
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
34947
+ property: "https://w3id.org/security#publicKey",
34948
+ index: i,
34949
+ error
34950
+ });
34951
+ continue;
34952
+ }
33857
34953
  }
33858
34954
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
33859
34955
  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\".");
@@ -33977,7 +35073,16 @@ var Organization = class Organization extends Object$1 {
33977
35073
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
33978
35074
  const prop = this._cachedJsonLd["assertionMethod"];
33979
35075
  const doc = Array.isArray(prop) ? prop[0] : prop;
33980
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
35076
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35077
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
35078
+ } catch (error) {
35079
+ if (!options.suppressError) throw error;
35080
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35081
+ property: "https://w3id.org/security#assertionMethod",
35082
+ error
35083
+ });
35084
+ return null;
35085
+ }
33981
35086
  }
33982
35087
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
33983
35088
  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\".");
@@ -34021,7 +35126,17 @@ var Organization = class Organization extends Object$1 {
34021
35126
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
34022
35127
  const prop = this._cachedJsonLd["assertionMethod"];
34023
35128
  const obj = Array.isArray(prop) ? prop[i] : prop;
34024
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
35129
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
35130
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
35131
+ } catch (error) {
35132
+ if (!options.suppressError) throw error;
35133
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
35134
+ property: "https://w3id.org/security#assertionMethod",
35135
+ index: i,
35136
+ error
35137
+ });
35138
+ continue;
35139
+ }
34025
35140
  }
34026
35141
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
34027
35142
  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\".");
@@ -34176,7 +35291,16 @@ var Organization = class Organization extends Object$1 {
34176
35291
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
34177
35292
  const prop = this._cachedJsonLd["inbox"];
34178
35293
  const doc = Array.isArray(prop) ? prop[0] : prop;
34179
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
35294
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35295
+ v = await this.#inbox_fromJsonLd(doc, options);
35296
+ } catch (error) {
35297
+ if (!options.suppressError) throw error;
35298
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35299
+ property: "http://www.w3.org/ns/ldp#inbox",
35300
+ error
35301
+ });
35302
+ return null;
35303
+ }
34180
35304
  }
34181
35305
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
34182
35306
  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\".");
@@ -34315,7 +35439,16 @@ var Organization = class Organization extends Object$1 {
34315
35439
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
34316
35440
  const prop = this._cachedJsonLd["outbox"];
34317
35441
  const doc = Array.isArray(prop) ? prop[0] : prop;
34318
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
35442
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35443
+ v = await this.#outbox_fromJsonLd(doc, options);
35444
+ } catch (error) {
35445
+ if (!options.suppressError) throw error;
35446
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35447
+ property: "https://www.w3.org/ns/activitystreams#outbox",
35448
+ error
35449
+ });
35450
+ return null;
35451
+ }
34319
35452
  }
34320
35453
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
34321
35454
  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\".");
@@ -34439,7 +35572,16 @@ var Organization = class Organization extends Object$1 {
34439
35572
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
34440
35573
  const prop = this._cachedJsonLd["following"];
34441
35574
  const doc = Array.isArray(prop) ? prop[0] : prop;
34442
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
35575
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35576
+ v = await this.#following_fromJsonLd(doc, options);
35577
+ } catch (error) {
35578
+ if (!options.suppressError) throw error;
35579
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35580
+ property: "https://www.w3.org/ns/activitystreams#following",
35581
+ error
35582
+ });
35583
+ return null;
35584
+ }
34443
35585
  }
34444
35586
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
34445
35587
  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\".");
@@ -34566,7 +35708,16 @@ var Organization = class Organization extends Object$1 {
34566
35708
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
34567
35709
  const prop = this._cachedJsonLd["followers"];
34568
35710
  const doc = Array.isArray(prop) ? prop[0] : prop;
34569
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
35711
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35712
+ v = await this.#followers_fromJsonLd(doc, options);
35713
+ } catch (error) {
35714
+ if (!options.suppressError) throw error;
35715
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35716
+ property: "https://www.w3.org/ns/activitystreams#followers",
35717
+ error
35718
+ });
35719
+ return null;
35720
+ }
34570
35721
  }
34571
35722
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
34572
35723
  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\".");
@@ -34691,7 +35842,16 @@ var Organization = class Organization extends Object$1 {
34691
35842
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
34692
35843
  const prop = this._cachedJsonLd["liked"];
34693
35844
  const doc = Array.isArray(prop) ? prop[0] : prop;
34694
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
35845
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35846
+ v = await this.#liked_fromJsonLd(doc, options);
35847
+ } catch (error) {
35848
+ if (!options.suppressError) throw error;
35849
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35850
+ property: "https://www.w3.org/ns/activitystreams#liked",
35851
+ error
35852
+ });
35853
+ return null;
35854
+ }
34695
35855
  }
34696
35856
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
34697
35857
  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\".");
@@ -34814,7 +35974,16 @@ var Organization = class Organization extends Object$1 {
34814
35974
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
34815
35975
  const prop = this._cachedJsonLd["featured"];
34816
35976
  const doc = Array.isArray(prop) ? prop[0] : prop;
34817
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
35977
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
35978
+ v = await this.#featured_fromJsonLd(doc, options);
35979
+ } catch (error) {
35980
+ if (!options.suppressError) throw error;
35981
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
35982
+ property: "http://joinmastodon.org/ns#featured",
35983
+ error
35984
+ });
35985
+ return null;
35986
+ }
34818
35987
  }
34819
35988
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
34820
35989
  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\".");
@@ -34937,7 +36106,16 @@ var Organization = class Organization extends Object$1 {
34937
36106
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
34938
36107
  const prop = this._cachedJsonLd["featuredTags"];
34939
36108
  const doc = Array.isArray(prop) ? prop[0] : prop;
34940
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
36109
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36110
+ v = await this.#featuredTags_fromJsonLd(doc, options);
36111
+ } catch (error) {
36112
+ if (!options.suppressError) throw error;
36113
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36114
+ property: "http://joinmastodon.org/ns#featuredTags",
36115
+ error
36116
+ });
36117
+ return null;
36118
+ }
34941
36119
  }
34942
36120
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
34943
36121
  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\".");
@@ -35056,7 +36234,17 @@ var Organization = class Organization extends Object$1 {
35056
36234
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
35057
36235
  const prop = this._cachedJsonLd["streams"];
35058
36236
  const obj = Array.isArray(prop) ? prop[i] : prop;
35059
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
36237
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36238
+ v = await this.#stream_fromJsonLd(obj, options);
36239
+ } catch (error) {
36240
+ if (!options.suppressError) throw error;
36241
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36242
+ property: "https://www.w3.org/ns/activitystreams#streams",
36243
+ index: i,
36244
+ error
36245
+ });
36246
+ continue;
36247
+ }
35060
36248
  }
35061
36249
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
35062
36250
  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\".");
@@ -35265,7 +36453,16 @@ var Organization = class Organization extends Object$1 {
35265
36453
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
35266
36454
  const prop = this._cachedJsonLd["movedTo"];
35267
36455
  const doc = Array.isArray(prop) ? prop[0] : prop;
35268
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
36456
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36457
+ v = await this.#successor_fromJsonLd(doc, options);
36458
+ } catch (error) {
36459
+ if (!options.suppressError) throw error;
36460
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36461
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
36462
+ error
36463
+ });
36464
+ return null;
36465
+ }
35269
36466
  }
35270
36467
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
35271
36468
  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\".");
@@ -35434,7 +36631,16 @@ var Organization = class Organization extends Object$1 {
35434
36631
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
35435
36632
  const prop = this._cachedJsonLd["alsoKnownAs"];
35436
36633
  const doc = Array.isArray(prop) ? prop[0] : prop;
35437
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
36634
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36635
+ v = await this.#alias_fromJsonLd(doc, options);
36636
+ } catch (error) {
36637
+ if (!options.suppressError) throw error;
36638
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36639
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
36640
+ error
36641
+ });
36642
+ return null;
36643
+ }
35438
36644
  }
35439
36645
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
35440
36646
  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\".");
@@ -35478,7 +36684,17 @@ var Organization = class Organization extends Object$1 {
35478
36684
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
35479
36685
  const prop = this._cachedJsonLd["alsoKnownAs"];
35480
36686
  const obj = Array.isArray(prop) ? prop[i] : prop;
35481
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
36687
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36688
+ v = await this.#alias_fromJsonLd(obj, options);
36689
+ } catch (error) {
36690
+ if (!options.suppressError) throw error;
36691
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36692
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
36693
+ index: i,
36694
+ error
36695
+ });
36696
+ continue;
36697
+ }
35482
36698
  }
35483
36699
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
35484
36700
  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\".");
@@ -35602,7 +36818,16 @@ var Organization = class Organization extends Object$1 {
35602
36818
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
35603
36819
  const prop = this._cachedJsonLd["service"];
35604
36820
  const doc = Array.isArray(prop) ? prop[0] : prop;
35605
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
36821
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
36822
+ v = await this.#service_fromJsonLd(doc, options);
36823
+ } catch (error) {
36824
+ if (!options.suppressError) throw error;
36825
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
36826
+ property: "https://www.w3.org/ns/did#service",
36827
+ error
36828
+ });
36829
+ return null;
36830
+ }
35606
36831
  }
35607
36832
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
35608
36833
  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\".");
@@ -35646,7 +36871,17 @@ var Organization = class Organization extends Object$1 {
35646
36871
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
35647
36872
  const prop = this._cachedJsonLd["service"];
35648
36873
  const obj = Array.isArray(prop) ? prop[i] : prop;
35649
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
36874
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
36875
+ v = await this.#service_fromJsonLd(obj, options);
36876
+ } catch (error) {
36877
+ if (!options.suppressError) throw error;
36878
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
36879
+ property: "https://www.w3.org/ns/did#service",
36880
+ index: i,
36881
+ error
36882
+ });
36883
+ continue;
36884
+ }
35650
36885
  }
35651
36886
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
35652
36887
  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\".");
@@ -37371,7 +38606,16 @@ var Person = class Person extends Object$1 {
37371
38606
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
37372
38607
  const prop = this._cachedJsonLd["publicKey"];
37373
38608
  const doc = Array.isArray(prop) ? prop[0] : prop;
37374
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
38609
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38610
+ v = await this.#publicKey_fromJsonLd(doc, options);
38611
+ } catch (error) {
38612
+ if (!options.suppressError) throw error;
38613
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38614
+ property: "https://w3id.org/security#publicKey",
38615
+ error
38616
+ });
38617
+ return null;
38618
+ }
37375
38619
  }
37376
38620
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
37377
38621
  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\".");
@@ -37412,7 +38656,17 @@ var Person = class Person extends Object$1 {
37412
38656
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
37413
38657
  const prop = this._cachedJsonLd["publicKey"];
37414
38658
  const obj = Array.isArray(prop) ? prop[i] : prop;
37415
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
38659
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
38660
+ v = await this.#publicKey_fromJsonLd(obj, options);
38661
+ } catch (error) {
38662
+ if (!options.suppressError) throw error;
38663
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
38664
+ property: "https://w3id.org/security#publicKey",
38665
+ index: i,
38666
+ error
38667
+ });
38668
+ continue;
38669
+ }
37416
38670
  }
37417
38671
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
37418
38672
  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\".");
@@ -37536,7 +38790,16 @@ var Person = class Person extends Object$1 {
37536
38790
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
37537
38791
  const prop = this._cachedJsonLd["assertionMethod"];
37538
38792
  const doc = Array.isArray(prop) ? prop[0] : prop;
37539
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
38793
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
38794
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
38795
+ } catch (error) {
38796
+ if (!options.suppressError) throw error;
38797
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
38798
+ property: "https://w3id.org/security#assertionMethod",
38799
+ error
38800
+ });
38801
+ return null;
38802
+ }
37540
38803
  }
37541
38804
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
37542
38805
  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\".");
@@ -37580,7 +38843,17 @@ var Person = class Person extends Object$1 {
37580
38843
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
37581
38844
  const prop = this._cachedJsonLd["assertionMethod"];
37582
38845
  const obj = Array.isArray(prop) ? prop[i] : prop;
37583
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
38846
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
38847
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
38848
+ } catch (error) {
38849
+ if (!options.suppressError) throw error;
38850
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
38851
+ property: "https://w3id.org/security#assertionMethod",
38852
+ index: i,
38853
+ error
38854
+ });
38855
+ continue;
38856
+ }
37584
38857
  }
37585
38858
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
37586
38859
  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\".");
@@ -37735,7 +39008,16 @@ var Person = class Person extends Object$1 {
37735
39008
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
37736
39009
  const prop = this._cachedJsonLd["inbox"];
37737
39010
  const doc = Array.isArray(prop) ? prop[0] : prop;
37738
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
39011
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39012
+ v = await this.#inbox_fromJsonLd(doc, options);
39013
+ } catch (error) {
39014
+ if (!options.suppressError) throw error;
39015
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39016
+ property: "http://www.w3.org/ns/ldp#inbox",
39017
+ error
39018
+ });
39019
+ return null;
39020
+ }
37739
39021
  }
37740
39022
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
37741
39023
  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\".");
@@ -37874,7 +39156,16 @@ var Person = class Person extends Object$1 {
37874
39156
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
37875
39157
  const prop = this._cachedJsonLd["outbox"];
37876
39158
  const doc = Array.isArray(prop) ? prop[0] : prop;
37877
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
39159
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39160
+ v = await this.#outbox_fromJsonLd(doc, options);
39161
+ } catch (error) {
39162
+ if (!options.suppressError) throw error;
39163
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39164
+ property: "https://www.w3.org/ns/activitystreams#outbox",
39165
+ error
39166
+ });
39167
+ return null;
39168
+ }
37878
39169
  }
37879
39170
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
37880
39171
  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\".");
@@ -37998,7 +39289,16 @@ var Person = class Person extends Object$1 {
37998
39289
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
37999
39290
  const prop = this._cachedJsonLd["following"];
38000
39291
  const doc = Array.isArray(prop) ? prop[0] : prop;
38001
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
39292
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39293
+ v = await this.#following_fromJsonLd(doc, options);
39294
+ } catch (error) {
39295
+ if (!options.suppressError) throw error;
39296
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39297
+ property: "https://www.w3.org/ns/activitystreams#following",
39298
+ error
39299
+ });
39300
+ return null;
39301
+ }
38002
39302
  }
38003
39303
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
38004
39304
  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\".");
@@ -38125,7 +39425,16 @@ var Person = class Person extends Object$1 {
38125
39425
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
38126
39426
  const prop = this._cachedJsonLd["followers"];
38127
39427
  const doc = Array.isArray(prop) ? prop[0] : prop;
38128
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
39428
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39429
+ v = await this.#followers_fromJsonLd(doc, options);
39430
+ } catch (error) {
39431
+ if (!options.suppressError) throw error;
39432
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39433
+ property: "https://www.w3.org/ns/activitystreams#followers",
39434
+ error
39435
+ });
39436
+ return null;
39437
+ }
38129
39438
  }
38130
39439
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
38131
39440
  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\".");
@@ -38250,7 +39559,16 @@ var Person = class Person extends Object$1 {
38250
39559
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
38251
39560
  const prop = this._cachedJsonLd["liked"];
38252
39561
  const doc = Array.isArray(prop) ? prop[0] : prop;
38253
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
39562
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39563
+ v = await this.#liked_fromJsonLd(doc, options);
39564
+ } catch (error) {
39565
+ if (!options.suppressError) throw error;
39566
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39567
+ property: "https://www.w3.org/ns/activitystreams#liked",
39568
+ error
39569
+ });
39570
+ return null;
39571
+ }
38254
39572
  }
38255
39573
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
38256
39574
  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\".");
@@ -38373,7 +39691,16 @@ var Person = class Person extends Object$1 {
38373
39691
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
38374
39692
  const prop = this._cachedJsonLd["featured"];
38375
39693
  const doc = Array.isArray(prop) ? prop[0] : prop;
38376
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
39694
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39695
+ v = await this.#featured_fromJsonLd(doc, options);
39696
+ } catch (error) {
39697
+ if (!options.suppressError) throw error;
39698
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39699
+ property: "http://joinmastodon.org/ns#featured",
39700
+ error
39701
+ });
39702
+ return null;
39703
+ }
38377
39704
  }
38378
39705
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
38379
39706
  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\".");
@@ -38496,7 +39823,16 @@ var Person = class Person extends Object$1 {
38496
39823
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
38497
39824
  const prop = this._cachedJsonLd["featuredTags"];
38498
39825
  const doc = Array.isArray(prop) ? prop[0] : prop;
38499
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
39826
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
39827
+ v = await this.#featuredTags_fromJsonLd(doc, options);
39828
+ } catch (error) {
39829
+ if (!options.suppressError) throw error;
39830
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
39831
+ property: "http://joinmastodon.org/ns#featuredTags",
39832
+ error
39833
+ });
39834
+ return null;
39835
+ }
38500
39836
  }
38501
39837
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
38502
39838
  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\".");
@@ -38615,7 +39951,17 @@ var Person = class Person extends Object$1 {
38615
39951
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
38616
39952
  const prop = this._cachedJsonLd["streams"];
38617
39953
  const obj = Array.isArray(prop) ? prop[i] : prop;
38618
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
39954
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
39955
+ v = await this.#stream_fromJsonLd(obj, options);
39956
+ } catch (error) {
39957
+ if (!options.suppressError) throw error;
39958
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
39959
+ property: "https://www.w3.org/ns/activitystreams#streams",
39960
+ index: i,
39961
+ error
39962
+ });
39963
+ continue;
39964
+ }
38619
39965
  }
38620
39966
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
38621
39967
  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\".");
@@ -38824,7 +40170,16 @@ var Person = class Person extends Object$1 {
38824
40170
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
38825
40171
  const prop = this._cachedJsonLd["movedTo"];
38826
40172
  const doc = Array.isArray(prop) ? prop[0] : prop;
38827
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
40173
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
40174
+ v = await this.#successor_fromJsonLd(doc, options);
40175
+ } catch (error) {
40176
+ if (!options.suppressError) throw error;
40177
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
40178
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
40179
+ error
40180
+ });
40181
+ return null;
40182
+ }
38828
40183
  }
38829
40184
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
38830
40185
  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\".");
@@ -38993,7 +40348,16 @@ var Person = class Person extends Object$1 {
38993
40348
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
38994
40349
  const prop = this._cachedJsonLd["alsoKnownAs"];
38995
40350
  const doc = Array.isArray(prop) ? prop[0] : prop;
38996
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
40351
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
40352
+ v = await this.#alias_fromJsonLd(doc, options);
40353
+ } catch (error) {
40354
+ if (!options.suppressError) throw error;
40355
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
40356
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
40357
+ error
40358
+ });
40359
+ return null;
40360
+ }
38997
40361
  }
38998
40362
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
38999
40363
  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\".");
@@ -39037,7 +40401,17 @@ var Person = class Person extends Object$1 {
39037
40401
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
39038
40402
  const prop = this._cachedJsonLd["alsoKnownAs"];
39039
40403
  const obj = Array.isArray(prop) ? prop[i] : prop;
39040
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
40404
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
40405
+ v = await this.#alias_fromJsonLd(obj, options);
40406
+ } catch (error) {
40407
+ if (!options.suppressError) throw error;
40408
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
40409
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
40410
+ index: i,
40411
+ error
40412
+ });
40413
+ continue;
40414
+ }
39041
40415
  }
39042
40416
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
39043
40417
  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\".");
@@ -39161,7 +40535,16 @@ var Person = class Person extends Object$1 {
39161
40535
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
39162
40536
  const prop = this._cachedJsonLd["service"];
39163
40537
  const doc = Array.isArray(prop) ? prop[0] : prop;
39164
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
40538
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
40539
+ v = await this.#service_fromJsonLd(doc, options);
40540
+ } catch (error) {
40541
+ if (!options.suppressError) throw error;
40542
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
40543
+ property: "https://www.w3.org/ns/did#service",
40544
+ error
40545
+ });
40546
+ return null;
40547
+ }
39165
40548
  }
39166
40549
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
39167
40550
  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\".");
@@ -39205,7 +40588,17 @@ var Person = class Person extends Object$1 {
39205
40588
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
39206
40589
  const prop = this._cachedJsonLd["service"];
39207
40590
  const obj = Array.isArray(prop) ? prop[i] : prop;
39208
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
40591
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
40592
+ v = await this.#service_fromJsonLd(obj, options);
40593
+ } catch (error) {
40594
+ if (!options.suppressError) throw error;
40595
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
40596
+ property: "https://www.w3.org/ns/did#service",
40597
+ index: i,
40598
+ error
40599
+ });
40600
+ continue;
40601
+ }
39209
40602
  }
39210
40603
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
39211
40604
  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\".");
@@ -40938,7 +42331,16 @@ var Profile = class Profile extends Object$1 {
40938
42331
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
40939
42332
  const prop = this._cachedJsonLd["describes"];
40940
42333
  const doc = Array.isArray(prop) ? prop[0] : prop;
40941
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#describes_fromJsonLd(doc, options);
42334
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
42335
+ v = await this.#describes_fromJsonLd(doc, options);
42336
+ } catch (error) {
42337
+ if (!options.suppressError) throw error;
42338
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
42339
+ property: "https://www.w3.org/ns/activitystreams#describes",
42340
+ error
42341
+ });
42342
+ return null;
42343
+ }
40942
42344
  }
40943
42345
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
40944
42346
  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\".");
@@ -41342,7 +42744,17 @@ var Question = class Question extends IntransitiveActivity {
41342
42744
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
41343
42745
  const prop = this._cachedJsonLd["oneOf"];
41344
42746
  const obj = Array.isArray(prop) ? prop[i] : prop;
41345
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#exclusiveOption_fromJsonLd(obj, options);
42747
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
42748
+ v = await this.#exclusiveOption_fromJsonLd(obj, options);
42749
+ } catch (error) {
42750
+ if (!options.suppressError) throw error;
42751
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
42752
+ property: "https://www.w3.org/ns/activitystreams#oneOf",
42753
+ index: i,
42754
+ error
42755
+ });
42756
+ continue;
42757
+ }
41346
42758
  }
41347
42759
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
41348
42760
  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\".");
@@ -41464,7 +42876,17 @@ var Question = class Question extends IntransitiveActivity {
41464
42876
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
41465
42877
  const prop = this._cachedJsonLd["anyOf"];
41466
42878
  const obj = Array.isArray(prop) ? prop[i] : prop;
41467
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#inclusiveOption_fromJsonLd(obj, options);
42879
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
42880
+ v = await this.#inclusiveOption_fromJsonLd(obj, options);
42881
+ } catch (error) {
42882
+ if (!options.suppressError) throw error;
42883
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
42884
+ property: "https://www.w3.org/ns/activitystreams#anyOf",
42885
+ index: i,
42886
+ error
42887
+ });
42888
+ continue;
42889
+ }
41468
42890
  }
41469
42891
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
41470
42892
  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\".");
@@ -41603,7 +43025,16 @@ var Question = class Question extends IntransitiveActivity {
41603
43025
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
41604
43026
  const prop = this._cachedJsonLd["quote"];
41605
43027
  const doc = Array.isArray(prop) ? prop[0] : prop;
41606
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quote_fromJsonLd(doc, options);
43028
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
43029
+ v = await this.#quote_fromJsonLd(doc, options);
43030
+ } catch (error) {
43031
+ if (!options.suppressError) throw error;
43032
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
43033
+ property: "https://w3id.org/fep/044f#quote",
43034
+ error
43035
+ });
43036
+ return null;
43037
+ }
41607
43038
  }
41608
43039
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
41609
43040
  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\".");
@@ -41740,7 +43171,16 @@ var Question = class Question extends IntransitiveActivity {
41740
43171
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
41741
43172
  const prop = this._cachedJsonLd["quoteAuthorization"];
41742
43173
  const doc = Array.isArray(prop) ? prop[0] : prop;
41743
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#quoteAuthorization_fromJsonLd(doc, options);
43174
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
43175
+ v = await this.#quoteAuthorization_fromJsonLd(doc, options);
43176
+ } catch (error) {
43177
+ if (!options.suppressError) throw error;
43178
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
43179
+ property: "https://w3id.org/fep/044f#quoteAuthorization",
43180
+ error
43181
+ });
43182
+ return null;
43183
+ }
41744
43184
  }
41745
43185
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
41746
43186
  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\".");
@@ -42025,7 +43465,7 @@ var Question = class Question extends IntransitiveActivity {
42025
43465
  if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
42026
43466
  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) {
42027
43467
  if (v == null) continue;
42028
- const decoded = new URL(v["@value"]);
43468
+ 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;
42029
43469
  if (typeof decoded === "undefined") {
42030
43470
  shouldCacheJsonLd = false;
42031
43471
  continue;
@@ -42627,7 +44067,16 @@ var Relationship = class Relationship extends Object$1 {
42627
44067
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
42628
44068
  const prop = this._cachedJsonLd["subject"];
42629
44069
  const doc = Array.isArray(prop) ? prop[0] : prop;
42630
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#subject_fromJsonLd(doc, options);
44070
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
44071
+ v = await this.#subject_fromJsonLd(doc, options);
44072
+ } catch (error) {
44073
+ if (!options.suppressError) throw error;
44074
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
44075
+ property: "https://www.w3.org/ns/activitystreams#subject",
44076
+ error
44077
+ });
44078
+ return null;
44079
+ }
42631
44080
  }
42632
44081
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
42633
44082
  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\".");
@@ -42747,7 +44196,16 @@ var Relationship = class Relationship extends Object$1 {
42747
44196
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
42748
44197
  const prop = this._cachedJsonLd["object"];
42749
44198
  const doc = Array.isArray(prop) ? prop[0] : prop;
42750
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#object_fromJsonLd(doc, options);
44199
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
44200
+ v = await this.#object_fromJsonLd(doc, options);
44201
+ } catch (error) {
44202
+ if (!options.suppressError) throw error;
44203
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
44204
+ property: "https://www.w3.org/ns/activitystreams#object",
44205
+ error
44206
+ });
44207
+ return null;
44208
+ }
42751
44209
  }
42752
44210
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
42753
44211
  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\".");
@@ -42788,7 +44246,17 @@ var Relationship = class Relationship extends Object$1 {
42788
44246
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
42789
44247
  const prop = this._cachedJsonLd["object"];
42790
44248
  const obj = Array.isArray(prop) ? prop[i] : prop;
42791
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#object_fromJsonLd(obj, options);
44249
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
44250
+ v = await this.#object_fromJsonLd(obj, options);
44251
+ } catch (error) {
44252
+ if (!options.suppressError) throw error;
44253
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
44254
+ property: "https://www.w3.org/ns/activitystreams#object",
44255
+ index: i,
44256
+ error
44257
+ });
44258
+ continue;
44259
+ }
42792
44260
  }
42793
44261
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
42794
44262
  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\".");
@@ -42911,7 +44379,16 @@ var Relationship = class Relationship extends Object$1 {
42911
44379
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
42912
44380
  const prop = this._cachedJsonLd["relationship"];
42913
44381
  const doc = Array.isArray(prop) ? prop[0] : prop;
42914
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#relationship_fromJsonLd(doc, options);
44382
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
44383
+ v = await this.#relationship_fromJsonLd(doc, options);
44384
+ } catch (error) {
44385
+ if (!options.suppressError) throw error;
44386
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
44387
+ property: "https://www.w3.org/ns/activitystreams#relationship",
44388
+ error
44389
+ });
44390
+ return null;
44391
+ }
42915
44392
  }
42916
44393
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
42917
44394
  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\".");
@@ -42954,7 +44431,17 @@ var Relationship = class Relationship extends Object$1 {
42954
44431
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
42955
44432
  const prop = this._cachedJsonLd["relationship"];
42956
44433
  const obj = Array.isArray(prop) ? prop[i] : prop;
42957
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#relationship_fromJsonLd(obj, options);
44434
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
44435
+ v = await this.#relationship_fromJsonLd(obj, options);
44436
+ } catch (error) {
44437
+ if (!options.suppressError) throw error;
44438
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
44439
+ property: "https://www.w3.org/ns/activitystreams#relationship",
44440
+ index: i,
44441
+ error
44442
+ });
44443
+ continue;
44444
+ }
42958
44445
  }
42959
44446
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
42960
44447
  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\".");
@@ -43813,7 +45300,16 @@ var Service = class Service extends Object$1 {
43813
45300
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
43814
45301
  const prop = this._cachedJsonLd["publicKey"];
43815
45302
  const doc = Array.isArray(prop) ? prop[0] : prop;
43816
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#publicKey_fromJsonLd(doc, options);
45303
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45304
+ v = await this.#publicKey_fromJsonLd(doc, options);
45305
+ } catch (error) {
45306
+ if (!options.suppressError) throw error;
45307
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45308
+ property: "https://w3id.org/security#publicKey",
45309
+ error
45310
+ });
45311
+ return null;
45312
+ }
43817
45313
  }
43818
45314
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
43819
45315
  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\".");
@@ -43854,7 +45350,17 @@ var Service = class Service extends Object$1 {
43854
45350
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
43855
45351
  const prop = this._cachedJsonLd["publicKey"];
43856
45352
  const obj = Array.isArray(prop) ? prop[i] : prop;
43857
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#publicKey_fromJsonLd(obj, options);
45353
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
45354
+ v = await this.#publicKey_fromJsonLd(obj, options);
45355
+ } catch (error) {
45356
+ if (!options.suppressError) throw error;
45357
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
45358
+ property: "https://w3id.org/security#publicKey",
45359
+ index: i,
45360
+ error
45361
+ });
45362
+ continue;
45363
+ }
43858
45364
  }
43859
45365
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
43860
45366
  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\".");
@@ -43978,7 +45484,16 @@ var Service = class Service extends Object$1 {
43978
45484
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
43979
45485
  const prop = this._cachedJsonLd["assertionMethod"];
43980
45486
  const doc = Array.isArray(prop) ? prop[0] : prop;
43981
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#assertionMethod_fromJsonLd(doc, options);
45487
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45488
+ v = await this.#assertionMethod_fromJsonLd(doc, options);
45489
+ } catch (error) {
45490
+ if (!options.suppressError) throw error;
45491
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45492
+ property: "https://w3id.org/security#assertionMethod",
45493
+ error
45494
+ });
45495
+ return null;
45496
+ }
43982
45497
  }
43983
45498
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
43984
45499
  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\".");
@@ -44022,7 +45537,17 @@ var Service = class Service extends Object$1 {
44022
45537
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
44023
45538
  const prop = this._cachedJsonLd["assertionMethod"];
44024
45539
  const obj = Array.isArray(prop) ? prop[i] : prop;
44025
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#assertionMethod_fromJsonLd(obj, options);
45540
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
45541
+ v = await this.#assertionMethod_fromJsonLd(obj, options);
45542
+ } catch (error) {
45543
+ if (!options.suppressError) throw error;
45544
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
45545
+ property: "https://w3id.org/security#assertionMethod",
45546
+ index: i,
45547
+ error
45548
+ });
45549
+ continue;
45550
+ }
44026
45551
  }
44027
45552
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
44028
45553
  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\".");
@@ -44177,7 +45702,16 @@ var Service = class Service extends Object$1 {
44177
45702
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
44178
45703
  const prop = this._cachedJsonLd["inbox"];
44179
45704
  const doc = Array.isArray(prop) ? prop[0] : prop;
44180
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#inbox_fromJsonLd(doc, options);
45705
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45706
+ v = await this.#inbox_fromJsonLd(doc, options);
45707
+ } catch (error) {
45708
+ if (!options.suppressError) throw error;
45709
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45710
+ property: "http://www.w3.org/ns/ldp#inbox",
45711
+ error
45712
+ });
45713
+ return null;
45714
+ }
44181
45715
  }
44182
45716
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
44183
45717
  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\".");
@@ -44316,7 +45850,16 @@ var Service = class Service extends Object$1 {
44316
45850
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
44317
45851
  const prop = this._cachedJsonLd["outbox"];
44318
45852
  const doc = Array.isArray(prop) ? prop[0] : prop;
44319
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#outbox_fromJsonLd(doc, options);
45853
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45854
+ v = await this.#outbox_fromJsonLd(doc, options);
45855
+ } catch (error) {
45856
+ if (!options.suppressError) throw error;
45857
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45858
+ property: "https://www.w3.org/ns/activitystreams#outbox",
45859
+ error
45860
+ });
45861
+ return null;
45862
+ }
44320
45863
  }
44321
45864
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
44322
45865
  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\".");
@@ -44440,7 +45983,16 @@ var Service = class Service extends Object$1 {
44440
45983
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
44441
45984
  const prop = this._cachedJsonLd["following"];
44442
45985
  const doc = Array.isArray(prop) ? prop[0] : prop;
44443
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#following_fromJsonLd(doc, options);
45986
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
45987
+ v = await this.#following_fromJsonLd(doc, options);
45988
+ } catch (error) {
45989
+ if (!options.suppressError) throw error;
45990
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
45991
+ property: "https://www.w3.org/ns/activitystreams#following",
45992
+ error
45993
+ });
45994
+ return null;
45995
+ }
44444
45996
  }
44445
45997
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
44446
45998
  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\".");
@@ -44567,7 +46119,16 @@ var Service = class Service extends Object$1 {
44567
46119
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
44568
46120
  const prop = this._cachedJsonLd["followers"];
44569
46121
  const doc = Array.isArray(prop) ? prop[0] : prop;
44570
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#followers_fromJsonLd(doc, options);
46122
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46123
+ v = await this.#followers_fromJsonLd(doc, options);
46124
+ } catch (error) {
46125
+ if (!options.suppressError) throw error;
46126
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46127
+ property: "https://www.w3.org/ns/activitystreams#followers",
46128
+ error
46129
+ });
46130
+ return null;
46131
+ }
44571
46132
  }
44572
46133
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
44573
46134
  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\".");
@@ -44692,7 +46253,16 @@ var Service = class Service extends Object$1 {
44692
46253
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
44693
46254
  const prop = this._cachedJsonLd["liked"];
44694
46255
  const doc = Array.isArray(prop) ? prop[0] : prop;
44695
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#liked_fromJsonLd(doc, options);
46256
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46257
+ v = await this.#liked_fromJsonLd(doc, options);
46258
+ } catch (error) {
46259
+ if (!options.suppressError) throw error;
46260
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46261
+ property: "https://www.w3.org/ns/activitystreams#liked",
46262
+ error
46263
+ });
46264
+ return null;
46265
+ }
44696
46266
  }
44697
46267
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
44698
46268
  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\".");
@@ -44815,7 +46385,16 @@ var Service = class Service extends Object$1 {
44815
46385
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
44816
46386
  const prop = this._cachedJsonLd["featured"];
44817
46387
  const doc = Array.isArray(prop) ? prop[0] : prop;
44818
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featured_fromJsonLd(doc, options);
46388
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46389
+ v = await this.#featured_fromJsonLd(doc, options);
46390
+ } catch (error) {
46391
+ if (!options.suppressError) throw error;
46392
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46393
+ property: "http://joinmastodon.org/ns#featured",
46394
+ error
46395
+ });
46396
+ return null;
46397
+ }
44819
46398
  }
44820
46399
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
44821
46400
  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\".");
@@ -44938,7 +46517,16 @@ var Service = class Service extends Object$1 {
44938
46517
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
44939
46518
  const prop = this._cachedJsonLd["featuredTags"];
44940
46519
  const doc = Array.isArray(prop) ? prop[0] : prop;
44941
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#featuredTags_fromJsonLd(doc, options);
46520
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46521
+ v = await this.#featuredTags_fromJsonLd(doc, options);
46522
+ } catch (error) {
46523
+ if (!options.suppressError) throw error;
46524
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46525
+ property: "http://joinmastodon.org/ns#featuredTags",
46526
+ error
46527
+ });
46528
+ return null;
46529
+ }
44942
46530
  }
44943
46531
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
44944
46532
  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\".");
@@ -45057,7 +46645,17 @@ var Service = class Service extends Object$1 {
45057
46645
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
45058
46646
  const prop = this._cachedJsonLd["streams"];
45059
46647
  const obj = Array.isArray(prop) ? prop[i] : prop;
45060
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#stream_fromJsonLd(obj, options);
46648
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
46649
+ v = await this.#stream_fromJsonLd(obj, options);
46650
+ } catch (error) {
46651
+ if (!options.suppressError) throw error;
46652
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
46653
+ property: "https://www.w3.org/ns/activitystreams#streams",
46654
+ index: i,
46655
+ error
46656
+ });
46657
+ continue;
46658
+ }
45061
46659
  }
45062
46660
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
45063
46661
  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\".");
@@ -45266,7 +46864,16 @@ var Service = class Service extends Object$1 {
45266
46864
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
45267
46865
  const prop = this._cachedJsonLd["movedTo"];
45268
46866
  const doc = Array.isArray(prop) ? prop[0] : prop;
45269
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#successor_fromJsonLd(doc, options);
46867
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
46868
+ v = await this.#successor_fromJsonLd(doc, options);
46869
+ } catch (error) {
46870
+ if (!options.suppressError) throw error;
46871
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
46872
+ property: "https://www.w3.org/ns/activitystreams#movedTo",
46873
+ error
46874
+ });
46875
+ return null;
46876
+ }
45270
46877
  }
45271
46878
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
45272
46879
  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\".");
@@ -45435,7 +47042,16 @@ var Service = class Service extends Object$1 {
45435
47042
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
45436
47043
  const prop = this._cachedJsonLd["alsoKnownAs"];
45437
47044
  const doc = Array.isArray(prop) ? prop[0] : prop;
45438
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#alias_fromJsonLd(doc, options);
47045
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
47046
+ v = await this.#alias_fromJsonLd(doc, options);
47047
+ } catch (error) {
47048
+ if (!options.suppressError) throw error;
47049
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
47050
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
47051
+ error
47052
+ });
47053
+ return null;
47054
+ }
45439
47055
  }
45440
47056
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
45441
47057
  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\".");
@@ -45479,7 +47095,17 @@ var Service = class Service extends Object$1 {
45479
47095
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
45480
47096
  const prop = this._cachedJsonLd["alsoKnownAs"];
45481
47097
  const obj = Array.isArray(prop) ? prop[i] : prop;
45482
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#alias_fromJsonLd(obj, options);
47098
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
47099
+ v = await this.#alias_fromJsonLd(obj, options);
47100
+ } catch (error) {
47101
+ if (!options.suppressError) throw error;
47102
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
47103
+ property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
47104
+ index: i,
47105
+ error
47106
+ });
47107
+ continue;
47108
+ }
45483
47109
  }
45484
47110
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
45485
47111
  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\".");
@@ -45603,7 +47229,16 @@ var Service = class Service extends Object$1 {
45603
47229
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
45604
47230
  const prop = this._cachedJsonLd["service"];
45605
47231
  const doc = Array.isArray(prop) ? prop[0] : prop;
45606
- if (doc != null && typeof doc === "object" && "@context" in doc) v = await this.#service_fromJsonLd(doc, options);
47232
+ if (doc != null && typeof doc === "object" && "@context" in doc) try {
47233
+ v = await this.#service_fromJsonLd(doc, options);
47234
+ } catch (error) {
47235
+ if (!options.suppressError) throw error;
47236
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
47237
+ property: "https://www.w3.org/ns/did#service",
47238
+ error
47239
+ });
47240
+ return null;
47241
+ }
45607
47242
  }
45608
47243
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
45609
47244
  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\".");
@@ -45647,7 +47282,17 @@ var Service = class Service extends Object$1 {
45647
47282
  if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
45648
47283
  const prop = this._cachedJsonLd["service"];
45649
47284
  const obj = Array.isArray(prop) ? prop[i] : prop;
45650
- if (obj != null && typeof obj === "object" && "@context" in obj) v = await this.#service_fromJsonLd(obj, options);
47285
+ if (obj != null && typeof obj === "object" && "@context" in obj) try {
47286
+ v = await this.#service_fromJsonLd(obj, options);
47287
+ } catch (error) {
47288
+ if (!options.suppressError) throw error;
47289
+ getLogger(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
47290
+ property: "https://www.w3.org/ns/did#service",
47291
+ index: i,
47292
+ error
47293
+ });
47294
+ continue;
47295
+ }
45651
47296
  }
45652
47297
  if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
45653
47298
  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\".");