@fedify/vocab 2.3.9-dev.2048 → 2.3.9
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/deno.json +1 -1
- package/dist/mod.cjs +2354 -709
- package/dist/mod.js +2354 -709
- package/dist-tests/{actor-CGTlJCWj.mjs → actor-BISbIeXH.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/lookup.test.mjs +7 -7
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BhXsxjRa.mjs → vocab-BeDwBlW3.mjs} +2353 -708
- package/dist-tests/vocab.test.mjs +144 -1
- package/package.json +4 -4
- package/src/lookup.test.ts +6 -5
- package/src/vocab.test.ts +197 -0
package/dist/mod.cjs
CHANGED
|
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
33
33
|
let es_toolkit = require("es-toolkit");
|
|
34
34
|
//#region deno.json
|
|
35
35
|
var name = "@fedify/vocab";
|
|
36
|
-
var version = "2.3.9
|
|
36
|
+
var version = "2.3.9";
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/type.ts
|
|
39
39
|
function getTypeId(object) {
|
|
@@ -74,6 +74,12 @@ const normalizeLinkToImage = async (value, context) => {
|
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/vocab.ts
|
|
77
|
+
function canDecodeIri(iri) {
|
|
78
|
+
return URL.canParse(iri) || iri.startsWith("at://");
|
|
79
|
+
}
|
|
80
|
+
function decodeIri(iri) {
|
|
81
|
+
return !URL.canParse(iri) && iri.startsWith("at://") ? new URL("at://" + encodeURIComponent(iri.substring(5))) : new URL(iri);
|
|
82
|
+
}
|
|
77
83
|
function isValidLanguageTag(language) {
|
|
78
84
|
try {
|
|
79
85
|
new Intl.Locale(language);
|
|
@@ -885,10 +891,20 @@ var Object$1 = class Object$1 {
|
|
|
885
891
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
|
|
886
892
|
const prop = this._cachedJsonLd["attachment"];
|
|
887
893
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
888
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
894
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
895
|
+
v = await this.#attachment_fromJsonLd(obj, {
|
|
896
|
+
...options,
|
|
897
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
898
|
+
});
|
|
899
|
+
} catch (error) {
|
|
900
|
+
if (!options.suppressError) throw error;
|
|
901
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
902
|
+
property: "https://www.w3.org/ns/activitystreams#attachment",
|
|
903
|
+
index: i,
|
|
904
|
+
error
|
|
905
|
+
});
|
|
906
|
+
continue;
|
|
907
|
+
}
|
|
892
908
|
}
|
|
893
909
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
|
|
894
910
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1057,10 +1073,19 @@ var Object$1 = class Object$1 {
|
|
|
1057
1073
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
1058
1074
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
1059
1075
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1060
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1076
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1077
|
+
v = await this.#attribution_fromJsonLd(doc, {
|
|
1078
|
+
...options,
|
|
1079
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1080
|
+
});
|
|
1081
|
+
} catch (error) {
|
|
1082
|
+
if (!options.suppressError) throw error;
|
|
1083
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1084
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
1085
|
+
error
|
|
1086
|
+
});
|
|
1087
|
+
return null;
|
|
1088
|
+
}
|
|
1064
1089
|
}
|
|
1065
1090
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
1066
1091
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1103,10 +1128,20 @@ var Object$1 = class Object$1 {
|
|
|
1103
1128
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
1104
1129
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
1105
1130
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1106
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1131
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1132
|
+
v = await this.#attribution_fromJsonLd(obj, {
|
|
1133
|
+
...options,
|
|
1134
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1135
|
+
});
|
|
1136
|
+
} catch (error) {
|
|
1137
|
+
if (!options.suppressError) throw error;
|
|
1138
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1139
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
1140
|
+
index: i,
|
|
1141
|
+
error
|
|
1142
|
+
});
|
|
1143
|
+
continue;
|
|
1144
|
+
}
|
|
1110
1145
|
}
|
|
1111
1146
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
1112
1147
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1228,10 +1263,19 @@ var Object$1 = class Object$1 {
|
|
|
1228
1263
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1229
1264
|
const prop = this._cachedJsonLd["audience"];
|
|
1230
1265
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1231
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1266
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1267
|
+
v = await this.#audience_fromJsonLd(doc, {
|
|
1268
|
+
...options,
|
|
1269
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1270
|
+
});
|
|
1271
|
+
} catch (error) {
|
|
1272
|
+
if (!options.suppressError) throw error;
|
|
1273
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1274
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1275
|
+
error
|
|
1276
|
+
});
|
|
1277
|
+
return null;
|
|
1278
|
+
}
|
|
1235
1279
|
}
|
|
1236
1280
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1237
1281
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1273,10 +1317,20 @@ var Object$1 = class Object$1 {
|
|
|
1273
1317
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1274
1318
|
const prop = this._cachedJsonLd["audience"];
|
|
1275
1319
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1276
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1320
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1321
|
+
v = await this.#audience_fromJsonLd(obj, {
|
|
1322
|
+
...options,
|
|
1323
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1324
|
+
});
|
|
1325
|
+
} catch (error) {
|
|
1326
|
+
if (!options.suppressError) throw error;
|
|
1327
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1328
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1329
|
+
index: i,
|
|
1330
|
+
error
|
|
1331
|
+
});
|
|
1332
|
+
continue;
|
|
1333
|
+
}
|
|
1280
1334
|
}
|
|
1281
1335
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1282
1336
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1432,10 +1486,20 @@ var Object$1 = class Object$1 {
|
|
|
1432
1486
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
|
|
1433
1487
|
const prop = this._cachedJsonLd["context"];
|
|
1434
1488
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1435
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1489
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1490
|
+
v = await this.#context_fromJsonLd(obj, {
|
|
1491
|
+
...options,
|
|
1492
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1493
|
+
});
|
|
1494
|
+
} catch (error) {
|
|
1495
|
+
if (!options.suppressError) throw error;
|
|
1496
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1497
|
+
property: "https://www.w3.org/ns/activitystreams#context",
|
|
1498
|
+
index: i,
|
|
1499
|
+
error
|
|
1500
|
+
});
|
|
1501
|
+
continue;
|
|
1502
|
+
}
|
|
1439
1503
|
}
|
|
1440
1504
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
|
|
1441
1505
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1591,10 +1655,20 @@ var Object$1 = class Object$1 {
|
|
|
1591
1655
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
|
|
1592
1656
|
const prop = this._cachedJsonLd["generator"];
|
|
1593
1657
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1594
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1658
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1659
|
+
v = await this.#generator_fromJsonLd(obj, {
|
|
1660
|
+
...options,
|
|
1661
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1662
|
+
});
|
|
1663
|
+
} catch (error) {
|
|
1664
|
+
if (!options.suppressError) throw error;
|
|
1665
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1666
|
+
property: "https://www.w3.org/ns/activitystreams#generator",
|
|
1667
|
+
index: i,
|
|
1668
|
+
error
|
|
1669
|
+
});
|
|
1670
|
+
continue;
|
|
1671
|
+
}
|
|
1598
1672
|
}
|
|
1599
1673
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
|
|
1600
1674
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1733,10 +1807,19 @@ var Object$1 = class Object$1 {
|
|
|
1733
1807
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1734
1808
|
const prop = this._cachedJsonLd["icon"];
|
|
1735
1809
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1736
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1810
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1811
|
+
v = await this.#icon_fromJsonLd(doc, {
|
|
1812
|
+
...options,
|
|
1813
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1814
|
+
});
|
|
1815
|
+
} catch (error) {
|
|
1816
|
+
if (!options.suppressError) throw error;
|
|
1817
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1818
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1819
|
+
error
|
|
1820
|
+
});
|
|
1821
|
+
return null;
|
|
1822
|
+
}
|
|
1740
1823
|
}
|
|
1741
1824
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1742
1825
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1779,10 +1862,20 @@ var Object$1 = class Object$1 {
|
|
|
1779
1862
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1780
1863
|
const prop = this._cachedJsonLd["icon"];
|
|
1781
1864
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1782
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1865
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1866
|
+
v = await this.#icon_fromJsonLd(obj, {
|
|
1867
|
+
...options,
|
|
1868
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
1869
|
+
});
|
|
1870
|
+
} catch (error) {
|
|
1871
|
+
if (!options.suppressError) throw error;
|
|
1872
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1873
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1874
|
+
index: i,
|
|
1875
|
+
error
|
|
1876
|
+
});
|
|
1877
|
+
continue;
|
|
1878
|
+
}
|
|
1786
1879
|
}
|
|
1787
1880
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1788
1881
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1921,10 +2014,19 @@ var Object$1 = class Object$1 {
|
|
|
1921
2014
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
1922
2015
|
const prop = this._cachedJsonLd["image"];
|
|
1923
2016
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1924
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
2017
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2018
|
+
v = await this.#image_fromJsonLd(doc, {
|
|
2019
|
+
...options,
|
|
2020
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2021
|
+
});
|
|
2022
|
+
} catch (error) {
|
|
2023
|
+
if (!options.suppressError) throw error;
|
|
2024
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2025
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
2026
|
+
error
|
|
2027
|
+
});
|
|
2028
|
+
return null;
|
|
2029
|
+
}
|
|
1928
2030
|
}
|
|
1929
2031
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
1930
2032
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1967,10 +2069,20 @@ var Object$1 = class Object$1 {
|
|
|
1967
2069
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
1968
2070
|
const prop = this._cachedJsonLd["image"];
|
|
1969
2071
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1970
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
2072
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2073
|
+
v = await this.#image_fromJsonLd(obj, {
|
|
2074
|
+
...options,
|
|
2075
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2076
|
+
});
|
|
2077
|
+
} catch (error) {
|
|
2078
|
+
if (!options.suppressError) throw error;
|
|
2079
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2080
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
2081
|
+
index: i,
|
|
2082
|
+
error
|
|
2083
|
+
});
|
|
2084
|
+
continue;
|
|
2085
|
+
}
|
|
1974
2086
|
}
|
|
1975
2087
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
1976
2088
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2102,10 +2214,19 @@ var Object$1 = class Object$1 {
|
|
|
2102
2214
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
2103
2215
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
2104
2216
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2105
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2217
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2218
|
+
v = await this.#replyTarget_fromJsonLd(doc, {
|
|
2219
|
+
...options,
|
|
2220
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2221
|
+
});
|
|
2222
|
+
} catch (error) {
|
|
2223
|
+
if (!options.suppressError) throw error;
|
|
2224
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2225
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2226
|
+
error
|
|
2227
|
+
});
|
|
2228
|
+
return null;
|
|
2229
|
+
}
|
|
2109
2230
|
}
|
|
2110
2231
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
2111
2232
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2147,10 +2268,20 @@ var Object$1 = class Object$1 {
|
|
|
2147
2268
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
2148
2269
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
2149
2270
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2150
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2271
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2272
|
+
v = await this.#replyTarget_fromJsonLd(obj, {
|
|
2273
|
+
...options,
|
|
2274
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2275
|
+
});
|
|
2276
|
+
} catch (error) {
|
|
2277
|
+
if (!options.suppressError) throw error;
|
|
2278
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2279
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2280
|
+
index: i,
|
|
2281
|
+
error
|
|
2282
|
+
});
|
|
2283
|
+
continue;
|
|
2284
|
+
}
|
|
2154
2285
|
}
|
|
2155
2286
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
2156
2287
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2282,10 +2413,19 @@ var Object$1 = class Object$1 {
|
|
|
2282
2413
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2283
2414
|
const prop = this._cachedJsonLd["location"];
|
|
2284
2415
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2285
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2416
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2417
|
+
v = await this.#location_fromJsonLd(doc, {
|
|
2418
|
+
...options,
|
|
2419
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2420
|
+
});
|
|
2421
|
+
} catch (error) {
|
|
2422
|
+
if (!options.suppressError) throw error;
|
|
2423
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2424
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2425
|
+
error
|
|
2426
|
+
});
|
|
2427
|
+
return null;
|
|
2428
|
+
}
|
|
2289
2429
|
}
|
|
2290
2430
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2291
2431
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2327,10 +2467,20 @@ var Object$1 = class Object$1 {
|
|
|
2327
2467
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2328
2468
|
const prop = this._cachedJsonLd["location"];
|
|
2329
2469
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2330
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2470
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2471
|
+
v = await this.#location_fromJsonLd(obj, {
|
|
2472
|
+
...options,
|
|
2473
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2474
|
+
});
|
|
2475
|
+
} catch (error) {
|
|
2476
|
+
if (!options.suppressError) throw error;
|
|
2477
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2478
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2479
|
+
index: i,
|
|
2480
|
+
error
|
|
2481
|
+
});
|
|
2482
|
+
continue;
|
|
2483
|
+
}
|
|
2334
2484
|
}
|
|
2335
2485
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2336
2486
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2461,10 +2611,19 @@ var Object$1 = class Object$1 {
|
|
|
2461
2611
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2462
2612
|
const prop = this._cachedJsonLd["preview"];
|
|
2463
2613
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2464
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2614
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2615
|
+
v = await this.#preview_fromJsonLd(doc, {
|
|
2616
|
+
...options,
|
|
2617
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2618
|
+
});
|
|
2619
|
+
} catch (error) {
|
|
2620
|
+
if (!options.suppressError) throw error;
|
|
2621
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2622
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2623
|
+
error
|
|
2624
|
+
});
|
|
2625
|
+
return null;
|
|
2626
|
+
}
|
|
2468
2627
|
}
|
|
2469
2628
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2470
2629
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2505,10 +2664,20 @@ var Object$1 = class Object$1 {
|
|
|
2505
2664
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2506
2665
|
const prop = this._cachedJsonLd["preview"];
|
|
2507
2666
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2508
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2667
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2668
|
+
v = await this.#preview_fromJsonLd(obj, {
|
|
2669
|
+
...options,
|
|
2670
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2671
|
+
});
|
|
2672
|
+
} catch (error) {
|
|
2673
|
+
if (!options.suppressError) throw error;
|
|
2674
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2675
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2676
|
+
index: i,
|
|
2677
|
+
error
|
|
2678
|
+
});
|
|
2679
|
+
continue;
|
|
2680
|
+
}
|
|
2512
2681
|
}
|
|
2513
2682
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2514
2683
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2637,10 +2806,19 @@ var Object$1 = class Object$1 {
|
|
|
2637
2806
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
|
|
2638
2807
|
const prop = this._cachedJsonLd["replies"];
|
|
2639
2808
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2640
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2809
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2810
|
+
v = await this.#replies_fromJsonLd(doc, {
|
|
2811
|
+
...options,
|
|
2812
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2813
|
+
});
|
|
2814
|
+
} catch (error) {
|
|
2815
|
+
if (!options.suppressError) throw error;
|
|
2816
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2817
|
+
property: "https://www.w3.org/ns/activitystreams#replies",
|
|
2818
|
+
error
|
|
2819
|
+
});
|
|
2820
|
+
return null;
|
|
2821
|
+
}
|
|
2644
2822
|
}
|
|
2645
2823
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
|
|
2646
2824
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2767,10 +2945,19 @@ var Object$1 = class Object$1 {
|
|
|
2767
2945
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
|
|
2768
2946
|
const prop = this._cachedJsonLd["shares"];
|
|
2769
2947
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2770
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2948
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2949
|
+
v = await this.#shares_fromJsonLd(doc, {
|
|
2950
|
+
...options,
|
|
2951
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
2952
|
+
});
|
|
2953
|
+
} catch (error) {
|
|
2954
|
+
if (!options.suppressError) throw error;
|
|
2955
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2956
|
+
property: "https://www.w3.org/ns/activitystreams#shares",
|
|
2957
|
+
error
|
|
2958
|
+
});
|
|
2959
|
+
return null;
|
|
2960
|
+
}
|
|
2774
2961
|
}
|
|
2775
2962
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
|
|
2776
2963
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2897,10 +3084,19 @@ var Object$1 = class Object$1 {
|
|
|
2897
3084
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
|
|
2898
3085
|
const prop = this._cachedJsonLd["likes"];
|
|
2899
3086
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2900
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
3087
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3088
|
+
v = await this.#likes_fromJsonLd(doc, {
|
|
3089
|
+
...options,
|
|
3090
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3091
|
+
});
|
|
3092
|
+
} catch (error) {
|
|
3093
|
+
if (!options.suppressError) throw error;
|
|
3094
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3095
|
+
property: "https://www.w3.org/ns/activitystreams#likes",
|
|
3096
|
+
error
|
|
3097
|
+
});
|
|
3098
|
+
return null;
|
|
3099
|
+
}
|
|
2904
3100
|
}
|
|
2905
3101
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
|
|
2906
3102
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3021,10 +3217,19 @@ var Object$1 = class Object$1 {
|
|
|
3021
3217
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
|
|
3022
3218
|
const prop = this._cachedJsonLd["emojiReactions"];
|
|
3023
3219
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3024
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3220
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3221
|
+
v = await this.#emojiReactions_fromJsonLd(doc, {
|
|
3222
|
+
...options,
|
|
3223
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3224
|
+
});
|
|
3225
|
+
} catch (error) {
|
|
3226
|
+
if (!options.suppressError) throw error;
|
|
3227
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3228
|
+
property: "http://fedibird.com/ns#emojiReactions",
|
|
3229
|
+
error
|
|
3230
|
+
});
|
|
3231
|
+
return null;
|
|
3232
|
+
}
|
|
3028
3233
|
}
|
|
3029
3234
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
|
|
3030
3235
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3180,10 +3385,20 @@ var Object$1 = class Object$1 {
|
|
|
3180
3385
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
|
|
3181
3386
|
const prop = this._cachedJsonLd["tag"];
|
|
3182
3387
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3183
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3388
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3389
|
+
v = await this.#tag_fromJsonLd(obj, {
|
|
3390
|
+
...options,
|
|
3391
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3392
|
+
});
|
|
3393
|
+
} catch (error) {
|
|
3394
|
+
if (!options.suppressError) throw error;
|
|
3395
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3396
|
+
property: "https://www.w3.org/ns/activitystreams#tag",
|
|
3397
|
+
index: i,
|
|
3398
|
+
error
|
|
3399
|
+
});
|
|
3400
|
+
continue;
|
|
3401
|
+
}
|
|
3187
3402
|
}
|
|
3188
3403
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
|
|
3189
3404
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3324,10 +3539,19 @@ var Object$1 = class Object$1 {
|
|
|
3324
3539
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3325
3540
|
const prop = this._cachedJsonLd["to"];
|
|
3326
3541
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3327
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3542
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3543
|
+
v = await this.#to_fromJsonLd(doc, {
|
|
3544
|
+
...options,
|
|
3545
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3546
|
+
});
|
|
3547
|
+
} catch (error) {
|
|
3548
|
+
if (!options.suppressError) throw error;
|
|
3549
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3550
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3551
|
+
error
|
|
3552
|
+
});
|
|
3553
|
+
return null;
|
|
3554
|
+
}
|
|
3331
3555
|
}
|
|
3332
3556
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3333
3557
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3369,10 +3593,20 @@ var Object$1 = class Object$1 {
|
|
|
3369
3593
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3370
3594
|
const prop = this._cachedJsonLd["to"];
|
|
3371
3595
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3372
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3596
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3597
|
+
v = await this.#to_fromJsonLd(obj, {
|
|
3598
|
+
...options,
|
|
3599
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3600
|
+
});
|
|
3601
|
+
} catch (error) {
|
|
3602
|
+
if (!options.suppressError) throw error;
|
|
3603
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3604
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3605
|
+
index: i,
|
|
3606
|
+
error
|
|
3607
|
+
});
|
|
3608
|
+
continue;
|
|
3609
|
+
}
|
|
3376
3610
|
}
|
|
3377
3611
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3378
3612
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3494,10 +3728,19 @@ var Object$1 = class Object$1 {
|
|
|
3494
3728
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3495
3729
|
const prop = this._cachedJsonLd["bto"];
|
|
3496
3730
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3497
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3731
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3732
|
+
v = await this.#bto_fromJsonLd(doc, {
|
|
3733
|
+
...options,
|
|
3734
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3735
|
+
});
|
|
3736
|
+
} catch (error) {
|
|
3737
|
+
if (!options.suppressError) throw error;
|
|
3738
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3739
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3740
|
+
error
|
|
3741
|
+
});
|
|
3742
|
+
return null;
|
|
3743
|
+
}
|
|
3501
3744
|
}
|
|
3502
3745
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3503
3746
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3539,10 +3782,20 @@ var Object$1 = class Object$1 {
|
|
|
3539
3782
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3540
3783
|
const prop = this._cachedJsonLd["bto"];
|
|
3541
3784
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3542
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3785
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3786
|
+
v = await this.#bto_fromJsonLd(obj, {
|
|
3787
|
+
...options,
|
|
3788
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3789
|
+
});
|
|
3790
|
+
} catch (error) {
|
|
3791
|
+
if (!options.suppressError) throw error;
|
|
3792
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3793
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3794
|
+
index: i,
|
|
3795
|
+
error
|
|
3796
|
+
});
|
|
3797
|
+
continue;
|
|
3798
|
+
}
|
|
3546
3799
|
}
|
|
3547
3800
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3548
3801
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3664,10 +3917,19 @@ var Object$1 = class Object$1 {
|
|
|
3664
3917
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3665
3918
|
const prop = this._cachedJsonLd["cc"];
|
|
3666
3919
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3667
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3920
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3921
|
+
v = await this.#cc_fromJsonLd(doc, {
|
|
3922
|
+
...options,
|
|
3923
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3924
|
+
});
|
|
3925
|
+
} catch (error) {
|
|
3926
|
+
if (!options.suppressError) throw error;
|
|
3927
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3928
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
3929
|
+
error
|
|
3930
|
+
});
|
|
3931
|
+
return null;
|
|
3932
|
+
}
|
|
3671
3933
|
}
|
|
3672
3934
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3673
3935
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3709,10 +3971,20 @@ var Object$1 = class Object$1 {
|
|
|
3709
3971
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3710
3972
|
const prop = this._cachedJsonLd["cc"];
|
|
3711
3973
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3712
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3974
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3975
|
+
v = await this.#cc_fromJsonLd(obj, {
|
|
3976
|
+
...options,
|
|
3977
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
3978
|
+
});
|
|
3979
|
+
} catch (error) {
|
|
3980
|
+
if (!options.suppressError) throw error;
|
|
3981
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3982
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
3983
|
+
index: i,
|
|
3984
|
+
error
|
|
3985
|
+
});
|
|
3986
|
+
continue;
|
|
3987
|
+
}
|
|
3716
3988
|
}
|
|
3717
3989
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3718
3990
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3834,10 +4106,19 @@ var Object$1 = class Object$1 {
|
|
|
3834
4106
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3835
4107
|
const prop = this._cachedJsonLd["bcc"];
|
|
3836
4108
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3837
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
4109
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4110
|
+
v = await this.#bcc_fromJsonLd(doc, {
|
|
4111
|
+
...options,
|
|
4112
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4113
|
+
});
|
|
4114
|
+
} catch (error) {
|
|
4115
|
+
if (!options.suppressError) throw error;
|
|
4116
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4117
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
4118
|
+
error
|
|
4119
|
+
});
|
|
4120
|
+
return null;
|
|
4121
|
+
}
|
|
3841
4122
|
}
|
|
3842
4123
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3843
4124
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3879,10 +4160,20 @@ var Object$1 = class Object$1 {
|
|
|
3879
4160
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3880
4161
|
const prop = this._cachedJsonLd["bcc"];
|
|
3881
4162
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3882
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
4163
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4164
|
+
v = await this.#bcc_fromJsonLd(obj, {
|
|
4165
|
+
...options,
|
|
4166
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4167
|
+
});
|
|
4168
|
+
} catch (error) {
|
|
4169
|
+
if (!options.suppressError) throw error;
|
|
4170
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4171
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
4172
|
+
index: i,
|
|
4173
|
+
error
|
|
4174
|
+
});
|
|
4175
|
+
continue;
|
|
4176
|
+
}
|
|
3886
4177
|
}
|
|
3887
4178
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3888
4179
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4040,10 +4331,19 @@ var Object$1 = class Object$1 {
|
|
|
4040
4331
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
4041
4332
|
const prop = this._cachedJsonLd["proof"];
|
|
4042
4333
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4043
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4334
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4335
|
+
v = await this.#proof_fromJsonLd(doc, {
|
|
4336
|
+
...options,
|
|
4337
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4338
|
+
});
|
|
4339
|
+
} catch (error) {
|
|
4340
|
+
if (!options.suppressError) throw error;
|
|
4341
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4342
|
+
property: "https://w3id.org/security#proof",
|
|
4343
|
+
error
|
|
4344
|
+
});
|
|
4345
|
+
return null;
|
|
4346
|
+
}
|
|
4047
4347
|
}
|
|
4048
4348
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
4049
4349
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4084,10 +4384,20 @@ var Object$1 = class Object$1 {
|
|
|
4084
4384
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
4085
4385
|
const prop = this._cachedJsonLd["proof"];
|
|
4086
4386
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
4087
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4387
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4388
|
+
v = await this.#proof_fromJsonLd(obj, {
|
|
4389
|
+
...options,
|
|
4390
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4391
|
+
});
|
|
4392
|
+
} catch (error) {
|
|
4393
|
+
if (!options.suppressError) throw error;
|
|
4394
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4395
|
+
property: "https://w3id.org/security#proof",
|
|
4396
|
+
index: i,
|
|
4397
|
+
error
|
|
4398
|
+
});
|
|
4399
|
+
continue;
|
|
4400
|
+
}
|
|
4091
4401
|
}
|
|
4092
4402
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
4093
4403
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4234,10 +4544,19 @@ var Object$1 = class Object$1 {
|
|
|
4234
4544
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likeAuthorization" in this._cachedJsonLd) {
|
|
4235
4545
|
const prop = this._cachedJsonLd["likeAuthorization"];
|
|
4236
4546
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4237
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4547
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4548
|
+
v = await this.#likeAuthorization_fromJsonLd(doc, {
|
|
4549
|
+
...options,
|
|
4550
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4551
|
+
});
|
|
4552
|
+
} catch (error) {
|
|
4553
|
+
if (!options.suppressError) throw error;
|
|
4554
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4555
|
+
property: "https://gotosocial.org/ns#likeAuthorization",
|
|
4556
|
+
error
|
|
4557
|
+
});
|
|
4558
|
+
return null;
|
|
4559
|
+
}
|
|
4241
4560
|
}
|
|
4242
4561
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.has(0)) {
|
|
4243
4562
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4358,10 +4677,19 @@ var Object$1 = class Object$1 {
|
|
|
4358
4677
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replyAuthorization" in this._cachedJsonLd) {
|
|
4359
4678
|
const prop = this._cachedJsonLd["replyAuthorization"];
|
|
4360
4679
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4361
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4680
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4681
|
+
v = await this.#replyAuthorization_fromJsonLd(doc, {
|
|
4682
|
+
...options,
|
|
4683
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4684
|
+
});
|
|
4685
|
+
} catch (error) {
|
|
4686
|
+
if (!options.suppressError) throw error;
|
|
4687
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4688
|
+
property: "https://gotosocial.org/ns#replyAuthorization",
|
|
4689
|
+
error
|
|
4690
|
+
});
|
|
4691
|
+
return null;
|
|
4692
|
+
}
|
|
4365
4693
|
}
|
|
4366
4694
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.has(0)) {
|
|
4367
4695
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4482,10 +4810,19 @@ var Object$1 = class Object$1 {
|
|
|
4482
4810
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "announceAuthorization" in this._cachedJsonLd) {
|
|
4483
4811
|
const prop = this._cachedJsonLd["announceAuthorization"];
|
|
4484
4812
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4485
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4813
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4814
|
+
v = await this.#announceAuthorization_fromJsonLd(doc, {
|
|
4815
|
+
...options,
|
|
4816
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
4817
|
+
});
|
|
4818
|
+
} catch (error) {
|
|
4819
|
+
if (!options.suppressError) throw error;
|
|
4820
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4821
|
+
property: "https://gotosocial.org/ns#announceAuthorization",
|
|
4822
|
+
error
|
|
4823
|
+
});
|
|
4824
|
+
return null;
|
|
4825
|
+
}
|
|
4489
4826
|
}
|
|
4490
4827
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.has(0)) {
|
|
4491
4828
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7116,10 +7453,19 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7116
7453
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
7117
7454
|
const prop = this._cachedJsonLd["quote"];
|
|
7118
7455
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7119
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7456
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7457
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
7458
|
+
...options,
|
|
7459
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
7460
|
+
});
|
|
7461
|
+
} catch (error) {
|
|
7462
|
+
if (!options.suppressError) throw error;
|
|
7463
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7464
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
7465
|
+
error
|
|
7466
|
+
});
|
|
7467
|
+
return null;
|
|
7468
|
+
}
|
|
7123
7469
|
}
|
|
7124
7470
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
7125
7471
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7256,10 +7602,19 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7256
7602
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
7257
7603
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
7258
7604
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7259
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7605
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7606
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
7607
|
+
...options,
|
|
7608
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
7609
|
+
});
|
|
7610
|
+
} catch (error) {
|
|
7611
|
+
if (!options.suppressError) throw error;
|
|
7612
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7613
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
7614
|
+
error
|
|
7615
|
+
});
|
|
7616
|
+
return null;
|
|
7617
|
+
}
|
|
7263
7618
|
}
|
|
7264
7619
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
7265
7620
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7512,7 +7867,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7512
7867
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
7513
7868
|
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) {
|
|
7514
7869
|
if (v == null) continue;
|
|
7515
|
-
const decoded =
|
|
7870
|
+
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;
|
|
7516
7871
|
if (typeof decoded === "undefined") {
|
|
7517
7872
|
shouldCacheJsonLd = false;
|
|
7518
7873
|
continue;
|
|
@@ -7932,10 +8287,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
7932
8287
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
7933
8288
|
const prop = this._cachedJsonLd["actor"];
|
|
7934
8289
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7935
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
8290
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8291
|
+
v = await this.#actor_fromJsonLd(doc, {
|
|
8292
|
+
...options,
|
|
8293
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8294
|
+
});
|
|
8295
|
+
} catch (error) {
|
|
8296
|
+
if (!options.suppressError) throw error;
|
|
8297
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8298
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
8299
|
+
error
|
|
8300
|
+
});
|
|
8301
|
+
return null;
|
|
8302
|
+
}
|
|
7939
8303
|
}
|
|
7940
8304
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
7941
8305
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7978,10 +8342,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
7978
8342
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
7979
8343
|
const prop = this._cachedJsonLd["actor"];
|
|
7980
8344
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7981
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
8345
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8346
|
+
v = await this.#actor_fromJsonLd(obj, {
|
|
8347
|
+
...options,
|
|
8348
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8349
|
+
});
|
|
8350
|
+
} catch (error) {
|
|
8351
|
+
if (!options.suppressError) throw error;
|
|
8352
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8353
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
8354
|
+
index: i,
|
|
8355
|
+
error
|
|
8356
|
+
});
|
|
8357
|
+
continue;
|
|
8358
|
+
}
|
|
7985
8359
|
}
|
|
7986
8360
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
7987
8361
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8104,10 +8478,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8104
8478
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
8105
8479
|
const prop = this._cachedJsonLd["object"];
|
|
8106
8480
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8107
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8481
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8482
|
+
v = await this.#object_fromJsonLd(doc, {
|
|
8483
|
+
...options,
|
|
8484
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8485
|
+
});
|
|
8486
|
+
} catch (error) {
|
|
8487
|
+
if (!options.suppressError) throw error;
|
|
8488
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8489
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
8490
|
+
error
|
|
8491
|
+
});
|
|
8492
|
+
return null;
|
|
8493
|
+
}
|
|
8111
8494
|
}
|
|
8112
8495
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
8113
8496
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8150,10 +8533,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8150
8533
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
8151
8534
|
const prop = this._cachedJsonLd["object"];
|
|
8152
8535
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8153
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8536
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8537
|
+
v = await this.#object_fromJsonLd(obj, {
|
|
8538
|
+
...options,
|
|
8539
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8540
|
+
});
|
|
8541
|
+
} catch (error) {
|
|
8542
|
+
if (!options.suppressError) throw error;
|
|
8543
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8544
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
8545
|
+
index: i,
|
|
8546
|
+
error
|
|
8547
|
+
});
|
|
8548
|
+
continue;
|
|
8549
|
+
}
|
|
8157
8550
|
}
|
|
8158
8551
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
8159
8552
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8279,10 +8672,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8279
8672
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
8280
8673
|
const prop = this._cachedJsonLd["target"];
|
|
8281
8674
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8282
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8675
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8676
|
+
v = await this.#target_fromJsonLd(doc, {
|
|
8677
|
+
...options,
|
|
8678
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8679
|
+
});
|
|
8680
|
+
} catch (error) {
|
|
8681
|
+
if (!options.suppressError) throw error;
|
|
8682
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8683
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
8684
|
+
error
|
|
8685
|
+
});
|
|
8686
|
+
return null;
|
|
8687
|
+
}
|
|
8286
8688
|
}
|
|
8287
8689
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
8288
8690
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing 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,10 +8730,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8328
8730
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
8329
8731
|
const prop = this._cachedJsonLd["target"];
|
|
8330
8732
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8331
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8733
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8734
|
+
v = await this.#target_fromJsonLd(obj, {
|
|
8735
|
+
...options,
|
|
8736
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8737
|
+
});
|
|
8738
|
+
} catch (error) {
|
|
8739
|
+
if (!options.suppressError) throw error;
|
|
8740
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8741
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
8742
|
+
index: i,
|
|
8743
|
+
error
|
|
8744
|
+
});
|
|
8745
|
+
continue;
|
|
8746
|
+
}
|
|
8335
8747
|
}
|
|
8336
8748
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
8337
8749
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8454,10 +8866,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8454
8866
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
8455
8867
|
const prop = this._cachedJsonLd["result"];
|
|
8456
8868
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8457
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8869
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8870
|
+
v = await this.#result_fromJsonLd(doc, {
|
|
8871
|
+
...options,
|
|
8872
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8873
|
+
});
|
|
8874
|
+
} catch (error) {
|
|
8875
|
+
if (!options.suppressError) throw error;
|
|
8876
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8877
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
8878
|
+
error
|
|
8879
|
+
});
|
|
8880
|
+
return null;
|
|
8881
|
+
}
|
|
8461
8882
|
}
|
|
8462
8883
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
8463
8884
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8500,10 +8921,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8500
8921
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
8501
8922
|
const prop = this._cachedJsonLd["result"];
|
|
8502
8923
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8503
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8924
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8925
|
+
v = await this.#result_fromJsonLd(obj, {
|
|
8926
|
+
...options,
|
|
8927
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
8928
|
+
});
|
|
8929
|
+
} catch (error) {
|
|
8930
|
+
if (!options.suppressError) throw error;
|
|
8931
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8932
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
8933
|
+
index: i,
|
|
8934
|
+
error
|
|
8935
|
+
});
|
|
8936
|
+
continue;
|
|
8937
|
+
}
|
|
8507
8938
|
}
|
|
8508
8939
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
8509
8940
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8627,10 +9058,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8627
9058
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
8628
9059
|
const prop = this._cachedJsonLd["origin"];
|
|
8629
9060
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8630
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
9061
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
9062
|
+
v = await this.#origin_fromJsonLd(doc, {
|
|
9063
|
+
...options,
|
|
9064
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9065
|
+
});
|
|
9066
|
+
} catch (error) {
|
|
9067
|
+
if (!options.suppressError) throw error;
|
|
9068
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
9069
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
9070
|
+
error
|
|
9071
|
+
});
|
|
9072
|
+
return null;
|
|
9073
|
+
}
|
|
8634
9074
|
}
|
|
8635
9075
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
8636
9076
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8674,10 +9114,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8674
9114
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
8675
9115
|
const prop = this._cachedJsonLd["origin"];
|
|
8676
9116
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8677
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
9117
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
9118
|
+
v = await this.#origin_fromJsonLd(obj, {
|
|
9119
|
+
...options,
|
|
9120
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9121
|
+
});
|
|
9122
|
+
} catch (error) {
|
|
9123
|
+
if (!options.suppressError) throw error;
|
|
9124
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
9125
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
9126
|
+
index: i,
|
|
9127
|
+
error
|
|
9128
|
+
});
|
|
9129
|
+
continue;
|
|
9130
|
+
}
|
|
8681
9131
|
}
|
|
8682
9132
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
8683
9133
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8799,10 +9249,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
8799
9249
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
8800
9250
|
const prop = this._cachedJsonLd["instrument"];
|
|
8801
9251
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8802
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
9252
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
9253
|
+
v = await this.#instrument_fromJsonLd(doc, {
|
|
9254
|
+
...options,
|
|
9255
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9256
|
+
});
|
|
9257
|
+
} catch (error) {
|
|
9258
|
+
if (!options.suppressError) throw error;
|
|
9259
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
9260
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
9261
|
+
error
|
|
9262
|
+
});
|
|
9263
|
+
return null;
|
|
9264
|
+
}
|
|
8806
9265
|
}
|
|
8807
9266
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
8808
9267
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8844,10 +9303,20 @@ var Activity = class Activity extends Object$1 {
|
|
|
8844
9303
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
8845
9304
|
const prop = this._cachedJsonLd["instrument"];
|
|
8846
9305
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8847
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
9306
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
9307
|
+
v = await this.#instrument_fromJsonLd(obj, {
|
|
9308
|
+
...options,
|
|
9309
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
9310
|
+
});
|
|
9311
|
+
} catch (error) {
|
|
9312
|
+
if (!options.suppressError) throw error;
|
|
9313
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
9314
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
9315
|
+
index: i,
|
|
9316
|
+
error
|
|
9317
|
+
});
|
|
9318
|
+
continue;
|
|
9319
|
+
}
|
|
8851
9320
|
}
|
|
8852
9321
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
8853
9322
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -10154,10 +10623,19 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10154
10623
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
10155
10624
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
10156
10625
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
10157
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10626
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
10627
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
10628
|
+
...options,
|
|
10629
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
10630
|
+
});
|
|
10631
|
+
} catch (error) {
|
|
10632
|
+
if (!options.suppressError) throw error;
|
|
10633
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
10634
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
10635
|
+
error
|
|
10636
|
+
});
|
|
10637
|
+
return null;
|
|
10638
|
+
}
|
|
10161
10639
|
}
|
|
10162
10640
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
10163
10641
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -10277,10 +10755,19 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
10277
10755
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
10278
10756
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
10279
10757
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
10280
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10758
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
10759
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
10760
|
+
...options,
|
|
10761
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
10762
|
+
});
|
|
10763
|
+
} catch (error) {
|
|
10764
|
+
if (!options.suppressError) throw error;
|
|
10765
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
10766
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
10767
|
+
error
|
|
10768
|
+
});
|
|
10769
|
+
return null;
|
|
10770
|
+
}
|
|
10284
10771
|
}
|
|
10285
10772
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
10286
10773
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11530,10 +12017,19 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11530
12017
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
11531
12018
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
11532
12019
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11533
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
12020
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12021
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
12022
|
+
...options,
|
|
12023
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12024
|
+
});
|
|
12025
|
+
} catch (error) {
|
|
12026
|
+
if (!options.suppressError) throw error;
|
|
12027
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12028
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
12029
|
+
error
|
|
12030
|
+
});
|
|
12031
|
+
return null;
|
|
12032
|
+
}
|
|
11537
12033
|
}
|
|
11538
12034
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
11539
12035
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11653,10 +12149,19 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11653
12149
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
11654
12150
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
11655
12151
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11656
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
12152
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12153
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
12154
|
+
...options,
|
|
12155
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12156
|
+
});
|
|
12157
|
+
} catch (error) {
|
|
12158
|
+
if (!options.suppressError) throw error;
|
|
12159
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12160
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
12161
|
+
error
|
|
12162
|
+
});
|
|
12163
|
+
return null;
|
|
12164
|
+
}
|
|
11660
12165
|
}
|
|
11661
12166
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
11662
12167
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12220,10 +12725,19 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12220
12725
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
12221
12726
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
12222
12727
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12223
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12728
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12729
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
12730
|
+
...options,
|
|
12731
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12732
|
+
});
|
|
12733
|
+
} catch (error) {
|
|
12734
|
+
if (!options.suppressError) throw error;
|
|
12735
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12736
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
12737
|
+
error
|
|
12738
|
+
});
|
|
12739
|
+
return null;
|
|
12740
|
+
}
|
|
12227
12741
|
}
|
|
12228
12742
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
12229
12743
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12343,10 +12857,19 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
12343
12857
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
12344
12858
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
12345
12859
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12346
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12860
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12861
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
12862
|
+
...options,
|
|
12863
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
12864
|
+
});
|
|
12865
|
+
} catch (error) {
|
|
12866
|
+
if (!options.suppressError) throw error;
|
|
12867
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12868
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
12869
|
+
error
|
|
12870
|
+
});
|
|
12871
|
+
return null;
|
|
12872
|
+
}
|
|
12350
12873
|
}
|
|
12351
12874
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
12352
12875
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12909,10 +13432,19 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12909
13432
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
12910
13433
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
12911
13434
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12912
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
13435
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13436
|
+
v = await this.#interactingObject_fromJsonLd(doc, {
|
|
13437
|
+
...options,
|
|
13438
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
13439
|
+
});
|
|
13440
|
+
} catch (error) {
|
|
13441
|
+
if (!options.suppressError) throw error;
|
|
13442
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13443
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
13444
|
+
error
|
|
13445
|
+
});
|
|
13446
|
+
return null;
|
|
13447
|
+
}
|
|
12916
13448
|
}
|
|
12917
13449
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
12918
13450
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -13032,10 +13564,19 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
13032
13564
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
13033
13565
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
13034
13566
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
13035
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13567
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13568
|
+
v = await this.#interactionTarget_fromJsonLd(doc, {
|
|
13569
|
+
...options,
|
|
13570
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
13571
|
+
});
|
|
13572
|
+
} catch (error) {
|
|
13573
|
+
if (!options.suppressError) throw error;
|
|
13574
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13575
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
13576
|
+
error
|
|
13577
|
+
});
|
|
13578
|
+
return null;
|
|
13579
|
+
}
|
|
13039
13580
|
}
|
|
13040
13581
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
13041
13582
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -14611,10 +15152,19 @@ var CryptographicKey = class {
|
|
|
14611
15152
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
|
|
14612
15153
|
const prop = this._cachedJsonLd["owner"];
|
|
14613
15154
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
14614
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
15155
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
15156
|
+
v = await this.#owner_fromJsonLd(doc, {
|
|
15157
|
+
...options,
|
|
15158
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
15159
|
+
});
|
|
15160
|
+
} catch (error) {
|
|
15161
|
+
if (!options.suppressError) throw error;
|
|
15162
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
15163
|
+
property: "https://w3id.org/security#owner",
|
|
15164
|
+
error
|
|
15165
|
+
});
|
|
15166
|
+
return null;
|
|
15167
|
+
}
|
|
14618
15168
|
}
|
|
14619
15169
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
|
|
14620
15170
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -15103,10 +15653,19 @@ var Multikey = class {
|
|
|
15103
15653
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
|
|
15104
15654
|
const prop = this._cachedJsonLd["controller"];
|
|
15105
15655
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
15106
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15656
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
15657
|
+
v = await this.#controller_fromJsonLd(doc, {
|
|
15658
|
+
...options,
|
|
15659
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
15660
|
+
});
|
|
15661
|
+
} catch (error) {
|
|
15662
|
+
if (!options.suppressError) throw error;
|
|
15663
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
15664
|
+
property: "https://w3id.org/security#controller",
|
|
15665
|
+
error
|
|
15666
|
+
});
|
|
15667
|
+
return null;
|
|
15668
|
+
}
|
|
15110
15669
|
}
|
|
15111
15670
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
|
|
15112
15671
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17797,10 +18356,19 @@ var Application = class Application extends Object$1 {
|
|
|
17797
18356
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
17798
18357
|
const prop = this._cachedJsonLd["publicKey"];
|
|
17799
18358
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17800
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
18359
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18360
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
18361
|
+
...options,
|
|
18362
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18363
|
+
});
|
|
18364
|
+
} catch (error) {
|
|
18365
|
+
if (!options.suppressError) throw error;
|
|
18366
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18367
|
+
property: "https://w3id.org/security#publicKey",
|
|
18368
|
+
error
|
|
18369
|
+
});
|
|
18370
|
+
return null;
|
|
18371
|
+
}
|
|
17804
18372
|
}
|
|
17805
18373
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
17806
18374
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17841,10 +18409,20 @@ var Application = class Application extends Object$1 {
|
|
|
17841
18409
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
17842
18410
|
const prop = this._cachedJsonLd["publicKey"];
|
|
17843
18411
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
17844
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
18412
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
18413
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
18414
|
+
...options,
|
|
18415
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18416
|
+
});
|
|
18417
|
+
} catch (error) {
|
|
18418
|
+
if (!options.suppressError) throw error;
|
|
18419
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
18420
|
+
property: "https://w3id.org/security#publicKey",
|
|
18421
|
+
index: i,
|
|
18422
|
+
error
|
|
18423
|
+
});
|
|
18424
|
+
continue;
|
|
18425
|
+
}
|
|
17848
18426
|
}
|
|
17849
18427
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
17850
18428
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17968,10 +18546,19 @@ var Application = class Application extends Object$1 {
|
|
|
17968
18546
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
17969
18547
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
17970
18548
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17971
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17972
|
-
|
|
17973
|
-
|
|
17974
|
-
|
|
18549
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18550
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
18551
|
+
...options,
|
|
18552
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18553
|
+
});
|
|
18554
|
+
} catch (error) {
|
|
18555
|
+
if (!options.suppressError) throw error;
|
|
18556
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18557
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
18558
|
+
error
|
|
18559
|
+
});
|
|
18560
|
+
return null;
|
|
18561
|
+
}
|
|
17975
18562
|
}
|
|
17976
18563
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
17977
18564
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18015,10 +18602,20 @@ var Application = class Application extends Object$1 {
|
|
|
18015
18602
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
18016
18603
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
18017
18604
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
18018
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18605
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
18606
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
18607
|
+
...options,
|
|
18608
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18609
|
+
});
|
|
18610
|
+
} catch (error) {
|
|
18611
|
+
if (!options.suppressError) throw error;
|
|
18612
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
18613
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
18614
|
+
index: i,
|
|
18615
|
+
error
|
|
18616
|
+
});
|
|
18617
|
+
continue;
|
|
18618
|
+
}
|
|
18022
18619
|
}
|
|
18023
18620
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
18024
18621
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18173,10 +18770,19 @@ var Application = class Application extends Object$1 {
|
|
|
18173
18770
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
18174
18771
|
const prop = this._cachedJsonLd["inbox"];
|
|
18175
18772
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18176
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
18773
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18774
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
18775
|
+
...options,
|
|
18776
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18777
|
+
});
|
|
18778
|
+
} catch (error) {
|
|
18779
|
+
if (!options.suppressError) throw error;
|
|
18780
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18781
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
18782
|
+
error
|
|
18783
|
+
});
|
|
18784
|
+
return null;
|
|
18785
|
+
}
|
|
18180
18786
|
}
|
|
18181
18787
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
18182
18788
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18315,10 +18921,19 @@ var Application = class Application extends Object$1 {
|
|
|
18315
18921
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
18316
18922
|
const prop = this._cachedJsonLd["outbox"];
|
|
18317
18923
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18318
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18319
|
-
|
|
18320
|
-
|
|
18321
|
-
|
|
18924
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18925
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
18926
|
+
...options,
|
|
18927
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
18928
|
+
});
|
|
18929
|
+
} catch (error) {
|
|
18930
|
+
if (!options.suppressError) throw error;
|
|
18931
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18932
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
18933
|
+
error
|
|
18934
|
+
});
|
|
18935
|
+
return null;
|
|
18936
|
+
}
|
|
18322
18937
|
}
|
|
18323
18938
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
18324
18939
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18442,10 +19057,19 @@ var Application = class Application extends Object$1 {
|
|
|
18442
19057
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
18443
19058
|
const prop = this._cachedJsonLd["following"];
|
|
18444
19059
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18445
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
19060
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19061
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
19062
|
+
...options,
|
|
19063
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19064
|
+
});
|
|
19065
|
+
} catch (error) {
|
|
19066
|
+
if (!options.suppressError) throw error;
|
|
19067
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19068
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
19069
|
+
error
|
|
19070
|
+
});
|
|
19071
|
+
return null;
|
|
19072
|
+
}
|
|
18449
19073
|
}
|
|
18450
19074
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
18451
19075
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18572,10 +19196,19 @@ var Application = class Application extends Object$1 {
|
|
|
18572
19196
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
18573
19197
|
const prop = this._cachedJsonLd["followers"];
|
|
18574
19198
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18575
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18576
|
-
|
|
18577
|
-
|
|
18578
|
-
|
|
19199
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19200
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
19201
|
+
...options,
|
|
19202
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19203
|
+
});
|
|
19204
|
+
} catch (error) {
|
|
19205
|
+
if (!options.suppressError) throw error;
|
|
19206
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19207
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
19208
|
+
error
|
|
19209
|
+
});
|
|
19210
|
+
return null;
|
|
19211
|
+
}
|
|
18579
19212
|
}
|
|
18580
19213
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
18581
19214
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18700,10 +19333,19 @@ var Application = class Application extends Object$1 {
|
|
|
18700
19333
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
18701
19334
|
const prop = this._cachedJsonLd["liked"];
|
|
18702
19335
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18703
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18704
|
-
|
|
18705
|
-
|
|
18706
|
-
|
|
19336
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19337
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
19338
|
+
...options,
|
|
19339
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19340
|
+
});
|
|
19341
|
+
} catch (error) {
|
|
19342
|
+
if (!options.suppressError) throw error;
|
|
19343
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19344
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
19345
|
+
error
|
|
19346
|
+
});
|
|
19347
|
+
return null;
|
|
19348
|
+
}
|
|
18707
19349
|
}
|
|
18708
19350
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
18709
19351
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18826,10 +19468,19 @@ var Application = class Application extends Object$1 {
|
|
|
18826
19468
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
18827
19469
|
const prop = this._cachedJsonLd["featured"];
|
|
18828
19470
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18829
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18830
|
-
|
|
18831
|
-
|
|
18832
|
-
|
|
19471
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19472
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
19473
|
+
...options,
|
|
19474
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19475
|
+
});
|
|
19476
|
+
} catch (error) {
|
|
19477
|
+
if (!options.suppressError) throw error;
|
|
19478
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19479
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
19480
|
+
error
|
|
19481
|
+
});
|
|
19482
|
+
return null;
|
|
19483
|
+
}
|
|
18833
19484
|
}
|
|
18834
19485
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
18835
19486
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18952,10 +19603,19 @@ var Application = class Application extends Object$1 {
|
|
|
18952
19603
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
18953
19604
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
18954
19605
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18955
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
|
|
19606
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19607
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
19608
|
+
...options,
|
|
19609
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19610
|
+
});
|
|
19611
|
+
} catch (error) {
|
|
19612
|
+
if (!options.suppressError) throw error;
|
|
19613
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19614
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
19615
|
+
error
|
|
19616
|
+
});
|
|
19617
|
+
return null;
|
|
19618
|
+
}
|
|
18959
19619
|
}
|
|
18960
19620
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
18961
19621
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -19074,10 +19734,20 @@ var Application = class Application extends Object$1 {
|
|
|
19074
19734
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
19075
19735
|
const prop = this._cachedJsonLd["streams"];
|
|
19076
19736
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
19077
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19078
|
-
|
|
19079
|
-
|
|
19080
|
-
|
|
19737
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
19738
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
19739
|
+
...options,
|
|
19740
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19741
|
+
});
|
|
19742
|
+
} catch (error) {
|
|
19743
|
+
if (!options.suppressError) throw error;
|
|
19744
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
19745
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
19746
|
+
index: i,
|
|
19747
|
+
error
|
|
19748
|
+
});
|
|
19749
|
+
continue;
|
|
19750
|
+
}
|
|
19081
19751
|
}
|
|
19082
19752
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
19083
19753
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -19286,10 +19956,19 @@ var Application = class Application extends Object$1 {
|
|
|
19286
19956
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
19287
19957
|
const prop = this._cachedJsonLd["movedTo"];
|
|
19288
19958
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
19289
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
|
|
19959
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19960
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
19961
|
+
...options,
|
|
19962
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
19963
|
+
});
|
|
19964
|
+
} catch (error) {
|
|
19965
|
+
if (!options.suppressError) throw error;
|
|
19966
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19967
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
19968
|
+
error
|
|
19969
|
+
});
|
|
19970
|
+
return null;
|
|
19971
|
+
}
|
|
19293
19972
|
}
|
|
19294
19973
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
19295
19974
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -19458,10 +20137,19 @@ var Application = class Application extends Object$1 {
|
|
|
19458
20137
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
19459
20138
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
19460
20139
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
19461
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19462
|
-
|
|
19463
|
-
|
|
19464
|
-
|
|
20140
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20141
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
20142
|
+
...options,
|
|
20143
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20144
|
+
});
|
|
20145
|
+
} catch (error) {
|
|
20146
|
+
if (!options.suppressError) throw error;
|
|
20147
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20148
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
20149
|
+
error
|
|
20150
|
+
});
|
|
20151
|
+
return null;
|
|
20152
|
+
}
|
|
19465
20153
|
}
|
|
19466
20154
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
19467
20155
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -19505,10 +20193,20 @@ var Application = class Application extends Object$1 {
|
|
|
19505
20193
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
19506
20194
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
19507
20195
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
19508
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
20196
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
20197
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
20198
|
+
...options,
|
|
20199
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20200
|
+
});
|
|
20201
|
+
} catch (error) {
|
|
20202
|
+
if (!options.suppressError) throw error;
|
|
20203
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
20204
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
20205
|
+
index: i,
|
|
20206
|
+
error
|
|
20207
|
+
});
|
|
20208
|
+
continue;
|
|
20209
|
+
}
|
|
19512
20210
|
}
|
|
19513
20211
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
19514
20212
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -19632,10 +20330,19 @@ var Application = class Application extends Object$1 {
|
|
|
19632
20330
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
19633
20331
|
const prop = this._cachedJsonLd["service"];
|
|
19634
20332
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
19635
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
|
|
20333
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20334
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
20335
|
+
...options,
|
|
20336
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20337
|
+
});
|
|
20338
|
+
} catch (error) {
|
|
20339
|
+
if (!options.suppressError) throw error;
|
|
20340
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20341
|
+
property: "https://www.w3.org/ns/did#service",
|
|
20342
|
+
error
|
|
20343
|
+
});
|
|
20344
|
+
return null;
|
|
20345
|
+
}
|
|
19639
20346
|
}
|
|
19640
20347
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
19641
20348
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -19679,10 +20386,20 @@ var Application = class Application extends Object$1 {
|
|
|
19679
20386
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
19680
20387
|
const prop = this._cachedJsonLd["service"];
|
|
19681
20388
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
19682
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
|
|
20389
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
20390
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
20391
|
+
...options,
|
|
20392
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
20393
|
+
});
|
|
20394
|
+
} catch (error) {
|
|
20395
|
+
if (!options.suppressError) throw error;
|
|
20396
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
20397
|
+
property: "https://www.w3.org/ns/did#service",
|
|
20398
|
+
index: i,
|
|
20399
|
+
error
|
|
20400
|
+
});
|
|
20401
|
+
continue;
|
|
20402
|
+
}
|
|
19686
20403
|
}
|
|
19687
20404
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
19688
20405
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21303,10 +22020,19 @@ var Article = class Article extends Object$1 {
|
|
|
21303
22020
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
21304
22021
|
const prop = this._cachedJsonLd["quote"];
|
|
21305
22022
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21306
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
22023
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22024
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
22025
|
+
...options,
|
|
22026
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
22027
|
+
});
|
|
22028
|
+
} catch (error) {
|
|
22029
|
+
if (!options.suppressError) throw error;
|
|
22030
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22031
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
22032
|
+
error
|
|
22033
|
+
});
|
|
22034
|
+
return null;
|
|
22035
|
+
}
|
|
21310
22036
|
}
|
|
21311
22037
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
21312
22038
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21443,10 +22169,19 @@ var Article = class Article extends Object$1 {
|
|
|
21443
22169
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
21444
22170
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
21445
22171
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21446
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
22172
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22173
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
22174
|
+
...options,
|
|
22175
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
22176
|
+
});
|
|
22177
|
+
} catch (error) {
|
|
22178
|
+
if (!options.suppressError) throw error;
|
|
22179
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22180
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
22181
|
+
error
|
|
22182
|
+
});
|
|
22183
|
+
return null;
|
|
22184
|
+
}
|
|
21450
22185
|
}
|
|
21451
22186
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
21452
22187
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21701,7 +22436,7 @@ var Article = class Article extends Object$1 {
|
|
|
21701
22436
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
21702
22437
|
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) {
|
|
21703
22438
|
if (v == null) continue;
|
|
21704
|
-
const decoded =
|
|
22439
|
+
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;
|
|
21705
22440
|
if (typeof decoded === "undefined") {
|
|
21706
22441
|
shouldCacheJsonLd = false;
|
|
21707
22442
|
continue;
|
|
@@ -22810,10 +23545,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
22810
23545
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
|
|
22811
23546
|
const prop = this._cachedJsonLd["current"];
|
|
22812
23547
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22813
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
23548
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23549
|
+
v = await this.#current_fromJsonLd(doc, {
|
|
23550
|
+
...options,
|
|
23551
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
23552
|
+
});
|
|
23553
|
+
} catch (error) {
|
|
23554
|
+
if (!options.suppressError) throw error;
|
|
23555
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23556
|
+
property: "https://www.w3.org/ns/activitystreams#current",
|
|
23557
|
+
error
|
|
23558
|
+
});
|
|
23559
|
+
return null;
|
|
23560
|
+
}
|
|
22817
23561
|
}
|
|
22818
23562
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
|
|
22819
23563
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22934,10 +23678,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
22934
23678
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
|
|
22935
23679
|
const prop = this._cachedJsonLd["first"];
|
|
22936
23680
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22937
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22938
|
-
|
|
22939
|
-
|
|
22940
|
-
|
|
23681
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23682
|
+
v = await this.#first_fromJsonLd(doc, {
|
|
23683
|
+
...options,
|
|
23684
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
23685
|
+
});
|
|
23686
|
+
} catch (error) {
|
|
23687
|
+
if (!options.suppressError) throw error;
|
|
23688
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23689
|
+
property: "https://www.w3.org/ns/activitystreams#first",
|
|
23690
|
+
error
|
|
23691
|
+
});
|
|
23692
|
+
return null;
|
|
23693
|
+
}
|
|
22941
23694
|
}
|
|
22942
23695
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
|
|
22943
23696
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23058,10 +23811,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23058
23811
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
|
|
23059
23812
|
const prop = this._cachedJsonLd["last"];
|
|
23060
23813
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23061
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23062
|
-
|
|
23063
|
-
|
|
23064
|
-
|
|
23814
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23815
|
+
v = await this.#last_fromJsonLd(doc, {
|
|
23816
|
+
...options,
|
|
23817
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
23818
|
+
});
|
|
23819
|
+
} catch (error) {
|
|
23820
|
+
if (!options.suppressError) throw error;
|
|
23821
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23822
|
+
property: "https://www.w3.org/ns/activitystreams#last",
|
|
23823
|
+
error
|
|
23824
|
+
});
|
|
23825
|
+
return null;
|
|
23826
|
+
}
|
|
23065
23827
|
}
|
|
23066
23828
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
|
|
23067
23829
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23191,10 +23953,20 @@ var Collection = class Collection extends Object$1 {
|
|
|
23191
23953
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
|
|
23192
23954
|
const prop = this._cachedJsonLd["items"];
|
|
23193
23955
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
23194
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
23195
|
-
|
|
23196
|
-
|
|
23197
|
-
|
|
23956
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
23957
|
+
v = await this.#item_fromJsonLd(obj, {
|
|
23958
|
+
...options,
|
|
23959
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
23960
|
+
});
|
|
23961
|
+
} catch (error) {
|
|
23962
|
+
if (!options.suppressError) throw error;
|
|
23963
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
23964
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
23965
|
+
index: i,
|
|
23966
|
+
error
|
|
23967
|
+
});
|
|
23968
|
+
continue;
|
|
23969
|
+
}
|
|
23198
23970
|
}
|
|
23199
23971
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
23200
23972
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23315,10 +24087,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23315
24087
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
|
|
23316
24088
|
const prop = this._cachedJsonLd["likesOf"];
|
|
23317
24089
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23318
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23319
|
-
|
|
23320
|
-
|
|
23321
|
-
|
|
24090
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24091
|
+
v = await this.#likesOf_fromJsonLd(doc, {
|
|
24092
|
+
...options,
|
|
24093
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24094
|
+
});
|
|
24095
|
+
} catch (error) {
|
|
24096
|
+
if (!options.suppressError) throw error;
|
|
24097
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24098
|
+
property: "https://w3id.org/fep/5711#likesOf",
|
|
24099
|
+
error
|
|
24100
|
+
});
|
|
24101
|
+
return null;
|
|
24102
|
+
}
|
|
23322
24103
|
}
|
|
23323
24104
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
|
|
23324
24105
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23438,10 +24219,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23438
24219
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
|
|
23439
24220
|
const prop = this._cachedJsonLd["sharesOf"];
|
|
23440
24221
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23441
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23442
|
-
|
|
23443
|
-
|
|
23444
|
-
|
|
24222
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24223
|
+
v = await this.#sharesOf_fromJsonLd(doc, {
|
|
24224
|
+
...options,
|
|
24225
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24226
|
+
});
|
|
24227
|
+
} catch (error) {
|
|
24228
|
+
if (!options.suppressError) throw error;
|
|
24229
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24230
|
+
property: "https://w3id.org/fep/5711#sharesOf",
|
|
24231
|
+
error
|
|
24232
|
+
});
|
|
24233
|
+
return null;
|
|
24234
|
+
}
|
|
23445
24235
|
}
|
|
23446
24236
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
|
|
23447
24237
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23561,10 +24351,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23561
24351
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
|
|
23562
24352
|
const prop = this._cachedJsonLd["repliesOf"];
|
|
23563
24353
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23564
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23565
|
-
|
|
23566
|
-
|
|
23567
|
-
|
|
24354
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24355
|
+
v = await this.#repliesOf_fromJsonLd(doc, {
|
|
24356
|
+
...options,
|
|
24357
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24358
|
+
});
|
|
24359
|
+
} catch (error) {
|
|
24360
|
+
if (!options.suppressError) throw error;
|
|
24361
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24362
|
+
property: "https://w3id.org/fep/5711#repliesOf",
|
|
24363
|
+
error
|
|
24364
|
+
});
|
|
24365
|
+
return null;
|
|
24366
|
+
}
|
|
23568
24367
|
}
|
|
23569
24368
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
|
|
23570
24369
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23684,10 +24483,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23684
24483
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
|
|
23685
24484
|
const prop = this._cachedJsonLd["inboxOf"];
|
|
23686
24485
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23687
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23688
|
-
|
|
23689
|
-
|
|
23690
|
-
|
|
24486
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24487
|
+
v = await this.#inboxOf_fromJsonLd(doc, {
|
|
24488
|
+
...options,
|
|
24489
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24490
|
+
});
|
|
24491
|
+
} catch (error) {
|
|
24492
|
+
if (!options.suppressError) throw error;
|
|
24493
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24494
|
+
property: "https://w3id.org/fep/5711#inboxOf",
|
|
24495
|
+
error
|
|
24496
|
+
});
|
|
24497
|
+
return null;
|
|
24498
|
+
}
|
|
23691
24499
|
}
|
|
23692
24500
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
|
|
23693
24501
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23807,10 +24615,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23807
24615
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
|
|
23808
24616
|
const prop = this._cachedJsonLd["outboxOf"];
|
|
23809
24617
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23810
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23811
|
-
|
|
23812
|
-
|
|
23813
|
-
|
|
24618
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24619
|
+
v = await this.#outboxOf_fromJsonLd(doc, {
|
|
24620
|
+
...options,
|
|
24621
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24622
|
+
});
|
|
24623
|
+
} catch (error) {
|
|
24624
|
+
if (!options.suppressError) throw error;
|
|
24625
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24626
|
+
property: "https://w3id.org/fep/5711#outboxOf",
|
|
24627
|
+
error
|
|
24628
|
+
});
|
|
24629
|
+
return null;
|
|
24630
|
+
}
|
|
23814
24631
|
}
|
|
23815
24632
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
|
|
23816
24633
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23930,10 +24747,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
23930
24747
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
|
|
23931
24748
|
const prop = this._cachedJsonLd["followersOf"];
|
|
23932
24749
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23933
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23934
|
-
|
|
23935
|
-
|
|
23936
|
-
|
|
24750
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24751
|
+
v = await this.#followersOf_fromJsonLd(doc, {
|
|
24752
|
+
...options,
|
|
24753
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24754
|
+
});
|
|
24755
|
+
} catch (error) {
|
|
24756
|
+
if (!options.suppressError) throw error;
|
|
24757
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24758
|
+
property: "https://w3id.org/fep/5711#followersOf",
|
|
24759
|
+
error
|
|
24760
|
+
});
|
|
24761
|
+
return null;
|
|
24762
|
+
}
|
|
23937
24763
|
}
|
|
23938
24764
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
|
|
23939
24765
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -24053,10 +24879,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
24053
24879
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
|
|
24054
24880
|
const prop = this._cachedJsonLd["followingOf"];
|
|
24055
24881
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
24056
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
24057
|
-
|
|
24058
|
-
|
|
24059
|
-
|
|
24882
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24883
|
+
v = await this.#followingOf_fromJsonLd(doc, {
|
|
24884
|
+
...options,
|
|
24885
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
24886
|
+
});
|
|
24887
|
+
} catch (error) {
|
|
24888
|
+
if (!options.suppressError) throw error;
|
|
24889
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24890
|
+
property: "https://w3id.org/fep/5711#followingOf",
|
|
24891
|
+
error
|
|
24892
|
+
});
|
|
24893
|
+
return null;
|
|
24894
|
+
}
|
|
24060
24895
|
}
|
|
24061
24896
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
|
|
24062
24897
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -24176,10 +25011,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
24176
25011
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
|
|
24177
25012
|
const prop = this._cachedJsonLd["likedOf"];
|
|
24178
25013
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
24179
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
25014
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
25015
|
+
v = await this.#likedOf_fromJsonLd(doc, {
|
|
25016
|
+
...options,
|
|
25017
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
25018
|
+
});
|
|
25019
|
+
} catch (error) {
|
|
25020
|
+
if (!options.suppressError) throw error;
|
|
25021
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
25022
|
+
property: "https://w3id.org/fep/5711#likedOf",
|
|
25023
|
+
error
|
|
25024
|
+
});
|
|
25025
|
+
return null;
|
|
25026
|
+
}
|
|
24183
25027
|
}
|
|
24184
25028
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
|
|
24185
25029
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -25177,10 +26021,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25177
26021
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
|
|
25178
26022
|
const prop = this._cachedJsonLd["partOf"];
|
|
25179
26023
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
25180
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
26024
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
26025
|
+
v = await this.#partOf_fromJsonLd(doc, {
|
|
26026
|
+
...options,
|
|
26027
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
26028
|
+
});
|
|
26029
|
+
} catch (error) {
|
|
26030
|
+
if (!options.suppressError) throw error;
|
|
26031
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
26032
|
+
property: "https://www.w3.org/ns/activitystreams#partOf",
|
|
26033
|
+
error
|
|
26034
|
+
});
|
|
26035
|
+
return null;
|
|
26036
|
+
}
|
|
25184
26037
|
}
|
|
25185
26038
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
|
|
25186
26039
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -25300,10 +26153,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25300
26153
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
|
|
25301
26154
|
const prop = this._cachedJsonLd["next"];
|
|
25302
26155
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
25303
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
25304
|
-
|
|
25305
|
-
|
|
25306
|
-
|
|
26156
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
26157
|
+
v = await this.#next_fromJsonLd(doc, {
|
|
26158
|
+
...options,
|
|
26159
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
26160
|
+
});
|
|
26161
|
+
} catch (error) {
|
|
26162
|
+
if (!options.suppressError) throw error;
|
|
26163
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
26164
|
+
property: "https://www.w3.org/ns/activitystreams#next",
|
|
26165
|
+
error
|
|
26166
|
+
});
|
|
26167
|
+
return null;
|
|
26168
|
+
}
|
|
25307
26169
|
}
|
|
25308
26170
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
|
|
25309
26171
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -25423,10 +26285,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
25423
26285
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
|
|
25424
26286
|
const prop = this._cachedJsonLd["prev"];
|
|
25425
26287
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
25426
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
25427
|
-
|
|
25428
|
-
|
|
25429
|
-
|
|
26288
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
26289
|
+
v = await this.#prev_fromJsonLd(doc, {
|
|
26290
|
+
...options,
|
|
26291
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
26292
|
+
});
|
|
26293
|
+
} catch (error) {
|
|
26294
|
+
if (!options.suppressError) throw error;
|
|
26295
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
26296
|
+
property: "https://www.w3.org/ns/activitystreams#prev",
|
|
26297
|
+
error
|
|
26298
|
+
});
|
|
26299
|
+
return null;
|
|
26300
|
+
}
|
|
25430
26301
|
}
|
|
25431
26302
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
|
|
25432
26303
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27653,10 +28524,19 @@ var Group = class Group extends Object$1 {
|
|
|
27653
28524
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
27654
28525
|
const prop = this._cachedJsonLd["publicKey"];
|
|
27655
28526
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27656
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27657
|
-
|
|
27658
|
-
|
|
27659
|
-
|
|
28527
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28528
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
28529
|
+
...options,
|
|
28530
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28531
|
+
});
|
|
28532
|
+
} catch (error) {
|
|
28533
|
+
if (!options.suppressError) throw error;
|
|
28534
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28535
|
+
property: "https://w3id.org/security#publicKey",
|
|
28536
|
+
error
|
|
28537
|
+
});
|
|
28538
|
+
return null;
|
|
28539
|
+
}
|
|
27660
28540
|
}
|
|
27661
28541
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
27662
28542
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27697,10 +28577,20 @@ var Group = class Group extends Object$1 {
|
|
|
27697
28577
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
27698
28578
|
const prop = this._cachedJsonLd["publicKey"];
|
|
27699
28579
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
27700
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
28580
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
28581
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
28582
|
+
...options,
|
|
28583
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28584
|
+
});
|
|
28585
|
+
} catch (error) {
|
|
28586
|
+
if (!options.suppressError) throw error;
|
|
28587
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
28588
|
+
property: "https://w3id.org/security#publicKey",
|
|
28589
|
+
index: i,
|
|
28590
|
+
error
|
|
28591
|
+
});
|
|
28592
|
+
continue;
|
|
28593
|
+
}
|
|
27704
28594
|
}
|
|
27705
28595
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
27706
28596
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27824,10 +28714,19 @@ var Group = class Group extends Object$1 {
|
|
|
27824
28714
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
27825
28715
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
27826
28716
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27827
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27828
|
-
|
|
27829
|
-
|
|
27830
|
-
|
|
28717
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28718
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
28719
|
+
...options,
|
|
28720
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28721
|
+
});
|
|
28722
|
+
} catch (error) {
|
|
28723
|
+
if (!options.suppressError) throw error;
|
|
28724
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28725
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
28726
|
+
error
|
|
28727
|
+
});
|
|
28728
|
+
return null;
|
|
28729
|
+
}
|
|
27831
28730
|
}
|
|
27832
28731
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
27833
28732
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27871,10 +28770,20 @@ var Group = class Group extends Object$1 {
|
|
|
27871
28770
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
27872
28771
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
27873
28772
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
27874
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
27875
|
-
|
|
27876
|
-
|
|
27877
|
-
|
|
28773
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
28774
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
28775
|
+
...options,
|
|
28776
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28777
|
+
});
|
|
28778
|
+
} catch (error) {
|
|
28779
|
+
if (!options.suppressError) throw error;
|
|
28780
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
28781
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
28782
|
+
index: i,
|
|
28783
|
+
error
|
|
28784
|
+
});
|
|
28785
|
+
continue;
|
|
28786
|
+
}
|
|
27878
28787
|
}
|
|
27879
28788
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
27880
28789
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28029,10 +28938,19 @@ var Group = class Group extends Object$1 {
|
|
|
28029
28938
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
28030
28939
|
const prop = this._cachedJsonLd["inbox"];
|
|
28031
28940
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28032
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28033
|
-
|
|
28034
|
-
|
|
28035
|
-
|
|
28941
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28942
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
28943
|
+
...options,
|
|
28944
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
28945
|
+
});
|
|
28946
|
+
} catch (error) {
|
|
28947
|
+
if (!options.suppressError) throw error;
|
|
28948
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28949
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
28950
|
+
error
|
|
28951
|
+
});
|
|
28952
|
+
return null;
|
|
28953
|
+
}
|
|
28036
28954
|
}
|
|
28037
28955
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
28038
28956
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28171,10 +29089,19 @@ var Group = class Group extends Object$1 {
|
|
|
28171
29089
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
28172
29090
|
const prop = this._cachedJsonLd["outbox"];
|
|
28173
29091
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28174
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28175
|
-
|
|
28176
|
-
|
|
28177
|
-
|
|
29092
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29093
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
29094
|
+
...options,
|
|
29095
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29096
|
+
});
|
|
29097
|
+
} catch (error) {
|
|
29098
|
+
if (!options.suppressError) throw error;
|
|
29099
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29100
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
29101
|
+
error
|
|
29102
|
+
});
|
|
29103
|
+
return null;
|
|
29104
|
+
}
|
|
28178
29105
|
}
|
|
28179
29106
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
28180
29107
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28298,10 +29225,19 @@ var Group = class Group extends Object$1 {
|
|
|
28298
29225
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
28299
29226
|
const prop = this._cachedJsonLd["following"];
|
|
28300
29227
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28301
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28302
|
-
|
|
28303
|
-
|
|
28304
|
-
|
|
29228
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29229
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
29230
|
+
...options,
|
|
29231
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29232
|
+
});
|
|
29233
|
+
} catch (error) {
|
|
29234
|
+
if (!options.suppressError) throw error;
|
|
29235
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29236
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
29237
|
+
error
|
|
29238
|
+
});
|
|
29239
|
+
return null;
|
|
29240
|
+
}
|
|
28305
29241
|
}
|
|
28306
29242
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
28307
29243
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28428,10 +29364,19 @@ var Group = class Group extends Object$1 {
|
|
|
28428
29364
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
28429
29365
|
const prop = this._cachedJsonLd["followers"];
|
|
28430
29366
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28431
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28432
|
-
|
|
28433
|
-
|
|
28434
|
-
|
|
29367
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29368
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
29369
|
+
...options,
|
|
29370
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29371
|
+
});
|
|
29372
|
+
} catch (error) {
|
|
29373
|
+
if (!options.suppressError) throw error;
|
|
29374
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29375
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
29376
|
+
error
|
|
29377
|
+
});
|
|
29378
|
+
return null;
|
|
29379
|
+
}
|
|
28435
29380
|
}
|
|
28436
29381
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
28437
29382
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28556,10 +29501,19 @@ var Group = class Group extends Object$1 {
|
|
|
28556
29501
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
28557
29502
|
const prop = this._cachedJsonLd["liked"];
|
|
28558
29503
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28559
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28560
|
-
|
|
28561
|
-
|
|
28562
|
-
|
|
29504
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29505
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
29506
|
+
...options,
|
|
29507
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29508
|
+
});
|
|
29509
|
+
} catch (error) {
|
|
29510
|
+
if (!options.suppressError) throw error;
|
|
29511
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29512
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
29513
|
+
error
|
|
29514
|
+
});
|
|
29515
|
+
return null;
|
|
29516
|
+
}
|
|
28563
29517
|
}
|
|
28564
29518
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
28565
29519
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28682,10 +29636,19 @@ var Group = class Group extends Object$1 {
|
|
|
28682
29636
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
28683
29637
|
const prop = this._cachedJsonLd["featured"];
|
|
28684
29638
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28685
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28686
|
-
|
|
28687
|
-
|
|
28688
|
-
|
|
29639
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29640
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
29641
|
+
...options,
|
|
29642
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29643
|
+
});
|
|
29644
|
+
} catch (error) {
|
|
29645
|
+
if (!options.suppressError) throw error;
|
|
29646
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29647
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
29648
|
+
error
|
|
29649
|
+
});
|
|
29650
|
+
return null;
|
|
29651
|
+
}
|
|
28689
29652
|
}
|
|
28690
29653
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
28691
29654
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28808,10 +29771,19 @@ var Group = class Group extends Object$1 {
|
|
|
28808
29771
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
28809
29772
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
28810
29773
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28811
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28812
|
-
|
|
28813
|
-
|
|
28814
|
-
|
|
29774
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29775
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
29776
|
+
...options,
|
|
29777
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29778
|
+
});
|
|
29779
|
+
} catch (error) {
|
|
29780
|
+
if (!options.suppressError) throw error;
|
|
29781
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29782
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
29783
|
+
error
|
|
29784
|
+
});
|
|
29785
|
+
return null;
|
|
29786
|
+
}
|
|
28815
29787
|
}
|
|
28816
29788
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
28817
29789
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28930,10 +29902,20 @@ var Group = class Group extends Object$1 {
|
|
|
28930
29902
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
28931
29903
|
const prop = this._cachedJsonLd["streams"];
|
|
28932
29904
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
28933
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
29905
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
29906
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
29907
|
+
...options,
|
|
29908
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
29909
|
+
});
|
|
29910
|
+
} catch (error) {
|
|
29911
|
+
if (!options.suppressError) throw error;
|
|
29912
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
29913
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
29914
|
+
index: i,
|
|
29915
|
+
error
|
|
29916
|
+
});
|
|
29917
|
+
continue;
|
|
29918
|
+
}
|
|
28937
29919
|
}
|
|
28938
29920
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
28939
29921
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -29142,10 +30124,19 @@ var Group = class Group extends Object$1 {
|
|
|
29142
30124
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
29143
30125
|
const prop = this._cachedJsonLd["movedTo"];
|
|
29144
30126
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29145
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
30127
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
30128
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
30129
|
+
...options,
|
|
30130
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30131
|
+
});
|
|
30132
|
+
} catch (error) {
|
|
30133
|
+
if (!options.suppressError) throw error;
|
|
30134
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
30135
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
30136
|
+
error
|
|
30137
|
+
});
|
|
30138
|
+
return null;
|
|
30139
|
+
}
|
|
29149
30140
|
}
|
|
29150
30141
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
29151
30142
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -29314,10 +30305,19 @@ var Group = class Group extends Object$1 {
|
|
|
29314
30305
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
29315
30306
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
29316
30307
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29317
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29318
|
-
|
|
29319
|
-
|
|
29320
|
-
|
|
30308
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
30309
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
30310
|
+
...options,
|
|
30311
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30312
|
+
});
|
|
30313
|
+
} catch (error) {
|
|
30314
|
+
if (!options.suppressError) throw error;
|
|
30315
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
30316
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
30317
|
+
error
|
|
30318
|
+
});
|
|
30319
|
+
return null;
|
|
30320
|
+
}
|
|
29321
30321
|
}
|
|
29322
30322
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
29323
30323
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -29361,10 +30361,20 @@ var Group = class Group extends Object$1 {
|
|
|
29361
30361
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
29362
30362
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
29363
30363
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29364
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29365
|
-
|
|
29366
|
-
|
|
29367
|
-
|
|
30364
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
30365
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
30366
|
+
...options,
|
|
30367
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30368
|
+
});
|
|
30369
|
+
} catch (error) {
|
|
30370
|
+
if (!options.suppressError) throw error;
|
|
30371
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
30372
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
30373
|
+
index: i,
|
|
30374
|
+
error
|
|
30375
|
+
});
|
|
30376
|
+
continue;
|
|
30377
|
+
}
|
|
29368
30378
|
}
|
|
29369
30379
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
29370
30380
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -29488,10 +30498,19 @@ var Group = class Group extends Object$1 {
|
|
|
29488
30498
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
29489
30499
|
const prop = this._cachedJsonLd["service"];
|
|
29490
30500
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
29491
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29492
|
-
|
|
29493
|
-
|
|
29494
|
-
|
|
30501
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
30502
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
30503
|
+
...options,
|
|
30504
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30505
|
+
});
|
|
30506
|
+
} catch (error) {
|
|
30507
|
+
if (!options.suppressError) throw error;
|
|
30508
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
30509
|
+
property: "https://www.w3.org/ns/did#service",
|
|
30510
|
+
error
|
|
30511
|
+
});
|
|
30512
|
+
return null;
|
|
30513
|
+
}
|
|
29495
30514
|
}
|
|
29496
30515
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
29497
30516
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -29535,10 +30554,20 @@ var Group = class Group extends Object$1 {
|
|
|
29535
30554
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
29536
30555
|
const prop = this._cachedJsonLd["service"];
|
|
29537
30556
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29538
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29539
|
-
|
|
29540
|
-
|
|
29541
|
-
|
|
30557
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
30558
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
30559
|
+
...options,
|
|
30560
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
30561
|
+
});
|
|
30562
|
+
} catch (error) {
|
|
30563
|
+
if (!options.suppressError) throw error;
|
|
30564
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
30565
|
+
property: "https://www.w3.org/ns/did#service",
|
|
30566
|
+
index: i,
|
|
30567
|
+
error
|
|
30568
|
+
});
|
|
30569
|
+
continue;
|
|
30570
|
+
}
|
|
29542
30571
|
}
|
|
29543
30572
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
29544
30573
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31033,10 +32062,20 @@ var Link = class Link {
|
|
|
31033
32062
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
31034
32063
|
const prop = this._cachedJsonLd["preview"];
|
|
31035
32064
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
31036
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
31037
|
-
|
|
31038
|
-
|
|
31039
|
-
|
|
32065
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
32066
|
+
v = await this.#preview_fromJsonLd(obj, {
|
|
32067
|
+
...options,
|
|
32068
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
32069
|
+
});
|
|
32070
|
+
} catch (error) {
|
|
32071
|
+
if (!options.suppressError) throw error;
|
|
32072
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
32073
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
32074
|
+
index: i,
|
|
32075
|
+
error
|
|
32076
|
+
});
|
|
32077
|
+
continue;
|
|
32078
|
+
}
|
|
31040
32079
|
}
|
|
31041
32080
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
31042
32081
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -33229,10 +34268,19 @@ var Note = class Note extends Object$1 {
|
|
|
33229
34268
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
33230
34269
|
const prop = this._cachedJsonLd["quote"];
|
|
33231
34270
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
33232
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
33233
|
-
|
|
33234
|
-
|
|
33235
|
-
|
|
34271
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
34272
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
34273
|
+
...options,
|
|
34274
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
34275
|
+
});
|
|
34276
|
+
} catch (error) {
|
|
34277
|
+
if (!options.suppressError) throw error;
|
|
34278
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
34279
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
34280
|
+
error
|
|
34281
|
+
});
|
|
34282
|
+
return null;
|
|
34283
|
+
}
|
|
33236
34284
|
}
|
|
33237
34285
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
33238
34286
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -33369,10 +34417,19 @@ var Note = class Note extends Object$1 {
|
|
|
33369
34417
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
33370
34418
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
33371
34419
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
33372
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
33373
|
-
|
|
33374
|
-
|
|
33375
|
-
|
|
34420
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
34421
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
34422
|
+
...options,
|
|
34423
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
34424
|
+
});
|
|
34425
|
+
} catch (error) {
|
|
34426
|
+
if (!options.suppressError) throw error;
|
|
34427
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
34428
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
34429
|
+
error
|
|
34430
|
+
});
|
|
34431
|
+
return null;
|
|
34432
|
+
}
|
|
33376
34433
|
}
|
|
33377
34434
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
33378
34435
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -33627,7 +34684,7 @@ var Note = class Note extends Object$1 {
|
|
|
33627
34684
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
33628
34685
|
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) {
|
|
33629
34686
|
if (v == null) continue;
|
|
33630
|
-
const decoded =
|
|
34687
|
+
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;
|
|
33631
34688
|
if (typeof decoded === "undefined") {
|
|
33632
34689
|
shouldCacheJsonLd = false;
|
|
33633
34690
|
continue;
|
|
@@ -33857,10 +34914,20 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33857
34914
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
33858
34915
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
33859
34916
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
33860
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
33861
|
-
|
|
33862
|
-
|
|
33863
|
-
|
|
34917
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
34918
|
+
v = await this.#item_fromJsonLd(obj, {
|
|
34919
|
+
...options,
|
|
34920
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
34921
|
+
});
|
|
34922
|
+
} catch (error) {
|
|
34923
|
+
if (!options.suppressError) throw error;
|
|
34924
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
34925
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
34926
|
+
index: i,
|
|
34927
|
+
error
|
|
34928
|
+
});
|
|
34929
|
+
continue;
|
|
34930
|
+
}
|
|
33864
34931
|
}
|
|
33865
34932
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
33866
34933
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34354,10 +35421,20 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
34354
35421
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
34355
35422
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
34356
35423
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
34357
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
34358
|
-
|
|
34359
|
-
|
|
34360
|
-
|
|
35424
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
35425
|
+
v = await this.#item_fromJsonLd(obj, {
|
|
35426
|
+
...options,
|
|
35427
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
35428
|
+
});
|
|
35429
|
+
} catch (error) {
|
|
35430
|
+
if (!options.suppressError) throw error;
|
|
35431
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
35432
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
35433
|
+
index: i,
|
|
35434
|
+
error
|
|
35435
|
+
});
|
|
35436
|
+
continue;
|
|
35437
|
+
}
|
|
34361
35438
|
}
|
|
34362
35439
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
34363
35440
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35156,10 +36233,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35156
36233
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
35157
36234
|
const prop = this._cachedJsonLd["publicKey"];
|
|
35158
36235
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35159
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35160
|
-
|
|
35161
|
-
|
|
35162
|
-
|
|
36236
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36237
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
36238
|
+
...options,
|
|
36239
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36240
|
+
});
|
|
36241
|
+
} catch (error) {
|
|
36242
|
+
if (!options.suppressError) throw error;
|
|
36243
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36244
|
+
property: "https://w3id.org/security#publicKey",
|
|
36245
|
+
error
|
|
36246
|
+
});
|
|
36247
|
+
return null;
|
|
36248
|
+
}
|
|
35163
36249
|
}
|
|
35164
36250
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
35165
36251
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35200,10 +36286,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
35200
36286
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
35201
36287
|
const prop = this._cachedJsonLd["publicKey"];
|
|
35202
36288
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35203
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
35204
|
-
|
|
35205
|
-
|
|
35206
|
-
|
|
36289
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36290
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
36291
|
+
...options,
|
|
36292
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36293
|
+
});
|
|
36294
|
+
} catch (error) {
|
|
36295
|
+
if (!options.suppressError) throw error;
|
|
36296
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36297
|
+
property: "https://w3id.org/security#publicKey",
|
|
36298
|
+
index: i,
|
|
36299
|
+
error
|
|
36300
|
+
});
|
|
36301
|
+
continue;
|
|
36302
|
+
}
|
|
35207
36303
|
}
|
|
35208
36304
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
35209
36305
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35327,10 +36423,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35327
36423
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
35328
36424
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
35329
36425
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35330
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35331
|
-
|
|
35332
|
-
|
|
35333
|
-
|
|
36426
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36427
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
36428
|
+
...options,
|
|
36429
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36430
|
+
});
|
|
36431
|
+
} catch (error) {
|
|
36432
|
+
if (!options.suppressError) throw error;
|
|
36433
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36434
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
36435
|
+
error
|
|
36436
|
+
});
|
|
36437
|
+
return null;
|
|
36438
|
+
}
|
|
35334
36439
|
}
|
|
35335
36440
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
35336
36441
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35374,10 +36479,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
35374
36479
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
35375
36480
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
35376
36481
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35377
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
36482
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36483
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
36484
|
+
...options,
|
|
36485
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36486
|
+
});
|
|
36487
|
+
} catch (error) {
|
|
36488
|
+
if (!options.suppressError) throw error;
|
|
36489
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36490
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
36491
|
+
index: i,
|
|
36492
|
+
error
|
|
36493
|
+
});
|
|
36494
|
+
continue;
|
|
36495
|
+
}
|
|
35381
36496
|
}
|
|
35382
36497
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
35383
36498
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35532,10 +36647,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35532
36647
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
35533
36648
|
const prop = this._cachedJsonLd["inbox"];
|
|
35534
36649
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35535
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
|
|
36650
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36651
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
36652
|
+
...options,
|
|
36653
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36654
|
+
});
|
|
36655
|
+
} catch (error) {
|
|
36656
|
+
if (!options.suppressError) throw error;
|
|
36657
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36658
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
36659
|
+
error
|
|
36660
|
+
});
|
|
36661
|
+
return null;
|
|
36662
|
+
}
|
|
35539
36663
|
}
|
|
35540
36664
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
35541
36665
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35674,10 +36798,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35674
36798
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
35675
36799
|
const prop = this._cachedJsonLd["outbox"];
|
|
35676
36800
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35677
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35678
|
-
|
|
35679
|
-
|
|
35680
|
-
|
|
36801
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36802
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
36803
|
+
...options,
|
|
36804
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36805
|
+
});
|
|
36806
|
+
} catch (error) {
|
|
36807
|
+
if (!options.suppressError) throw error;
|
|
36808
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36809
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
36810
|
+
error
|
|
36811
|
+
});
|
|
36812
|
+
return null;
|
|
36813
|
+
}
|
|
35681
36814
|
}
|
|
35682
36815
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
35683
36816
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35801,10 +36934,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35801
36934
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
35802
36935
|
const prop = this._cachedJsonLd["following"];
|
|
35803
36936
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35804
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35805
|
-
|
|
35806
|
-
|
|
35807
|
-
|
|
36937
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36938
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
36939
|
+
...options,
|
|
36940
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
36941
|
+
});
|
|
36942
|
+
} catch (error) {
|
|
36943
|
+
if (!options.suppressError) throw error;
|
|
36944
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36945
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
36946
|
+
error
|
|
36947
|
+
});
|
|
36948
|
+
return null;
|
|
36949
|
+
}
|
|
35808
36950
|
}
|
|
35809
36951
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
35810
36952
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35931,10 +37073,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
35931
37073
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
35932
37074
|
const prop = this._cachedJsonLd["followers"];
|
|
35933
37075
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35934
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35935
|
-
|
|
35936
|
-
|
|
35937
|
-
|
|
37076
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37077
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
37078
|
+
...options,
|
|
37079
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37080
|
+
});
|
|
37081
|
+
} catch (error) {
|
|
37082
|
+
if (!options.suppressError) throw error;
|
|
37083
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37084
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
37085
|
+
error
|
|
37086
|
+
});
|
|
37087
|
+
return null;
|
|
37088
|
+
}
|
|
35938
37089
|
}
|
|
35939
37090
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
35940
37091
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36059,10 +37210,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36059
37210
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
36060
37211
|
const prop = this._cachedJsonLd["liked"];
|
|
36061
37212
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36062
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36063
|
-
|
|
36064
|
-
|
|
36065
|
-
|
|
37213
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37214
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
37215
|
+
...options,
|
|
37216
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37217
|
+
});
|
|
37218
|
+
} catch (error) {
|
|
37219
|
+
if (!options.suppressError) throw error;
|
|
37220
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37221
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
37222
|
+
error
|
|
37223
|
+
});
|
|
37224
|
+
return null;
|
|
37225
|
+
}
|
|
36066
37226
|
}
|
|
36067
37227
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
36068
37228
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36185,10 +37345,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36185
37345
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
36186
37346
|
const prop = this._cachedJsonLd["featured"];
|
|
36187
37347
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36188
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36189
|
-
|
|
36190
|
-
|
|
36191
|
-
|
|
37348
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37349
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
37350
|
+
...options,
|
|
37351
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37352
|
+
});
|
|
37353
|
+
} catch (error) {
|
|
37354
|
+
if (!options.suppressError) throw error;
|
|
37355
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37356
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
37357
|
+
error
|
|
37358
|
+
});
|
|
37359
|
+
return null;
|
|
37360
|
+
}
|
|
36192
37361
|
}
|
|
36193
37362
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
36194
37363
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36311,10 +37480,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36311
37480
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
36312
37481
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
36313
37482
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36314
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36315
|
-
|
|
36316
|
-
|
|
36317
|
-
|
|
37483
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37484
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
37485
|
+
...options,
|
|
37486
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37487
|
+
});
|
|
37488
|
+
} catch (error) {
|
|
37489
|
+
if (!options.suppressError) throw error;
|
|
37490
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37491
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
37492
|
+
error
|
|
37493
|
+
});
|
|
37494
|
+
return null;
|
|
37495
|
+
}
|
|
36318
37496
|
}
|
|
36319
37497
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
36320
37498
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36433,10 +37611,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
36433
37611
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
36434
37612
|
const prop = this._cachedJsonLd["streams"];
|
|
36435
37613
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
36436
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36437
|
-
|
|
36438
|
-
|
|
36439
|
-
|
|
37614
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
37615
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
37616
|
+
...options,
|
|
37617
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37618
|
+
});
|
|
37619
|
+
} catch (error) {
|
|
37620
|
+
if (!options.suppressError) throw error;
|
|
37621
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
37622
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
37623
|
+
index: i,
|
|
37624
|
+
error
|
|
37625
|
+
});
|
|
37626
|
+
continue;
|
|
37627
|
+
}
|
|
36440
37628
|
}
|
|
36441
37629
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
36442
37630
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36645,10 +37833,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36645
37833
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
36646
37834
|
const prop = this._cachedJsonLd["movedTo"];
|
|
36647
37835
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36648
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36649
|
-
|
|
36650
|
-
|
|
36651
|
-
|
|
37836
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
37837
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
37838
|
+
...options,
|
|
37839
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
37840
|
+
});
|
|
37841
|
+
} catch (error) {
|
|
37842
|
+
if (!options.suppressError) throw error;
|
|
37843
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
37844
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
37845
|
+
error
|
|
37846
|
+
});
|
|
37847
|
+
return null;
|
|
37848
|
+
}
|
|
36652
37849
|
}
|
|
36653
37850
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
36654
37851
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36817,10 +38014,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36817
38014
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
36818
38015
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
36819
38016
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36820
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36821
|
-
|
|
36822
|
-
|
|
36823
|
-
|
|
38017
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38018
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
38019
|
+
...options,
|
|
38020
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38021
|
+
});
|
|
38022
|
+
} catch (error) {
|
|
38023
|
+
if (!options.suppressError) throw error;
|
|
38024
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38025
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
38026
|
+
error
|
|
38027
|
+
});
|
|
38028
|
+
return null;
|
|
38029
|
+
}
|
|
36824
38030
|
}
|
|
36825
38031
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
36826
38032
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36864,10 +38070,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
36864
38070
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
36865
38071
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
36866
38072
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
36867
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36868
|
-
|
|
36869
|
-
|
|
36870
|
-
|
|
38073
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
38074
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
38075
|
+
...options,
|
|
38076
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38077
|
+
});
|
|
38078
|
+
} catch (error) {
|
|
38079
|
+
if (!options.suppressError) throw error;
|
|
38080
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
38081
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
38082
|
+
index: i,
|
|
38083
|
+
error
|
|
38084
|
+
});
|
|
38085
|
+
continue;
|
|
38086
|
+
}
|
|
36871
38087
|
}
|
|
36872
38088
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
36873
38089
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -36991,10 +38207,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
36991
38207
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
36992
38208
|
const prop = this._cachedJsonLd["service"];
|
|
36993
38209
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
36994
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36995
|
-
|
|
36996
|
-
|
|
36997
|
-
|
|
38210
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38211
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
38212
|
+
...options,
|
|
38213
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38214
|
+
});
|
|
38215
|
+
} catch (error) {
|
|
38216
|
+
if (!options.suppressError) throw error;
|
|
38217
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38218
|
+
property: "https://www.w3.org/ns/did#service",
|
|
38219
|
+
error
|
|
38220
|
+
});
|
|
38221
|
+
return null;
|
|
38222
|
+
}
|
|
36998
38223
|
}
|
|
36999
38224
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
37000
38225
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37038,10 +38263,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
37038
38263
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
37039
38264
|
const prop = this._cachedJsonLd["service"];
|
|
37040
38265
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
37041
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
37042
|
-
|
|
37043
|
-
|
|
37044
|
-
|
|
38266
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
38267
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
38268
|
+
...options,
|
|
38269
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
38270
|
+
});
|
|
38271
|
+
} catch (error) {
|
|
38272
|
+
if (!options.suppressError) throw error;
|
|
38273
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
38274
|
+
property: "https://www.w3.org/ns/did#service",
|
|
38275
|
+
index: i,
|
|
38276
|
+
error
|
|
38277
|
+
});
|
|
38278
|
+
continue;
|
|
38279
|
+
}
|
|
37045
38280
|
}
|
|
37046
38281
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
37047
38282
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38781,10 +40016,19 @@ var Person = class Person extends Object$1 {
|
|
|
38781
40016
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
38782
40017
|
const prop = this._cachedJsonLd["publicKey"];
|
|
38783
40018
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38784
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38785
|
-
|
|
38786
|
-
|
|
38787
|
-
|
|
40019
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40020
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
40021
|
+
...options,
|
|
40022
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40023
|
+
});
|
|
40024
|
+
} catch (error) {
|
|
40025
|
+
if (!options.suppressError) throw error;
|
|
40026
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40027
|
+
property: "https://w3id.org/security#publicKey",
|
|
40028
|
+
error
|
|
40029
|
+
});
|
|
40030
|
+
return null;
|
|
40031
|
+
}
|
|
38788
40032
|
}
|
|
38789
40033
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
38790
40034
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38825,10 +40069,20 @@ var Person = class Person extends Object$1 {
|
|
|
38825
40069
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
38826
40070
|
const prop = this._cachedJsonLd["publicKey"];
|
|
38827
40071
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
38828
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
38829
|
-
|
|
38830
|
-
|
|
38831
|
-
|
|
40072
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
40073
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
40074
|
+
...options,
|
|
40075
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40076
|
+
});
|
|
40077
|
+
} catch (error) {
|
|
40078
|
+
if (!options.suppressError) throw error;
|
|
40079
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
40080
|
+
property: "https://w3id.org/security#publicKey",
|
|
40081
|
+
index: i,
|
|
40082
|
+
error
|
|
40083
|
+
});
|
|
40084
|
+
continue;
|
|
40085
|
+
}
|
|
38832
40086
|
}
|
|
38833
40087
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
38834
40088
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38952,10 +40206,19 @@ var Person = class Person extends Object$1 {
|
|
|
38952
40206
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
38953
40207
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
38954
40208
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38955
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38956
|
-
|
|
38957
|
-
|
|
38958
|
-
|
|
40209
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40210
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
40211
|
+
...options,
|
|
40212
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40213
|
+
});
|
|
40214
|
+
} catch (error) {
|
|
40215
|
+
if (!options.suppressError) throw error;
|
|
40216
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40217
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
40218
|
+
error
|
|
40219
|
+
});
|
|
40220
|
+
return null;
|
|
40221
|
+
}
|
|
38959
40222
|
}
|
|
38960
40223
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
38961
40224
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38999,10 +40262,20 @@ var Person = class Person extends Object$1 {
|
|
|
38999
40262
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
39000
40263
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
39001
40264
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
39002
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
39003
|
-
|
|
39004
|
-
|
|
39005
|
-
|
|
40265
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
40266
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
40267
|
+
...options,
|
|
40268
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40269
|
+
});
|
|
40270
|
+
} catch (error) {
|
|
40271
|
+
if (!options.suppressError) throw error;
|
|
40272
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
40273
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
40274
|
+
index: i,
|
|
40275
|
+
error
|
|
40276
|
+
});
|
|
40277
|
+
continue;
|
|
40278
|
+
}
|
|
39006
40279
|
}
|
|
39007
40280
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
39008
40281
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39157,10 +40430,19 @@ var Person = class Person extends Object$1 {
|
|
|
39157
40430
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
39158
40431
|
const prop = this._cachedJsonLd["inbox"];
|
|
39159
40432
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39160
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39161
|
-
|
|
39162
|
-
|
|
39163
|
-
|
|
40433
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40434
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
40435
|
+
...options,
|
|
40436
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40437
|
+
});
|
|
40438
|
+
} catch (error) {
|
|
40439
|
+
if (!options.suppressError) throw error;
|
|
40440
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40441
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
40442
|
+
error
|
|
40443
|
+
});
|
|
40444
|
+
return null;
|
|
40445
|
+
}
|
|
39164
40446
|
}
|
|
39165
40447
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
39166
40448
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39299,10 +40581,19 @@ var Person = class Person extends Object$1 {
|
|
|
39299
40581
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
39300
40582
|
const prop = this._cachedJsonLd["outbox"];
|
|
39301
40583
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39302
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39303
|
-
|
|
39304
|
-
|
|
39305
|
-
|
|
40584
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40585
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
40586
|
+
...options,
|
|
40587
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40588
|
+
});
|
|
40589
|
+
} catch (error) {
|
|
40590
|
+
if (!options.suppressError) throw error;
|
|
40591
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40592
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
40593
|
+
error
|
|
40594
|
+
});
|
|
40595
|
+
return null;
|
|
40596
|
+
}
|
|
39306
40597
|
}
|
|
39307
40598
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
39308
40599
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39426,10 +40717,19 @@ var Person = class Person extends Object$1 {
|
|
|
39426
40717
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
39427
40718
|
const prop = this._cachedJsonLd["following"];
|
|
39428
40719
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39429
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39430
|
-
|
|
39431
|
-
|
|
39432
|
-
|
|
40720
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40721
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
40722
|
+
...options,
|
|
40723
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40724
|
+
});
|
|
40725
|
+
} catch (error) {
|
|
40726
|
+
if (!options.suppressError) throw error;
|
|
40727
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40728
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
40729
|
+
error
|
|
40730
|
+
});
|
|
40731
|
+
return null;
|
|
40732
|
+
}
|
|
39433
40733
|
}
|
|
39434
40734
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
39435
40735
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39556,10 +40856,19 @@ var Person = class Person extends Object$1 {
|
|
|
39556
40856
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
39557
40857
|
const prop = this._cachedJsonLd["followers"];
|
|
39558
40858
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39559
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39560
|
-
|
|
39561
|
-
|
|
39562
|
-
|
|
40859
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40860
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
40861
|
+
...options,
|
|
40862
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
40863
|
+
});
|
|
40864
|
+
} catch (error) {
|
|
40865
|
+
if (!options.suppressError) throw error;
|
|
40866
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40867
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
40868
|
+
error
|
|
40869
|
+
});
|
|
40870
|
+
return null;
|
|
40871
|
+
}
|
|
39563
40872
|
}
|
|
39564
40873
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
39565
40874
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39684,10 +40993,19 @@ var Person = class Person extends Object$1 {
|
|
|
39684
40993
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
39685
40994
|
const prop = this._cachedJsonLd["liked"];
|
|
39686
40995
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39687
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39688
|
-
|
|
39689
|
-
|
|
39690
|
-
|
|
40996
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40997
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
40998
|
+
...options,
|
|
40999
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41000
|
+
});
|
|
41001
|
+
} catch (error) {
|
|
41002
|
+
if (!options.suppressError) throw error;
|
|
41003
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41004
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
41005
|
+
error
|
|
41006
|
+
});
|
|
41007
|
+
return null;
|
|
41008
|
+
}
|
|
39691
41009
|
}
|
|
39692
41010
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
39693
41011
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39810,10 +41128,19 @@ var Person = class Person extends Object$1 {
|
|
|
39810
41128
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
39811
41129
|
const prop = this._cachedJsonLd["featured"];
|
|
39812
41130
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39813
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39814
|
-
|
|
39815
|
-
|
|
39816
|
-
|
|
41131
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41132
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
41133
|
+
...options,
|
|
41134
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41135
|
+
});
|
|
41136
|
+
} catch (error) {
|
|
41137
|
+
if (!options.suppressError) throw error;
|
|
41138
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41139
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
41140
|
+
error
|
|
41141
|
+
});
|
|
41142
|
+
return null;
|
|
41143
|
+
}
|
|
39817
41144
|
}
|
|
39818
41145
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
39819
41146
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39936,10 +41263,19 @@ var Person = class Person extends Object$1 {
|
|
|
39936
41263
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
39937
41264
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
39938
41265
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39939
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39940
|
-
|
|
39941
|
-
|
|
39942
|
-
|
|
41266
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41267
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
41268
|
+
...options,
|
|
41269
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41270
|
+
});
|
|
41271
|
+
} catch (error) {
|
|
41272
|
+
if (!options.suppressError) throw error;
|
|
41273
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41274
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
41275
|
+
error
|
|
41276
|
+
});
|
|
41277
|
+
return null;
|
|
41278
|
+
}
|
|
39943
41279
|
}
|
|
39944
41280
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
39945
41281
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -40058,10 +41394,20 @@ var Person = class Person extends Object$1 {
|
|
|
40058
41394
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
40059
41395
|
const prop = this._cachedJsonLd["streams"];
|
|
40060
41396
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
40061
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40062
|
-
|
|
40063
|
-
|
|
40064
|
-
|
|
41397
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
41398
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
41399
|
+
...options,
|
|
41400
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41401
|
+
});
|
|
41402
|
+
} catch (error) {
|
|
41403
|
+
if (!options.suppressError) throw error;
|
|
41404
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
41405
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
41406
|
+
index: i,
|
|
41407
|
+
error
|
|
41408
|
+
});
|
|
41409
|
+
continue;
|
|
41410
|
+
}
|
|
40065
41411
|
}
|
|
40066
41412
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
40067
41413
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -40270,10 +41616,19 @@ var Person = class Person extends Object$1 {
|
|
|
40270
41616
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
40271
41617
|
const prop = this._cachedJsonLd["movedTo"];
|
|
40272
41618
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40273
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40274
|
-
|
|
40275
|
-
|
|
40276
|
-
|
|
41619
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41620
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
41621
|
+
...options,
|
|
41622
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41623
|
+
});
|
|
41624
|
+
} catch (error) {
|
|
41625
|
+
if (!options.suppressError) throw error;
|
|
41626
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41627
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
41628
|
+
error
|
|
41629
|
+
});
|
|
41630
|
+
return null;
|
|
41631
|
+
}
|
|
40277
41632
|
}
|
|
40278
41633
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
40279
41634
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -40442,10 +41797,19 @@ var Person = class Person extends Object$1 {
|
|
|
40442
41797
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
40443
41798
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
40444
41799
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40445
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40446
|
-
|
|
40447
|
-
|
|
40448
|
-
|
|
41800
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41801
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
41802
|
+
...options,
|
|
41803
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41804
|
+
});
|
|
41805
|
+
} catch (error) {
|
|
41806
|
+
if (!options.suppressError) throw error;
|
|
41807
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
41808
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
41809
|
+
error
|
|
41810
|
+
});
|
|
41811
|
+
return null;
|
|
41812
|
+
}
|
|
40449
41813
|
}
|
|
40450
41814
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
40451
41815
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -40489,10 +41853,20 @@ var Person = class Person extends Object$1 {
|
|
|
40489
41853
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
40490
41854
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
40491
41855
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
40492
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40493
|
-
|
|
40494
|
-
|
|
40495
|
-
|
|
41856
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
41857
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
41858
|
+
...options,
|
|
41859
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41860
|
+
});
|
|
41861
|
+
} catch (error) {
|
|
41862
|
+
if (!options.suppressError) throw error;
|
|
41863
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
41864
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
41865
|
+
index: i,
|
|
41866
|
+
error
|
|
41867
|
+
});
|
|
41868
|
+
continue;
|
|
41869
|
+
}
|
|
40496
41870
|
}
|
|
40497
41871
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
40498
41872
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -40616,10 +41990,19 @@ var Person = class Person extends Object$1 {
|
|
|
40616
41990
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
40617
41991
|
const prop = this._cachedJsonLd["service"];
|
|
40618
41992
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40619
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40620
|
-
|
|
40621
|
-
|
|
40622
|
-
|
|
41993
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
41994
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
41995
|
+
...options,
|
|
41996
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
41997
|
+
});
|
|
41998
|
+
} catch (error) {
|
|
41999
|
+
if (!options.suppressError) throw error;
|
|
42000
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
42001
|
+
property: "https://www.w3.org/ns/did#service",
|
|
42002
|
+
error
|
|
42003
|
+
});
|
|
42004
|
+
return null;
|
|
42005
|
+
}
|
|
40623
42006
|
}
|
|
40624
42007
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
40625
42008
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -40663,10 +42046,20 @@ var Person = class Person extends Object$1 {
|
|
|
40663
42046
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
40664
42047
|
const prop = this._cachedJsonLd["service"];
|
|
40665
42048
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
40666
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40667
|
-
|
|
40668
|
-
|
|
40669
|
-
|
|
42049
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
42050
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
42051
|
+
...options,
|
|
42052
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
42053
|
+
});
|
|
42054
|
+
} catch (error) {
|
|
42055
|
+
if (!options.suppressError) throw error;
|
|
42056
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
42057
|
+
property: "https://www.w3.org/ns/did#service",
|
|
42058
|
+
index: i,
|
|
42059
|
+
error
|
|
42060
|
+
});
|
|
42061
|
+
continue;
|
|
42062
|
+
}
|
|
40670
42063
|
}
|
|
40671
42064
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
40672
42065
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42414,10 +43807,19 @@ var Profile = class Profile extends Object$1 {
|
|
|
42414
43807
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
|
|
42415
43808
|
const prop = this._cachedJsonLd["describes"];
|
|
42416
43809
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
42417
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
42418
|
-
|
|
42419
|
-
|
|
42420
|
-
|
|
43810
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
43811
|
+
v = await this.#describes_fromJsonLd(doc, {
|
|
43812
|
+
...options,
|
|
43813
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
43814
|
+
});
|
|
43815
|
+
} catch (error) {
|
|
43816
|
+
if (!options.suppressError) throw error;
|
|
43817
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
43818
|
+
property: "https://www.w3.org/ns/activitystreams#describes",
|
|
43819
|
+
error
|
|
43820
|
+
});
|
|
43821
|
+
return null;
|
|
43822
|
+
}
|
|
42421
43823
|
}
|
|
42422
43824
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
|
|
42423
43825
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42823,10 +44225,20 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42823
44225
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
|
|
42824
44226
|
const prop = this._cachedJsonLd["oneOf"];
|
|
42825
44227
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
42826
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
42827
|
-
|
|
42828
|
-
|
|
42829
|
-
|
|
44228
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
44229
|
+
v = await this.#exclusiveOption_fromJsonLd(obj, {
|
|
44230
|
+
...options,
|
|
44231
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44232
|
+
});
|
|
44233
|
+
} catch (error) {
|
|
44234
|
+
if (!options.suppressError) throw error;
|
|
44235
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
44236
|
+
property: "https://www.w3.org/ns/activitystreams#oneOf",
|
|
44237
|
+
index: i,
|
|
44238
|
+
error
|
|
44239
|
+
});
|
|
44240
|
+
continue;
|
|
44241
|
+
}
|
|
42830
44242
|
}
|
|
42831
44243
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
|
|
42832
44244
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42948,10 +44360,20 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42948
44360
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
|
|
42949
44361
|
const prop = this._cachedJsonLd["anyOf"];
|
|
42950
44362
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
42951
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
42952
|
-
|
|
42953
|
-
|
|
42954
|
-
|
|
44363
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
44364
|
+
v = await this.#inclusiveOption_fromJsonLd(obj, {
|
|
44365
|
+
...options,
|
|
44366
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44367
|
+
});
|
|
44368
|
+
} catch (error) {
|
|
44369
|
+
if (!options.suppressError) throw error;
|
|
44370
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
44371
|
+
property: "https://www.w3.org/ns/activitystreams#anyOf",
|
|
44372
|
+
index: i,
|
|
44373
|
+
error
|
|
44374
|
+
});
|
|
44375
|
+
continue;
|
|
44376
|
+
}
|
|
42955
44377
|
}
|
|
42956
44378
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
|
|
42957
44379
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -43090,10 +44512,19 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43090
44512
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
43091
44513
|
const prop = this._cachedJsonLd["quote"];
|
|
43092
44514
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
43093
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
43094
|
-
|
|
43095
|
-
|
|
43096
|
-
|
|
44515
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
44516
|
+
v = await this.#quote_fromJsonLd(doc, {
|
|
44517
|
+
...options,
|
|
44518
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44519
|
+
});
|
|
44520
|
+
} catch (error) {
|
|
44521
|
+
if (!options.suppressError) throw error;
|
|
44522
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
44523
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
44524
|
+
error
|
|
44525
|
+
});
|
|
44526
|
+
return null;
|
|
44527
|
+
}
|
|
43097
44528
|
}
|
|
43098
44529
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
43099
44530
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -43230,10 +44661,19 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43230
44661
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
43231
44662
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
43232
44663
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
43233
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
43234
|
-
|
|
43235
|
-
|
|
43236
|
-
|
|
44664
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
44665
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, {
|
|
44666
|
+
...options,
|
|
44667
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
44668
|
+
});
|
|
44669
|
+
} catch (error) {
|
|
44670
|
+
if (!options.suppressError) throw error;
|
|
44671
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
44672
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
44673
|
+
error
|
|
44674
|
+
});
|
|
44675
|
+
return null;
|
|
44676
|
+
}
|
|
43237
44677
|
}
|
|
43238
44678
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
43239
44679
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -43522,7 +44962,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
43522
44962
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
43523
44963
|
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) {
|
|
43524
44964
|
if (v == null) continue;
|
|
43525
|
-
const decoded =
|
|
44965
|
+
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;
|
|
43526
44966
|
if (typeof decoded === "undefined") {
|
|
43527
44967
|
shouldCacheJsonLd = false;
|
|
43528
44968
|
continue;
|
|
@@ -44127,10 +45567,19 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44127
45567
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
|
|
44128
45568
|
const prop = this._cachedJsonLd["subject"];
|
|
44129
45569
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44130
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44131
|
-
|
|
44132
|
-
|
|
44133
|
-
|
|
45570
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45571
|
+
v = await this.#subject_fromJsonLd(doc, {
|
|
45572
|
+
...options,
|
|
45573
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45574
|
+
});
|
|
45575
|
+
} catch (error) {
|
|
45576
|
+
if (!options.suppressError) throw error;
|
|
45577
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45578
|
+
property: "https://www.w3.org/ns/activitystreams#subject",
|
|
45579
|
+
error
|
|
45580
|
+
});
|
|
45581
|
+
return null;
|
|
45582
|
+
}
|
|
44134
45583
|
}
|
|
44135
45584
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
|
|
44136
45585
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44250,10 +45699,19 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44250
45699
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
44251
45700
|
const prop = this._cachedJsonLd["object"];
|
|
44252
45701
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44253
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44254
|
-
|
|
44255
|
-
|
|
44256
|
-
|
|
45702
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45703
|
+
v = await this.#object_fromJsonLd(doc, {
|
|
45704
|
+
...options,
|
|
45705
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45706
|
+
});
|
|
45707
|
+
} catch (error) {
|
|
45708
|
+
if (!options.suppressError) throw error;
|
|
45709
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45710
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
45711
|
+
error
|
|
45712
|
+
});
|
|
45713
|
+
return null;
|
|
45714
|
+
}
|
|
44257
45715
|
}
|
|
44258
45716
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
44259
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\".");
|
|
@@ -44294,10 +45752,20 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44294
45752
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
44295
45753
|
const prop = this._cachedJsonLd["object"];
|
|
44296
45754
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
44297
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
44298
|
-
|
|
44299
|
-
|
|
44300
|
-
|
|
45755
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
45756
|
+
v = await this.#object_fromJsonLd(obj, {
|
|
45757
|
+
...options,
|
|
45758
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45759
|
+
});
|
|
45760
|
+
} catch (error) {
|
|
45761
|
+
if (!options.suppressError) throw error;
|
|
45762
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
45763
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
45764
|
+
index: i,
|
|
45765
|
+
error
|
|
45766
|
+
});
|
|
45767
|
+
continue;
|
|
45768
|
+
}
|
|
44301
45769
|
}
|
|
44302
45770
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
44303
45771
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44420,10 +45888,19 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44420
45888
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
44421
45889
|
const prop = this._cachedJsonLd["relationship"];
|
|
44422
45890
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44423
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44424
|
-
|
|
44425
|
-
|
|
44426
|
-
|
|
45891
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45892
|
+
v = await this.#relationship_fromJsonLd(doc, {
|
|
45893
|
+
...options,
|
|
45894
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45895
|
+
});
|
|
45896
|
+
} catch (error) {
|
|
45897
|
+
if (!options.suppressError) throw error;
|
|
45898
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45899
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
45900
|
+
error
|
|
45901
|
+
});
|
|
45902
|
+
return null;
|
|
45903
|
+
}
|
|
44427
45904
|
}
|
|
44428
45905
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
44429
45906
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44466,10 +45943,20 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
44466
45943
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
44467
45944
|
const prop = this._cachedJsonLd["relationship"];
|
|
44468
45945
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
44469
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
44470
|
-
|
|
44471
|
-
|
|
44472
|
-
|
|
45946
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
45947
|
+
v = await this.#relationship_fromJsonLd(obj, {
|
|
45948
|
+
...options,
|
|
45949
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
45950
|
+
});
|
|
45951
|
+
} catch (error) {
|
|
45952
|
+
if (!options.suppressError) throw error;
|
|
45953
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
45954
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
45955
|
+
index: i,
|
|
45956
|
+
error
|
|
45957
|
+
});
|
|
45958
|
+
continue;
|
|
45959
|
+
}
|
|
44473
45960
|
}
|
|
44474
45961
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
44475
45962
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45333,10 +46820,19 @@ var Service = class Service extends Object$1 {
|
|
|
45333
46820
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
45334
46821
|
const prop = this._cachedJsonLd["publicKey"];
|
|
45335
46822
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45336
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45337
|
-
|
|
45338
|
-
|
|
45339
|
-
|
|
46823
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46824
|
+
v = await this.#publicKey_fromJsonLd(doc, {
|
|
46825
|
+
...options,
|
|
46826
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
46827
|
+
});
|
|
46828
|
+
} catch (error) {
|
|
46829
|
+
if (!options.suppressError) throw error;
|
|
46830
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46831
|
+
property: "https://w3id.org/security#publicKey",
|
|
46832
|
+
error
|
|
46833
|
+
});
|
|
46834
|
+
return null;
|
|
46835
|
+
}
|
|
45340
46836
|
}
|
|
45341
46837
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
45342
46838
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45377,10 +46873,20 @@ var Service = class Service extends Object$1 {
|
|
|
45377
46873
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
45378
46874
|
const prop = this._cachedJsonLd["publicKey"];
|
|
45379
46875
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
45380
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
45381
|
-
|
|
45382
|
-
|
|
45383
|
-
|
|
46876
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
46877
|
+
v = await this.#publicKey_fromJsonLd(obj, {
|
|
46878
|
+
...options,
|
|
46879
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
46880
|
+
});
|
|
46881
|
+
} catch (error) {
|
|
46882
|
+
if (!options.suppressError) throw error;
|
|
46883
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
46884
|
+
property: "https://w3id.org/security#publicKey",
|
|
46885
|
+
index: i,
|
|
46886
|
+
error
|
|
46887
|
+
});
|
|
46888
|
+
continue;
|
|
46889
|
+
}
|
|
45384
46890
|
}
|
|
45385
46891
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
45386
46892
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45504,10 +47010,19 @@ var Service = class Service extends Object$1 {
|
|
|
45504
47010
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
45505
47011
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
45506
47012
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45507
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45508
|
-
|
|
45509
|
-
|
|
45510
|
-
|
|
47013
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47014
|
+
v = await this.#assertionMethod_fromJsonLd(doc, {
|
|
47015
|
+
...options,
|
|
47016
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47017
|
+
});
|
|
47018
|
+
} catch (error) {
|
|
47019
|
+
if (!options.suppressError) throw error;
|
|
47020
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47021
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
47022
|
+
error
|
|
47023
|
+
});
|
|
47024
|
+
return null;
|
|
47025
|
+
}
|
|
45511
47026
|
}
|
|
45512
47027
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
45513
47028
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45551,10 +47066,20 @@ var Service = class Service extends Object$1 {
|
|
|
45551
47066
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
45552
47067
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
45553
47068
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
45554
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
45555
|
-
|
|
45556
|
-
|
|
45557
|
-
|
|
47069
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
47070
|
+
v = await this.#assertionMethod_fromJsonLd(obj, {
|
|
47071
|
+
...options,
|
|
47072
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47073
|
+
});
|
|
47074
|
+
} catch (error) {
|
|
47075
|
+
if (!options.suppressError) throw error;
|
|
47076
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
47077
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
47078
|
+
index: i,
|
|
47079
|
+
error
|
|
47080
|
+
});
|
|
47081
|
+
continue;
|
|
47082
|
+
}
|
|
45558
47083
|
}
|
|
45559
47084
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
45560
47085
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45709,10 +47234,19 @@ var Service = class Service extends Object$1 {
|
|
|
45709
47234
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
45710
47235
|
const prop = this._cachedJsonLd["inbox"];
|
|
45711
47236
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45712
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45713
|
-
|
|
45714
|
-
|
|
45715
|
-
|
|
47237
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47238
|
+
v = await this.#inbox_fromJsonLd(doc, {
|
|
47239
|
+
...options,
|
|
47240
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47241
|
+
});
|
|
47242
|
+
} catch (error) {
|
|
47243
|
+
if (!options.suppressError) throw error;
|
|
47244
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47245
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
47246
|
+
error
|
|
47247
|
+
});
|
|
47248
|
+
return null;
|
|
47249
|
+
}
|
|
45716
47250
|
}
|
|
45717
47251
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
45718
47252
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45851,10 +47385,19 @@ var Service = class Service extends Object$1 {
|
|
|
45851
47385
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
45852
47386
|
const prop = this._cachedJsonLd["outbox"];
|
|
45853
47387
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45854
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45855
|
-
|
|
45856
|
-
|
|
45857
|
-
|
|
47388
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47389
|
+
v = await this.#outbox_fromJsonLd(doc, {
|
|
47390
|
+
...options,
|
|
47391
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47392
|
+
});
|
|
47393
|
+
} catch (error) {
|
|
47394
|
+
if (!options.suppressError) throw error;
|
|
47395
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47396
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
47397
|
+
error
|
|
47398
|
+
});
|
|
47399
|
+
return null;
|
|
47400
|
+
}
|
|
45858
47401
|
}
|
|
45859
47402
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
45860
47403
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45978,10 +47521,19 @@ var Service = class Service extends Object$1 {
|
|
|
45978
47521
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
45979
47522
|
const prop = this._cachedJsonLd["following"];
|
|
45980
47523
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45981
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45982
|
-
|
|
45983
|
-
|
|
45984
|
-
|
|
47524
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47525
|
+
v = await this.#following_fromJsonLd(doc, {
|
|
47526
|
+
...options,
|
|
47527
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47528
|
+
});
|
|
47529
|
+
} catch (error) {
|
|
47530
|
+
if (!options.suppressError) throw error;
|
|
47531
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47532
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
47533
|
+
error
|
|
47534
|
+
});
|
|
47535
|
+
return null;
|
|
47536
|
+
}
|
|
45985
47537
|
}
|
|
45986
47538
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
45987
47539
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -46108,10 +47660,19 @@ var Service = class Service extends Object$1 {
|
|
|
46108
47660
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
46109
47661
|
const prop = this._cachedJsonLd["followers"];
|
|
46110
47662
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46111
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46112
|
-
|
|
46113
|
-
|
|
46114
|
-
|
|
47663
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47664
|
+
v = await this.#followers_fromJsonLd(doc, {
|
|
47665
|
+
...options,
|
|
47666
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47667
|
+
});
|
|
47668
|
+
} catch (error) {
|
|
47669
|
+
if (!options.suppressError) throw error;
|
|
47670
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47671
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
47672
|
+
error
|
|
47673
|
+
});
|
|
47674
|
+
return null;
|
|
47675
|
+
}
|
|
46115
47676
|
}
|
|
46116
47677
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
46117
47678
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -46236,10 +47797,19 @@ var Service = class Service extends Object$1 {
|
|
|
46236
47797
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
46237
47798
|
const prop = this._cachedJsonLd["liked"];
|
|
46238
47799
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46239
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46240
|
-
|
|
46241
|
-
|
|
46242
|
-
|
|
47800
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47801
|
+
v = await this.#liked_fromJsonLd(doc, {
|
|
47802
|
+
...options,
|
|
47803
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47804
|
+
});
|
|
47805
|
+
} catch (error) {
|
|
47806
|
+
if (!options.suppressError) throw error;
|
|
47807
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47808
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
47809
|
+
error
|
|
47810
|
+
});
|
|
47811
|
+
return null;
|
|
47812
|
+
}
|
|
46243
47813
|
}
|
|
46244
47814
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
46245
47815
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -46362,10 +47932,19 @@ var Service = class Service extends Object$1 {
|
|
|
46362
47932
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
46363
47933
|
const prop = this._cachedJsonLd["featured"];
|
|
46364
47934
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46365
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46366
|
-
|
|
46367
|
-
|
|
46368
|
-
|
|
47935
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47936
|
+
v = await this.#featured_fromJsonLd(doc, {
|
|
47937
|
+
...options,
|
|
47938
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
47939
|
+
});
|
|
47940
|
+
} catch (error) {
|
|
47941
|
+
if (!options.suppressError) throw error;
|
|
47942
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47943
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
47944
|
+
error
|
|
47945
|
+
});
|
|
47946
|
+
return null;
|
|
47947
|
+
}
|
|
46369
47948
|
}
|
|
46370
47949
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
46371
47950
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -46488,10 +48067,19 @@ var Service = class Service extends Object$1 {
|
|
|
46488
48067
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
46489
48068
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
46490
48069
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46491
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46492
|
-
|
|
46493
|
-
|
|
46494
|
-
|
|
48070
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48071
|
+
v = await this.#featuredTags_fromJsonLd(doc, {
|
|
48072
|
+
...options,
|
|
48073
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48074
|
+
});
|
|
48075
|
+
} catch (error) {
|
|
48076
|
+
if (!options.suppressError) throw error;
|
|
48077
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48078
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
48079
|
+
error
|
|
48080
|
+
});
|
|
48081
|
+
return null;
|
|
48082
|
+
}
|
|
46495
48083
|
}
|
|
46496
48084
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
46497
48085
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -46610,10 +48198,20 @@ var Service = class Service extends Object$1 {
|
|
|
46610
48198
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
46611
48199
|
const prop = this._cachedJsonLd["streams"];
|
|
46612
48200
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
46613
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
46614
|
-
|
|
46615
|
-
|
|
46616
|
-
|
|
48201
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
48202
|
+
v = await this.#stream_fromJsonLd(obj, {
|
|
48203
|
+
...options,
|
|
48204
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48205
|
+
});
|
|
48206
|
+
} catch (error) {
|
|
48207
|
+
if (!options.suppressError) throw error;
|
|
48208
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
48209
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
48210
|
+
index: i,
|
|
48211
|
+
error
|
|
48212
|
+
});
|
|
48213
|
+
continue;
|
|
48214
|
+
}
|
|
46617
48215
|
}
|
|
46618
48216
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
46619
48217
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -46822,10 +48420,19 @@ var Service = class Service extends Object$1 {
|
|
|
46822
48420
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
46823
48421
|
const prop = this._cachedJsonLd["movedTo"];
|
|
46824
48422
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46825
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46826
|
-
|
|
46827
|
-
|
|
46828
|
-
|
|
48423
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48424
|
+
v = await this.#successor_fromJsonLd(doc, {
|
|
48425
|
+
...options,
|
|
48426
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48427
|
+
});
|
|
48428
|
+
} catch (error) {
|
|
48429
|
+
if (!options.suppressError) throw error;
|
|
48430
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48431
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
48432
|
+
error
|
|
48433
|
+
});
|
|
48434
|
+
return null;
|
|
48435
|
+
}
|
|
46829
48436
|
}
|
|
46830
48437
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
46831
48438
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -46994,10 +48601,19 @@ var Service = class Service extends Object$1 {
|
|
|
46994
48601
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
46995
48602
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
46996
48603
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
46997
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46998
|
-
|
|
46999
|
-
|
|
47000
|
-
|
|
48604
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48605
|
+
v = await this.#alias_fromJsonLd(doc, {
|
|
48606
|
+
...options,
|
|
48607
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48608
|
+
});
|
|
48609
|
+
} catch (error) {
|
|
48610
|
+
if (!options.suppressError) throw error;
|
|
48611
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48612
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
48613
|
+
error
|
|
48614
|
+
});
|
|
48615
|
+
return null;
|
|
48616
|
+
}
|
|
47001
48617
|
}
|
|
47002
48618
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
47003
48619
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -47041,10 +48657,20 @@ var Service = class Service extends Object$1 {
|
|
|
47041
48657
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
47042
48658
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
47043
48659
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
47044
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
47045
|
-
|
|
47046
|
-
|
|
47047
|
-
|
|
48660
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
48661
|
+
v = await this.#alias_fromJsonLd(obj, {
|
|
48662
|
+
...options,
|
|
48663
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48664
|
+
});
|
|
48665
|
+
} catch (error) {
|
|
48666
|
+
if (!options.suppressError) throw error;
|
|
48667
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
48668
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
48669
|
+
index: i,
|
|
48670
|
+
error
|
|
48671
|
+
});
|
|
48672
|
+
continue;
|
|
48673
|
+
}
|
|
47048
48674
|
}
|
|
47049
48675
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
47050
48676
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -47168,10 +48794,19 @@ var Service = class Service extends Object$1 {
|
|
|
47168
48794
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
47169
48795
|
const prop = this._cachedJsonLd["service"];
|
|
47170
48796
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
47171
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
47172
|
-
|
|
47173
|
-
|
|
47174
|
-
|
|
48797
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
48798
|
+
v = await this.#service_fromJsonLd(doc, {
|
|
48799
|
+
...options,
|
|
48800
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48801
|
+
});
|
|
48802
|
+
} catch (error) {
|
|
48803
|
+
if (!options.suppressError) throw error;
|
|
48804
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
48805
|
+
property: "https://www.w3.org/ns/did#service",
|
|
48806
|
+
error
|
|
48807
|
+
});
|
|
48808
|
+
return null;
|
|
48809
|
+
}
|
|
47175
48810
|
}
|
|
47176
48811
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
47177
48812
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -47215,10 +48850,20 @@ var Service = class Service extends Object$1 {
|
|
|
47215
48850
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
47216
48851
|
const prop = this._cachedJsonLd["service"];
|
|
47217
48852
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
47218
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
47219
|
-
|
|
47220
|
-
|
|
47221
|
-
|
|
48853
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
48854
|
+
v = await this.#service_fromJsonLd(obj, {
|
|
48855
|
+
...options,
|
|
48856
|
+
baseUrl: options.baseUrl ?? this._baseUrl ?? (this.id != null && (this.id.protocol === "http:" || this.id.protocol === "https:") ? this.id : void 0)
|
|
48857
|
+
});
|
|
48858
|
+
} catch (error) {
|
|
48859
|
+
if (!options.suppressError) throw error;
|
|
48860
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
48861
|
+
property: "https://www.w3.org/ns/did#service",
|
|
48862
|
+
index: i,
|
|
48863
|
+
error
|
|
48864
|
+
});
|
|
48865
|
+
continue;
|
|
48866
|
+
}
|
|
47222
48867
|
}
|
|
47223
48868
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
47224
48869
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|