@fedify/fedify 1.0.14 → 1.0.15

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.
Files changed (78) hide show
  1. package/CHANGES.md +13 -0
  2. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
  3. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.js +1 -1
  4. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.js +1 -1
  5. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.js +1 -1
  6. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.js +1 -1
  7. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.js +1 -1
  8. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.js +1 -1
  9. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.js +1 -1
  10. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.js +1 -1
  11. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/repeat.js +1 -1
  12. package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.js +1 -1
  13. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
  14. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.js +1 -1
  15. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.js +1 -1
  16. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.js +1 -1
  17. package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.js +1 -1
  18. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.js +1 -1
  19. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.js +1 -1
  20. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.js +1 -1
  21. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.js +1 -1
  22. package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.js +1 -1
  23. package/esm/federation/collection.js +1 -1
  24. package/esm/federation/handler.js +1 -1
  25. package/esm/runtime/key.js +4 -4
  26. package/esm/sig/http.js +2 -2
  27. package/esm/sig/ld.js +2 -2
  28. package/esm/vocab/vocab.js +377 -252
  29. package/package.json +1 -1
  30. package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
  31. package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
  32. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.d.ts +3 -1
  33. package/types/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
  34. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.d.ts.map +1 -1
  35. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.d.ts.map +1 -1
  36. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.d.ts.map +1 -1
  37. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.d.ts.map +1 -1
  38. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.d.ts.map +1 -1
  39. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.d.ts.map +1 -1
  40. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.d.ts.map +1 -1
  41. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/repeat.d.ts +3 -1
  42. package/types/deps/jsr.io/@std/bytes/1.0.5/repeat.d.ts.map +1 -0
  43. package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.d.ts.map +1 -1
  44. package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
  45. package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
  46. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
  47. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.d.ts +3 -1
  48. package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
  49. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.d.ts +3 -1
  50. package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
  51. package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.d.ts +3 -1
  52. package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  53. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.d.ts.map +1 -1
  54. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.d.ts.map +1 -1
  55. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.d.ts.map +1 -1
  56. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.d.ts.map +1 -1
  57. package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.d.ts.map +1 -1
  58. package/types/vocab/vocab.d.ts +16 -36
  59. package/types/vocab/vocab.d.ts.map +1 -1
  60. package/types/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
  61. package/types/deps/jsr.io/@std/bytes/1.0.4/repeat.d.ts.map +0 -1
  62. package/types/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +0 -1
  63. package/types/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +0 -1
  64. package/types/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
  65. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.d.ts +0 -0
  66. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.d.ts +0 -0
  67. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.d.ts +0 -0
  68. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.d.ts +0 -0
  69. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.d.ts +0 -0
  70. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.d.ts +0 -0
  71. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.d.ts +0 -0
  72. /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.d.ts +0 -0
  73. /package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
  74. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.d.ts +0 -0
  75. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.d.ts +0 -0
  76. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.d.ts +0 -0
  77. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.d.ts +0 -0
  78. /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.d.ts +0 -0
@@ -18,6 +18,7 @@ import { LanguageString } from "../runtime/langstr.js";
18
18
  export class Object {
19
19
  #documentLoader;
20
20
  #contextLoader;
21
+ #cachedJsonLd;
21
22
  id;
22
23
  get _documentLoader() {
23
24
  return this.#documentLoader;
@@ -25,7 +26,12 @@ export class Object {
25
26
  get _contextLoader() {
26
27
  return this.#contextLoader;
27
28
  }
28
- #cachedJsonLd;
29
+ get _cachedJsonLd() {
30
+ return this.#cachedJsonLd;
31
+ }
32
+ set _cachedJsonLd(value) {
33
+ this.#cachedJsonLd = value;
34
+ }
29
35
  /**
30
36
  * The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
31
37
  */
@@ -1341,6 +1347,7 @@ export class Object {
1341
1347
  if (fetched == null)
1342
1348
  continue;
1343
1349
  vs[i] = fetched;
1350
+ this._cachedJsonLd = undefined;
1344
1351
  yield fetched;
1345
1352
  continue;
1346
1353
  }
@@ -1436,6 +1443,7 @@ export class Object {
1436
1443
  if (fetched == null)
1437
1444
  return null;
1438
1445
  this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo[0] = fetched;
1446
+ this._cachedJsonLd = undefined;
1439
1447
  return fetched;
1440
1448
  }
1441
1449
  return v;
@@ -1461,6 +1469,7 @@ export class Object {
1461
1469
  if (fetched == null)
1462
1470
  continue;
1463
1471
  vs[i] = fetched;
1472
+ this._cachedJsonLd = undefined;
1464
1473
  yield fetched;
1465
1474
  continue;
1466
1475
  }
@@ -1519,6 +1528,7 @@ export class Object {
1519
1528
  if (fetched == null)
1520
1529
  return null;
1521
1530
  this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience[0] = fetched;
1531
+ this._cachedJsonLd = undefined;
1522
1532
  return fetched;
1523
1533
  }
1524
1534
  return v;
@@ -1543,6 +1553,7 @@ export class Object {
1543
1553
  if (fetched == null)
1544
1554
  continue;
1545
1555
  vs[i] = fetched;
1556
+ this._cachedJsonLd = undefined;
1546
1557
  yield fetched;
1547
1558
  continue;
1548
1559
  }
@@ -1631,6 +1642,7 @@ export class Object {
1631
1642
  if (fetched == null)
1632
1643
  continue;
1633
1644
  vs[i] = fetched;
1645
+ this._cachedJsonLd = undefined;
1634
1646
  yield fetched;
1635
1647
  continue;
1636
1648
  }
@@ -1719,6 +1731,7 @@ export class Object {
1719
1731
  if (fetched == null)
1720
1732
  continue;
1721
1733
  vs[i] = fetched;
1734
+ this._cachedJsonLd = undefined;
1722
1735
  yield fetched;
1723
1736
  continue;
1724
1737
  }
@@ -1778,6 +1791,7 @@ export class Object {
1778
1791
  if (fetched == null)
1779
1792
  return null;
1780
1793
  this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon[0] = fetched;
1794
+ this._cachedJsonLd = undefined;
1781
1795
  return fetched;
1782
1796
  }
1783
1797
  return v;
@@ -1803,6 +1817,7 @@ export class Object {
1803
1817
  if (fetched == null)
1804
1818
  continue;
1805
1819
  vs[i] = fetched;
1820
+ this._cachedJsonLd = undefined;
1806
1821
  yield fetched;
1807
1822
  continue;
1808
1823
  }
@@ -1862,6 +1877,7 @@ export class Object {
1862
1877
  if (fetched == null)
1863
1878
  return null;
1864
1879
  this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image[0] = fetched;
1880
+ this._cachedJsonLd = undefined;
1865
1881
  return fetched;
1866
1882
  }
1867
1883
  return v;
@@ -1887,6 +1903,7 @@ export class Object {
1887
1903
  if (fetched == null)
1888
1904
  continue;
1889
1905
  vs[i] = fetched;
1906
+ this._cachedJsonLd = undefined;
1890
1907
  yield fetched;
1891
1908
  continue;
1892
1909
  }
@@ -1955,6 +1972,7 @@ export class Object {
1955
1972
  if (fetched == null)
1956
1973
  return null;
1957
1974
  this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo[0] = fetched;
1975
+ this._cachedJsonLd = undefined;
1958
1976
  return fetched;
1959
1977
  }
1960
1978
  return v;
@@ -1979,6 +1997,7 @@ export class Object {
1979
1997
  if (fetched == null)
1980
1998
  continue;
1981
1999
  vs[i] = fetched;
2000
+ this._cachedJsonLd = undefined;
1982
2001
  yield fetched;
1983
2002
  continue;
1984
2003
  }
@@ -2047,6 +2066,7 @@ export class Object {
2047
2066
  if (fetched == null)
2048
2067
  return null;
2049
2068
  this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location[0] = fetched;
2069
+ this._cachedJsonLd = undefined;
2050
2070
  return fetched;
2051
2071
  }
2052
2072
  return v;
@@ -2071,6 +2091,7 @@ export class Object {
2071
2091
  if (fetched == null)
2072
2092
  continue;
2073
2093
  vs[i] = fetched;
2094
+ this._cachedJsonLd = undefined;
2074
2095
  yield fetched;
2075
2096
  continue;
2076
2097
  }
@@ -2138,6 +2159,7 @@ export class Object {
2138
2159
  if (fetched == null)
2139
2160
  return null;
2140
2161
  this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview[0] = fetched;
2162
+ this._cachedJsonLd = undefined;
2141
2163
  return fetched;
2142
2164
  }
2143
2165
  return v;
@@ -2161,6 +2183,7 @@ export class Object {
2161
2183
  if (fetched == null)
2162
2184
  continue;
2163
2185
  vs[i] = fetched;
2186
+ this._cachedJsonLd = undefined;
2164
2187
  yield fetched;
2165
2188
  continue;
2166
2189
  }
@@ -2226,6 +2249,7 @@ export class Object {
2226
2249
  if (fetched == null)
2227
2250
  return null;
2228
2251
  this.#_7UpwM3JWcXhADcscukEehBorf6k_replies[0] = fetched;
2252
+ this._cachedJsonLd = undefined;
2229
2253
  return fetched;
2230
2254
  }
2231
2255
  return v;
@@ -2313,6 +2337,7 @@ export class Object {
2313
2337
  if (fetched == null)
2314
2338
  continue;
2315
2339
  vs[i] = fetched;
2340
+ this._cachedJsonLd = undefined;
2316
2341
  yield fetched;
2317
2342
  continue;
2318
2343
  }
@@ -2390,6 +2415,7 @@ export class Object {
2390
2415
  if (fetched == null)
2391
2416
  return null;
2392
2417
  this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to[0] = fetched;
2418
+ this._cachedJsonLd = undefined;
2393
2419
  return fetched;
2394
2420
  }
2395
2421
  return v;
@@ -2414,6 +2440,7 @@ export class Object {
2414
2440
  if (fetched == null)
2415
2441
  continue;
2416
2442
  vs[i] = fetched;
2443
+ this._cachedJsonLd = undefined;
2417
2444
  yield fetched;
2418
2445
  continue;
2419
2446
  }
@@ -2472,6 +2499,7 @@ export class Object {
2472
2499
  if (fetched == null)
2473
2500
  return null;
2474
2501
  this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto[0] = fetched;
2502
+ this._cachedJsonLd = undefined;
2475
2503
  return fetched;
2476
2504
  }
2477
2505
  return v;
@@ -2496,6 +2524,7 @@ export class Object {
2496
2524
  if (fetched == null)
2497
2525
  continue;
2498
2526
  vs[i] = fetched;
2527
+ this._cachedJsonLd = undefined;
2499
2528
  yield fetched;
2500
2529
  continue;
2501
2530
  }
@@ -2554,6 +2583,7 @@ export class Object {
2554
2583
  if (fetched == null)
2555
2584
  return null;
2556
2585
  this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc[0] = fetched;
2586
+ this._cachedJsonLd = undefined;
2557
2587
  return fetched;
2558
2588
  }
2559
2589
  return v;
@@ -2578,6 +2608,7 @@ export class Object {
2578
2608
  if (fetched == null)
2579
2609
  continue;
2580
2610
  vs[i] = fetched;
2611
+ this._cachedJsonLd = undefined;
2581
2612
  yield fetched;
2582
2613
  continue;
2583
2614
  }
@@ -2636,6 +2667,7 @@ export class Object {
2636
2667
  if (fetched == null)
2637
2668
  return null;
2638
2669
  this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc[0] = fetched;
2670
+ this._cachedJsonLd = undefined;
2639
2671
  return fetched;
2640
2672
  }
2641
2673
  return v;
@@ -2660,6 +2692,7 @@ export class Object {
2660
2692
  if (fetched == null)
2661
2693
  continue;
2662
2694
  vs[i] = fetched;
2695
+ this._cachedJsonLd = undefined;
2663
2696
  yield fetched;
2664
2697
  continue;
2665
2698
  }
@@ -2754,6 +2787,7 @@ export class Object {
2754
2787
  if (fetched == null)
2755
2788
  return null;
2756
2789
  this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof[0] = fetched;
2790
+ this._cachedJsonLd = undefined;
2757
2791
  return fetched;
2758
2792
  }
2759
2793
  return v;
@@ -2777,6 +2811,7 @@ export class Object {
2777
2811
  if (fetched == null)
2778
2812
  continue;
2779
2813
  vs[i] = fetched;
2814
+ this._cachedJsonLd = undefined;
2780
2815
  yield fetched;
2781
2816
  continue;
2782
2817
  }
@@ -2794,8 +2829,8 @@ export class Object {
2794
2829
  * @returns The JSON-LD representation of this object.
2795
2830
  */
2796
2831
  async toJsonLd(options = {}) {
2797
- if (options.format == null && this.#cachedJsonLd != null) {
2798
- return this.#cachedJsonLd;
2832
+ if (options.format == null && this._cachedJsonLd != null) {
2833
+ return this._cachedJsonLd;
2799
2834
  }
2800
2835
  if (options.format !== "compact" && options.context != null) {
2801
2836
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -4956,7 +4991,7 @@ export class Object {
4956
4991
  _42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
4957
4992
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
4958
4993
  try {
4959
- instance.#cachedJsonLd = structuredClone(json);
4994
+ instance._cachedJsonLd = structuredClone(json);
4960
4995
  }
4961
4996
  catch {
4962
4997
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -5423,7 +5458,6 @@ _a = Object;
5423
5458
  /** Represents a custom emoji.
5424
5459
  */
5425
5460
  export class Emoji extends Object {
5426
- #cachedJsonLd;
5427
5461
  /**
5428
5462
  * The type URI of {@link Emoji}: `http://joinmastodon.org/ns#Emoji`.
5429
5463
  */
@@ -5459,8 +5493,8 @@ export class Emoji extends Object {
5459
5493
  * @returns The JSON-LD representation of this object.
5460
5494
  */
5461
5495
  async toJsonLd(options = {}) {
5462
- if (options.format == null && this.#cachedJsonLd != null) {
5463
- return this.#cachedJsonLd;
5496
+ if (options.format == null && this._cachedJsonLd != null) {
5497
+ return this._cachedJsonLd;
5464
5498
  }
5465
5499
  if (options.format !== "compact" && options.context != null) {
5466
5500
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -5574,7 +5608,7 @@ export class Emoji extends Object {
5574
5608
  }
5575
5609
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
5576
5610
  try {
5577
- instance.#cachedJsonLd = structuredClone(json);
5611
+ instance._cachedJsonLd = structuredClone(json);
5578
5612
  }
5579
5613
  catch {
5580
5614
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -5602,7 +5636,6 @@ export class Emoji extends Object {
5602
5636
  * a {@link Create} activity.
5603
5637
  */
5604
5638
  export class ChatMessage extends Object {
5605
- #cachedJsonLd;
5606
5639
  /**
5607
5640
  * The type URI of {@link ChatMessage}: `http://litepub.social/ns#ChatMessage`.
5608
5641
  */
@@ -5677,8 +5710,8 @@ export class ChatMessage extends Object {
5677
5710
  * @returns The JSON-LD representation of this object.
5678
5711
  */
5679
5712
  async toJsonLd(options = {}) {
5680
- if (options.format == null && this.#cachedJsonLd != null) {
5681
- return this.#cachedJsonLd;
5713
+ if (options.format == null && this._cachedJsonLd != null) {
5714
+ return this._cachedJsonLd;
5682
5715
  }
5683
5716
  if (options.format !== "compact" && options.context != null) {
5684
5717
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -5863,7 +5896,7 @@ export class ChatMessage extends Object {
5863
5896
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
5864
5897
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
5865
5898
  try {
5866
- instance.#cachedJsonLd = structuredClone(json);
5899
+ instance._cachedJsonLd = structuredClone(json);
5867
5900
  }
5868
5901
  catch {
5869
5902
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -5901,6 +5934,7 @@ export class ChatMessage extends Object {
5901
5934
  export class PropertyValue {
5902
5935
  #documentLoader;
5903
5936
  #contextLoader;
5937
+ #cachedJsonLd;
5904
5938
  id;
5905
5939
  get _documentLoader() {
5906
5940
  return this.#documentLoader;
@@ -5908,7 +5942,12 @@ export class PropertyValue {
5908
5942
  get _contextLoader() {
5909
5943
  return this.#contextLoader;
5910
5944
  }
5911
- #cachedJsonLd;
5945
+ get _cachedJsonLd() {
5946
+ return this.#cachedJsonLd;
5947
+ }
5948
+ set _cachedJsonLd(value) {
5949
+ this.#cachedJsonLd = value;
5950
+ }
5912
5951
  /**
5913
5952
  * The type URI of {@link PropertyValue}: `http://schema.org#PropertyValue`.
5914
5953
  */
@@ -6014,8 +6053,8 @@ export class PropertyValue {
6014
6053
  * @returns The JSON-LD representation of this object.
6015
6054
  */
6016
6055
  async toJsonLd(options = {}) {
6017
- if (options.format == null && this.#cachedJsonLd != null) {
6018
- return this.#cachedJsonLd;
6056
+ if (options.format == null && this._cachedJsonLd != null) {
6057
+ return this._cachedJsonLd;
6019
6058
  }
6020
6059
  if (options.format !== "compact" && options.context != null) {
6021
6060
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -6207,7 +6246,7 @@ export class PropertyValue {
6207
6246
  _2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
6208
6247
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
6209
6248
  try {
6210
- instance.#cachedJsonLd = structuredClone(json);
6249
+ instance._cachedJsonLd = structuredClone(json);
6211
6250
  }
6212
6251
  catch {
6213
6252
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -6264,6 +6303,7 @@ export class PropertyValue {
6264
6303
  export class DataIntegrityProof {
6265
6304
  #documentLoader;
6266
6305
  #contextLoader;
6306
+ #cachedJsonLd;
6267
6307
  id;
6268
6308
  get _documentLoader() {
6269
6309
  return this.#documentLoader;
@@ -6271,7 +6311,12 @@ export class DataIntegrityProof {
6271
6311
  get _contextLoader() {
6272
6312
  return this.#contextLoader;
6273
6313
  }
6274
- #cachedJsonLd;
6314
+ get _cachedJsonLd() {
6315
+ return this.#cachedJsonLd;
6316
+ }
6317
+ set _cachedJsonLd(value) {
6318
+ this.#cachedJsonLd = value;
6319
+ }
6275
6320
  /**
6276
6321
  * The type URI of {@link DataIntegrityProof}: `https://w3id.org/security#DataIntegrityProof`.
6277
6322
  */
@@ -6501,6 +6546,7 @@ export class DataIntegrityProof {
6501
6546
  if (fetched == null)
6502
6547
  return null;
6503
6548
  this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod[0] = fetched;
6549
+ this._cachedJsonLd = undefined;
6504
6550
  return fetched;
6505
6551
  }
6506
6552
  return v;
@@ -6544,8 +6590,8 @@ export class DataIntegrityProof {
6544
6590
  * @returns The JSON-LD representation of this object.
6545
6591
  */
6546
6592
  async toJsonLd(options = {}) {
6547
- if (options.format == null && this.#cachedJsonLd != null) {
6548
- return this.#cachedJsonLd;
6593
+ if (options.format == null && this._cachedJsonLd != null) {
6594
+ return this._cachedJsonLd;
6549
6595
  }
6550
6596
  if (options.format !== "compact" && options.context != null) {
6551
6597
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -6748,7 +6794,7 @@ export class DataIntegrityProof {
6748
6794
  instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
6749
6795
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
6750
6796
  try {
6751
- instance.#cachedJsonLd = structuredClone(json);
6797
+ instance._cachedJsonLd = structuredClone(json);
6752
6798
  }
6753
6799
  catch {
6754
6800
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -6840,6 +6886,7 @@ export class DataIntegrityProof {
6840
6886
  export class CryptographicKey {
6841
6887
  #documentLoader;
6842
6888
  #contextLoader;
6889
+ #cachedJsonLd;
6843
6890
  id;
6844
6891
  get _documentLoader() {
6845
6892
  return this.#documentLoader;
@@ -6847,7 +6894,12 @@ export class CryptographicKey {
6847
6894
  get _contextLoader() {
6848
6895
  return this.#contextLoader;
6849
6896
  }
6850
- #cachedJsonLd;
6897
+ get _cachedJsonLd() {
6898
+ return this.#cachedJsonLd;
6899
+ }
6900
+ set _cachedJsonLd(value) {
6901
+ this.#cachedJsonLd = value;
6902
+ }
6851
6903
  /**
6852
6904
  * The type URI of {@link CryptographicKey}: `https://w3id.org/security#Key`.
6853
6905
  */
@@ -7023,6 +7075,7 @@ export class CryptographicKey {
7023
7075
  if (fetched == null)
7024
7076
  return null;
7025
7077
  this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner[0] = fetched;
7078
+ this._cachedJsonLd = undefined;
7026
7079
  return fetched;
7027
7080
  }
7028
7081
  return v;
@@ -7046,8 +7099,8 @@ export class CryptographicKey {
7046
7099
  * @returns The JSON-LD representation of this object.
7047
7100
  */
7048
7101
  async toJsonLd(options = {}) {
7049
- if (options.format == null && this.#cachedJsonLd != null) {
7050
- return this.#cachedJsonLd;
7102
+ if (options.format == null && this._cachedJsonLd != null) {
7103
+ return this._cachedJsonLd;
7051
7104
  }
7052
7105
  if (options.format !== "compact" && options.context != null) {
7053
7106
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -7263,7 +7316,7 @@ export class CryptographicKey {
7263
7316
  _2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
7264
7317
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
7265
7318
  try {
7266
- instance.#cachedJsonLd = structuredClone(json);
7319
+ instance._cachedJsonLd = structuredClone(json);
7267
7320
  }
7268
7321
  catch {
7269
7322
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -7322,6 +7375,7 @@ export class CryptographicKey {
7322
7375
  export class Multikey {
7323
7376
  #documentLoader;
7324
7377
  #contextLoader;
7378
+ #cachedJsonLd;
7325
7379
  id;
7326
7380
  get _documentLoader() {
7327
7381
  return this.#documentLoader;
@@ -7329,7 +7383,12 @@ export class Multikey {
7329
7383
  get _contextLoader() {
7330
7384
  return this.#contextLoader;
7331
7385
  }
7332
- #cachedJsonLd;
7386
+ get _cachedJsonLd() {
7387
+ return this.#cachedJsonLd;
7388
+ }
7389
+ set _cachedJsonLd(value) {
7390
+ this.#cachedJsonLd = value;
7391
+ }
7333
7392
  /**
7334
7393
  * The type URI of {@link Multikey}: `https://w3id.org/security#Multikey`.
7335
7394
  */
@@ -7511,6 +7570,7 @@ export class Multikey {
7511
7570
  if (fetched == null)
7512
7571
  return null;
7513
7572
  this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller[0] = fetched;
7573
+ this._cachedJsonLd = undefined;
7514
7574
  return fetched;
7515
7575
  }
7516
7576
  return v;
@@ -7537,8 +7597,8 @@ export class Multikey {
7537
7597
  * @returns The JSON-LD representation of this object.
7538
7598
  */
7539
7599
  async toJsonLd(options = {}) {
7540
- if (options.format == null && this.#cachedJsonLd != null) {
7541
- return this.#cachedJsonLd;
7600
+ if (options.format == null && this._cachedJsonLd != null) {
7601
+ return this._cachedJsonLd;
7542
7602
  }
7543
7603
  if (options.format !== "compact" && options.context != null) {
7544
7604
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -7759,7 +7819,7 @@ export class Multikey {
7759
7819
  _4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
7760
7820
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
7761
7821
  try {
7762
- instance.#cachedJsonLd = structuredClone(json);
7822
+ instance._cachedJsonLd = structuredClone(json);
7763
7823
  }
7764
7824
  catch {
7765
7825
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -7817,7 +7877,6 @@ export class Multikey {
7817
7877
  * does not carry any specific semantics about the kind of action being taken.
7818
7878
  */
7819
7879
  export class Activity extends Object {
7820
- #cachedJsonLd;
7821
7880
  /**
7822
7881
  * The type URI of {@link Activity}: `https://www.w3.org/ns/activitystreams#Activity`.
7823
7882
  */
@@ -8269,6 +8328,7 @@ export class Activity extends Object {
8269
8328
  if (fetched == null)
8270
8329
  return null;
8271
8330
  this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor[0] = fetched;
8331
+ this._cachedJsonLd = undefined;
8272
8332
  return fetched;
8273
8333
  }
8274
8334
  return v;
@@ -8294,6 +8354,7 @@ export class Activity extends Object {
8294
8354
  if (fetched == null)
8295
8355
  continue;
8296
8356
  vs[i] = fetched;
8357
+ this._cachedJsonLd = undefined;
8297
8358
  yield fetched;
8298
8359
  continue;
8299
8360
  }
@@ -8353,6 +8414,7 @@ export class Activity extends Object {
8353
8414
  if (fetched == null)
8354
8415
  return null;
8355
8416
  this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object[0] = fetched;
8417
+ this._cachedJsonLd = undefined;
8356
8418
  return fetched;
8357
8419
  }
8358
8420
  return v;
@@ -8378,6 +8440,7 @@ export class Activity extends Object {
8378
8440
  if (fetched == null)
8379
8441
  continue;
8380
8442
  vs[i] = fetched;
8443
+ this._cachedJsonLd = undefined;
8381
8444
  yield fetched;
8382
8445
  continue;
8383
8446
  }
@@ -8440,6 +8503,7 @@ export class Activity extends Object {
8440
8503
  if (fetched == null)
8441
8504
  return null;
8442
8505
  this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target[0] = fetched;
8506
+ this._cachedJsonLd = undefined;
8443
8507
  return fetched;
8444
8508
  }
8445
8509
  return v;
@@ -8468,6 +8532,7 @@ export class Activity extends Object {
8468
8532
  if (fetched == null)
8469
8533
  continue;
8470
8534
  vs[i] = fetched;
8535
+ this._cachedJsonLd = undefined;
8471
8536
  yield fetched;
8472
8537
  continue;
8473
8538
  }
@@ -8527,6 +8592,7 @@ export class Activity extends Object {
8527
8592
  if (fetched == null)
8528
8593
  return null;
8529
8594
  this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result[0] = fetched;
8595
+ this._cachedJsonLd = undefined;
8530
8596
  return fetched;
8531
8597
  }
8532
8598
  return v;
@@ -8552,6 +8618,7 @@ export class Activity extends Object {
8552
8618
  if (fetched == null)
8553
8619
  continue;
8554
8620
  vs[i] = fetched;
8621
+ this._cachedJsonLd = undefined;
8555
8622
  yield fetched;
8556
8623
  continue;
8557
8624
  }
@@ -8612,6 +8679,7 @@ export class Activity extends Object {
8612
8679
  if (fetched == null)
8613
8680
  return null;
8614
8681
  this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin[0] = fetched;
8682
+ this._cachedJsonLd = undefined;
8615
8683
  return fetched;
8616
8684
  }
8617
8685
  return v;
@@ -8638,6 +8706,7 @@ export class Activity extends Object {
8638
8706
  if (fetched == null)
8639
8707
  continue;
8640
8708
  vs[i] = fetched;
8709
+ this._cachedJsonLd = undefined;
8641
8710
  yield fetched;
8642
8711
  continue;
8643
8712
  }
@@ -8696,6 +8765,7 @@ export class Activity extends Object {
8696
8765
  if (fetched == null)
8697
8766
  return null;
8698
8767
  this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument[0] = fetched;
8768
+ this._cachedJsonLd = undefined;
8699
8769
  return fetched;
8700
8770
  }
8701
8771
  return v;
@@ -8720,6 +8790,7 @@ export class Activity extends Object {
8720
8790
  if (fetched == null)
8721
8791
  continue;
8722
8792
  vs[i] = fetched;
8793
+ this._cachedJsonLd = undefined;
8723
8794
  yield fetched;
8724
8795
  continue;
8725
8796
  }
@@ -8737,8 +8808,8 @@ export class Activity extends Object {
8737
8808
  * @returns The JSON-LD representation of this object.
8738
8809
  */
8739
8810
  async toJsonLd(options = {}) {
8740
- if (options.format == null && this.#cachedJsonLd != null) {
8741
- return this.#cachedJsonLd;
8811
+ if (options.format == null && this._cachedJsonLd != null) {
8812
+ return this._cachedJsonLd;
8742
8813
  }
8743
8814
  if (options.format !== "compact" && options.context != null) {
8744
8815
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -9147,7 +9218,7 @@ export class Activity extends Object {
9147
9218
  _3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
9148
9219
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
9149
9220
  try {
9150
- instance.#cachedJsonLd = structuredClone(json);
9221
+ instance._cachedJsonLd = structuredClone(json);
9151
9222
  }
9152
9223
  catch {
9153
9224
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9275,7 +9346,6 @@ export class Activity extends Object {
9275
9346
  * has been accepted.
9276
9347
  */
9277
9348
  export class Accept extends Activity {
9278
- #cachedJsonLd;
9279
9349
  /**
9280
9350
  * The type URI of {@link Accept}: `https://www.w3.org/ns/activitystreams#Accept`.
9281
9351
  */
@@ -9311,8 +9381,8 @@ export class Accept extends Activity {
9311
9381
  * @returns The JSON-LD representation of this object.
9312
9382
  */
9313
9383
  async toJsonLd(options = {}) {
9314
- if (options.format == null && this.#cachedJsonLd != null) {
9315
- return this.#cachedJsonLd;
9384
+ if (options.format == null && this._cachedJsonLd != null) {
9385
+ return this._cachedJsonLd;
9316
9386
  }
9317
9387
  if (options.format !== "compact" && options.context != null) {
9318
9388
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -9413,7 +9483,7 @@ export class Accept extends Activity {
9413
9483
  }
9414
9484
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
9415
9485
  try {
9416
- instance.#cachedJsonLd = structuredClone(json);
9486
+ instance._cachedJsonLd = structuredClone(json);
9417
9487
  }
9418
9488
  catch {
9419
9489
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9440,7 +9510,6 @@ export class Accept extends Activity {
9440
9510
  * the context from which the `object` originated.
9441
9511
  */
9442
9512
  export class Add extends Activity {
9443
- #cachedJsonLd;
9444
9513
  /**
9445
9514
  * The type URI of {@link Add}: `https://www.w3.org/ns/activitystreams#Add`.
9446
9515
  */
@@ -9476,8 +9545,8 @@ export class Add extends Activity {
9476
9545
  * @returns The JSON-LD representation of this object.
9477
9546
  */
9478
9547
  async toJsonLd(options = {}) {
9479
- if (options.format == null && this.#cachedJsonLd != null) {
9480
- return this.#cachedJsonLd;
9548
+ if (options.format == null && this._cachedJsonLd != null) {
9549
+ return this._cachedJsonLd;
9481
9550
  }
9482
9551
  if (options.format !== "compact" && options.context != null) {
9483
9552
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -9575,7 +9644,7 @@ export class Add extends Activity {
9575
9644
  }
9576
9645
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
9577
9646
  try {
9578
- instance.#cachedJsonLd = structuredClone(json);
9647
+ instance._cachedJsonLd = structuredClone(json);
9579
9648
  }
9580
9649
  catch {
9581
9650
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9601,7 +9670,6 @@ export class Add extends Activity {
9601
9670
  * The `origin` typically has no defined meaning.
9602
9671
  */
9603
9672
  export class Announce extends Activity {
9604
- #cachedJsonLd;
9605
9673
  /**
9606
9674
  * The type URI of {@link Announce}: `https://www.w3.org/ns/activitystreams#Announce`.
9607
9675
  */
@@ -9637,8 +9705,8 @@ export class Announce extends Activity {
9637
9705
  * @returns The JSON-LD representation of this object.
9638
9706
  */
9639
9707
  async toJsonLd(options = {}) {
9640
- if (options.format == null && this.#cachedJsonLd != null) {
9641
- return this.#cachedJsonLd;
9708
+ if (options.format == null && this._cachedJsonLd != null) {
9709
+ return this._cachedJsonLd;
9642
9710
  }
9643
9711
  if (options.format !== "compact" && options.context != null) {
9644
9712
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -9748,7 +9816,7 @@ export class Announce extends Activity {
9748
9816
  }
9749
9817
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
9750
9818
  try {
9751
- instance.#cachedJsonLd = structuredClone(json);
9819
+ instance._cachedJsonLd = structuredClone(json);
9752
9820
  }
9753
9821
  catch {
9754
9822
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -9772,7 +9840,6 @@ export class Announce extends Activity {
9772
9840
  /** Describes a software application.
9773
9841
  */
9774
9842
  export class Application extends Object {
9775
- #cachedJsonLd;
9776
9843
  /**
9777
9844
  * The type URI of {@link Application}: `https://www.w3.org/ns/activitystreams#Application`.
9778
9845
  */
@@ -10484,6 +10551,7 @@ export class Application extends Object {
10484
10551
  if (fetched == null)
10485
10552
  return null;
10486
10553
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
10554
+ this._cachedJsonLd = undefined;
10487
10555
  return fetched;
10488
10556
  }
10489
10557
  return v;
@@ -10507,6 +10575,7 @@ export class Application extends Object {
10507
10575
  if (fetched == null)
10508
10576
  continue;
10509
10577
  vs[i] = fetched;
10578
+ this._cachedJsonLd = undefined;
10510
10579
  yield fetched;
10511
10580
  continue;
10512
10581
  }
@@ -10569,6 +10638,7 @@ export class Application extends Object {
10569
10638
  if (fetched == null)
10570
10639
  return null;
10571
10640
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
10641
+ this._cachedJsonLd = undefined;
10572
10642
  return fetched;
10573
10643
  }
10574
10644
  return v;
@@ -10595,6 +10665,7 @@ export class Application extends Object {
10595
10665
  if (fetched == null)
10596
10666
  continue;
10597
10667
  vs[i] = fetched;
10668
+ this._cachedJsonLd = undefined;
10598
10669
  yield fetched;
10599
10670
  continue;
10600
10671
  }
@@ -10686,6 +10757,7 @@ export class Application extends Object {
10686
10757
  if (fetched == null)
10687
10758
  return null;
10688
10759
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
10760
+ this._cachedJsonLd = undefined;
10689
10761
  return fetched;
10690
10762
  }
10691
10763
  return v;
@@ -10760,6 +10832,7 @@ export class Application extends Object {
10760
10832
  if (fetched == null)
10761
10833
  return null;
10762
10834
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
10835
+ this._cachedJsonLd = undefined;
10763
10836
  return fetched;
10764
10837
  }
10765
10838
  return v;
@@ -10819,6 +10892,7 @@ export class Application extends Object {
10819
10892
  if (fetched == null)
10820
10893
  return null;
10821
10894
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
10895
+ this._cachedJsonLd = undefined;
10822
10896
  return fetched;
10823
10897
  }
10824
10898
  return v;
@@ -10881,6 +10955,7 @@ export class Application extends Object {
10881
10955
  if (fetched == null)
10882
10956
  return null;
10883
10957
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
10958
+ this._cachedJsonLd = undefined;
10884
10959
  return fetched;
10885
10960
  }
10886
10961
  return v;
@@ -10941,6 +11016,7 @@ export class Application extends Object {
10941
11016
  if (fetched == null)
10942
11017
  return null;
10943
11018
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
11019
+ this._cachedJsonLd = undefined;
10944
11020
  return fetched;
10945
11021
  }
10946
11022
  return v;
@@ -10999,6 +11075,7 @@ export class Application extends Object {
10999
11075
  if (fetched == null)
11000
11076
  return null;
11001
11077
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
11078
+ this._cachedJsonLd = undefined;
11002
11079
  return fetched;
11003
11080
  }
11004
11081
  return v;
@@ -11059,6 +11136,7 @@ export class Application extends Object {
11059
11136
  if (fetched == null)
11060
11137
  return null;
11061
11138
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
11139
+ this._cachedJsonLd = undefined;
11062
11140
  return fetched;
11063
11141
  }
11064
11142
  return v;
@@ -11109,6 +11187,7 @@ export class Application extends Object {
11109
11187
  if (fetched == null)
11110
11188
  continue;
11111
11189
  vs[i] = fetched;
11190
+ this._cachedJsonLd = undefined;
11112
11191
  yield fetched;
11113
11192
  continue;
11114
11193
  }
@@ -11245,6 +11324,7 @@ export class Application extends Object {
11245
11324
  if (fetched == null)
11246
11325
  return null;
11247
11326
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
11327
+ this._cachedJsonLd = undefined;
11248
11328
  return fetched;
11249
11329
  }
11250
11330
  return v;
@@ -11271,6 +11351,7 @@ export class Application extends Object {
11271
11351
  if (fetched == null)
11272
11352
  continue;
11273
11353
  vs[i] = fetched;
11354
+ this._cachedJsonLd = undefined;
11274
11355
  yield fetched;
11275
11356
  continue;
11276
11357
  }
@@ -11298,8 +11379,8 @@ export class Application extends Object {
11298
11379
  * @returns The JSON-LD representation of this object.
11299
11380
  */
11300
11381
  async toJsonLd(options = {}) {
11301
- if (options.format == null && this.#cachedJsonLd != null) {
11302
- return this.#cachedJsonLd;
11382
+ if (options.format == null && this._cachedJsonLd != null) {
11383
+ return this._cachedJsonLd;
11303
11384
  }
11304
11385
  if (options.format !== "compact" && options.context != null) {
11305
11386
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -12346,7 +12427,7 @@ export class Application extends Object {
12346
12427
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
12347
12428
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
12348
12429
  try {
12349
- instance.#cachedJsonLd = structuredClone(json);
12430
+ instance._cachedJsonLd = structuredClone(json);
12350
12431
  }
12351
12432
  catch {
12352
12433
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -12626,7 +12707,6 @@ _b = Application;
12626
12707
  * inappropriate for these activities.
12627
12708
  */
12628
12709
  export class IntransitiveActivity extends Activity {
12629
- #cachedJsonLd;
12630
12710
  /**
12631
12711
  * The type URI of {@link IntransitiveActivity}: `https://www.w3.org/ns/activitystreams#IntransitiveActivity`.
12632
12712
  */
@@ -12662,8 +12742,8 @@ export class IntransitiveActivity extends Activity {
12662
12742
  * @returns The JSON-LD representation of this object.
12663
12743
  */
12664
12744
  async toJsonLd(options = {}) {
12665
- if (options.format == null && this.#cachedJsonLd != null) {
12666
- return this.#cachedJsonLd;
12745
+ if (options.format == null && this._cachedJsonLd != null) {
12746
+ return this._cachedJsonLd;
12667
12747
  }
12668
12748
  if (options.format !== "compact" && options.context != null) {
12669
12749
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -12772,7 +12852,7 @@ export class IntransitiveActivity extends Activity {
12772
12852
  }
12773
12853
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
12774
12854
  try {
12775
- instance.#cachedJsonLd = structuredClone(json);
12855
+ instance._cachedJsonLd = structuredClone(json);
12776
12856
  }
12777
12857
  catch {
12778
12858
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -12798,7 +12878,6 @@ export class IntransitiveActivity extends Activity {
12798
12878
  * The `target` typically has no defined meaning.
12799
12879
  */
12800
12880
  export class Arrive extends IntransitiveActivity {
12801
- #cachedJsonLd;
12802
12881
  /**
12803
12882
  * The type URI of {@link Arrive}: `https://www.w3.org/ns/activitystreams#Arrive`.
12804
12883
  */
@@ -12834,8 +12913,8 @@ export class Arrive extends IntransitiveActivity {
12834
12913
  * @returns The JSON-LD representation of this object.
12835
12914
  */
12836
12915
  async toJsonLd(options = {}) {
12837
- if (options.format == null && this.#cachedJsonLd != null) {
12838
- return this.#cachedJsonLd;
12916
+ if (options.format == null && this._cachedJsonLd != null) {
12917
+ return this._cachedJsonLd;
12839
12918
  }
12840
12919
  if (options.format !== "compact" && options.context != null) {
12841
12920
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -12933,7 +13012,7 @@ export class Arrive extends IntransitiveActivity {
12933
13012
  }
12934
13013
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
12935
13014
  try {
12936
- instance.#cachedJsonLd = structuredClone(json);
13015
+ instance._cachedJsonLd = structuredClone(json);
12937
13016
  }
12938
13017
  catch {
12939
13018
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -12957,7 +13036,6 @@ export class Arrive extends IntransitiveActivity {
12957
13036
  /** Represents any kind of multi-paragraph written work.
12958
13037
  */
12959
13038
  export class Article extends Object {
12960
- #cachedJsonLd;
12961
13039
  /**
12962
13040
  * The type URI of {@link Article}: `https://www.w3.org/ns/activitystreams#Article`.
12963
13041
  */
@@ -13032,8 +13110,8 @@ export class Article extends Object {
13032
13110
  * @returns The JSON-LD representation of this object.
13033
13111
  */
13034
13112
  async toJsonLd(options = {}) {
13035
- if (options.format == null && this.#cachedJsonLd != null) {
13036
- return this.#cachedJsonLd;
13113
+ if (options.format == null && this._cachedJsonLd != null) {
13114
+ return this._cachedJsonLd;
13037
13115
  }
13038
13116
  if (options.format !== "compact" && options.context != null) {
13039
13117
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -13220,7 +13298,7 @@ export class Article extends Object {
13220
13298
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
13221
13299
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
13222
13300
  try {
13223
- instance.#cachedJsonLd = structuredClone(json);
13301
+ instance._cachedJsonLd = structuredClone(json);
13224
13302
  }
13225
13303
  catch {
13226
13304
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13256,7 +13334,6 @@ export class Article extends Object {
13256
13334
  /** Represents a document of any kind.
13257
13335
  */
13258
13336
  export class Document extends Object {
13259
- #cachedJsonLd;
13260
13337
  /**
13261
13338
  * The type URI of {@link Document}: `https://www.w3.org/ns/activitystreams#Document`.
13262
13339
  */
@@ -13358,8 +13435,8 @@ export class Document extends Object {
13358
13435
  * @returns The JSON-LD representation of this object.
13359
13436
  */
13360
13437
  async toJsonLd(options = {}) {
13361
- if (options.format == null && this.#cachedJsonLd != null) {
13362
- return this.#cachedJsonLd;
13438
+ if (options.format == null && this._cachedJsonLd != null) {
13439
+ return this._cachedJsonLd;
13363
13440
  }
13364
13441
  if (options.format !== "compact" && options.context != null) {
13365
13442
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -13557,7 +13634,7 @@ export class Document extends Object {
13557
13634
  _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
13558
13635
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
13559
13636
  try {
13560
- instance.#cachedJsonLd = structuredClone(json);
13637
+ instance._cachedJsonLd = structuredClone(json);
13561
13638
  }
13562
13639
  catch {
13563
13640
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13605,7 +13682,6 @@ export class Document extends Object {
13605
13682
  /** Represents an audio document of any kind.
13606
13683
  */
13607
13684
  export class Audio extends Document {
13608
- #cachedJsonLd;
13609
13685
  /**
13610
13686
  * The type URI of {@link Audio}: `https://www.w3.org/ns/activitystreams#Audio`.
13611
13687
  */
@@ -13641,8 +13717,8 @@ export class Audio extends Document {
13641
13717
  * @returns The JSON-LD representation of this object.
13642
13718
  */
13643
13719
  async toJsonLd(options = {}) {
13644
- if (options.format == null && this.#cachedJsonLd != null) {
13645
- return this.#cachedJsonLd;
13720
+ if (options.format == null && this._cachedJsonLd != null) {
13721
+ return this._cachedJsonLd;
13646
13722
  }
13647
13723
  if (options.format !== "compact" && options.context != null) {
13648
13724
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -13756,7 +13832,7 @@ export class Audio extends Document {
13756
13832
  }
13757
13833
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
13758
13834
  try {
13759
- instance.#cachedJsonLd = structuredClone(json);
13835
+ instance._cachedJsonLd = structuredClone(json);
13760
13836
  }
13761
13837
  catch {
13762
13838
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13781,7 +13857,6 @@ export class Audio extends Document {
13781
13857
  * `origin` typically have no defined meaning.
13782
13858
  */
13783
13859
  export class Ignore extends Activity {
13784
- #cachedJsonLd;
13785
13860
  /**
13786
13861
  * The type URI of {@link Ignore}: `https://www.w3.org/ns/activitystreams#Ignore`.
13787
13862
  */
@@ -13817,8 +13892,8 @@ export class Ignore extends Activity {
13817
13892
  * @returns The JSON-LD representation of this object.
13818
13893
  */
13819
13894
  async toJsonLd(options = {}) {
13820
- if (options.format == null && this.#cachedJsonLd != null) {
13821
- return this.#cachedJsonLd;
13895
+ if (options.format == null && this._cachedJsonLd != null) {
13896
+ return this._cachedJsonLd;
13822
13897
  }
13823
13898
  if (options.format !== "compact" && options.context != null) {
13824
13899
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -13919,7 +13994,7 @@ export class Ignore extends Activity {
13919
13994
  }
13920
13995
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
13921
13996
  try {
13922
- instance.#cachedJsonLd = structuredClone(json);
13997
+ instance._cachedJsonLd = structuredClone(json);
13923
13998
  }
13924
13999
  catch {
13925
14000
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -13946,7 +14021,6 @@ export class Ignore extends Activity {
13946
14021
  * and `origin` typically have no defined meaning.
13947
14022
  */
13948
14023
  export class Block extends Ignore {
13949
- #cachedJsonLd;
13950
14024
  /**
13951
14025
  * The type URI of {@link Block}: `https://www.w3.org/ns/activitystreams#Block`.
13952
14026
  */
@@ -13982,8 +14056,8 @@ export class Block extends Ignore {
13982
14056
  * @returns The JSON-LD representation of this object.
13983
14057
  */
13984
14058
  async toJsonLd(options = {}) {
13985
- if (options.format == null && this.#cachedJsonLd != null) {
13986
- return this.#cachedJsonLd;
14059
+ if (options.format == null && this._cachedJsonLd != null) {
14060
+ return this._cachedJsonLd;
13987
14061
  }
13988
14062
  if (options.format !== "compact" && options.context != null) {
13989
14063
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -14081,7 +14155,7 @@ export class Block extends Ignore {
14081
14155
  }
14082
14156
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
14083
14157
  try {
14084
- instance.#cachedJsonLd = structuredClone(json);
14158
+ instance._cachedJsonLd = structuredClone(json);
14085
14159
  }
14086
14160
  catch {
14087
14161
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -14109,7 +14183,6 @@ export class Block extends Ignore {
14109
14183
  * description of the Collection type.
14110
14184
  */
14111
14185
  export class Collection extends Object {
14112
- #cachedJsonLd;
14113
14186
  /**
14114
14187
  * The type URI of {@link Collection}: `https://www.w3.org/ns/activitystreams#Collection`.
14115
14188
  */
@@ -14316,6 +14389,7 @@ export class Collection extends Object {
14316
14389
  if (fetched == null)
14317
14390
  return null;
14318
14391
  this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current[0] = fetched;
14392
+ this._cachedJsonLd = undefined;
14319
14393
  return fetched;
14320
14394
  }
14321
14395
  return v;
@@ -14372,6 +14446,7 @@ export class Collection extends Object {
14372
14446
  if (fetched == null)
14373
14447
  return null;
14374
14448
  this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first[0] = fetched;
14449
+ this._cachedJsonLd = undefined;
14375
14450
  return fetched;
14376
14451
  }
14377
14452
  return v;
@@ -14428,6 +14503,7 @@ export class Collection extends Object {
14428
14503
  if (fetched == null)
14429
14504
  return null;
14430
14505
  this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last[0] = fetched;
14506
+ this._cachedJsonLd = undefined;
14431
14507
  return fetched;
14432
14508
  }
14433
14509
  return v;
@@ -14489,6 +14565,7 @@ export class Collection extends Object {
14489
14565
  if (fetched == null)
14490
14566
  continue;
14491
14567
  vs[i] = fetched;
14568
+ this._cachedJsonLd = undefined;
14492
14569
  yield fetched;
14493
14570
  continue;
14494
14571
  }
@@ -14506,8 +14583,8 @@ export class Collection extends Object {
14506
14583
  * @returns The JSON-LD representation of this object.
14507
14584
  */
14508
14585
  async toJsonLd(options = {}) {
14509
- if (options.format == null && this.#cachedJsonLd != null) {
14510
- return this.#cachedJsonLd;
14586
+ if (options.format == null && this._cachedJsonLd != null) {
14587
+ return this._cachedJsonLd;
14511
14588
  }
14512
14589
  if (options.format !== "compact" && options.context != null) {
14513
14590
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -14942,7 +15019,7 @@ export class Collection extends Object {
14942
15019
  _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
14943
15020
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
14944
15021
  try {
14945
- instance.#cachedJsonLd = structuredClone(json);
15022
+ instance._cachedJsonLd = structuredClone(json);
14946
15023
  }
14947
15024
  catch {
14948
15025
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15030,7 +15107,6 @@ export class Collection extends Object {
15030
15107
  * the `CollectionPage` object.
15031
15108
  */
15032
15109
  export class CollectionPage extends Collection {
15033
- #cachedJsonLd;
15034
15110
  /**
15035
15111
  * The type URI of {@link CollectionPage}: `https://www.w3.org/ns/activitystreams#CollectionPage`.
15036
15112
  */
@@ -15176,6 +15252,7 @@ export class CollectionPage extends Collection {
15176
15252
  if (fetched == null)
15177
15253
  return null;
15178
15254
  this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf[0] = fetched;
15255
+ this._cachedJsonLd = undefined;
15179
15256
  return fetched;
15180
15257
  }
15181
15258
  return v;
@@ -15231,6 +15308,7 @@ export class CollectionPage extends Collection {
15231
15308
  if (fetched == null)
15232
15309
  return null;
15233
15310
  this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next[0] = fetched;
15311
+ this._cachedJsonLd = undefined;
15234
15312
  return fetched;
15235
15313
  }
15236
15314
  return v;
@@ -15286,6 +15364,7 @@ export class CollectionPage extends Collection {
15286
15364
  if (fetched == null)
15287
15365
  return null;
15288
15366
  this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev[0] = fetched;
15367
+ this._cachedJsonLd = undefined;
15289
15368
  return fetched;
15290
15369
  }
15291
15370
  return v;
@@ -15301,8 +15380,8 @@ export class CollectionPage extends Collection {
15301
15380
  * @returns The JSON-LD representation of this object.
15302
15381
  */
15303
15382
  async toJsonLd(options = {}) {
15304
- if (options.format == null && this.#cachedJsonLd != null) {
15305
- return this.#cachedJsonLd;
15383
+ if (options.format == null && this._cachedJsonLd != null) {
15384
+ return this._cachedJsonLd;
15306
15385
  }
15307
15386
  if (options.format !== "compact" && options.context != null) {
15308
15387
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -15569,7 +15648,7 @@ export class CollectionPage extends Collection {
15569
15648
  _3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
15570
15649
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
15571
15650
  try {
15572
- instance.#cachedJsonLd = structuredClone(json);
15651
+ instance._cachedJsonLd = structuredClone(json);
15573
15652
  }
15574
15653
  catch {
15575
15654
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15630,7 +15709,6 @@ _c = CollectionPage;
15630
15709
  /** Indicates that the `actor` has created the `object`.
15631
15710
  */
15632
15711
  export class Create extends Activity {
15633
- #cachedJsonLd;
15634
15712
  /**
15635
15713
  * The type URI of {@link Create}: `https://www.w3.org/ns/activitystreams#Create`.
15636
15714
  */
@@ -15666,8 +15744,8 @@ export class Create extends Activity {
15666
15744
  * @returns The JSON-LD representation of this object.
15667
15745
  */
15668
15746
  async toJsonLd(options = {}) {
15669
- if (options.format == null && this.#cachedJsonLd != null) {
15670
- return this.#cachedJsonLd;
15747
+ if (options.format == null && this._cachedJsonLd != null) {
15748
+ return this._cachedJsonLd;
15671
15749
  }
15672
15750
  if (options.format !== "compact" && options.context != null) {
15673
15751
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -15778,7 +15856,7 @@ export class Create extends Activity {
15778
15856
  }
15779
15857
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
15780
15858
  try {
15781
- instance.#cachedJsonLd = structuredClone(json);
15859
+ instance._cachedJsonLd = structuredClone(json);
15782
15860
  }
15783
15861
  catch {
15784
15862
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15803,7 +15881,6 @@ export class Create extends Activity {
15803
15881
  * the `origin` indicates the context from which the `object` was deleted.
15804
15882
  */
15805
15883
  export class Delete extends Activity {
15806
- #cachedJsonLd;
15807
15884
  /**
15808
15885
  * The type URI of {@link Delete}: `https://www.w3.org/ns/activitystreams#Delete`.
15809
15886
  */
@@ -15839,8 +15916,8 @@ export class Delete extends Activity {
15839
15916
  * @returns The JSON-LD representation of this object.
15840
15917
  */
15841
15918
  async toJsonLd(options = {}) {
15842
- if (options.format == null && this.#cachedJsonLd != null) {
15843
- return this.#cachedJsonLd;
15919
+ if (options.format == null && this._cachedJsonLd != null) {
15920
+ return this._cachedJsonLd;
15844
15921
  }
15845
15922
  if (options.format !== "compact" && options.context != null) {
15846
15923
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -15951,7 +16028,7 @@ export class Delete extends Activity {
15951
16028
  }
15952
16029
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
15953
16030
  try {
15954
- instance.#cachedJsonLd = structuredClone(json);
16031
+ instance._cachedJsonLd = structuredClone(json);
15955
16032
  }
15956
16033
  catch {
15957
16034
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -15975,7 +16052,6 @@ export class Delete extends Activity {
15975
16052
  /** Indicates that the `actor` dislikes the `object`.
15976
16053
  */
15977
16054
  export class Dislike extends Activity {
15978
- #cachedJsonLd;
15979
16055
  /**
15980
16056
  * The type URI of {@link Dislike}: `https://www.w3.org/ns/activitystreams#Dislike`.
15981
16057
  */
@@ -16011,8 +16087,8 @@ export class Dislike extends Activity {
16011
16087
  * @returns The JSON-LD representation of this object.
16012
16088
  */
16013
16089
  async toJsonLd(options = {}) {
16014
- if (options.format == null && this.#cachedJsonLd != null) {
16015
- return this.#cachedJsonLd;
16090
+ if (options.format == null && this._cachedJsonLd != null) {
16091
+ return this._cachedJsonLd;
16016
16092
  }
16017
16093
  if (options.format !== "compact" && options.context != null) {
16018
16094
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -16110,7 +16186,7 @@ export class Dislike extends Activity {
16110
16186
  }
16111
16187
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
16112
16188
  try {
16113
- instance.#cachedJsonLd = structuredClone(json);
16189
+ instance._cachedJsonLd = structuredClone(json);
16114
16190
  }
16115
16191
  catch {
16116
16192
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16136,6 +16212,7 @@ export class Dislike extends Activity {
16136
16212
  export class Endpoints {
16137
16213
  #documentLoader;
16138
16214
  #contextLoader;
16215
+ #cachedJsonLd;
16139
16216
  id;
16140
16217
  get _documentLoader() {
16141
16218
  return this.#documentLoader;
@@ -16143,7 +16220,12 @@ export class Endpoints {
16143
16220
  get _contextLoader() {
16144
16221
  return this.#contextLoader;
16145
16222
  }
16146
- #cachedJsonLd;
16223
+ get _cachedJsonLd() {
16224
+ return this.#cachedJsonLd;
16225
+ }
16226
+ set _cachedJsonLd(value) {
16227
+ this.#cachedJsonLd = value;
16228
+ }
16147
16229
  /**
16148
16230
  * The type URI of {@link Endpoints}: `https://www.w3.org/ns/activitystreams#Endpoints`.
16149
16231
  */
@@ -16411,8 +16493,8 @@ export class Endpoints {
16411
16493
  * @returns The JSON-LD representation of this object.
16412
16494
  */
16413
16495
  async toJsonLd(options = {}) {
16414
- if (options.format == null && this.#cachedJsonLd != null) {
16415
- return this.#cachedJsonLd;
16496
+ if (options.format == null && this._cachedJsonLd != null) {
16497
+ return this._cachedJsonLd;
16416
16498
  }
16417
16499
  if (options.format !== "compact" && options.context != null) {
16418
16500
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -16696,7 +16778,7 @@ export class Endpoints {
16696
16778
  _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
16697
16779
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
16698
16780
  try {
16699
- instance.#cachedJsonLd = structuredClone(json);
16781
+ instance._cachedJsonLd = structuredClone(json);
16700
16782
  }
16701
16783
  catch {
16702
16784
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16800,7 +16882,6 @@ export class Endpoints {
16800
16882
  /** Represents any kind of event.
16801
16883
  */
16802
16884
  export class Event extends Object {
16803
- #cachedJsonLd;
16804
16885
  /**
16805
16886
  * The type URI of {@link Event}: `https://www.w3.org/ns/activitystreams#Event`.
16806
16887
  */
@@ -16836,8 +16917,8 @@ export class Event extends Object {
16836
16917
  * @returns The JSON-LD representation of this object.
16837
16918
  */
16838
16919
  async toJsonLd(options = {}) {
16839
- if (options.format == null && this.#cachedJsonLd != null) {
16840
- return this.#cachedJsonLd;
16920
+ if (options.format == null && this._cachedJsonLd != null) {
16921
+ return this._cachedJsonLd;
16841
16922
  }
16842
16923
  if (options.format !== "compact" && options.context != null) {
16843
16924
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -16951,7 +17032,7 @@ export class Event extends Object {
16951
17032
  }
16952
17033
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
16953
17034
  try {
16954
- instance.#cachedJsonLd = structuredClone(json);
17035
+ instance._cachedJsonLd = structuredClone(json);
16955
17036
  }
16956
17037
  catch {
16957
17038
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -16977,7 +17058,6 @@ export class Event extends Object {
16977
17058
  * inappropriate for any number of reasons.
16978
17059
  */
16979
17060
  export class Flag extends Activity {
16980
- #cachedJsonLd;
16981
17061
  /**
16982
17062
  * The type URI of {@link Flag}: `https://www.w3.org/ns/activitystreams#Flag`.
16983
17063
  */
@@ -17013,8 +17093,8 @@ export class Flag extends Activity {
17013
17093
  * @returns The JSON-LD representation of this object.
17014
17094
  */
17015
17095
  async toJsonLd(options = {}) {
17016
- if (options.format == null && this.#cachedJsonLd != null) {
17017
- return this.#cachedJsonLd;
17096
+ if (options.format == null && this._cachedJsonLd != null) {
17097
+ return this._cachedJsonLd;
17018
17098
  }
17019
17099
  if (options.format !== "compact" && options.context != null) {
17020
17100
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -17112,7 +17192,7 @@ export class Flag extends Activity {
17112
17192
  }
17113
17193
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
17114
17194
  try {
17115
- instance.#cachedJsonLd = structuredClone(json);
17195
+ instance._cachedJsonLd = structuredClone(json);
17116
17196
  }
17117
17197
  catch {
17118
17198
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -17139,7 +17219,6 @@ export class Flag extends Activity {
17139
17219
  * `origin` typically have no defined meaning.
17140
17220
  */
17141
17221
  export class Follow extends Activity {
17142
- #cachedJsonLd;
17143
17222
  /**
17144
17223
  * The type URI of {@link Follow}: `https://www.w3.org/ns/activitystreams#Follow`.
17145
17224
  */
@@ -17175,8 +17254,8 @@ export class Follow extends Activity {
17175
17254
  * @returns The JSON-LD representation of this object.
17176
17255
  */
17177
17256
  async toJsonLd(options = {}) {
17178
- if (options.format == null && this.#cachedJsonLd != null) {
17179
- return this.#cachedJsonLd;
17257
+ if (options.format == null && this._cachedJsonLd != null) {
17258
+ return this._cachedJsonLd;
17180
17259
  }
17181
17260
  if (options.format !== "compact" && options.context != null) {
17182
17261
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -17274,7 +17353,7 @@ export class Follow extends Activity {
17274
17353
  }
17275
17354
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
17276
17355
  try {
17277
- instance.#cachedJsonLd = structuredClone(json);
17356
+ instance._cachedJsonLd = structuredClone(json);
17278
17357
  }
17279
17358
  catch {
17280
17359
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -17298,7 +17377,6 @@ export class Follow extends Activity {
17298
17377
  /** Represents a formal or informal collective of Actors.
17299
17378
  */
17300
17379
  export class Group extends Object {
17301
- #cachedJsonLd;
17302
17380
  /**
17303
17381
  * The type URI of {@link Group}: `https://www.w3.org/ns/activitystreams#Group`.
17304
17382
  */
@@ -18010,6 +18088,7 @@ export class Group extends Object {
18010
18088
  if (fetched == null)
18011
18089
  return null;
18012
18090
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
18091
+ this._cachedJsonLd = undefined;
18013
18092
  return fetched;
18014
18093
  }
18015
18094
  return v;
@@ -18033,6 +18112,7 @@ export class Group extends Object {
18033
18112
  if (fetched == null)
18034
18113
  continue;
18035
18114
  vs[i] = fetched;
18115
+ this._cachedJsonLd = undefined;
18036
18116
  yield fetched;
18037
18117
  continue;
18038
18118
  }
@@ -18095,6 +18175,7 @@ export class Group extends Object {
18095
18175
  if (fetched == null)
18096
18176
  return null;
18097
18177
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
18178
+ this._cachedJsonLd = undefined;
18098
18179
  return fetched;
18099
18180
  }
18100
18181
  return v;
@@ -18121,6 +18202,7 @@ export class Group extends Object {
18121
18202
  if (fetched == null)
18122
18203
  continue;
18123
18204
  vs[i] = fetched;
18205
+ this._cachedJsonLd = undefined;
18124
18206
  yield fetched;
18125
18207
  continue;
18126
18208
  }
@@ -18212,6 +18294,7 @@ export class Group extends Object {
18212
18294
  if (fetched == null)
18213
18295
  return null;
18214
18296
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
18297
+ this._cachedJsonLd = undefined;
18215
18298
  return fetched;
18216
18299
  }
18217
18300
  return v;
@@ -18286,6 +18369,7 @@ export class Group extends Object {
18286
18369
  if (fetched == null)
18287
18370
  return null;
18288
18371
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
18372
+ this._cachedJsonLd = undefined;
18289
18373
  return fetched;
18290
18374
  }
18291
18375
  return v;
@@ -18345,6 +18429,7 @@ export class Group extends Object {
18345
18429
  if (fetched == null)
18346
18430
  return null;
18347
18431
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
18432
+ this._cachedJsonLd = undefined;
18348
18433
  return fetched;
18349
18434
  }
18350
18435
  return v;
@@ -18407,6 +18492,7 @@ export class Group extends Object {
18407
18492
  if (fetched == null)
18408
18493
  return null;
18409
18494
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
18495
+ this._cachedJsonLd = undefined;
18410
18496
  return fetched;
18411
18497
  }
18412
18498
  return v;
@@ -18467,6 +18553,7 @@ export class Group extends Object {
18467
18553
  if (fetched == null)
18468
18554
  return null;
18469
18555
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
18556
+ this._cachedJsonLd = undefined;
18470
18557
  return fetched;
18471
18558
  }
18472
18559
  return v;
@@ -18525,6 +18612,7 @@ export class Group extends Object {
18525
18612
  if (fetched == null)
18526
18613
  return null;
18527
18614
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
18615
+ this._cachedJsonLd = undefined;
18528
18616
  return fetched;
18529
18617
  }
18530
18618
  return v;
@@ -18585,6 +18673,7 @@ export class Group extends Object {
18585
18673
  if (fetched == null)
18586
18674
  return null;
18587
18675
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
18676
+ this._cachedJsonLd = undefined;
18588
18677
  return fetched;
18589
18678
  }
18590
18679
  return v;
@@ -18635,6 +18724,7 @@ export class Group extends Object {
18635
18724
  if (fetched == null)
18636
18725
  continue;
18637
18726
  vs[i] = fetched;
18727
+ this._cachedJsonLd = undefined;
18638
18728
  yield fetched;
18639
18729
  continue;
18640
18730
  }
@@ -18771,6 +18861,7 @@ export class Group extends Object {
18771
18861
  if (fetched == null)
18772
18862
  return null;
18773
18863
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
18864
+ this._cachedJsonLd = undefined;
18774
18865
  return fetched;
18775
18866
  }
18776
18867
  return v;
@@ -18797,6 +18888,7 @@ export class Group extends Object {
18797
18888
  if (fetched == null)
18798
18889
  continue;
18799
18890
  vs[i] = fetched;
18891
+ this._cachedJsonLd = undefined;
18800
18892
  yield fetched;
18801
18893
  continue;
18802
18894
  }
@@ -18824,8 +18916,8 @@ export class Group extends Object {
18824
18916
  * @returns The JSON-LD representation of this object.
18825
18917
  */
18826
18918
  async toJsonLd(options = {}) {
18827
- if (options.format == null && this.#cachedJsonLd != null) {
18828
- return this.#cachedJsonLd;
18919
+ if (options.format == null && this._cachedJsonLd != null) {
18920
+ return this._cachedJsonLd;
18829
18921
  }
18830
18922
  if (options.format !== "compact" && options.context != null) {
18831
18923
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -19872,7 +19964,7 @@ export class Group extends Object {
19872
19964
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
19873
19965
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
19874
19966
  try {
19875
- instance.#cachedJsonLd = structuredClone(json);
19967
+ instance._cachedJsonLd = structuredClone(json);
19876
19968
  }
19877
19969
  catch {
19878
19970
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -20159,6 +20251,7 @@ _d = Group;
20159
20251
  export class Link {
20160
20252
  #documentLoader;
20161
20253
  #contextLoader;
20254
+ #cachedJsonLd;
20162
20255
  id;
20163
20256
  get _documentLoader() {
20164
20257
  return this.#documentLoader;
@@ -20166,7 +20259,12 @@ export class Link {
20166
20259
  get _contextLoader() {
20167
20260
  return this.#contextLoader;
20168
20261
  }
20169
- #cachedJsonLd;
20262
+ get _cachedJsonLd() {
20263
+ return this.#cachedJsonLd;
20264
+ }
20265
+ set _cachedJsonLd(value) {
20266
+ this.#cachedJsonLd = value;
20267
+ }
20170
20268
  /**
20171
20269
  * The type URI of {@link Link}: `https://www.w3.org/ns/activitystreams#Link`.
20172
20270
  */
@@ -20586,6 +20684,7 @@ export class Link {
20586
20684
  if (fetched == null)
20587
20685
  continue;
20588
20686
  vs[i] = fetched;
20687
+ this._cachedJsonLd = undefined;
20589
20688
  yield fetched;
20590
20689
  continue;
20591
20690
  }
@@ -20603,8 +20702,8 @@ export class Link {
20603
20702
  * @returns The JSON-LD representation of this object.
20604
20703
  */
20605
20704
  async toJsonLd(options = {}) {
20606
- if (options.format == null && this.#cachedJsonLd != null) {
20607
- return this.#cachedJsonLd;
20705
+ if (options.format == null && this._cachedJsonLd != null) {
20706
+ return this._cachedJsonLd;
20608
20707
  }
20609
20708
  if (options.format !== "compact" && options.context != null) {
20610
20709
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -21072,7 +21171,7 @@ export class Link {
21072
21171
  _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
21073
21172
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
21074
21173
  try {
21075
- instance.#cachedJsonLd = structuredClone(json);
21174
+ instance._cachedJsonLd = structuredClone(json);
21076
21175
  }
21077
21176
  catch {
21078
21177
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21213,7 +21312,6 @@ _e = Link;
21213
21312
  * See also <https://swicg.github.io/miscellany/#Hashtag>.
21214
21313
  */
21215
21314
  export class Hashtag extends Link {
21216
- #cachedJsonLd;
21217
21315
  /**
21218
21316
  * The type URI of {@link Hashtag}: `https://www.w3.org/ns/activitystreams#Hashtag`.
21219
21317
  */
@@ -21249,8 +21347,8 @@ export class Hashtag extends Link {
21249
21347
  * @returns The JSON-LD representation of this object.
21250
21348
  */
21251
21349
  async toJsonLd(options = {}) {
21252
- if (options.format == null && this.#cachedJsonLd != null) {
21253
- return this.#cachedJsonLd;
21350
+ if (options.format == null && this._cachedJsonLd != null) {
21351
+ return this._cachedJsonLd;
21254
21352
  }
21255
21353
  if (options.format !== "compact" && options.context != null) {
21256
21354
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -21349,7 +21447,7 @@ export class Hashtag extends Link {
21349
21447
  }
21350
21448
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
21351
21449
  try {
21352
- instance.#cachedJsonLd = structuredClone(json);
21450
+ instance._cachedJsonLd = structuredClone(json);
21353
21451
  }
21354
21452
  catch {
21355
21453
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21373,7 +21471,6 @@ export class Hashtag extends Link {
21373
21471
  /** An image document of any kind.
21374
21472
  */
21375
21473
  export class Image extends Document {
21376
- #cachedJsonLd;
21377
21474
  /**
21378
21475
  * The type URI of {@link Image}: `https://www.w3.org/ns/activitystreams#Image`.
21379
21476
  */
@@ -21409,8 +21506,8 @@ export class Image extends Document {
21409
21506
  * @returns The JSON-LD representation of this object.
21410
21507
  */
21411
21508
  async toJsonLd(options = {}) {
21412
- if (options.format == null && this.#cachedJsonLd != null) {
21413
- return this.#cachedJsonLd;
21509
+ if (options.format == null && this._cachedJsonLd != null) {
21510
+ return this._cachedJsonLd;
21414
21511
  }
21415
21512
  if (options.format !== "compact" && options.context != null) {
21416
21513
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -21518,7 +21615,7 @@ export class Image extends Document {
21518
21615
  }
21519
21616
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
21520
21617
  try {
21521
- instance.#cachedJsonLd = structuredClone(json);
21618
+ instance._cachedJsonLd = structuredClone(json);
21522
21619
  }
21523
21620
  catch {
21524
21621
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21544,7 +21641,6 @@ export class Image extends Document {
21544
21641
  * the object is being offered.
21545
21642
  */
21546
21643
  export class Offer extends Activity {
21547
- #cachedJsonLd;
21548
21644
  /**
21549
21645
  * The type URI of {@link Offer}: `https://www.w3.org/ns/activitystreams#Offer`.
21550
21646
  */
@@ -21580,8 +21676,8 @@ export class Offer extends Activity {
21580
21676
  * @returns The JSON-LD representation of this object.
21581
21677
  */
21582
21678
  async toJsonLd(options = {}) {
21583
- if (options.format == null && this.#cachedJsonLd != null) {
21584
- return this.#cachedJsonLd;
21679
+ if (options.format == null && this._cachedJsonLd != null) {
21680
+ return this._cachedJsonLd;
21585
21681
  }
21586
21682
  if (options.format !== "compact" && options.context != null) {
21587
21683
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -21682,7 +21778,7 @@ export class Offer extends Activity {
21682
21778
  }
21683
21779
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
21684
21780
  try {
21685
- instance.#cachedJsonLd = structuredClone(json);
21781
+ instance._cachedJsonLd = structuredClone(json);
21686
21782
  }
21687
21783
  catch {
21688
21784
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21707,7 +21803,6 @@ export class Offer extends Activity {
21707
21803
  * for the `object` to the `target`.
21708
21804
  */
21709
21805
  export class Invite extends Offer {
21710
- #cachedJsonLd;
21711
21806
  /**
21712
21807
  * The type URI of {@link Invite}: `https://www.w3.org/ns/activitystreams#Invite`.
21713
21808
  */
@@ -21743,8 +21838,8 @@ export class Invite extends Offer {
21743
21838
  * @returns The JSON-LD representation of this object.
21744
21839
  */
21745
21840
  async toJsonLd(options = {}) {
21746
- if (options.format == null && this.#cachedJsonLd != null) {
21747
- return this.#cachedJsonLd;
21841
+ if (options.format == null && this._cachedJsonLd != null) {
21842
+ return this._cachedJsonLd;
21748
21843
  }
21749
21844
  if (options.format !== "compact" && options.context != null) {
21750
21845
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -21842,7 +21937,7 @@ export class Invite extends Offer {
21842
21937
  }
21843
21938
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
21844
21939
  try {
21845
- instance.#cachedJsonLd = structuredClone(json);
21940
+ instance._cachedJsonLd = structuredClone(json);
21846
21941
  }
21847
21942
  catch {
21848
21943
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -21867,7 +21962,6 @@ export class Invite extends Offer {
21867
21962
  * The `target` and `origin` typically have no defined meaning.
21868
21963
  */
21869
21964
  export class Join extends Activity {
21870
- #cachedJsonLd;
21871
21965
  /**
21872
21966
  * The type URI of {@link Join}: `https://www.w3.org/ns/activitystreams#Join`.
21873
21967
  */
@@ -21903,8 +21997,8 @@ export class Join extends Activity {
21903
21997
  * @returns The JSON-LD representation of this object.
21904
21998
  */
21905
21999
  async toJsonLd(options = {}) {
21906
- if (options.format == null && this.#cachedJsonLd != null) {
21907
- return this.#cachedJsonLd;
22000
+ if (options.format == null && this._cachedJsonLd != null) {
22001
+ return this._cachedJsonLd;
21908
22002
  }
21909
22003
  if (options.format !== "compact" && options.context != null) {
21910
22004
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -22002,7 +22096,7 @@ export class Join extends Activity {
22002
22096
  }
22003
22097
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
22004
22098
  try {
22005
- instance.#cachedJsonLd = structuredClone(json);
22099
+ instance._cachedJsonLd = structuredClone(json);
22006
22100
  }
22007
22101
  catch {
22008
22102
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -22027,7 +22121,6 @@ export class Join extends Activity {
22027
22121
  * The `target` and `origin` typically have no meaning.
22028
22122
  */
22029
22123
  export class Leave extends Activity {
22030
- #cachedJsonLd;
22031
22124
  /**
22032
22125
  * The type URI of {@link Leave}: `https://www.w3.org/ns/activitystreams#Leave`.
22033
22126
  */
@@ -22063,8 +22156,8 @@ export class Leave extends Activity {
22063
22156
  * @returns The JSON-LD representation of this object.
22064
22157
  */
22065
22158
  async toJsonLd(options = {}) {
22066
- if (options.format == null && this.#cachedJsonLd != null) {
22067
- return this.#cachedJsonLd;
22159
+ if (options.format == null && this._cachedJsonLd != null) {
22160
+ return this._cachedJsonLd;
22068
22161
  }
22069
22162
  if (options.format !== "compact" && options.context != null) {
22070
22163
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -22162,7 +22255,7 @@ export class Leave extends Activity {
22162
22255
  }
22163
22256
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
22164
22257
  try {
22165
- instance.#cachedJsonLd = structuredClone(json);
22258
+ instance._cachedJsonLd = structuredClone(json);
22166
22259
  }
22167
22260
  catch {
22168
22261
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -22187,7 +22280,6 @@ export class Leave extends Activity {
22187
22280
  * The `target` and `origin` typically have no defined meaning.
22188
22281
  */
22189
22282
  export class Like extends Activity {
22190
- #cachedJsonLd;
22191
22283
  /**
22192
22284
  * The type URI of {@link Like}: `https://www.w3.org/ns/activitystreams#Like`.
22193
22285
  */
@@ -22223,8 +22315,8 @@ export class Like extends Activity {
22223
22315
  * @returns The JSON-LD representation of this object.
22224
22316
  */
22225
22317
  async toJsonLd(options = {}) {
22226
- if (options.format == null && this.#cachedJsonLd != null) {
22227
- return this.#cachedJsonLd;
22318
+ if (options.format == null && this._cachedJsonLd != null) {
22319
+ return this._cachedJsonLd;
22228
22320
  }
22229
22321
  if (options.format !== "compact" && options.context != null) {
22230
22322
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -22322,7 +22414,7 @@ export class Like extends Activity {
22322
22414
  }
22323
22415
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
22324
22416
  try {
22325
- instance.#cachedJsonLd = structuredClone(json);
22417
+ instance._cachedJsonLd = structuredClone(json);
22326
22418
  }
22327
22419
  catch {
22328
22420
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -22346,7 +22438,6 @@ export class Like extends Activity {
22346
22438
  /** Indicates that the `actor` has listened to the `object`.
22347
22439
  */
22348
22440
  export class Listen extends Activity {
22349
- #cachedJsonLd;
22350
22441
  /**
22351
22442
  * The type URI of {@link Listen}: `https://www.w3.org/ns/activitystreams#Listen`.
22352
22443
  */
@@ -22382,8 +22473,8 @@ export class Listen extends Activity {
22382
22473
  * @returns The JSON-LD representation of this object.
22383
22474
  */
22384
22475
  async toJsonLd(options = {}) {
22385
- if (options.format == null && this.#cachedJsonLd != null) {
22386
- return this.#cachedJsonLd;
22476
+ if (options.format == null && this._cachedJsonLd != null) {
22477
+ return this._cachedJsonLd;
22387
22478
  }
22388
22479
  if (options.format !== "compact" && options.context != null) {
22389
22480
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -22481,7 +22572,7 @@ export class Listen extends Activity {
22481
22572
  }
22482
22573
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
22483
22574
  try {
22484
- instance.#cachedJsonLd = structuredClone(json);
22575
+ instance._cachedJsonLd = structuredClone(json);
22485
22576
  }
22486
22577
  catch {
22487
22578
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -22505,7 +22596,6 @@ export class Listen extends Activity {
22505
22596
  /** A specialized {@link Link} that represents an @mention.
22506
22597
  */
22507
22598
  export class Mention extends Link {
22508
- #cachedJsonLd;
22509
22599
  /**
22510
22600
  * The type URI of {@link Mention}: `https://www.w3.org/ns/activitystreams#Mention`.
22511
22601
  */
@@ -22541,8 +22631,8 @@ export class Mention extends Link {
22541
22631
  * @returns The JSON-LD representation of this object.
22542
22632
  */
22543
22633
  async toJsonLd(options = {}) {
22544
- if (options.format == null && this.#cachedJsonLd != null) {
22545
- return this.#cachedJsonLd;
22634
+ if (options.format == null && this._cachedJsonLd != null) {
22635
+ return this._cachedJsonLd;
22546
22636
  }
22547
22637
  if (options.format !== "compact" && options.context != null) {
22548
22638
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -22639,7 +22729,7 @@ export class Mention extends Link {
22639
22729
  }
22640
22730
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
22641
22731
  try {
22642
- instance.#cachedJsonLd = structuredClone(json);
22732
+ instance._cachedJsonLd = structuredClone(json);
22643
22733
  }
22644
22734
  catch {
22645
22735
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -22665,7 +22755,6 @@ export class Mention extends Link {
22665
22755
  * either can be determined by context.
22666
22756
  */
22667
22757
  export class Move extends Activity {
22668
- #cachedJsonLd;
22669
22758
  /**
22670
22759
  * The type URI of {@link Move}: `https://www.w3.org/ns/activitystreams#Move`.
22671
22760
  */
@@ -22701,8 +22790,8 @@ export class Move extends Activity {
22701
22790
  * @returns The JSON-LD representation of this object.
22702
22791
  */
22703
22792
  async toJsonLd(options = {}) {
22704
- if (options.format == null && this.#cachedJsonLd != null) {
22705
- return this.#cachedJsonLd;
22793
+ if (options.format == null && this._cachedJsonLd != null) {
22794
+ return this._cachedJsonLd;
22706
22795
  }
22707
22796
  if (options.format !== "compact" && options.context != null) {
22708
22797
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -22800,7 +22889,7 @@ export class Move extends Activity {
22800
22889
  }
22801
22890
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
22802
22891
  try {
22803
- instance.#cachedJsonLd = structuredClone(json);
22892
+ instance._cachedJsonLd = structuredClone(json);
22804
22893
  }
22805
22894
  catch {
22806
22895
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -22825,7 +22914,6 @@ export class Move extends Activity {
22825
22914
  * length.
22826
22915
  */
22827
22916
  export class Note extends Object {
22828
- #cachedJsonLd;
22829
22917
  /**
22830
22918
  * The type URI of {@link Note}: `https://www.w3.org/ns/activitystreams#Note`.
22831
22919
  */
@@ -22900,8 +22988,8 @@ export class Note extends Object {
22900
22988
  * @returns The JSON-LD representation of this object.
22901
22989
  */
22902
22990
  async toJsonLd(options = {}) {
22903
- if (options.format == null && this.#cachedJsonLd != null) {
22904
- return this.#cachedJsonLd;
22991
+ if (options.format == null && this._cachedJsonLd != null) {
22992
+ return this._cachedJsonLd;
22905
22993
  }
22906
22994
  if (options.format !== "compact" && options.context != null) {
22907
22995
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23088,7 +23176,7 @@ export class Note extends Object {
23088
23176
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
23089
23177
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23090
23178
  try {
23091
- instance.#cachedJsonLd = structuredClone(json);
23179
+ instance._cachedJsonLd = structuredClone(json);
23092
23180
  }
23093
23181
  catch {
23094
23182
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23125,7 +23213,6 @@ export class Note extends Object {
23125
23213
  * are assumed to always be strictly ordered.
23126
23214
  */
23127
23215
  export class OrderedCollection extends Collection {
23128
- #cachedJsonLd;
23129
23216
  /**
23130
23217
  * The type URI of {@link OrderedCollection}: `https://www.w3.org/ns/activitystreams#OrderedCollection`.
23131
23218
  */
@@ -23232,6 +23319,7 @@ export class OrderedCollection extends Collection {
23232
23319
  if (fetched == null)
23233
23320
  continue;
23234
23321
  vs[i] = fetched;
23322
+ this._cachedJsonLd = undefined;
23235
23323
  yield fetched;
23236
23324
  continue;
23237
23325
  }
@@ -23249,8 +23337,8 @@ export class OrderedCollection extends Collection {
23249
23337
  * @returns The JSON-LD representation of this object.
23250
23338
  */
23251
23339
  async toJsonLd(options = {}) {
23252
- if (options.format == null && this.#cachedJsonLd != null) {
23253
- return this.#cachedJsonLd;
23340
+ if (options.format == null && this._cachedJsonLd != null) {
23341
+ return this._cachedJsonLd;
23254
23342
  }
23255
23343
  if (options.format !== "compact" && options.context != null) {
23256
23344
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23503,7 +23591,7 @@ export class OrderedCollection extends Collection {
23503
23591
  _2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
23504
23592
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23505
23593
  try {
23506
- instance.#cachedJsonLd = structuredClone(json);
23594
+ instance._cachedJsonLd = structuredClone(json);
23507
23595
  }
23508
23596
  catch {
23509
23597
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -23543,7 +23631,6 @@ export class OrderedCollection extends Collection {
23543
23631
  * the `OrderedCollectionPage` object.
23544
23632
  */
23545
23633
  export class OrderedCollectionPage extends CollectionPage {
23546
- #cachedJsonLd;
23547
23634
  /**
23548
23635
  * The type URI of {@link OrderedCollectionPage}: `https://www.w3.org/ns/activitystreams#OrderedCollectionPage`.
23549
23636
  */
@@ -23675,6 +23762,7 @@ export class OrderedCollectionPage extends CollectionPage {
23675
23762
  if (fetched == null)
23676
23763
  continue;
23677
23764
  vs[i] = fetched;
23765
+ this._cachedJsonLd = undefined;
23678
23766
  yield fetched;
23679
23767
  continue;
23680
23768
  }
@@ -23700,8 +23788,8 @@ export class OrderedCollectionPage extends CollectionPage {
23700
23788
  * @returns The JSON-LD representation of this object.
23701
23789
  */
23702
23790
  async toJsonLd(options = {}) {
23703
- if (options.format == null && this.#cachedJsonLd != null) {
23704
- return this.#cachedJsonLd;
23791
+ if (options.format == null && this._cachedJsonLd != null) {
23792
+ return this._cachedJsonLd;
23705
23793
  }
23706
23794
  if (options.format !== "compact" && options.context != null) {
23707
23795
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -23990,7 +24078,7 @@ export class OrderedCollectionPage extends CollectionPage {
23990
24078
  _2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
23991
24079
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
23992
24080
  try {
23993
- instance.#cachedJsonLd = structuredClone(json);
24081
+ instance._cachedJsonLd = structuredClone(json);
23994
24082
  }
23995
24083
  catch {
23996
24084
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -24040,7 +24128,6 @@ export class OrderedCollectionPage extends CollectionPage {
24040
24128
  /** Represents an organization.
24041
24129
  */
24042
24130
  export class Organization extends Object {
24043
- #cachedJsonLd;
24044
24131
  /**
24045
24132
  * The type URI of {@link Organization}: `https://www.w3.org/ns/activitystreams#Organization`.
24046
24133
  */
@@ -24752,6 +24839,7 @@ export class Organization extends Object {
24752
24839
  if (fetched == null)
24753
24840
  return null;
24754
24841
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
24842
+ this._cachedJsonLd = undefined;
24755
24843
  return fetched;
24756
24844
  }
24757
24845
  return v;
@@ -24775,6 +24863,7 @@ export class Organization extends Object {
24775
24863
  if (fetched == null)
24776
24864
  continue;
24777
24865
  vs[i] = fetched;
24866
+ this._cachedJsonLd = undefined;
24778
24867
  yield fetched;
24779
24868
  continue;
24780
24869
  }
@@ -24837,6 +24926,7 @@ export class Organization extends Object {
24837
24926
  if (fetched == null)
24838
24927
  return null;
24839
24928
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
24929
+ this._cachedJsonLd = undefined;
24840
24930
  return fetched;
24841
24931
  }
24842
24932
  return v;
@@ -24863,6 +24953,7 @@ export class Organization extends Object {
24863
24953
  if (fetched == null)
24864
24954
  continue;
24865
24955
  vs[i] = fetched;
24956
+ this._cachedJsonLd = undefined;
24866
24957
  yield fetched;
24867
24958
  continue;
24868
24959
  }
@@ -24954,6 +25045,7 @@ export class Organization extends Object {
24954
25045
  if (fetched == null)
24955
25046
  return null;
24956
25047
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
25048
+ this._cachedJsonLd = undefined;
24957
25049
  return fetched;
24958
25050
  }
24959
25051
  return v;
@@ -25028,6 +25120,7 @@ export class Organization extends Object {
25028
25120
  if (fetched == null)
25029
25121
  return null;
25030
25122
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
25123
+ this._cachedJsonLd = undefined;
25031
25124
  return fetched;
25032
25125
  }
25033
25126
  return v;
@@ -25087,6 +25180,7 @@ export class Organization extends Object {
25087
25180
  if (fetched == null)
25088
25181
  return null;
25089
25182
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
25183
+ this._cachedJsonLd = undefined;
25090
25184
  return fetched;
25091
25185
  }
25092
25186
  return v;
@@ -25149,6 +25243,7 @@ export class Organization extends Object {
25149
25243
  if (fetched == null)
25150
25244
  return null;
25151
25245
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
25246
+ this._cachedJsonLd = undefined;
25152
25247
  return fetched;
25153
25248
  }
25154
25249
  return v;
@@ -25209,6 +25304,7 @@ export class Organization extends Object {
25209
25304
  if (fetched == null)
25210
25305
  return null;
25211
25306
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
25307
+ this._cachedJsonLd = undefined;
25212
25308
  return fetched;
25213
25309
  }
25214
25310
  return v;
@@ -25267,6 +25363,7 @@ export class Organization extends Object {
25267
25363
  if (fetched == null)
25268
25364
  return null;
25269
25365
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
25366
+ this._cachedJsonLd = undefined;
25270
25367
  return fetched;
25271
25368
  }
25272
25369
  return v;
@@ -25327,6 +25424,7 @@ export class Organization extends Object {
25327
25424
  if (fetched == null)
25328
25425
  return null;
25329
25426
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
25427
+ this._cachedJsonLd = undefined;
25330
25428
  return fetched;
25331
25429
  }
25332
25430
  return v;
@@ -25377,6 +25475,7 @@ export class Organization extends Object {
25377
25475
  if (fetched == null)
25378
25476
  continue;
25379
25477
  vs[i] = fetched;
25478
+ this._cachedJsonLd = undefined;
25380
25479
  yield fetched;
25381
25480
  continue;
25382
25481
  }
@@ -25513,6 +25612,7 @@ export class Organization extends Object {
25513
25612
  if (fetched == null)
25514
25613
  return null;
25515
25614
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
25615
+ this._cachedJsonLd = undefined;
25516
25616
  return fetched;
25517
25617
  }
25518
25618
  return v;
@@ -25539,6 +25639,7 @@ export class Organization extends Object {
25539
25639
  if (fetched == null)
25540
25640
  continue;
25541
25641
  vs[i] = fetched;
25642
+ this._cachedJsonLd = undefined;
25542
25643
  yield fetched;
25543
25644
  continue;
25544
25645
  }
@@ -25566,8 +25667,8 @@ export class Organization extends Object {
25566
25667
  * @returns The JSON-LD representation of this object.
25567
25668
  */
25568
25669
  async toJsonLd(options = {}) {
25569
- if (options.format == null && this.#cachedJsonLd != null) {
25570
- return this.#cachedJsonLd;
25670
+ if (options.format == null && this._cachedJsonLd != null) {
25671
+ return this._cachedJsonLd;
25571
25672
  }
25572
25673
  if (options.format !== "compact" && options.context != null) {
25573
25674
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -26614,7 +26715,7 @@ export class Organization extends Object {
26614
26715
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
26615
26716
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
26616
26717
  try {
26617
- instance.#cachedJsonLd = structuredClone(json);
26718
+ instance._cachedJsonLd = structuredClone(json);
26618
26719
  }
26619
26720
  catch {
26620
26721
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -26892,7 +26993,6 @@ _f = Organization;
26892
26993
  /** Represents a Web Page.
26893
26994
  */
26894
26995
  export class Page extends Document {
26895
- #cachedJsonLd;
26896
26996
  /**
26897
26997
  * The type URI of {@link Page}: `https://www.w3.org/ns/activitystreams#Page`.
26898
26998
  */
@@ -26928,8 +27028,8 @@ export class Page extends Document {
26928
27028
  * @returns The JSON-LD representation of this object.
26929
27029
  */
26930
27030
  async toJsonLd(options = {}) {
26931
- if (options.format == null && this.#cachedJsonLd != null) {
26932
- return this.#cachedJsonLd;
27031
+ if (options.format == null && this._cachedJsonLd != null) {
27032
+ return this._cachedJsonLd;
26933
27033
  }
26934
27034
  if (options.format !== "compact" && options.context != null) {
26935
27035
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -27043,7 +27143,7 @@ export class Page extends Document {
27043
27143
  }
27044
27144
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
27045
27145
  try {
27046
- instance.#cachedJsonLd = structuredClone(json);
27146
+ instance._cachedJsonLd = structuredClone(json);
27047
27147
  }
27048
27148
  catch {
27049
27149
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -27067,7 +27167,6 @@ export class Page extends Document {
27067
27167
  /** Represents an individual person.
27068
27168
  */
27069
27169
  export class Person extends Object {
27070
- #cachedJsonLd;
27071
27170
  /**
27072
27171
  * The type URI of {@link Person}: `https://www.w3.org/ns/activitystreams#Person`.
27073
27172
  */
@@ -27779,6 +27878,7 @@ export class Person extends Object {
27779
27878
  if (fetched == null)
27780
27879
  return null;
27781
27880
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
27881
+ this._cachedJsonLd = undefined;
27782
27882
  return fetched;
27783
27883
  }
27784
27884
  return v;
@@ -27802,6 +27902,7 @@ export class Person extends Object {
27802
27902
  if (fetched == null)
27803
27903
  continue;
27804
27904
  vs[i] = fetched;
27905
+ this._cachedJsonLd = undefined;
27805
27906
  yield fetched;
27806
27907
  continue;
27807
27908
  }
@@ -27864,6 +27965,7 @@ export class Person extends Object {
27864
27965
  if (fetched == null)
27865
27966
  return null;
27866
27967
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
27968
+ this._cachedJsonLd = undefined;
27867
27969
  return fetched;
27868
27970
  }
27869
27971
  return v;
@@ -27890,6 +27992,7 @@ export class Person extends Object {
27890
27992
  if (fetched == null)
27891
27993
  continue;
27892
27994
  vs[i] = fetched;
27995
+ this._cachedJsonLd = undefined;
27893
27996
  yield fetched;
27894
27997
  continue;
27895
27998
  }
@@ -27981,6 +28084,7 @@ export class Person extends Object {
27981
28084
  if (fetched == null)
27982
28085
  return null;
27983
28086
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
28087
+ this._cachedJsonLd = undefined;
27984
28088
  return fetched;
27985
28089
  }
27986
28090
  return v;
@@ -28055,6 +28159,7 @@ export class Person extends Object {
28055
28159
  if (fetched == null)
28056
28160
  return null;
28057
28161
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
28162
+ this._cachedJsonLd = undefined;
28058
28163
  return fetched;
28059
28164
  }
28060
28165
  return v;
@@ -28114,6 +28219,7 @@ export class Person extends Object {
28114
28219
  if (fetched == null)
28115
28220
  return null;
28116
28221
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
28222
+ this._cachedJsonLd = undefined;
28117
28223
  return fetched;
28118
28224
  }
28119
28225
  return v;
@@ -28176,6 +28282,7 @@ export class Person extends Object {
28176
28282
  if (fetched == null)
28177
28283
  return null;
28178
28284
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
28285
+ this._cachedJsonLd = undefined;
28179
28286
  return fetched;
28180
28287
  }
28181
28288
  return v;
@@ -28236,6 +28343,7 @@ export class Person extends Object {
28236
28343
  if (fetched == null)
28237
28344
  return null;
28238
28345
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
28346
+ this._cachedJsonLd = undefined;
28239
28347
  return fetched;
28240
28348
  }
28241
28349
  return v;
@@ -28294,6 +28402,7 @@ export class Person extends Object {
28294
28402
  if (fetched == null)
28295
28403
  return null;
28296
28404
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
28405
+ this._cachedJsonLd = undefined;
28297
28406
  return fetched;
28298
28407
  }
28299
28408
  return v;
@@ -28354,6 +28463,7 @@ export class Person extends Object {
28354
28463
  if (fetched == null)
28355
28464
  return null;
28356
28465
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
28466
+ this._cachedJsonLd = undefined;
28357
28467
  return fetched;
28358
28468
  }
28359
28469
  return v;
@@ -28404,6 +28514,7 @@ export class Person extends Object {
28404
28514
  if (fetched == null)
28405
28515
  continue;
28406
28516
  vs[i] = fetched;
28517
+ this._cachedJsonLd = undefined;
28407
28518
  yield fetched;
28408
28519
  continue;
28409
28520
  }
@@ -28540,6 +28651,7 @@ export class Person extends Object {
28540
28651
  if (fetched == null)
28541
28652
  return null;
28542
28653
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
28654
+ this._cachedJsonLd = undefined;
28543
28655
  return fetched;
28544
28656
  }
28545
28657
  return v;
@@ -28566,6 +28678,7 @@ export class Person extends Object {
28566
28678
  if (fetched == null)
28567
28679
  continue;
28568
28680
  vs[i] = fetched;
28681
+ this._cachedJsonLd = undefined;
28569
28682
  yield fetched;
28570
28683
  continue;
28571
28684
  }
@@ -28593,8 +28706,8 @@ export class Person extends Object {
28593
28706
  * @returns The JSON-LD representation of this object.
28594
28707
  */
28595
28708
  async toJsonLd(options = {}) {
28596
- if (options.format == null && this.#cachedJsonLd != null) {
28597
- return this.#cachedJsonLd;
28709
+ if (options.format == null && this._cachedJsonLd != null) {
28710
+ return this._cachedJsonLd;
28598
28711
  }
28599
28712
  if (options.format !== "compact" && options.context != null) {
28600
28713
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -29641,7 +29754,7 @@ export class Person extends Object {
29641
29754
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
29642
29755
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
29643
29756
  try {
29644
- instance.#cachedJsonLd = structuredClone(json);
29757
+ instance._cachedJsonLd = structuredClone(json);
29645
29758
  }
29646
29759
  catch {
29647
29760
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -29921,7 +30034,6 @@ _g = Person;
29921
30034
  * for additional information.
29922
30035
  */
29923
30036
  export class Place extends Object {
29924
- #cachedJsonLd;
29925
30037
  /**
29926
30038
  * The type URI of {@link Place}: `https://www.w3.org/ns/activitystreams#Place`.
29927
30039
  */
@@ -30151,8 +30263,8 @@ export class Place extends Object {
30151
30263
  * @returns The JSON-LD representation of this object.
30152
30264
  */
30153
30265
  async toJsonLd(options = {}) {
30154
- if (options.format == null && this.#cachedJsonLd != null) {
30155
- return this.#cachedJsonLd;
30266
+ if (options.format == null && this._cachedJsonLd != null) {
30267
+ return this._cachedJsonLd;
30156
30268
  }
30157
30269
  if (options.format !== "compact" && options.context != null) {
30158
30270
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -30497,7 +30609,7 @@ export class Place extends Object {
30497
30609
  _oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
30498
30610
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
30499
30611
  try {
30500
- instance.#cachedJsonLd = structuredClone(json);
30612
+ instance._cachedJsonLd = structuredClone(json);
30501
30613
  }
30502
30614
  catch {
30503
30615
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -30597,7 +30709,6 @@ export class Place extends Object {
30597
30709
  * described by the profile.
30598
30710
  */
30599
30711
  export class Profile extends Object {
30600
- #cachedJsonLd;
30601
30712
  /**
30602
30713
  * The type URI of {@link Profile}: `https://www.w3.org/ns/activitystreams#Profile`.
30603
30714
  */
@@ -30697,6 +30808,7 @@ export class Profile extends Object {
30697
30808
  if (fetched == null)
30698
30809
  return null;
30699
30810
  this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes[0] = fetched;
30811
+ this._cachedJsonLd = undefined;
30700
30812
  return fetched;
30701
30813
  }
30702
30814
  return v;
@@ -30712,8 +30824,8 @@ export class Profile extends Object {
30712
30824
  * @returns The JSON-LD representation of this object.
30713
30825
  */
30714
30826
  async toJsonLd(options = {}) {
30715
- if (options.format == null && this.#cachedJsonLd != null) {
30716
- return this.#cachedJsonLd;
30827
+ if (options.format == null && this._cachedJsonLd != null) {
30828
+ return this._cachedJsonLd;
30717
30829
  }
30718
30830
  if (options.format !== "compact" && options.context != null) {
30719
30831
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -30873,7 +30985,7 @@ export class Profile extends Object {
30873
30985
  _3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
30874
30986
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
30875
30987
  try {
30876
- instance.#cachedJsonLd = structuredClone(json);
30988
+ instance._cachedJsonLd = structuredClone(json);
30877
30989
  }
30878
30990
  catch {
30879
30991
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -30916,7 +31028,6 @@ export class Profile extends Object {
30916
31028
  * properties.
30917
31029
  */
30918
31030
  export class Question extends IntransitiveActivity {
30919
- #cachedJsonLd;
30920
31031
  /**
30921
31032
  * The type URI of {@link Question}: `https://www.w3.org/ns/activitystreams#Question`.
30922
31033
  */
@@ -31112,6 +31223,7 @@ export class Question extends IntransitiveActivity {
31112
31223
  if (fetched == null)
31113
31224
  continue;
31114
31225
  vs[i] = fetched;
31226
+ this._cachedJsonLd = undefined;
31115
31227
  yield fetched;
31116
31228
  continue;
31117
31229
  }
@@ -31166,6 +31278,7 @@ export class Question extends IntransitiveActivity {
31166
31278
  if (fetched == null)
31167
31279
  continue;
31168
31280
  vs[i] = fetched;
31281
+ this._cachedJsonLd = undefined;
31169
31282
  yield fetched;
31170
31283
  continue;
31171
31284
  }
@@ -31215,8 +31328,8 @@ export class Question extends IntransitiveActivity {
31215
31328
  * @returns The JSON-LD representation of this object.
31216
31329
  */
31217
31330
  async toJsonLd(options = {}) {
31218
- if (options.format == null && this.#cachedJsonLd != null) {
31219
- return this.#cachedJsonLd;
31331
+ if (options.format == null && this._cachedJsonLd != null) {
31332
+ return this._cachedJsonLd;
31220
31333
  }
31221
31334
  if (options.format !== "compact" && options.context != null) {
31222
31335
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -31489,7 +31602,7 @@ export class Question extends IntransitiveActivity {
31489
31602
  _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
31490
31603
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
31491
31604
  try {
31492
- instance.#cachedJsonLd = structuredClone(json);
31605
+ instance._cachedJsonLd = structuredClone(json);
31493
31606
  }
31494
31607
  catch {
31495
31608
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31577,7 +31690,6 @@ export class Question extends IntransitiveActivity {
31577
31690
  /** Indicates that the `actor` has read the `object`.
31578
31691
  */
31579
31692
  export class Read extends Activity {
31580
- #cachedJsonLd;
31581
31693
  /**
31582
31694
  * The type URI of {@link Read}: `https://www.w3.org/ns/activitystreams#Read`.
31583
31695
  */
@@ -31613,8 +31725,8 @@ export class Read extends Activity {
31613
31725
  * @returns The JSON-LD representation of this object.
31614
31726
  */
31615
31727
  async toJsonLd(options = {}) {
31616
- if (options.format == null && this.#cachedJsonLd != null) {
31617
- return this.#cachedJsonLd;
31728
+ if (options.format == null && this._cachedJsonLd != null) {
31729
+ return this._cachedJsonLd;
31618
31730
  }
31619
31731
  if (options.format !== "compact" && options.context != null) {
31620
31732
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -31712,7 +31824,7 @@ export class Read extends Activity {
31712
31824
  }
31713
31825
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
31714
31826
  try {
31715
- instance.#cachedJsonLd = structuredClone(json);
31827
+ instance._cachedJsonLd = structuredClone(json);
31716
31828
  }
31717
31829
  catch {
31718
31830
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31737,7 +31849,6 @@ export class Read extends Activity {
31737
31849
  * `origin` typically have no defined meaning.
31738
31850
  */
31739
31851
  export class Reject extends Activity {
31740
- #cachedJsonLd;
31741
31852
  /**
31742
31853
  * The type URI of {@link Reject}: `https://www.w3.org/ns/activitystreams#Reject`.
31743
31854
  */
@@ -31773,8 +31884,8 @@ export class Reject extends Activity {
31773
31884
  * @returns The JSON-LD representation of this object.
31774
31885
  */
31775
31886
  async toJsonLd(options = {}) {
31776
- if (options.format == null && this.#cachedJsonLd != null) {
31777
- return this.#cachedJsonLd;
31887
+ if (options.format == null && this._cachedJsonLd != null) {
31888
+ return this._cachedJsonLd;
31778
31889
  }
31779
31890
  if (options.format !== "compact" && options.context != null) {
31780
31891
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -31875,7 +31986,7 @@ export class Reject extends Activity {
31875
31986
  }
31876
31987
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
31877
31988
  try {
31878
- instance.#cachedJsonLd = structuredClone(json);
31989
+ instance._cachedJsonLd = structuredClone(json);
31879
31990
  }
31880
31991
  catch {
31881
31992
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -31905,7 +32016,6 @@ export class Reject extends Activity {
31905
32016
  * for additional information.
31906
32017
  */
31907
32018
  export class Relationship extends Object {
31908
- #cachedJsonLd;
31909
32019
  /**
31910
32020
  * The type URI of {@link Relationship}: `https://www.w3.org/ns/activitystreams#Relationship`.
31911
32021
  */
@@ -32124,6 +32234,7 @@ export class Relationship extends Object {
32124
32234
  if (fetched == null)
32125
32235
  return null;
32126
32236
  this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject[0] = fetched;
32237
+ this._cachedJsonLd = undefined;
32127
32238
  return fetched;
32128
32239
  }
32129
32240
  return v;
@@ -32179,6 +32290,7 @@ export class Relationship extends Object {
32179
32290
  if (fetched == null)
32180
32291
  return null;
32181
32292
  this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object[0] = fetched;
32293
+ this._cachedJsonLd = undefined;
32182
32294
  return fetched;
32183
32295
  }
32184
32296
  return v;
@@ -32202,6 +32314,7 @@ export class Relationship extends Object {
32202
32314
  if (fetched == null)
32203
32315
  continue;
32204
32316
  vs[i] = fetched;
32317
+ this._cachedJsonLd = undefined;
32205
32318
  yield fetched;
32206
32319
  continue;
32207
32320
  }
@@ -32263,6 +32376,7 @@ export class Relationship extends Object {
32263
32376
  if (fetched == null)
32264
32377
  return null;
32265
32378
  this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship[0] = fetched;
32379
+ this._cachedJsonLd = undefined;
32266
32380
  return fetched;
32267
32381
  }
32268
32382
  return v;
@@ -32288,6 +32402,7 @@ export class Relationship extends Object {
32288
32402
  if (fetched == null)
32289
32403
  continue;
32290
32404
  vs[i] = fetched;
32405
+ this._cachedJsonLd = undefined;
32291
32406
  yield fetched;
32292
32407
  continue;
32293
32408
  }
@@ -32305,8 +32420,8 @@ export class Relationship extends Object {
32305
32420
  * @returns The JSON-LD representation of this object.
32306
32421
  */
32307
32422
  async toJsonLd(options = {}) {
32308
- if (options.format == null && this.#cachedJsonLd != null) {
32309
- return this.#cachedJsonLd;
32423
+ if (options.format == null && this._cachedJsonLd != null) {
32424
+ return this._cachedJsonLd;
32310
32425
  }
32311
32426
  if (options.format !== "compact" && options.context != null) {
32312
32427
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -32558,7 +32673,7 @@ export class Relationship extends Object {
32558
32673
  _4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
32559
32674
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
32560
32675
  try {
32561
- instance.#cachedJsonLd = structuredClone(json);
32676
+ instance._cachedJsonLd = structuredClone(json);
32562
32677
  }
32563
32678
  catch {
32564
32679
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -32629,7 +32744,6 @@ export class Relationship extends Object {
32629
32744
  * the `origin` indicates the context from which the `object` is being removed.
32630
32745
  */
32631
32746
  export class Remove extends Activity {
32632
- #cachedJsonLd;
32633
32747
  /**
32634
32748
  * The type URI of {@link Remove}: `https://www.w3.org/ns/activitystreams#Remove`.
32635
32749
  */
@@ -32665,8 +32779,8 @@ export class Remove extends Activity {
32665
32779
  * @returns The JSON-LD representation of this object.
32666
32780
  */
32667
32781
  async toJsonLd(options = {}) {
32668
- if (options.format == null && this.#cachedJsonLd != null) {
32669
- return this.#cachedJsonLd;
32782
+ if (options.format == null && this._cachedJsonLd != null) {
32783
+ return this._cachedJsonLd;
32670
32784
  }
32671
32785
  if (options.format !== "compact" && options.context != null) {
32672
32786
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -32764,7 +32878,7 @@ export class Remove extends Activity {
32764
32878
  }
32765
32879
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
32766
32880
  try {
32767
- instance.#cachedJsonLd = structuredClone(json);
32881
+ instance._cachedJsonLd = structuredClone(json);
32768
32882
  }
32769
32883
  catch {
32770
32884
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -32788,7 +32902,6 @@ export class Remove extends Activity {
32788
32902
  /** Represents a service of any kind.
32789
32903
  */
32790
32904
  export class Service extends Object {
32791
- #cachedJsonLd;
32792
32905
  /**
32793
32906
  * The type URI of {@link Service}: `https://www.w3.org/ns/activitystreams#Service`.
32794
32907
  */
@@ -33500,6 +33613,7 @@ export class Service extends Object {
33500
33613
  if (fetched == null)
33501
33614
  return null;
33502
33615
  this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey[0] = fetched;
33616
+ this._cachedJsonLd = undefined;
33503
33617
  return fetched;
33504
33618
  }
33505
33619
  return v;
@@ -33523,6 +33637,7 @@ export class Service extends Object {
33523
33637
  if (fetched == null)
33524
33638
  continue;
33525
33639
  vs[i] = fetched;
33640
+ this._cachedJsonLd = undefined;
33526
33641
  yield fetched;
33527
33642
  continue;
33528
33643
  }
@@ -33585,6 +33700,7 @@ export class Service extends Object {
33585
33700
  if (fetched == null)
33586
33701
  return null;
33587
33702
  this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod[0] = fetched;
33703
+ this._cachedJsonLd = undefined;
33588
33704
  return fetched;
33589
33705
  }
33590
33706
  return v;
@@ -33611,6 +33727,7 @@ export class Service extends Object {
33611
33727
  if (fetched == null)
33612
33728
  continue;
33613
33729
  vs[i] = fetched;
33730
+ this._cachedJsonLd = undefined;
33614
33731
  yield fetched;
33615
33732
  continue;
33616
33733
  }
@@ -33702,6 +33819,7 @@ export class Service extends Object {
33702
33819
  if (fetched == null)
33703
33820
  return null;
33704
33821
  this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox[0] = fetched;
33822
+ this._cachedJsonLd = undefined;
33705
33823
  return fetched;
33706
33824
  }
33707
33825
  return v;
@@ -33776,6 +33894,7 @@ export class Service extends Object {
33776
33894
  if (fetched == null)
33777
33895
  return null;
33778
33896
  this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox[0] = fetched;
33897
+ this._cachedJsonLd = undefined;
33779
33898
  return fetched;
33780
33899
  }
33781
33900
  return v;
@@ -33835,6 +33954,7 @@ export class Service extends Object {
33835
33954
  if (fetched == null)
33836
33955
  return null;
33837
33956
  this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following[0] = fetched;
33957
+ this._cachedJsonLd = undefined;
33838
33958
  return fetched;
33839
33959
  }
33840
33960
  return v;
@@ -33897,6 +34017,7 @@ export class Service extends Object {
33897
34017
  if (fetched == null)
33898
34018
  return null;
33899
34019
  this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers[0] = fetched;
34020
+ this._cachedJsonLd = undefined;
33900
34021
  return fetched;
33901
34022
  }
33902
34023
  return v;
@@ -33957,6 +34078,7 @@ export class Service extends Object {
33957
34078
  if (fetched == null)
33958
34079
  return null;
33959
34080
  this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked[0] = fetched;
34081
+ this._cachedJsonLd = undefined;
33960
34082
  return fetched;
33961
34083
  }
33962
34084
  return v;
@@ -34015,6 +34137,7 @@ export class Service extends Object {
34015
34137
  if (fetched == null)
34016
34138
  return null;
34017
34139
  this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured[0] = fetched;
34140
+ this._cachedJsonLd = undefined;
34018
34141
  return fetched;
34019
34142
  }
34020
34143
  return v;
@@ -34075,6 +34198,7 @@ export class Service extends Object {
34075
34198
  if (fetched == null)
34076
34199
  return null;
34077
34200
  this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags[0] = fetched;
34201
+ this._cachedJsonLd = undefined;
34078
34202
  return fetched;
34079
34203
  }
34080
34204
  return v;
@@ -34125,6 +34249,7 @@ export class Service extends Object {
34125
34249
  if (fetched == null)
34126
34250
  continue;
34127
34251
  vs[i] = fetched;
34252
+ this._cachedJsonLd = undefined;
34128
34253
  yield fetched;
34129
34254
  continue;
34130
34255
  }
@@ -34261,6 +34386,7 @@ export class Service extends Object {
34261
34386
  if (fetched == null)
34262
34387
  return null;
34263
34388
  this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs[0] = fetched;
34389
+ this._cachedJsonLd = undefined;
34264
34390
  return fetched;
34265
34391
  }
34266
34392
  return v;
@@ -34287,6 +34413,7 @@ export class Service extends Object {
34287
34413
  if (fetched == null)
34288
34414
  continue;
34289
34415
  vs[i] = fetched;
34416
+ this._cachedJsonLd = undefined;
34290
34417
  yield fetched;
34291
34418
  continue;
34292
34419
  }
@@ -34314,8 +34441,8 @@ export class Service extends Object {
34314
34441
  * @returns The JSON-LD representation of this object.
34315
34442
  */
34316
34443
  async toJsonLd(options = {}) {
34317
- if (options.format == null && this.#cachedJsonLd != null) {
34318
- return this.#cachedJsonLd;
34444
+ if (options.format == null && this._cachedJsonLd != null) {
34445
+ return this._cachedJsonLd;
34319
34446
  }
34320
34447
  if (options.format !== "compact" && options.context != null) {
34321
34448
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -35362,7 +35489,7 @@ export class Service extends Object {
35362
35489
  _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
35363
35490
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
35364
35491
  try {
35365
- instance.#cachedJsonLd = structuredClone(json);
35492
+ instance._cachedJsonLd = structuredClone(json);
35366
35493
  }
35367
35494
  catch {
35368
35495
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -35642,6 +35769,7 @@ _h = Service;
35642
35769
  export class Source {
35643
35770
  #documentLoader;
35644
35771
  #contextLoader;
35772
+ #cachedJsonLd;
35645
35773
  id;
35646
35774
  get _documentLoader() {
35647
35775
  return this.#documentLoader;
@@ -35649,7 +35777,12 @@ export class Source {
35649
35777
  get _contextLoader() {
35650
35778
  return this.#contextLoader;
35651
35779
  }
35652
- #cachedJsonLd;
35780
+ get _cachedJsonLd() {
35781
+ return this.#cachedJsonLd;
35782
+ }
35783
+ set _cachedJsonLd(value) {
35784
+ this.#cachedJsonLd = value;
35785
+ }
35653
35786
  /**
35654
35787
  * The type URI of {@link Source}: `https://www.w3.org/ns/activitystreams#Source`.
35655
35788
  */
@@ -35792,8 +35925,8 @@ export class Source {
35792
35925
  * @returns The JSON-LD representation of this object.
35793
35926
  */
35794
35927
  async toJsonLd(options = {}) {
35795
- if (options.format == null && this.#cachedJsonLd != null) {
35796
- return this.#cachedJsonLd;
35928
+ if (options.format == null && this._cachedJsonLd != null) {
35929
+ return this._cachedJsonLd;
35797
35930
  }
35798
35931
  if (options.format !== "compact" && options.context != null) {
35799
35932
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -35958,7 +36091,7 @@ export class Source {
35958
36091
  _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
35959
36092
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
35960
36093
  try {
35961
- instance.#cachedJsonLd = structuredClone(json);
36094
+ instance._cachedJsonLd = structuredClone(json);
35962
36095
  }
35963
36096
  catch {
35964
36097
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -36018,7 +36151,6 @@ export class Source {
36018
36151
  * the acceptance is tentative.
36019
36152
  */
36020
36153
  export class TentativeAccept extends Accept {
36021
- #cachedJsonLd;
36022
36154
  /**
36023
36155
  * The type URI of {@link TentativeAccept}: `https://www.w3.org/ns/activitystreams#TentativeAccept`.
36024
36156
  */
@@ -36054,8 +36186,8 @@ export class TentativeAccept extends Accept {
36054
36186
  * @returns The JSON-LD representation of this object.
36055
36187
  */
36056
36188
  async toJsonLd(options = {}) {
36057
- if (options.format == null && this.#cachedJsonLd != null) {
36058
- return this.#cachedJsonLd;
36189
+ if (options.format == null && this._cachedJsonLd != null) {
36190
+ return this._cachedJsonLd;
36059
36191
  }
36060
36192
  if (options.format !== "compact" && options.context != null) {
36061
36193
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -36153,7 +36285,7 @@ export class TentativeAccept extends Accept {
36153
36285
  }
36154
36286
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
36155
36287
  try {
36156
- instance.#cachedJsonLd = structuredClone(json);
36288
+ instance._cachedJsonLd = structuredClone(json);
36157
36289
  }
36158
36290
  catch {
36159
36291
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -36178,7 +36310,6 @@ export class TentativeAccept extends Accept {
36178
36310
  * the rejection is considered tentative.
36179
36311
  */
36180
36312
  export class TentativeReject extends Reject {
36181
- #cachedJsonLd;
36182
36313
  /**
36183
36314
  * The type URI of {@link TentativeReject}: `https://www.w3.org/ns/activitystreams#TentativeReject`.
36184
36315
  */
@@ -36214,8 +36345,8 @@ export class TentativeReject extends Reject {
36214
36345
  * @returns The JSON-LD representation of this object.
36215
36346
  */
36216
36347
  async toJsonLd(options = {}) {
36217
- if (options.format == null && this.#cachedJsonLd != null) {
36218
- return this.#cachedJsonLd;
36348
+ if (options.format == null && this._cachedJsonLd != null) {
36349
+ return this._cachedJsonLd;
36219
36350
  }
36220
36351
  if (options.format !== "compact" && options.context != null) {
36221
36352
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -36313,7 +36444,7 @@ export class TentativeReject extends Reject {
36313
36444
  }
36314
36445
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
36315
36446
  try {
36316
- instance.#cachedJsonLd = structuredClone(json);
36447
+ instance._cachedJsonLd = structuredClone(json);
36317
36448
  }
36318
36449
  catch {
36319
36450
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -36339,7 +36470,6 @@ export class TentativeReject extends Reject {
36339
36470
  * an object at this position, but it has been deleted.
36340
36471
  */
36341
36472
  export class Tombstone extends Object {
36342
- #cachedJsonLd;
36343
36473
  /**
36344
36474
  * The type URI of {@link Tombstone}: `https://www.w3.org/ns/activitystreams#Tombstone`.
36345
36475
  */
@@ -36406,8 +36536,8 @@ export class Tombstone extends Object {
36406
36536
  * @returns The JSON-LD representation of this object.
36407
36537
  */
36408
36538
  async toJsonLd(options = {}) {
36409
- if (options.format == null && this.#cachedJsonLd != null) {
36410
- return this.#cachedJsonLd;
36539
+ if (options.format == null && this._cachedJsonLd != null) {
36540
+ return this._cachedJsonLd;
36411
36541
  }
36412
36542
  if (options.format !== "compact" && options.context != null) {
36413
36543
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -36557,7 +36687,7 @@ export class Tombstone extends Object {
36557
36687
  _8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
36558
36688
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
36559
36689
  try {
36560
- instance.#cachedJsonLd = structuredClone(json);
36690
+ instance._cachedJsonLd = structuredClone(json);
36561
36691
  }
36562
36692
  catch {
36563
36693
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -36596,7 +36726,6 @@ export class Tombstone extends Object {
36596
36726
  * either can be determined by context.
36597
36727
  */
36598
36728
  export class Travel extends IntransitiveActivity {
36599
- #cachedJsonLd;
36600
36729
  /**
36601
36730
  * The type URI of {@link Travel}: `https://www.w3.org/ns/activitystreams#Travel`.
36602
36731
  */
@@ -36632,8 +36761,8 @@ export class Travel extends IntransitiveActivity {
36632
36761
  * @returns The JSON-LD representation of this object.
36633
36762
  */
36634
36763
  async toJsonLd(options = {}) {
36635
- if (options.format == null && this.#cachedJsonLd != null) {
36636
- return this.#cachedJsonLd;
36764
+ if (options.format == null && this._cachedJsonLd != null) {
36765
+ return this._cachedJsonLd;
36637
36766
  }
36638
36767
  if (options.format !== "compact" && options.context != null) {
36639
36768
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -36731,7 +36860,7 @@ export class Travel extends IntransitiveActivity {
36731
36860
  }
36732
36861
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
36733
36862
  try {
36734
- instance.#cachedJsonLd = structuredClone(json);
36863
+ instance._cachedJsonLd = structuredClone(json);
36735
36864
  }
36736
36865
  catch {
36737
36866
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -36761,7 +36890,6 @@ export class Travel extends IntransitiveActivity {
36761
36890
  * The `target` and `origin` typically have no defined meaning.
36762
36891
  */
36763
36892
  export class Undo extends Activity {
36764
- #cachedJsonLd;
36765
36893
  /**
36766
36894
  * The type URI of {@link Undo}: `https://www.w3.org/ns/activitystreams#Undo`.
36767
36895
  */
@@ -36797,8 +36925,8 @@ export class Undo extends Activity {
36797
36925
  * @returns The JSON-LD representation of this object.
36798
36926
  */
36799
36927
  async toJsonLd(options = {}) {
36800
- if (options.format == null && this.#cachedJsonLd != null) {
36801
- return this.#cachedJsonLd;
36928
+ if (options.format == null && this._cachedJsonLd != null) {
36929
+ return this._cachedJsonLd;
36802
36930
  }
36803
36931
  if (options.format !== "compact" && options.context != null) {
36804
36932
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -36896,7 +37024,7 @@ export class Undo extends Activity {
36896
37024
  }
36897
37025
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
36898
37026
  try {
36899
- instance.#cachedJsonLd = structuredClone(json);
37027
+ instance._cachedJsonLd = structuredClone(json);
36900
37028
  }
36901
37029
  catch {
36902
37030
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -36924,7 +37052,6 @@ export class Undo extends Activity {
36924
37052
  * The `target` and `origin` typically have no defined meaning.
36925
37053
  */
36926
37054
  export class Update extends Activity {
36927
- #cachedJsonLd;
36928
37055
  /**
36929
37056
  * The type URI of {@link Update}: `https://www.w3.org/ns/activitystreams#Update`.
36930
37057
  */
@@ -36960,8 +37087,8 @@ export class Update extends Activity {
36960
37087
  * @returns The JSON-LD representation of this object.
36961
37088
  */
36962
37089
  async toJsonLd(options = {}) {
36963
- if (options.format == null && this.#cachedJsonLd != null) {
36964
- return this.#cachedJsonLd;
37090
+ if (options.format == null && this._cachedJsonLd != null) {
37091
+ return this._cachedJsonLd;
36965
37092
  }
36966
37093
  if (options.format !== "compact" && options.context != null) {
36967
37094
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -37082,7 +37209,7 @@ export class Update extends Activity {
37082
37209
  }
37083
37210
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
37084
37211
  try {
37085
- instance.#cachedJsonLd = structuredClone(json);
37212
+ instance._cachedJsonLd = structuredClone(json);
37086
37213
  }
37087
37214
  catch {
37088
37215
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -37106,7 +37233,6 @@ export class Update extends Activity {
37106
37233
  /** Represents a video document of any kind.
37107
37234
  */
37108
37235
  export class Video extends Document {
37109
- #cachedJsonLd;
37110
37236
  /**
37111
37237
  * The type URI of {@link Video}: `https://www.w3.org/ns/activitystreams#Video`.
37112
37238
  */
@@ -37142,8 +37268,8 @@ export class Video extends Document {
37142
37268
  * @returns The JSON-LD representation of this object.
37143
37269
  */
37144
37270
  async toJsonLd(options = {}) {
37145
- if (options.format == null && this.#cachedJsonLd != null) {
37146
- return this.#cachedJsonLd;
37271
+ if (options.format == null && this._cachedJsonLd != null) {
37272
+ return this._cachedJsonLd;
37147
37273
  }
37148
37274
  if (options.format !== "compact" && options.context != null) {
37149
37275
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -37257,7 +37383,7 @@ export class Video extends Document {
37257
37383
  }
37258
37384
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
37259
37385
  try {
37260
- instance.#cachedJsonLd = structuredClone(json);
37386
+ instance._cachedJsonLd = structuredClone(json);
37261
37387
  }
37262
37388
  catch {
37263
37389
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });
@@ -37281,7 +37407,6 @@ export class Video extends Document {
37281
37407
  /** Indicates that the `actor` has viewed the object.
37282
37408
  */
37283
37409
  export class View extends Activity {
37284
- #cachedJsonLd;
37285
37410
  /**
37286
37411
  * The type URI of {@link View}: `https://www.w3.org/ns/activitystreams#View`.
37287
37412
  */
@@ -37317,8 +37442,8 @@ export class View extends Activity {
37317
37442
  * @returns The JSON-LD representation of this object.
37318
37443
  */
37319
37444
  async toJsonLd(options = {}) {
37320
- if (options.format == null && this.#cachedJsonLd != null) {
37321
- return this.#cachedJsonLd;
37445
+ if (options.format == null && this._cachedJsonLd != null) {
37446
+ return this._cachedJsonLd;
37322
37447
  }
37323
37448
  if (options.format !== "compact" && options.context != null) {
37324
37449
  throw new TypeError("The context option can only be used when the format option is set " +
@@ -37416,7 +37541,7 @@ export class View extends Activity {
37416
37541
  }
37417
37542
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
37418
37543
  try {
37419
- instance.#cachedJsonLd = structuredClone(json);
37544
+ instance._cachedJsonLd = structuredClone(json);
37420
37545
  }
37421
37546
  catch {
37422
37547
  getLogger(["fedify", "vocab"]).warn("Failed to cache JSON-LD: {json}", { json });