@fedify/vocab 2.5.0-dev.2314 → 2.5.0-dev.2327

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mod.cjs CHANGED
@@ -36,7 +36,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
36
36
  let es_toolkit = require("es-toolkit");
37
37
  //#region deno.json
38
38
  var name = "@fedify/vocab";
39
- var version = "2.5.0-dev.2314+d73be480";
39
+ var version = "2.5.0-dev.2327+3a7ba490";
40
40
  //#endregion
41
41
  //#region src/type.ts
42
42
  function getTypeId(object) {
@@ -3664,7 +3664,7 @@ function inspectIri(iri) {
3664
3664
  }
3665
3665
  function isValidLanguageTag(language) {
3666
3666
  try {
3667
- new Intl.Locale(language);
3667
+ new Intl.Locale((0, _fedify_vocab_runtime.normalizeLanguageTag)(language));
3668
3668
  return true;
3669
3669
  } catch (error) {
3670
3670
  if (error instanceof RangeError) return false;
@@ -4020,7 +4020,7 @@ var Object$1 = class Object$1 {
4020
4020
  if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
4021
4021
  else throw new TypeError("The id must be a URL.");
4022
4022
  if ("attachments" in values && values.attachments != null) if (Array.isArray(values.attachments) && values.attachments.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) {
4023
- this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
4023
+ this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
4024
4024
  for (let i = 0; i < values.attachments.length; i++) this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
4025
4025
  } else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
4026
4026
  if ("attribution" in values && values.attribution != null) if (values.attribution instanceof Application || values.attribution instanceof Group || values.attribution instanceof Organization || values.attribution instanceof Person || values.attribution instanceof Service || values.attribution instanceof URL) {
@@ -4030,7 +4030,7 @@ var Object$1 = class Object$1 {
4030
4030
  if ("attributions" in values && values.attributions != null) {
4031
4031
  if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot initialize both attribution and attributions at the same time.");
4032
4032
  if (Array.isArray(values.attributions) && values.attributions.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
4033
- this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
4033
+ this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
4034
4034
  for (let i = 0; i < values.attributions.length; i++) this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
4035
4035
  } else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
4036
4036
  }
@@ -4041,7 +4041,7 @@ var Object$1 = class Object$1 {
4041
4041
  if ("audiences" in values && values.audiences != null) {
4042
4042
  if ("audience" in values && values.audience != null) throw new TypeError("Cannot initialize both audience and audiences at the same time.");
4043
4043
  if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
4044
- this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
4044
+ this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
4045
4045
  for (let i = 0; i < values.audiences.length; i++) this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
4046
4046
  } else throw new TypeError("The audiences must be an array of type Object | URL.");
4047
4047
  }
@@ -4049,24 +4049,24 @@ var Object$1 = class Object$1 {
4049
4049
  else throw new TypeError("The content must be of type string | LanguageString.");
4050
4050
  if ("contents" in values && values.contents != null) {
4051
4051
  if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
4052
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
4052
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
4053
4053
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
4054
4054
  }
4055
4055
  if ("contexts" in values && values.contexts != null) if (Array.isArray(values.contexts) && values.contexts.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4056
- this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
4056
+ this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
4057
4057
  for (let i = 0; i < values.contexts.length; i++) this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
4058
4058
  } else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
4059
4059
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
4060
4060
  else throw new TypeError("The name must be of type string | LanguageString.");
4061
4061
  if ("names" in values && values.names != null) {
4062
4062
  if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
4063
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
4063
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
4064
4064
  else throw new TypeError("The names must be an array of type string | LanguageString.");
4065
4065
  }
4066
4066
  if ("endTime" in values && values.endTime != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
4067
4067
  else throw new TypeError("The endTime must be of type Temporal.Instant.");
4068
4068
  if ("generators" in values && values.generators != null) if (Array.isArray(values.generators) && values.generators.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4069
- this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
4069
+ this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
4070
4070
  for (let i = 0; i < values.generators.length; i++) this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
4071
4071
  } else throw new TypeError("The generators must be an array of type Object | Link | URL.");
4072
4072
  if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
@@ -4076,7 +4076,7 @@ var Object$1 = class Object$1 {
4076
4076
  if ("icons" in values && values.icons != null) {
4077
4077
  if ("icon" in values && values.icon != null) throw new TypeError("Cannot initialize both icon and icons at the same time.");
4078
4078
  if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
4079
- this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
4079
+ this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
4080
4080
  for (let i = 0; i < values.icons.length; i++) this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
4081
4081
  } else throw new TypeError("The icons must be an array of type Image | URL.");
4082
4082
  }
@@ -4087,7 +4087,7 @@ var Object$1 = class Object$1 {
4087
4087
  if ("images" in values && values.images != null) {
4088
4088
  if ("image" in values && values.image != null) throw new TypeError("Cannot initialize both image and images at the same time.");
4089
4089
  if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
4090
- this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
4090
+ this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
4091
4091
  for (let i = 0; i < values.images.length; i++) this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
4092
4092
  } else throw new TypeError("The images must be an array of type Image | URL.");
4093
4093
  }
@@ -4098,7 +4098,7 @@ var Object$1 = class Object$1 {
4098
4098
  if ("replyTargets" in values && values.replyTargets != null) {
4099
4099
  if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot initialize both replyTarget and replyTargets at the same time.");
4100
4100
  if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4101
- this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
4101
+ this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
4102
4102
  for (let i = 0; i < values.replyTargets.length; i++) this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
4103
4103
  } else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
4104
4104
  }
@@ -4109,7 +4109,7 @@ var Object$1 = class Object$1 {
4109
4109
  if ("locations" in values && values.locations != null) {
4110
4110
  if ("location" in values && values.location != null) throw new TypeError("Cannot initialize both location and locations at the same time.");
4111
4111
  if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4112
- this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
4112
+ this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
4113
4113
  for (let i = 0; i < values.locations.length; i++) this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
4114
4114
  } else throw new TypeError("The locations must be an array of type Object | Link | URL.");
4115
4115
  }
@@ -4120,7 +4120,7 @@ var Object$1 = class Object$1 {
4120
4120
  if ("previews" in values && values.previews != null) {
4121
4121
  if ("preview" in values && values.preview != null) throw new TypeError("Cannot initialize both preview and previews at the same time.");
4122
4122
  if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
4123
- this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
4123
+ this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
4124
4124
  for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
4125
4125
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
4126
4126
  }
@@ -4148,11 +4148,11 @@ var Object$1 = class Object$1 {
4148
4148
  else throw new TypeError("The summary must be of type string | LanguageString.");
4149
4149
  if ("summaries" in values && values.summaries != null) {
4150
4150
  if ("summary" in values && values.summary != null) throw new TypeError("Cannot initialize both summary and summaries at the same time.");
4151
- if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
4151
+ if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
4152
4152
  else throw new TypeError("The summaries must be an array of type string | LanguageString.");
4153
4153
  }
4154
4154
  if ("tags" in values && values.tags != null) if (Array.isArray(values.tags) && values.tags.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4155
- this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
4155
+ this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
4156
4156
  for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
4157
4157
  } else throw new TypeError("The tags must be an array of type Object | Link | URL.");
4158
4158
  if ("updated" in values && values.updated != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
@@ -4161,7 +4161,7 @@ var Object$1 = class Object$1 {
4161
4161
  else throw new TypeError("The url must be of type URL | Link.");
4162
4162
  if ("urls" in values && values.urls != null) {
4163
4163
  if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
4164
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
4164
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
4165
4165
  else throw new TypeError("The urls must be an array of type URL | Link.");
4166
4166
  }
4167
4167
  if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
@@ -4171,7 +4171,7 @@ var Object$1 = class Object$1 {
4171
4171
  if ("tos" in values && values.tos != null) {
4172
4172
  if ("to" in values && values.to != null) throw new TypeError("Cannot initialize both to and tos at the same time.");
4173
4173
  if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
4174
- this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
4174
+ this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
4175
4175
  for (let i = 0; i < values.tos.length; i++) this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
4176
4176
  } else throw new TypeError("The tos must be an array of type Object | URL.");
4177
4177
  }
@@ -4182,7 +4182,7 @@ var Object$1 = class Object$1 {
4182
4182
  if ("btos" in values && values.btos != null) {
4183
4183
  if ("bto" in values && values.bto != null) throw new TypeError("Cannot initialize both bto and btos at the same time.");
4184
4184
  if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
4185
- this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
4185
+ this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
4186
4186
  for (let i = 0; i < values.btos.length; i++) this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
4187
4187
  } else throw new TypeError("The btos must be an array of type Object | URL.");
4188
4188
  }
@@ -4193,7 +4193,7 @@ var Object$1 = class Object$1 {
4193
4193
  if ("ccs" in values && values.ccs != null) {
4194
4194
  if ("cc" in values && values.cc != null) throw new TypeError("Cannot initialize both cc and ccs at the same time.");
4195
4195
  if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
4196
- this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
4196
+ this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
4197
4197
  for (let i = 0; i < values.ccs.length; i++) this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
4198
4198
  } else throw new TypeError("The ccs must be an array of type Object | URL.");
4199
4199
  }
@@ -4204,7 +4204,7 @@ var Object$1 = class Object$1 {
4204
4204
  if ("bccs" in values && values.bccs != null) {
4205
4205
  if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot initialize both bcc and bccs at the same time.");
4206
4206
  if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
4207
- this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
4207
+ this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
4208
4208
  for (let i = 0; i < values.bccs.length; i++) this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
4209
4209
  } else throw new TypeError("The bccs must be an array of type Object | URL.");
4210
4210
  }
@@ -4223,7 +4223,7 @@ var Object$1 = class Object$1 {
4223
4223
  if ("proofs" in values && values.proofs != null) {
4224
4224
  if ("proof" in values && values.proof != null) throw new TypeError("Cannot initialize both proof and proofs at the same time.");
4225
4225
  if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
4226
- this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
4226
+ this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
4227
4227
  for (let i = 0; i < values.proofs.length; i++) this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
4228
4228
  } else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
4229
4229
  }
@@ -4243,7 +4243,7 @@ var Object$1 = class Object$1 {
4243
4243
  this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
4244
4244
  this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.add(0);
4245
4245
  } else throw new TypeError("The announceAuthorization must be of type AnnounceAuthorization | URL.");
4246
- if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations;
4246
+ if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations.slice();
4247
4247
  else throw new TypeError("The translations must be an array of type Translation.");
4248
4248
  }
4249
4249
  /**
@@ -4257,7 +4257,8 @@ var Object$1 = class Object$1 {
4257
4257
  *
4258
4258
  * @param values The values to update the clone with.
4259
4259
  * @param options The options to use for cloning.
4260
- * @returns The cloned instance.
4260
+ * @returns The cloned instance with its own property arrays. Nested objects
4261
+ * and URLs are shared with this instance.
4261
4262
  */
4262
4263
  clone(values = {}, options = {}) {
4263
4264
  if (this._warning != null) {
@@ -4269,14 +4270,14 @@ var Object$1 = class Object$1 {
4269
4270
  }
4270
4271
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
4271
4272
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
4272
- clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;
4273
+ clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();
4273
4274
  clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment);
4274
4275
  if ("attachments" in values && values.attachments != null) if (Array.isArray(values.attachments) && values.attachments.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) {
4275
- clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
4276
+ clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
4276
4277
  clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = /* @__PURE__ */ new Set();
4277
4278
  for (let i = 0; i < values.attachments.length; i++) clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
4278
4279
  } else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
4279
- clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
4280
+ clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();
4280
4281
  clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo);
4281
4282
  if ("attribution" in values && values.attribution != null) if (values.attribution instanceof Application || values.attribution instanceof Group || values.attribution instanceof Organization || values.attribution instanceof Person || values.attribution instanceof Service || values.attribution instanceof URL) {
4282
4283
  clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = [values.attribution];
@@ -4285,12 +4286,12 @@ var Object$1 = class Object$1 {
4285
4286
  if ("attributions" in values && values.attributions != null) {
4286
4287
  if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot update both attribution and attributions at the same time.");
4287
4288
  if (Array.isArray(values.attributions) && values.attributions.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
4288
- clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
4289
+ clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
4289
4290
  clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = /* @__PURE__ */ new Set();
4290
4291
  for (let i = 0; i < values.attributions.length; i++) clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
4291
4292
  } else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
4292
4293
  }
4293
- clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
4294
+ clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();
4294
4295
  clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience);
4295
4296
  if ("audience" in values && values.audience != null) if (values.audience instanceof Object$1 || values.audience instanceof URL) {
4296
4297
  clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = [values.audience];
@@ -4299,45 +4300,45 @@ var Object$1 = class Object$1 {
4299
4300
  if ("audiences" in values && values.audiences != null) {
4300
4301
  if ("audience" in values && values.audience != null) throw new TypeError("Cannot update both audience and audiences at the same time.");
4301
4302
  if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
4302
- clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
4303
+ clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
4303
4304
  clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = /* @__PURE__ */ new Set();
4304
4305
  for (let i = 0; i < values.audiences.length; i++) clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
4305
4306
  } else throw new TypeError("The audiences must be an array of type Object | URL.");
4306
4307
  }
4307
- clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
4308
+ clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
4308
4309
  if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof _fedify_vocab_runtime.LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
4309
4310
  else throw new TypeError("The content must be of type string | LanguageString.");
4310
4311
  if ("contents" in values && values.contents != null) {
4311
4312
  if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
4312
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
4313
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
4313
4314
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
4314
4315
  }
4315
- clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;
4316
+ clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();
4316
4317
  clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context);
4317
4318
  if ("contexts" in values && values.contexts != null) if (Array.isArray(values.contexts) && values.contexts.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4318
- clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
4319
+ clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
4319
4320
  clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = /* @__PURE__ */ new Set();
4320
4321
  for (let i = 0; i < values.contexts.length; i++) clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
4321
4322
  } else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
4322
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
4323
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
4323
4324
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
4324
4325
  else throw new TypeError("The name must be of type string | LanguageString.");
4325
4326
  if ("names" in values && values.names != null) {
4326
4327
  if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
4327
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
4328
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
4328
4329
  else throw new TypeError("The names must be an array of type string | LanguageString.");
4329
4330
  }
4330
- clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
4331
+ clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice();
4331
4332
  if ("endTime" in values && values.endTime != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
4332
4333
  else throw new TypeError("The endTime must be of type Temporal.Instant.");
4333
- clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
4334
+ clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();
4334
4335
  clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
4335
4336
  if ("generators" in values && values.generators != null) if (Array.isArray(values.generators) && values.generators.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4336
- clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
4337
+ clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
4337
4338
  clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = /* @__PURE__ */ new Set();
4338
4339
  for (let i = 0; i < values.generators.length; i++) clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
4339
4340
  } else throw new TypeError("The generators must be an array of type Object | Link | URL.");
4340
- clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
4341
+ clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();
4341
4342
  clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon);
4342
4343
  if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
4343
4344
  clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = [values.icon];
@@ -4346,12 +4347,12 @@ var Object$1 = class Object$1 {
4346
4347
  if ("icons" in values && values.icons != null) {
4347
4348
  if ("icon" in values && values.icon != null) throw new TypeError("Cannot update both icon and icons at the same time.");
4348
4349
  if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
4349
- clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
4350
+ clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
4350
4351
  clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = /* @__PURE__ */ new Set();
4351
4352
  for (let i = 0; i < values.icons.length; i++) clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
4352
4353
  } else throw new TypeError("The icons must be an array of type Image | URL.");
4353
4354
  }
4354
- clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
4355
+ clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();
4355
4356
  clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image);
4356
4357
  if ("image" in values && values.image != null) if (values.image instanceof Image || values.image instanceof URL) {
4357
4358
  clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [values.image];
@@ -4360,12 +4361,12 @@ var Object$1 = class Object$1 {
4360
4361
  if ("images" in values && values.images != null) {
4361
4362
  if ("image" in values && values.image != null) throw new TypeError("Cannot update both image and images at the same time.");
4362
4363
  if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
4363
- clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
4364
+ clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
4364
4365
  clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = /* @__PURE__ */ new Set();
4365
4366
  for (let i = 0; i < values.images.length; i++) clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
4366
4367
  } else throw new TypeError("The images must be an array of type Image | URL.");
4367
4368
  }
4368
- clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
4369
+ clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();
4369
4370
  clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo);
4370
4371
  if ("replyTarget" in values && values.replyTarget != null) if (values.replyTarget instanceof Object$1 || values.replyTarget instanceof Link || values.replyTarget instanceof URL) {
4371
4372
  clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [values.replyTarget];
@@ -4374,12 +4375,12 @@ var Object$1 = class Object$1 {
4374
4375
  if ("replyTargets" in values && values.replyTargets != null) {
4375
4376
  if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot update both replyTarget and replyTargets at the same time.");
4376
4377
  if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4377
- clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
4378
+ clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
4378
4379
  clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = /* @__PURE__ */ new Set();
4379
4380
  for (let i = 0; i < values.replyTargets.length; i++) clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
4380
4381
  } else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
4381
4382
  }
4382
- clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
4383
+ clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();
4383
4384
  clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location);
4384
4385
  if ("location" in values && values.location != null) if (values.location instanceof Object$1 || values.location instanceof Link || values.location instanceof URL) {
4385
4386
  clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = [values.location];
@@ -4388,12 +4389,12 @@ var Object$1 = class Object$1 {
4388
4389
  if ("locations" in values && values.locations != null) {
4389
4390
  if ("location" in values && values.location != null) throw new TypeError("Cannot update both location and locations at the same time.");
4390
4391
  if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4391
- clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
4392
+ clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
4392
4393
  clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = /* @__PURE__ */ new Set();
4393
4394
  for (let i = 0; i < values.locations.length; i++) clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
4394
4395
  } else throw new TypeError("The locations must be an array of type Object | Link | URL.");
4395
4396
  }
4396
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
4397
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
4397
4398
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
4398
4399
  if ("preview" in values && values.preview != null) if (values.preview instanceof Link || values.preview instanceof Object$1 || values.preview instanceof URL) {
4399
4400
  clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = [values.preview];
@@ -4402,68 +4403,68 @@ var Object$1 = class Object$1 {
4402
4403
  if ("previews" in values && values.previews != null) {
4403
4404
  if ("preview" in values && values.preview != null) throw new TypeError("Cannot update both preview and previews at the same time.");
4404
4405
  if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
4405
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
4406
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
4406
4407
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
4407
4408
  for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
4408
4409
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
4409
4410
  }
4410
- clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
4411
+ clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice();
4411
4412
  if ("published" in values && values.published != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
4412
4413
  else throw new TypeError("The published must be of type Temporal.Instant.");
4413
- clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
4414
+ clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();
4414
4415
  clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
4415
4416
  if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
4416
4417
  clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
4417
4418
  clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = /* @__PURE__ */ new Set([0]);
4418
4419
  } else throw new TypeError("The replies must be of type Collection | URL.");
4419
- clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;
4420
+ clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();
4420
4421
  clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares);
4421
4422
  if ("shares" in values && values.shares != null) if (values.shares instanceof Collection || values.shares instanceof URL) {
4422
4423
  clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = [values.shares];
4423
4424
  clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = /* @__PURE__ */ new Set([0]);
4424
4425
  } else throw new TypeError("The shares must be of type Collection | URL.");
4425
- clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
4426
+ clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();
4426
4427
  clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes);
4427
4428
  if ("likes" in values && values.likes != null) if (values.likes instanceof Collection || values.likes instanceof URL) {
4428
4429
  clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [values.likes];
4429
4430
  clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = /* @__PURE__ */ new Set([0]);
4430
4431
  } else throw new TypeError("The likes must be of type Collection | URL.");
4431
- clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
4432
+ clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();
4432
4433
  clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions);
4433
4434
  if ("emojiReactions" in values && values.emojiReactions != null) if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) {
4434
4435
  clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
4435
4436
  clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = /* @__PURE__ */ new Set([0]);
4436
4437
  } else throw new TypeError("The emojiReactions must be of type Collection | URL.");
4437
- clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
4438
+ clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice();
4438
4439
  if ("startTime" in values && values.startTime != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
4439
4440
  else throw new TypeError("The startTime must be of type Temporal.Instant.");
4440
- clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
4441
+ clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice();
4441
4442
  if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof _fedify_vocab_runtime.LanguageString) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
4442
4443
  else throw new TypeError("The summary must be of type string | LanguageString.");
4443
4444
  if ("summaries" in values && values.summaries != null) {
4444
4445
  if ("summary" in values && values.summary != null) throw new TypeError("Cannot update both summary and summaries at the same time.");
4445
- if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
4446
+ if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
4446
4447
  else throw new TypeError("The summaries must be an array of type string | LanguageString.");
4447
4448
  }
4448
- clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;
4449
+ clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();
4449
4450
  clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag);
4450
4451
  if ("tags" in values && values.tags != null) if (Array.isArray(values.tags) && values.tags.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
4451
- clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
4452
+ clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
4452
4453
  clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = /* @__PURE__ */ new Set();
4453
4454
  for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
4454
4455
  } else throw new TypeError("The tags must be an array of type Object | Link | URL.");
4455
- clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
4456
+ clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice();
4456
4457
  if ("updated" in values && values.updated != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
4457
4458
  else throw new TypeError("The updated must be of type Temporal.Instant.");
4458
- clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
4459
+ clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
4459
4460
  if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
4460
4461
  else throw new TypeError("The url must be of type URL | Link.");
4461
4462
  if ("urls" in values && values.urls != null) {
4462
4463
  if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
4463
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
4464
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
4464
4465
  else throw new TypeError("The urls must be an array of type URL | Link.");
4465
4466
  }
4466
- clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
4467
+ clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();
4467
4468
  clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to);
4468
4469
  if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
4469
4470
  clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = [values.to];
@@ -4472,12 +4473,12 @@ var Object$1 = class Object$1 {
4472
4473
  if ("tos" in values && values.tos != null) {
4473
4474
  if ("to" in values && values.to != null) throw new TypeError("Cannot update both to and tos at the same time.");
4474
4475
  if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
4475
- clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
4476
+ clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
4476
4477
  clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = /* @__PURE__ */ new Set();
4477
4478
  for (let i = 0; i < values.tos.length; i++) clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
4478
4479
  } else throw new TypeError("The tos must be an array of type Object | URL.");
4479
4480
  }
4480
- clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
4481
+ clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();
4481
4482
  clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto);
4482
4483
  if ("bto" in values && values.bto != null) if (values.bto instanceof Object$1 || values.bto instanceof URL) {
4483
4484
  clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [values.bto];
@@ -4486,12 +4487,12 @@ var Object$1 = class Object$1 {
4486
4487
  if ("btos" in values && values.btos != null) {
4487
4488
  if ("bto" in values && values.bto != null) throw new TypeError("Cannot update both bto and btos at the same time.");
4488
4489
  if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
4489
- clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
4490
+ clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
4490
4491
  clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = /* @__PURE__ */ new Set();
4491
4492
  for (let i = 0; i < values.btos.length; i++) clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
4492
4493
  } else throw new TypeError("The btos must be an array of type Object | URL.");
4493
4494
  }
4494
- clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
4495
+ clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();
4495
4496
  clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc);
4496
4497
  if ("cc" in values && values.cc != null) if (values.cc instanceof Object$1 || values.cc instanceof URL) {
4497
4498
  clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [values.cc];
@@ -4500,12 +4501,12 @@ var Object$1 = class Object$1 {
4500
4501
  if ("ccs" in values && values.ccs != null) {
4501
4502
  if ("cc" in values && values.cc != null) throw new TypeError("Cannot update both cc and ccs at the same time.");
4502
4503
  if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
4503
- clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
4504
+ clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
4504
4505
  clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = /* @__PURE__ */ new Set();
4505
4506
  for (let i = 0; i < values.ccs.length; i++) clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
4506
4507
  } else throw new TypeError("The ccs must be an array of type Object | URL.");
4507
4508
  }
4508
- clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
4509
+ clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();
4509
4510
  clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc);
4510
4511
  if ("bcc" in values && values.bcc != null) if (values.bcc instanceof Object$1 || values.bcc instanceof URL) {
4511
4512
  clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [values.bcc];
@@ -4514,24 +4515,24 @@ var Object$1 = class Object$1 {
4514
4515
  if ("bccs" in values && values.bccs != null) {
4515
4516
  if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot update both bcc and bccs at the same time.");
4516
4517
  if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
4517
- clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
4518
+ clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
4518
4519
  clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = /* @__PURE__ */ new Set();
4519
4520
  for (let i = 0; i < values.bccs.length; i++) clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
4520
4521
  } else throw new TypeError("The bccs must be an array of type Object | URL.");
4521
4522
  }
4522
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
4523
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
4523
4524
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
4524
4525
  else throw new TypeError("The mediaType must be of type string.");
4525
- clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
4526
+ clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice();
4526
4527
  if ("duration" in values && values.duration != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalDuration)(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
4527
4528
  else throw new TypeError("The duration must be of type Temporal.Duration.");
4528
- clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
4529
+ clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice();
4529
4530
  if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
4530
4531
  else throw new TypeError("The sensitive must be of type boolean.");
4531
- clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
4532
+ clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice();
4532
4533
  if ("source" in values && values.source != null) if (values.source instanceof Source) clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [values.source];
4533
4534
  else throw new TypeError("The source must be of type Source.");
4534
- clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
4535
+ clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();
4535
4536
  clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof);
4536
4537
  if ("proof" in values && values.proof != null) if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) {
4537
4538
  clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [values.proof];
@@ -4540,37 +4541,37 @@ var Object$1 = class Object$1 {
4540
4541
  if ("proofs" in values && values.proofs != null) {
4541
4542
  if ("proof" in values && values.proof != null) throw new TypeError("Cannot update both proof and proofs at the same time.");
4542
4543
  if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
4543
- clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
4544
+ clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
4544
4545
  clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = /* @__PURE__ */ new Set();
4545
4546
  for (let i = 0; i < values.proofs.length; i++) clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
4546
4547
  } else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
4547
4548
  }
4548
- clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
4549
+ clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.slice();
4549
4550
  if ("interactionPolicy" in values && values.interactionPolicy != null) if (values.interactionPolicy instanceof InteractionPolicy) clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = [values.interactionPolicy];
4550
4551
  else throw new TypeError("The interactionPolicy must be of type InteractionPolicy.");
4551
- clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
4552
+ clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.slice();
4552
4553
  if ("approvedBy" in values && values.approvedBy != null) if (values.approvedBy instanceof URL) clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = [values.approvedBy];
4553
4554
  else throw new TypeError("The approvedBy must be of type URL.");
4554
- clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
4555
+ clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.slice();
4555
4556
  clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set(this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization);
4556
4557
  if ("likeAuthorization" in values && values.likeAuthorization != null) if (values.likeAuthorization instanceof LikeAuthorization || values.likeAuthorization instanceof URL) {
4557
4558
  clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = [values.likeAuthorization];
4558
4559
  clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = /* @__PURE__ */ new Set([0]);
4559
4560
  } else throw new TypeError("The likeAuthorization must be of type LikeAuthorization | URL.");
4560
- clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
4561
+ clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.slice();
4561
4562
  clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set(this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization);
4562
4563
  if ("replyAuthorization" in values && values.replyAuthorization != null) if (values.replyAuthorization instanceof ReplyAuthorization || values.replyAuthorization instanceof URL) {
4563
4564
  clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = [values.replyAuthorization];
4564
4565
  clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = /* @__PURE__ */ new Set([0]);
4565
4566
  } else throw new TypeError("The replyAuthorization must be of type ReplyAuthorization | URL.");
4566
- clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
4567
+ clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.slice();
4567
4568
  clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = new Set(this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization);
4568
4569
  if ("announceAuthorization" in values && values.announceAuthorization != null) if (values.announceAuthorization instanceof AnnounceAuthorization || values.announceAuthorization instanceof URL) {
4569
4570
  clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
4570
4571
  clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = /* @__PURE__ */ new Set([0]);
4571
4572
  } else throw new TypeError("The announceAuthorization must be of type AnnounceAuthorization | URL.");
4572
- clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
4573
- if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations;
4573
+ clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.slice();
4574
+ if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations.slice();
4574
4575
  else throw new TypeError("The translations must be an array of type Translation.");
4575
4576
  return clone;
4576
4577
  }
@@ -13641,7 +13642,8 @@ var Emoji = class Emoji extends Object$1 {
13641
13642
  *
13642
13643
  * @param values The values to update the clone with.
13643
13644
  * @param options The options to use for cloning.
13644
- * @returns The cloned instance.
13645
+ * @returns The cloned instance with its own property arrays. Nested objects
13646
+ * and URLs are shared with this instance.
13645
13647
  */
13646
13648
  clone(values = {}, options = {}) {
13647
13649
  if (this._warning != null) {
@@ -13863,7 +13865,8 @@ var ChatMessage = class ChatMessage extends Object$1 {
13863
13865
  *
13864
13866
  * @param values The values to update the clone with.
13865
13867
  * @param options The options to use for cloning.
13866
- * @returns The cloned instance.
13868
+ * @returns The cloned instance with its own property arrays. Nested objects
13869
+ * and URLs are shared with this instance.
13867
13870
  */
13868
13871
  clone(values = {}, options = {}) {
13869
13872
  if (this._warning != null) {
@@ -13874,16 +13877,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
13874
13877
  };
13875
13878
  }
13876
13879
  const clone = super.clone(values, options);
13877
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
13880
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
13878
13881
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
13879
13882
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
13880
13883
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
13881
13884
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
13882
13885
  } else throw new TypeError("The quote must be of type Object | URL.");
13883
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
13886
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
13884
13887
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
13885
13888
  else throw new TypeError("The quoteUrl must be of type URL.");
13886
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
13889
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
13887
13890
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
13888
13891
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
13889
13892
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -14752,7 +14755,7 @@ var Activity = class Activity extends Object$1 {
14752
14755
  if ("actors" in values && values.actors != null) {
14753
14756
  if ("actor" in values && values.actor != null) throw new TypeError("Cannot initialize both actor and actors at the same time.");
14754
14757
  if (Array.isArray(values.actors) && values.actors.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
14755
- this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
14758
+ this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
14756
14759
  for (let i = 0; i < values.actors.length; i++) this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
14757
14760
  } else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
14758
14761
  }
@@ -14763,7 +14766,7 @@ var Activity = class Activity extends Object$1 {
14763
14766
  if ("objects" in values && values.objects != null) {
14764
14767
  if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
14765
14768
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
14766
- this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
14769
+ this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
14767
14770
  for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
14768
14771
  } else throw new TypeError("The objects must be an array of type Object | URL.");
14769
14772
  }
@@ -14774,7 +14777,7 @@ var Activity = class Activity extends Object$1 {
14774
14777
  if ("targets" in values && values.targets != null) {
14775
14778
  if ("target" in values && values.target != null) throw new TypeError("Cannot initialize both target and targets at the same time.");
14776
14779
  if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
14777
- this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
14780
+ this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
14778
14781
  for (let i = 0; i < values.targets.length; i++) this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
14779
14782
  } else throw new TypeError("The targets must be an array of type Object | URL.");
14780
14783
  }
@@ -14785,7 +14788,7 @@ var Activity = class Activity extends Object$1 {
14785
14788
  if ("results" in values && values.results != null) {
14786
14789
  if ("result" in values && values.result != null) throw new TypeError("Cannot initialize both result and results at the same time.");
14787
14790
  if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
14788
- this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
14791
+ this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
14789
14792
  for (let i = 0; i < values.results.length; i++) this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
14790
14793
  } else throw new TypeError("The results must be an array of type Object | URL.");
14791
14794
  }
@@ -14796,7 +14799,7 @@ var Activity = class Activity extends Object$1 {
14796
14799
  if ("origins" in values && values.origins != null) {
14797
14800
  if ("origin" in values && values.origin != null) throw new TypeError("Cannot initialize both origin and origins at the same time.");
14798
14801
  if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
14799
- this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
14802
+ this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
14800
14803
  for (let i = 0; i < values.origins.length; i++) this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
14801
14804
  } else throw new TypeError("The origins must be an array of type Object | URL.");
14802
14805
  }
@@ -14807,7 +14810,7 @@ var Activity = class Activity extends Object$1 {
14807
14810
  if ("instruments" in values && values.instruments != null) {
14808
14811
  if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot initialize both instrument and instruments at the same time.");
14809
14812
  if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
14810
- this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
14813
+ this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
14811
14814
  for (let i = 0; i < values.instruments.length; i++) this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
14812
14815
  } else throw new TypeError("The instruments must be an array of type Object | URL.");
14813
14816
  }
@@ -14823,7 +14826,8 @@ var Activity = class Activity extends Object$1 {
14823
14826
  *
14824
14827
  * @param values The values to update the clone with.
14825
14828
  * @param options The options to use for cloning.
14826
- * @returns The cloned instance.
14829
+ * @returns The cloned instance with its own property arrays. Nested objects
14830
+ * and URLs are shared with this instance.
14827
14831
  */
14828
14832
  clone(values = {}, options = {}) {
14829
14833
  if (this._warning != null) {
@@ -14834,7 +14838,7 @@ var Activity = class Activity extends Object$1 {
14834
14838
  };
14835
14839
  }
14836
14840
  const clone = super.clone(values, options);
14837
- clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
14841
+ clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();
14838
14842
  clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor);
14839
14843
  if ("actor" in values && values.actor != null) if (values.actor instanceof Application || values.actor instanceof Group || values.actor instanceof Organization || values.actor instanceof Person || values.actor instanceof Service || values.actor instanceof URL) {
14840
14844
  clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [values.actor];
@@ -14843,12 +14847,12 @@ var Activity = class Activity extends Object$1 {
14843
14847
  if ("actors" in values && values.actors != null) {
14844
14848
  if ("actor" in values && values.actor != null) throw new TypeError("Cannot update both actor and actors at the same time.");
14845
14849
  if (Array.isArray(values.actors) && values.actors.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
14846
- clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
14850
+ clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
14847
14851
  clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = /* @__PURE__ */ new Set();
14848
14852
  for (let i = 0; i < values.actors.length; i++) clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
14849
14853
  } else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
14850
14854
  }
14851
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
14855
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
14852
14856
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
14853
14857
  if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
14854
14858
  clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
@@ -14857,12 +14861,12 @@ var Activity = class Activity extends Object$1 {
14857
14861
  if ("objects" in values && values.objects != null) {
14858
14862
  if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
14859
14863
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
14860
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
14864
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
14861
14865
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
14862
14866
  for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
14863
14867
  } else throw new TypeError("The objects must be an array of type Object | URL.");
14864
14868
  }
14865
- clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
14869
+ clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();
14866
14870
  clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target);
14867
14871
  if ("target" in values && values.target != null) if (values.target instanceof Object$1 || values.target instanceof URL) {
14868
14872
  clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [values.target];
@@ -14871,12 +14875,12 @@ var Activity = class Activity extends Object$1 {
14871
14875
  if ("targets" in values && values.targets != null) {
14872
14876
  if ("target" in values && values.target != null) throw new TypeError("Cannot update both target and targets at the same time.");
14873
14877
  if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
14874
- clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
14878
+ clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
14875
14879
  clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = /* @__PURE__ */ new Set();
14876
14880
  for (let i = 0; i < values.targets.length; i++) clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
14877
14881
  } else throw new TypeError("The targets must be an array of type Object | URL.");
14878
14882
  }
14879
- clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
14883
+ clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();
14880
14884
  clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result);
14881
14885
  if ("result" in values && values.result != null) if (values.result instanceof Object$1 || values.result instanceof URL) {
14882
14886
  clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [values.result];
@@ -14885,12 +14889,12 @@ var Activity = class Activity extends Object$1 {
14885
14889
  if ("results" in values && values.results != null) {
14886
14890
  if ("result" in values && values.result != null) throw new TypeError("Cannot update both result and results at the same time.");
14887
14891
  if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
14888
- clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
14892
+ clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
14889
14893
  clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = /* @__PURE__ */ new Set();
14890
14894
  for (let i = 0; i < values.results.length; i++) clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
14891
14895
  } else throw new TypeError("The results must be an array of type Object | URL.");
14892
14896
  }
14893
- clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;
14897
+ clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();
14894
14898
  clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin);
14895
14899
  if ("origin" in values && values.origin != null) if (values.origin instanceof Object$1 || values.origin instanceof URL) {
14896
14900
  clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = [values.origin];
@@ -14899,12 +14903,12 @@ var Activity = class Activity extends Object$1 {
14899
14903
  if ("origins" in values && values.origins != null) {
14900
14904
  if ("origin" in values && values.origin != null) throw new TypeError("Cannot update both origin and origins at the same time.");
14901
14905
  if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
14902
- clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
14906
+ clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
14903
14907
  clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = /* @__PURE__ */ new Set();
14904
14908
  for (let i = 0; i < values.origins.length; i++) clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
14905
14909
  } else throw new TypeError("The origins must be an array of type Object | URL.");
14906
14910
  }
14907
- clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
14911
+ clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();
14908
14912
  clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument);
14909
14913
  if ("instrument" in values && values.instrument != null) if (values.instrument instanceof Object$1 || values.instrument instanceof URL) {
14910
14914
  clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [values.instrument];
@@ -14913,7 +14917,7 @@ var Activity = class Activity extends Object$1 {
14913
14917
  if ("instruments" in values && values.instruments != null) {
14914
14918
  if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot update both instrument and instruments at the same time.");
14915
14919
  if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
14916
- clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
14920
+ clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
14917
14921
  clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = /* @__PURE__ */ new Set();
14918
14922
  for (let i = 0; i < values.instruments.length; i++) clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
14919
14923
  } else throw new TypeError("The instruments must be an array of type Object | URL.");
@@ -17245,7 +17249,8 @@ var EmojiReact = class EmojiReact extends Activity {
17245
17249
  *
17246
17250
  * @param values The values to update the clone with.
17247
17251
  * @param options The options to use for cloning.
17248
- * @returns The cloned instance.
17252
+ * @returns The cloned instance with its own property arrays. Nested objects
17253
+ * and URLs are shared with this instance.
17249
17254
  */
17250
17255
  clone(values = {}, options = {}) {
17251
17256
  if (this._warning != null) {
@@ -17500,7 +17505,8 @@ var PropertyValue = class {
17500
17505
  *
17501
17506
  * @param values The values to update the clone with.
17502
17507
  * @param options The options to use for cloning.
17503
- * @returns The cloned instance.
17508
+ * @returns The cloned instance with its own property arrays. Nested objects
17509
+ * and URLs are shared with this instance.
17504
17510
  */
17505
17511
  clone(values = {}, options = {}) {
17506
17512
  if (this._warning != null) {
@@ -17512,10 +17518,10 @@ var PropertyValue = class {
17512
17518
  }
17513
17519
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
17514
17520
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
17515
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
17521
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
17516
17522
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
17517
17523
  else throw new TypeError("The name must be of type string | LanguageString.");
17518
- clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
17524
+ clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice();
17519
17525
  if ("value" in values && values.value != null) if (typeof values.value === "string" || values.value instanceof _fedify_vocab_runtime.LanguageString) clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = [values.value];
17520
17526
  else throw new TypeError("The value must be of type string | LanguageString.");
17521
17527
  return clone;
@@ -17858,7 +17864,8 @@ var Measure = class {
17858
17864
  *
17859
17865
  * @param values The values to update the clone with.
17860
17866
  * @param options The options to use for cloning.
17861
- * @returns The cloned instance.
17867
+ * @returns The cloned instance with its own property arrays. Nested objects
17868
+ * and URLs are shared with this instance.
17862
17869
  */
17863
17870
  clone(values = {}, options = {}) {
17864
17871
  if (this._warning != null) {
@@ -17870,10 +17877,10 @@ var Measure = class {
17870
17877
  }
17871
17878
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
17872
17879
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
17873
- clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6;
17880
+ clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6.slice();
17874
17881
  if ("unit" in values && values.unit != null) if (typeof values.unit === "string") clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
17875
17882
  else throw new TypeError("The unit must be of type string.");
17876
- clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D;
17883
+ clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D.slice();
17877
17884
  if ("numericalValue" in values && values.numericalValue != null) if (typeof values.numericalValue === "string" && (0, _fedify_vocab_runtime.isDecimal)(values.numericalValue)) clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
17878
17885
  else throw new TypeError("The numericalValue must be of type Decimal.");
17879
17886
  return clone;
@@ -18169,7 +18176,8 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
18169
18176
  *
18170
18177
  * @param values The values to update the clone with.
18171
18178
  * @param options The options to use for cloning.
18172
- * @returns The cloned instance.
18179
+ * @returns The cloned instance with its own property arrays. Nested objects
18180
+ * and URLs are shared with this instance.
18173
18181
  */
18174
18182
  clone(values = {}, options = {}) {
18175
18183
  if (this._warning != null) {
@@ -18180,13 +18188,13 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
18180
18188
  };
18181
18189
  }
18182
18190
  const clone = super.clone(values, options);
18183
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
18191
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
18184
18192
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
18185
18193
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
18186
18194
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
18187
18195
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
18188
18196
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
18189
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
18197
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
18190
18198
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
18191
18199
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
18192
18200
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -18944,7 +18952,8 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
18944
18952
  *
18945
18953
  * @param values The values to update the clone with.
18946
18954
  * @param options The options to use for cloning.
18947
- * @returns The cloned instance.
18955
+ * @returns The cloned instance with its own property arrays. Nested objects
18956
+ * and URLs are shared with this instance.
18948
18957
  */
18949
18958
  clone(values = {}, options = {}) {
18950
18959
  if (this._warning != null) {
@@ -19208,7 +19217,8 @@ var InteractionPolicy = class {
19208
19217
  *
19209
19218
  * @param values The values to update the clone with.
19210
19219
  * @param options The options to use for cloning.
19211
- * @returns The cloned instance.
19220
+ * @returns The cloned instance with its own property arrays. Nested objects
19221
+ * and URLs are shared with this instance.
19212
19222
  */
19213
19223
  clone(values = {}, options = {}) {
19214
19224
  if (this._warning != null) {
@@ -19220,19 +19230,19 @@ var InteractionPolicy = class {
19220
19230
  }
19221
19231
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
19222
19232
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
19223
- clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = this.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature;
19233
+ clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = this.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature.slice();
19224
19234
  if ("canFeature" in values && values.canFeature != null) if (values.canFeature instanceof InteractionRule) clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = [values.canFeature];
19225
19235
  else throw new TypeError("The canFeature must be of type InteractionRule.");
19226
- clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
19236
+ clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.slice();
19227
19237
  if ("canLike" in values && values.canLike != null) if (values.canLike instanceof InteractionRule) clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [values.canLike];
19228
19238
  else throw new TypeError("The canLike must be of type InteractionRule.");
19229
- clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
19239
+ clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.slice();
19230
19240
  if ("canReply" in values && values.canReply != null) if (values.canReply instanceof InteractionRule) clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = [values.canReply];
19231
19241
  else throw new TypeError("The canReply must be of type InteractionRule.");
19232
- clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
19242
+ clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.slice();
19233
19243
  if ("canAnnounce" in values && values.canAnnounce != null) if (values.canAnnounce instanceof InteractionRule) clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = [values.canAnnounce];
19234
19244
  else throw new TypeError("The canAnnounce must be of type InteractionRule.");
19235
- clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
19245
+ clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.slice();
19236
19246
  if ("canQuote" in values && values.canQuote != null) if (values.canQuote instanceof InteractionRule) clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = [values.canQuote];
19237
19247
  else throw new TypeError("The canQuote must be of type InteractionRule.");
19238
19248
  return clone;
@@ -19681,14 +19691,14 @@ var InteractionRule = class {
19681
19691
  else throw new TypeError("The automaticApproval must be of type URL.");
19682
19692
  if ("automaticApprovals" in values && values.automaticApprovals != null) {
19683
19693
  if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot initialize both automaticApproval and automaticApprovals at the same time.");
19684
- if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
19694
+ if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
19685
19695
  else throw new TypeError("The automaticApprovals must be an array of type URL.");
19686
19696
  }
19687
19697
  if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
19688
19698
  else throw new TypeError("The manualApproval must be of type URL.");
19689
19699
  if ("manualApprovals" in values && values.manualApprovals != null) {
19690
19700
  if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot initialize both manualApproval and manualApprovals at the same time.");
19691
- if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
19701
+ if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
19692
19702
  else throw new TypeError("The manualApprovals must be an array of type URL.");
19693
19703
  }
19694
19704
  }
@@ -19703,7 +19713,8 @@ var InteractionRule = class {
19703
19713
  *
19704
19714
  * @param values The values to update the clone with.
19705
19715
  * @param options The options to use for cloning.
19706
- * @returns The cloned instance.
19716
+ * @returns The cloned instance with its own property arrays. Nested objects
19717
+ * and URLs are shared with this instance.
19707
19718
  */
19708
19719
  clone(values = {}, options = {}) {
19709
19720
  if (this._warning != null) {
@@ -19715,20 +19726,20 @@ var InteractionRule = class {
19715
19726
  }
19716
19727
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
19717
19728
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
19718
- clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
19729
+ clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.slice();
19719
19730
  if ("automaticApproval" in values && values.automaticApproval != null) if (values.automaticApproval instanceof URL) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [values.automaticApproval];
19720
19731
  else throw new TypeError("The automaticApproval must be of type URL.");
19721
19732
  if ("automaticApprovals" in values && values.automaticApprovals != null) {
19722
19733
  if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot update both automaticApproval and automaticApprovals at the same time.");
19723
- if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
19734
+ if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
19724
19735
  else throw new TypeError("The automaticApprovals must be an array of type URL.");
19725
19736
  }
19726
- clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
19737
+ clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.slice();
19727
19738
  if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
19728
19739
  else throw new TypeError("The manualApproval must be of type URL.");
19729
19740
  if ("manualApprovals" in values && values.manualApprovals != null) {
19730
19741
  if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot update both manualApproval and manualApprovals at the same time.");
19731
- if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
19742
+ if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
19732
19743
  else throw new TypeError("The manualApprovals must be an array of type URL.");
19733
19744
  }
19734
19745
  return clone;
@@ -20008,7 +20019,8 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
20008
20019
  *
20009
20020
  * @param values The values to update the clone with.
20010
20021
  * @param options The options to use for cloning.
20011
- * @returns The cloned instance.
20022
+ * @returns The cloned instance with its own property arrays. Nested objects
20023
+ * and URLs are shared with this instance.
20012
20024
  */
20013
20025
  clone(values = {}, options = {}) {
20014
20026
  if (this._warning != null) {
@@ -20019,13 +20031,13 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
20019
20031
  };
20020
20032
  }
20021
20033
  const clone = super.clone(values, options);
20022
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
20034
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
20023
20035
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
20024
20036
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
20025
20037
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
20026
20038
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
20027
20039
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
20028
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
20040
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
20029
20041
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
20030
20042
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
20031
20043
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -20782,7 +20794,8 @@ var LikeRequest = class LikeRequest extends Activity {
20782
20794
  *
20783
20795
  * @param values The values to update the clone with.
20784
20796
  * @param options The options to use for cloning.
20785
- * @returns The cloned instance.
20797
+ * @returns The cloned instance with its own property arrays. Nested objects
20798
+ * and URLs are shared with this instance.
20786
20799
  */
20787
20800
  clone(values = {}, options = {}) {
20788
20801
  if (this._warning != null) {
@@ -20992,7 +21005,8 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
20992
21005
  *
20993
21006
  * @param values The values to update the clone with.
20994
21007
  * @param options The options to use for cloning.
20995
- * @returns The cloned instance.
21008
+ * @returns The cloned instance with its own property arrays. Nested objects
21009
+ * and URLs are shared with this instance.
20996
21010
  */
20997
21011
  clone(values = {}, options = {}) {
20998
21012
  if (this._warning != null) {
@@ -21003,13 +21017,13 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
21003
21017
  };
21004
21018
  }
21005
21019
  const clone = super.clone(values, options);
21006
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
21020
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
21007
21021
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
21008
21022
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
21009
21023
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
21010
21024
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
21011
21025
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
21012
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
21026
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
21013
21027
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
21014
21028
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
21015
21029
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -21766,7 +21780,8 @@ var ReplyRequest = class ReplyRequest extends Activity {
21766
21780
  *
21767
21781
  * @param values The values to update the clone with.
21768
21782
  * @param options The options to use for cloning.
21769
- * @returns The cloned instance.
21783
+ * @returns The cloned instance with its own property arrays. Nested objects
21784
+ * and URLs are shared with this instance.
21770
21785
  */
21771
21786
  clone(values = {}, options = {}) {
21772
21787
  if (this._warning != null) {
@@ -21976,7 +21991,8 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
21976
21991
  *
21977
21992
  * @param values The values to update the clone with.
21978
21993
  * @param options The options to use for cloning.
21979
- * @returns The cloned instance.
21994
+ * @returns The cloned instance with its own property arrays. Nested objects
21995
+ * and URLs are shared with this instance.
21980
21996
  */
21981
21997
  clone(values = {}, options = {}) {
21982
21998
  if (this._warning != null) {
@@ -21987,13 +22003,13 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
21987
22003
  };
21988
22004
  }
21989
22005
  const clone = super.clone(values, options);
21990
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
22006
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
21991
22007
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
21992
22008
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
21993
22009
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
21994
22010
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
21995
22011
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
21996
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
22012
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
21997
22013
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
21998
22014
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
21999
22015
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -22751,7 +22767,8 @@ var QuoteRequest = class QuoteRequest extends Activity {
22751
22767
  *
22752
22768
  * @param values The values to update the clone with.
22753
22769
  * @param options The options to use for cloning.
22754
- * @returns The cloned instance.
22770
+ * @returns The cloned instance with its own property arrays. Nested objects
22771
+ * and URLs are shared with this instance.
22755
22772
  */
22756
22773
  clone(values = {}, options = {}) {
22757
22774
  if (this._warning != null) {
@@ -23034,7 +23051,7 @@ var Translation = class {
23034
23051
  if ("translators" in values && values.translators != null) {
23035
23052
  if ("translator" in values && values.translator != null) throw new TypeError("Cannot initialize both translator and translators at the same time.");
23036
23053
  if (Array.isArray(values.translators) && values.translators.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
23037
- this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators;
23054
+ this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators.slice();
23038
23055
  for (let i = 0; i < values.translators.length; i++) this.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.add(i);
23039
23056
  } else throw new TypeError("The translators must be an array of type Application | Group | Organization | Person | Service | URL.");
23040
23057
  }
@@ -23048,7 +23065,7 @@ var Translation = class {
23048
23065
  else throw new TypeError("The url must be of type URL | Link.");
23049
23066
  if ("urls" in values && values.urls != null) {
23050
23067
  if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
23051
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
23068
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
23052
23069
  else throw new TypeError("The urls must be an array of type URL | Link.");
23053
23070
  }
23054
23071
  }
@@ -23063,7 +23080,8 @@ var Translation = class {
23063
23080
  *
23064
23081
  * @param values The values to update the clone with.
23065
23082
  * @param options The options to use for cloning.
23066
- * @returns The cloned instance.
23083
+ * @returns The cloned instance with its own property arrays. Nested objects
23084
+ * and URLs are shared with this instance.
23067
23085
  */
23068
23086
  clone(values = {}, options = {}) {
23069
23087
  if (this._warning != null) {
@@ -23075,10 +23093,10 @@ var Translation = class {
23075
23093
  }
23076
23094
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
23077
23095
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
23078
- clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = this.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG;
23096
+ clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = this.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG.slice();
23079
23097
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = [values.language];
23080
23098
  else throw new TypeError("The language must be of type Intl.Locale.");
23081
- clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR;
23099
+ clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.slice();
23082
23100
  clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = new Set(this.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR);
23083
23101
  if ("translator" in values && values.translator != null) if (values.translator instanceof Application || values.translator instanceof Group || values.translator instanceof Organization || values.translator instanceof Person || values.translator instanceof Service || values.translator instanceof URL) {
23084
23102
  clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = [values.translator];
@@ -23087,26 +23105,26 @@ var Translation = class {
23087
23105
  if ("translators" in values && values.translators != null) {
23088
23106
  if ("translator" in values && values.translator != null) throw new TypeError("Cannot update both translator and translators at the same time.");
23089
23107
  if (Array.isArray(values.translators) && values.translators.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
23090
- clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators;
23108
+ clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators.slice();
23091
23109
  clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = /* @__PURE__ */ new Set();
23092
23110
  for (let i = 0; i < values.translators.length; i++) clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.add(i);
23093
23111
  } else throw new TypeError("The translators must be an array of type Application | Group | Organization | Person | Service | URL.");
23094
23112
  }
23095
- clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = this.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7;
23113
+ clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = this.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7.slice();
23096
23114
  if ("original" in values && values.original != null) if (values.original instanceof URL) clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = [values.original];
23097
23115
  else throw new TypeError("The original must be of type URL.");
23098
- clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = this.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated;
23116
+ clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = this.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated.slice();
23099
23117
  if ("sourceUpdated" in values && values.sourceUpdated != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.sourceUpdated)) clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = [values.sourceUpdated];
23100
23118
  else throw new TypeError("The sourceUpdated must be of type Temporal.Instant.");
23101
- clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = this.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW;
23119
+ clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = this.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW.slice();
23102
23120
  if ("basis" in values && values.basis != null) if (values.basis instanceof URL) clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = [values.basis];
23103
23121
  else throw new TypeError("The basis must be of type URL.");
23104
- clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
23122
+ clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
23105
23123
  if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
23106
23124
  else throw new TypeError("The url must be of type URL | Link.");
23107
23125
  if ("urls" in values && values.urls != null) {
23108
23126
  if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
23109
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
23127
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
23110
23128
  else throw new TypeError("The urls must be an array of type URL | Link.");
23111
23129
  }
23112
23130
  return clone;
@@ -23769,7 +23787,7 @@ var Translation = class {
23769
23787
  let _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array = values["https://schema.org/inLanguage"];
23770
23788
  for (const v of _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array == null ? [] : _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array.length === 1 && "@list" in _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array[0] ? _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array[0]["@list"] : _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array) {
23771
23789
  if (v == null) continue;
23772
- const decoded = new Intl.Locale(v["@value"]);
23790
+ const decoded = new Intl.Locale((0, _fedify_vocab_runtime.normalizeLanguageTag)(v["@value"]));
23773
23791
  if (typeof decoded === "undefined") {
23774
23792
  shouldCacheJsonLd = false;
23775
23793
  continue;
@@ -23973,7 +23991,8 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
23973
23991
  *
23974
23992
  * @param values The values to update the clone with.
23975
23993
  * @param options The options to use for cloning.
23976
- * @returns The cloned instance.
23994
+ * @returns The cloned instance with its own property arrays. Nested objects
23995
+ * and URLs are shared with this instance.
23977
23996
  */
23978
23997
  clone(values = {}, options = {}) {
23979
23998
  if (this._warning != null) {
@@ -23984,13 +24003,13 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
23984
24003
  };
23985
24004
  }
23986
24005
  const clone = super.clone(values, options);
23987
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
24006
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
23988
24007
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
23989
24008
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
23990
24009
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
23991
24010
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
23992
24011
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
23993
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
24012
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
23994
24013
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
23995
24014
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
23996
24015
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -24745,7 +24764,8 @@ var FeatureRequest = class FeatureRequest extends Activity {
24745
24764
  *
24746
24765
  * @param values The values to update the clone with.
24747
24766
  * @param options The options to use for cloning.
24748
- * @returns The cloned instance.
24767
+ * @returns The cloned instance with its own property arrays. Nested objects
24768
+ * and URLs are shared with this instance.
24749
24769
  */
24750
24770
  clone(values = {}, options = {}) {
24751
24771
  if (this._warning != null) {
@@ -24969,7 +24989,7 @@ var Collection = class Collection extends Object$1 {
24969
24989
  this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.add(0);
24970
24990
  } else throw new TypeError("The last must be of type CollectionPage | URL.");
24971
24991
  if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
24972
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
24992
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
24973
24993
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
24974
24994
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
24975
24995
  if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
@@ -25016,7 +25036,8 @@ var Collection = class Collection extends Object$1 {
25016
25036
  *
25017
25037
  * @param values The values to update the clone with.
25018
25038
  * @param options The options to use for cloning.
25019
- * @returns The cloned instance.
25039
+ * @returns The cloned instance with its own property arrays. Nested objects
25040
+ * and URLs are shared with this instance.
25020
25041
  */
25021
25042
  clone(values = {}, options = {}) {
25022
25043
  if (this._warning != null) {
@@ -25027,77 +25048,77 @@ var Collection = class Collection extends Object$1 {
25027
25048
  };
25028
25049
  }
25029
25050
  const clone = super.clone(values, options);
25030
- clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
25051
+ clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice();
25031
25052
  if ("totalItems" in values && values.totalItems != null) if (typeof values.totalItems === "number" && Number.isInteger(values.totalItems) && values.totalItems >= 0) clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [values.totalItems];
25032
25053
  else throw new TypeError("The totalItems must be of type number.");
25033
- clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;
25054
+ clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();
25034
25055
  clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current);
25035
25056
  if ("current" in values && values.current != null) if (values.current instanceof CollectionPage || values.current instanceof URL) {
25036
25057
  clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = [values.current];
25037
25058
  clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = /* @__PURE__ */ new Set([0]);
25038
25059
  } else throw new TypeError("The current must be of type CollectionPage | URL.");
25039
- clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;
25060
+ clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();
25040
25061
  clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first);
25041
25062
  if ("first" in values && values.first != null) if (values.first instanceof CollectionPage || values.first instanceof URL) {
25042
25063
  clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = [values.first];
25043
25064
  clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = /* @__PURE__ */ new Set([0]);
25044
25065
  } else throw new TypeError("The first must be of type CollectionPage | URL.");
25045
- clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
25066
+ clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();
25046
25067
  clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last);
25047
25068
  if ("last" in values && values.last != null) if (values.last instanceof CollectionPage || values.last instanceof URL) {
25048
25069
  clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [values.last];
25049
25070
  clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = /* @__PURE__ */ new Set([0]);
25050
25071
  } else throw new TypeError("The last must be of type CollectionPage | URL.");
25051
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
25072
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
25052
25073
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
25053
25074
  if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
25054
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
25075
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
25055
25076
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
25056
25077
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
25057
25078
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
25058
- clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
25079
+ clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();
25059
25080
  clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf);
25060
25081
  if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
25061
25082
  clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = [values.likesOf];
25062
25083
  clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = /* @__PURE__ */ new Set([0]);
25063
25084
  } else throw new TypeError("The likesOf must be of type Object | URL.");
25064
- clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
25085
+ clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();
25065
25086
  clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf);
25066
25087
  if ("sharesOf" in values && values.sharesOf != null) if (values.sharesOf instanceof Object$1 || values.sharesOf instanceof URL) {
25067
25088
  clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [values.sharesOf];
25068
25089
  clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = /* @__PURE__ */ new Set([0]);
25069
25090
  } else throw new TypeError("The sharesOf must be of type Object | URL.");
25070
- clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
25091
+ clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();
25071
25092
  clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf);
25072
25093
  if ("repliesOf" in values && values.repliesOf != null) if (values.repliesOf instanceof Object$1 || values.repliesOf instanceof URL) {
25073
25094
  clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [values.repliesOf];
25074
25095
  clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = /* @__PURE__ */ new Set([0]);
25075
25096
  } else throw new TypeError("The repliesOf must be of type Object | URL.");
25076
- clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
25097
+ clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();
25077
25098
  clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf);
25078
25099
  if ("inboxOf" in values && values.inboxOf != null) if (values.inboxOf instanceof Object$1 || values.inboxOf instanceof URL) {
25079
25100
  clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [values.inboxOf];
25080
25101
  clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = /* @__PURE__ */ new Set([0]);
25081
25102
  } else throw new TypeError("The inboxOf must be of type Object | URL.");
25082
- clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
25103
+ clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();
25083
25104
  clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf);
25084
25105
  if ("outboxOf" in values && values.outboxOf != null) if (values.outboxOf instanceof Object$1 || values.outboxOf instanceof URL) {
25085
25106
  clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [values.outboxOf];
25086
25107
  clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = /* @__PURE__ */ new Set([0]);
25087
25108
  } else throw new TypeError("The outboxOf must be of type Object | URL.");
25088
- clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
25109
+ clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();
25089
25110
  clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf);
25090
25111
  if ("followersOf" in values && values.followersOf != null) if (values.followersOf instanceof Object$1 || values.followersOf instanceof URL) {
25091
25112
  clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [values.followersOf];
25092
25113
  clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = /* @__PURE__ */ new Set([0]);
25093
25114
  } else throw new TypeError("The followersOf must be of type Object | URL.");
25094
- clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
25115
+ clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();
25095
25116
  clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf);
25096
25117
  if ("followingOf" in values && values.followingOf != null) if (values.followingOf instanceof Object$1 || values.followingOf instanceof URL) {
25097
25118
  clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [values.followingOf];
25098
25119
  clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = /* @__PURE__ */ new Set([0]);
25099
25120
  } else throw new TypeError("The followingOf must be of type Object | URL.");
25100
- clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
25121
+ clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();
25101
25122
  clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf);
25102
25123
  if ("likedOf" in values && values.likedOf != null) if (values.likedOf instanceof Object$1 || values.likedOf instanceof URL) {
25103
25124
  clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [values.likedOf];
@@ -28761,7 +28782,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
28761
28782
  constructor(values, options = {}) {
28762
28783
  super(values, options);
28763
28784
  if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
28764
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
28785
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
28765
28786
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
28766
28787
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
28767
28788
  }
@@ -28776,7 +28797,8 @@ var OrderedCollection = class OrderedCollection extends Collection {
28776
28797
  *
28777
28798
  * @param values The values to update the clone with.
28778
28799
  * @param options The options to use for cloning.
28779
- * @returns The cloned instance.
28800
+ * @returns The cloned instance with its own property arrays. Nested objects
28801
+ * and URLs are shared with this instance.
28780
28802
  */
28781
28803
  clone(values = {}, options = {}) {
28782
28804
  if (this._warning != null) {
@@ -28787,10 +28809,10 @@ var OrderedCollection = class OrderedCollection extends Collection {
28787
28809
  };
28788
28810
  }
28789
28811
  const clone = super.clone(values, options);
28790
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
28812
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
28791
28813
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
28792
28814
  if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
28793
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
28815
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
28794
28816
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
28795
28817
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
28796
28818
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
@@ -29424,7 +29446,8 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
29424
29446
  *
29425
29447
  * @param values The values to update the clone with.
29426
29448
  * @param options The options to use for cloning.
29427
- * @returns The cloned instance.
29449
+ * @returns The cloned instance with its own property arrays. Nested objects
29450
+ * and URLs are shared with this instance.
29428
29451
  */
29429
29452
  clone(values = {}, options = {}) {
29430
29453
  if (this._warning != null) {
@@ -29435,10 +29458,10 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
29435
29458
  };
29436
29459
  }
29437
29460
  const clone = super.clone(values, options);
29438
- clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = this.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic;
29461
+ clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = this.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic.slice();
29439
29462
  if ("topic" in values && values.topic != null) if (values.topic instanceof Hashtag) clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = [values.topic];
29440
29463
  else throw new TypeError("The topic must be of type Hashtag.");
29441
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
29464
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
29442
29465
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
29443
29466
  else throw new TypeError("The discoverable must be of type boolean.");
29444
29467
  return clone;
@@ -29760,7 +29783,8 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
29760
29783
  *
29761
29784
  * @param values The values to update the clone with.
29762
29785
  * @param options The options to use for cloning.
29763
- * @returns The cloned instance.
29786
+ * @returns The cloned instance with its own property arrays. Nested objects
29787
+ * and URLs are shared with this instance.
29764
29788
  */
29765
29789
  clone(values = {}, options = {}) {
29766
29790
  if (this._warning != null) {
@@ -29771,13 +29795,13 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
29771
29795
  };
29772
29796
  }
29773
29797
  const clone = super.clone(values, options);
29774
- clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = this.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject;
29798
+ clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = this.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject.slice();
29775
29799
  clone.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = new Set(this.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject);
29776
29800
  if ("featuredObject" in values && values.featuredObject != null) if (values.featuredObject instanceof Object$1 || values.featuredObject instanceof URL) {
29777
29801
  clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = [values.featuredObject];
29778
29802
  clone.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = /* @__PURE__ */ new Set([0]);
29779
29803
  } else throw new TypeError("The featuredObject must be of type Object | URL.");
29780
- clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = this.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization;
29804
+ clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = this.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization.slice();
29781
29805
  clone.#_trust_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = new Set(this.#_trust_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization);
29782
29806
  if ("featureAuthorization" in values && values.featureAuthorization != null) if (values.featureAuthorization instanceof FeatureAuthorization || values.featureAuthorization instanceof URL) {
29783
29807
  clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = [values.featureAuthorization];
@@ -30575,7 +30599,7 @@ var DidService = class {
30575
30599
  else throw new TypeError("The endpoint must be of type URL.");
30576
30600
  if ("endpoints" in values && values.endpoints != null) {
30577
30601
  if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot initialize both endpoint and endpoints at the same time.");
30578
- if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
30602
+ if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
30579
30603
  else throw new TypeError("The endpoints must be an array of type URL.");
30580
30604
  }
30581
30605
  }
@@ -30590,7 +30614,8 @@ var DidService = class {
30590
30614
  *
30591
30615
  * @param values The values to update the clone with.
30592
30616
  * @param options The options to use for cloning.
30593
- * @returns The cloned instance.
30617
+ * @returns The cloned instance with its own property arrays. Nested objects
30618
+ * and URLs are shared with this instance.
30594
30619
  */
30595
30620
  clone(values = {}, options = {}) {
30596
30621
  if (this._warning != null) {
@@ -30602,12 +30627,12 @@ var DidService = class {
30602
30627
  }
30603
30628
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
30604
30629
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
30605
- clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
30630
+ clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice();
30606
30631
  if ("endpoint" in values && values.endpoint != null) if (values.endpoint instanceof URL) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [values.endpoint];
30607
30632
  else throw new TypeError("The endpoint must be of type URL.");
30608
30633
  if ("endpoints" in values && values.endpoints != null) {
30609
30634
  if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot update both endpoint and endpoints at the same time.");
30610
- if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
30635
+ if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
30611
30636
  else throw new TypeError("The endpoints must be an array of type URL.");
30612
30637
  }
30613
30638
  return clone;
@@ -30824,7 +30849,8 @@ var Export = class Export extends DidService {
30824
30849
  *
30825
30850
  * @param values The values to update the clone with.
30826
30851
  * @param options The options to use for cloning.
30827
- * @returns The cloned instance.
30852
+ * @returns The cloned instance with its own property arrays. Nested objects
30853
+ * and URLs are shared with this instance.
30828
30854
  */
30829
30855
  clone(values = {}, options = {}) {
30830
30856
  if (this._warning != null) {
@@ -31078,7 +31104,8 @@ var DataIntegrityProof = class {
31078
31104
  *
31079
31105
  * @param values The values to update the clone with.
31080
31106
  * @param options The options to use for cloning.
31081
- * @returns The cloned instance.
31107
+ * @returns The cloned instance with its own property arrays. Nested objects
31108
+ * and URLs are shared with this instance.
31082
31109
  */
31083
31110
  clone(values = {}, options = {}) {
31084
31111
  if (this._warning != null) {
@@ -31090,22 +31117,22 @@ var DataIntegrityProof = class {
31090
31117
  }
31091
31118
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
31092
31119
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
31093
- clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
31120
+ clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice();
31094
31121
  if ("cryptosuite" in values && values.cryptosuite != null) if (values.cryptosuite == "eddsa-jcs-2022") clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [values.cryptosuite];
31095
31122
  else throw new TypeError("The cryptosuite must be of type \"eddsa-jcs-2022\".");
31096
- clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
31123
+ clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();
31097
31124
  clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod);
31098
31125
  if ("verificationMethod" in values && values.verificationMethod != null) if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) {
31099
31126
  clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [values.verificationMethod];
31100
31127
  clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = /* @__PURE__ */ new Set([0]);
31101
31128
  } else throw new TypeError("The verificationMethod must be of type Multikey | URL.");
31102
- clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
31129
+ clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice();
31103
31130
  if ("proofPurpose" in values && values.proofPurpose != null) if (values.proofPurpose === "assertionMethod" || values.proofPurpose === "authentication" || values.proofPurpose === "capabilityInvocation" || values.proofPurpose === "capabilityDelegation" || values.proofPurpose === "keyAgreement") clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = [values.proofPurpose];
31104
31131
  else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
31105
- clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
31132
+ clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice();
31106
31133
  if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
31107
31134
  else throw new TypeError("The proofValue must be of type Uint8Array.");
31108
- clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
31135
+ clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice();
31109
31136
  if ("created" in values && values.created != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
31110
31137
  else throw new TypeError("The created must be of type Temporal.Instant.");
31111
31138
  return clone;
@@ -31741,7 +31768,8 @@ var CryptographicKey = class {
31741
31768
  *
31742
31769
  * @param values The values to update the clone with.
31743
31770
  * @param options The options to use for cloning.
31744
- * @returns The cloned instance.
31771
+ * @returns The cloned instance with its own property arrays. Nested objects
31772
+ * and URLs are shared with this instance.
31745
31773
  */
31746
31774
  clone(values = {}, options = {}) {
31747
31775
  if (this._warning != null) {
@@ -31753,13 +31781,13 @@ var CryptographicKey = class {
31753
31781
  }
31754
31782
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
31755
31783
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
31756
- clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
31784
+ clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();
31757
31785
  clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner);
31758
31786
  if ("owner" in values && values.owner != null) if (values.owner instanceof Application || values.owner instanceof Group || values.owner instanceof Organization || values.owner instanceof Person || values.owner instanceof Service || values.owner instanceof URL) {
31759
31787
  clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [values.owner];
31760
31788
  clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = /* @__PURE__ */ new Set([0]);
31761
31789
  } else throw new TypeError("The owner must be of type Application | Group | Organization | Person | Service | URL.");
31762
- clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
31790
+ clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice();
31763
31791
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = [values.publicKey];
31764
31792
  else throw new TypeError("The publicKey must be of type CryptoKey.");
31765
31793
  return clone;
@@ -32394,7 +32422,8 @@ var Multikey = class {
32394
32422
  *
32395
32423
  * @param values The values to update the clone with.
32396
32424
  * @param options The options to use for cloning.
32397
- * @returns The cloned instance.
32425
+ * @returns The cloned instance with its own property arrays. Nested objects
32426
+ * and URLs are shared with this instance.
32398
32427
  */
32399
32428
  clone(values = {}, options = {}) {
32400
32429
  if (this._warning != null) {
@@ -32406,13 +32435,13 @@ var Multikey = class {
32406
32435
  }
32407
32436
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
32408
32437
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
32409
- clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
32438
+ clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();
32410
32439
  clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller);
32411
32440
  if ("controller" in values && values.controller != null) if (values.controller instanceof Application || values.controller instanceof Group || values.controller instanceof Organization || values.controller instanceof Person || values.controller instanceof Service || values.controller instanceof URL) {
32412
32441
  clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [values.controller];
32413
32442
  clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = /* @__PURE__ */ new Set([0]);
32414
32443
  } else throw new TypeError("The controller must be of type Application | Group | Organization | Person | Service | URL.");
32415
- clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
32444
+ clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice();
32416
32445
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = [values.publicKey];
32417
32446
  else throw new TypeError("The publicKey must be of type CryptoKey.");
32418
32447
  return clone;
@@ -33006,7 +33035,8 @@ var Agreement = class Agreement extends Object$1 {
33006
33035
  *
33007
33036
  * @param values The values to update the clone with.
33008
33037
  * @param options The options to use for cloning.
33009
- * @returns The cloned instance.
33038
+ * @returns The cloned instance with its own property arrays. Nested objects
33039
+ * and URLs are shared with this instance.
33010
33040
  */
33011
33041
  clone(values = {}, options = {}) {
33012
33042
  if (this._warning != null) {
@@ -33017,10 +33047,10 @@ var Agreement = class Agreement extends Object$1 {
33017
33047
  };
33018
33048
  }
33019
33049
  const clone = super.clone(values, options);
33020
- clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
33050
+ clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.slice();
33021
33051
  if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
33022
33052
  else throw new TypeError("The stipulates must be of type Commitment.");
33023
- clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
33053
+ clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.slice();
33024
33054
  if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
33025
33055
  else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
33026
33056
  return clone;
@@ -33425,7 +33455,8 @@ var Commitment = class {
33425
33455
  *
33426
33456
  * @param values The values to update the clone with.
33427
33457
  * @param options The options to use for cloning.
33428
- * @returns The cloned instance.
33458
+ * @returns The cloned instance with its own property arrays. Nested objects
33459
+ * and URLs are shared with this instance.
33429
33460
  */
33430
33461
  clone(values = {}, options = {}) {
33431
33462
  if (this._warning != null) {
@@ -33437,10 +33468,10 @@ var Commitment = class {
33437
33468
  }
33438
33469
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
33439
33470
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
33440
- clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
33471
+ clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.slice();
33441
33472
  if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
33442
33473
  else throw new TypeError("The satisfies must be of type URL.");
33443
- clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
33474
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
33444
33475
  if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
33445
33476
  else throw new TypeError("The resourceQuantity must be of type Measure.");
33446
33477
  return clone;
@@ -33806,7 +33837,8 @@ var Intent = class {
33806
33837
  *
33807
33838
  * @param values The values to update the clone with.
33808
33839
  * @param options The options to use for cloning.
33809
- * @returns The cloned instance.
33840
+ * @returns The cloned instance with its own property arrays. Nested objects
33841
+ * and URLs are shared with this instance.
33810
33842
  */
33811
33843
  clone(values = {}, options = {}) {
33812
33844
  if (this._warning != null) {
@@ -33818,19 +33850,19 @@ var Intent = class {
33818
33850
  }
33819
33851
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
33820
33852
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
33821
- clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
33853
+ clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.slice();
33822
33854
  if ("action" in values && values.action != null) if (typeof values.action === "string") clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
33823
33855
  else throw new TypeError("The action must be of type string.");
33824
- clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
33856
+ clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.slice();
33825
33857
  if ("resourceConformsTo" in values && values.resourceConformsTo != null) if (values.resourceConformsTo instanceof URL) clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
33826
33858
  else throw new TypeError("The resourceConformsTo must be of type URL.");
33827
- clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
33859
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
33828
33860
  if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
33829
33861
  else throw new TypeError("The resourceQuantity must be of type Measure.");
33830
- clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
33862
+ clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.slice();
33831
33863
  if ("availableQuantity" in values && values.availableQuantity != null) if (values.availableQuantity instanceof Measure) clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
33832
33864
  else throw new TypeError("The availableQuantity must be of type Measure.");
33833
- clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
33865
+ clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.slice();
33834
33866
  if ("minimumQuantity" in values && values.minimumQuantity != null) if (values.minimumQuantity instanceof Measure) clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
33835
33867
  else throw new TypeError("The minimumQuantity must be of type Measure.");
33836
33868
  return clone;
@@ -34292,7 +34324,8 @@ var Proposal = class Proposal extends Object$1 {
34292
34324
  *
34293
34325
  * @param values The values to update the clone with.
34294
34326
  * @param options The options to use for cloning.
34295
- * @returns The cloned instance.
34327
+ * @returns The cloned instance with its own property arrays. Nested objects
34328
+ * and URLs are shared with this instance.
34296
34329
  */
34297
34330
  clone(values = {}, options = {}) {
34298
34331
  if (this._warning != null) {
@@ -34303,16 +34336,16 @@ var Proposal = class Proposal extends Object$1 {
34303
34336
  };
34304
34337
  }
34305
34338
  const clone = super.clone(values, options);
34306
- clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
34339
+ clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.slice();
34307
34340
  if ("purpose" in values && values.purpose != null) if (typeof values.purpose === "string") clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
34308
34341
  else throw new TypeError("The purpose must be of type string.");
34309
- clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
34342
+ clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.slice();
34310
34343
  if ("publishes" in values && values.publishes != null) if (values.publishes instanceof Intent) clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
34311
34344
  else throw new TypeError("The publishes must be of type Intent.");
34312
- clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
34345
+ clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.slice();
34313
34346
  if ("reciprocal" in values && values.reciprocal != null) if (values.reciprocal instanceof Intent) clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
34314
34347
  else throw new TypeError("The reciprocal must be of type Intent.");
34315
- clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
34348
+ clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.slice();
34316
34349
  if ("unitBased" in values && values.unitBased != null) if (typeof values.unitBased === "boolean") clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
34317
34350
  else throw new TypeError("The unitBased must be of type boolean.");
34318
34351
  return clone;
@@ -34751,7 +34784,8 @@ var Accept = class Accept extends Activity {
34751
34784
  *
34752
34785
  * @param values The values to update the clone with.
34753
34786
  * @param options The options to use for cloning.
34754
- * @returns The cloned instance.
34787
+ * @returns The cloned instance with its own property arrays. Nested objects
34788
+ * and URLs are shared with this instance.
34755
34789
  */
34756
34790
  clone(values = {}, options = {}) {
34757
34791
  if (this._warning != null) {
@@ -34946,7 +34980,8 @@ var Add = class Add extends Activity {
34946
34980
  *
34947
34981
  * @param values The values to update the clone with.
34948
34982
  * @param options The options to use for cloning.
34949
- * @returns The cloned instance.
34983
+ * @returns The cloned instance with its own property arrays. Nested objects
34984
+ * and URLs are shared with this instance.
34950
34985
  */
34951
34986
  clone(values = {}, options = {}) {
34952
34987
  if (this._warning != null) {
@@ -35139,7 +35174,8 @@ var Announce = class Announce extends Activity {
35139
35174
  *
35140
35175
  * @param values The values to update the clone with.
35141
35176
  * @param options The options to use for cloning.
35142
- * @returns The cloned instance.
35177
+ * @returns The cloned instance with its own property arrays. Nested objects
35178
+ * and URLs are shared with this instance.
35143
35179
  */
35144
35180
  clone(values = {}, options = {}) {
35145
35181
  if (this._warning != null) {
@@ -35389,7 +35425,7 @@ var Application = class Application extends Object$1 {
35389
35425
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
35390
35426
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
35391
35427
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
35392
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
35428
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
35393
35429
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
35394
35430
  }
35395
35431
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -35399,7 +35435,7 @@ var Application = class Application extends Object$1 {
35399
35435
  if ("publicKeys" in values && values.publicKeys != null) {
35400
35436
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
35401
35437
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
35402
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
35438
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
35403
35439
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
35404
35440
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
35405
35441
  }
@@ -35410,7 +35446,7 @@ var Application = class Application extends Object$1 {
35410
35446
  if ("assertionMethods" in values && values.assertionMethods != null) {
35411
35447
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
35412
35448
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
35413
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
35449
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
35414
35450
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
35415
35451
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
35416
35452
  }
@@ -35418,7 +35454,7 @@ var Application = class Application extends Object$1 {
35418
35454
  else throw new TypeError("The gateway must be of type URL.");
35419
35455
  if ("gateways" in values && values.gateways != null) {
35420
35456
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
35421
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
35457
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
35422
35458
  else throw new TypeError("The gateways must be an array of type URL.");
35423
35459
  }
35424
35460
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -35456,7 +35492,7 @@ var Application = class Application extends Object$1 {
35456
35492
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
35457
35493
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
35458
35494
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
35459
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
35495
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
35460
35496
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
35461
35497
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
35462
35498
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -35480,7 +35516,7 @@ var Application = class Application extends Object$1 {
35480
35516
  if ("aliases" in values && values.aliases != null) {
35481
35517
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
35482
35518
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
35483
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
35519
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
35484
35520
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
35485
35521
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
35486
35522
  }
@@ -35491,7 +35527,7 @@ var Application = class Application extends Object$1 {
35491
35527
  if ("services" in values && values.services != null) {
35492
35528
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
35493
35529
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
35494
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
35530
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
35495
35531
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
35496
35532
  } else throw new TypeError("The services must be an array of type DidService | URL.");
35497
35533
  }
@@ -35511,7 +35547,8 @@ var Application = class Application extends Object$1 {
35511
35547
  *
35512
35548
  * @param values The values to update the clone with.
35513
35549
  * @param options The options to use for cloning.
35514
- * @returns The cloned instance.
35550
+ * @returns The cloned instance with its own property arrays. Nested objects
35551
+ * and URLs are shared with this instance.
35515
35552
  */
35516
35553
  clone(values = {}, options = {}) {
35517
35554
  if (this._warning != null) {
@@ -35522,15 +35559,15 @@ var Application = class Application extends Object$1 {
35522
35559
  };
35523
35560
  }
35524
35561
  const clone = super.clone(values, options);
35525
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
35562
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
35526
35563
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
35527
35564
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
35528
35565
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
35529
35566
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
35530
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
35567
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
35531
35568
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
35532
35569
  }
35533
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
35570
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
35534
35571
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
35535
35572
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
35536
35573
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -35539,12 +35576,12 @@ var Application = class Application extends Object$1 {
35539
35576
  if ("publicKeys" in values && values.publicKeys != null) {
35540
35577
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
35541
35578
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
35542
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
35579
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
35543
35580
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
35544
35581
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
35545
35582
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
35546
35583
  }
35547
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
35584
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
35548
35585
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
35549
35586
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
35550
35587
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -35553,99 +35590,99 @@ var Application = class Application extends Object$1 {
35553
35590
  if ("assertionMethods" in values && values.assertionMethods != null) {
35554
35591
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
35555
35592
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
35556
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
35593
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
35557
35594
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
35558
35595
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
35559
35596
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
35560
35597
  }
35561
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
35598
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
35562
35599
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
35563
35600
  else throw new TypeError("The gateway must be of type URL.");
35564
35601
  if ("gateways" in values && values.gateways != null) {
35565
35602
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
35566
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
35603
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
35567
35604
  else throw new TypeError("The gateways must be an array of type URL.");
35568
35605
  }
35569
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
35606
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
35570
35607
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
35571
35608
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
35572
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
35609
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
35573
35610
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
35574
35611
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
35575
35612
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
35576
35613
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
35577
35614
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
35578
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
35615
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
35579
35616
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
35580
35617
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
35581
35618
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
35582
35619
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
35583
35620
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
35584
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
35621
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
35585
35622
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
35586
35623
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
35587
35624
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
35588
35625
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
35589
35626
  } else throw new TypeError("The following must be of type Collection | URL.");
35590
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
35627
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
35591
35628
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
35592
35629
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
35593
35630
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
35594
35631
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
35595
35632
  } else throw new TypeError("The followers must be of type Collection | URL.");
35596
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
35633
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
35597
35634
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
35598
35635
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
35599
35636
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
35600
35637
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
35601
35638
  } else throw new TypeError("The liked must be of type Collection | URL.");
35602
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
35639
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
35603
35640
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
35604
35641
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
35605
35642
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
35606
35643
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
35607
35644
  } else throw new TypeError("The featured must be of type Collection | URL.");
35608
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
35645
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
35609
35646
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
35610
35647
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
35611
35648
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
35612
35649
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
35613
35650
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
35614
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
35651
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
35615
35652
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
35616
35653
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
35617
35654
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
35618
35655
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
35619
35656
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
35620
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
35657
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
35621
35658
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
35622
35659
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
35623
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
35660
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
35624
35661
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
35625
35662
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
35626
35663
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
35627
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
35664
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
35628
35665
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
35629
35666
  else throw new TypeError("The endpoints must be of type Endpoints.");
35630
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
35667
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
35631
35668
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
35632
35669
  else throw new TypeError("The discoverable must be of type boolean.");
35633
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
35670
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
35634
35671
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
35635
35672
  else throw new TypeError("The suspended must be of type boolean.");
35636
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
35673
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
35637
35674
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
35638
35675
  else throw new TypeError("The memorial must be of type boolean.");
35639
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
35676
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
35640
35677
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
35641
35678
  else throw new TypeError("The indexable must be of type boolean.");
35642
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
35679
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
35643
35680
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
35644
35681
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
35645
35682
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
35646
35683
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
35647
35684
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
35648
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
35685
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
35649
35686
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
35650
35687
  if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
35651
35688
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -35654,12 +35691,12 @@ var Application = class Application extends Object$1 {
35654
35691
  if ("aliases" in values && values.aliases != null) {
35655
35692
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
35656
35693
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
35657
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
35694
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
35658
35695
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
35659
35696
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
35660
35697
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
35661
35698
  }
35662
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
35699
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
35663
35700
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
35664
35701
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
35665
35702
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -35668,15 +35705,15 @@ var Application = class Application extends Object$1 {
35668
35705
  if ("services" in values && values.services != null) {
35669
35706
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
35670
35707
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
35671
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
35708
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
35672
35709
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
35673
35710
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
35674
35711
  } else throw new TypeError("The services must be an array of type DidService | URL.");
35675
35712
  }
35676
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
35713
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
35677
35714
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
35678
35715
  else throw new TypeError("The followedMessage must be of type string.");
35679
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
35716
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
35680
35717
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
35681
35718
  else throw new TypeError("The cat must be of type boolean.");
35682
35719
  return clone;
@@ -40789,7 +40826,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
40789
40826
  *
40790
40827
  * @param values The values to update the clone with.
40791
40828
  * @param options The options to use for cloning.
40792
- * @returns The cloned instance.
40829
+ * @returns The cloned instance with its own property arrays. Nested objects
40830
+ * and URLs are shared with this instance.
40793
40831
  */
40794
40832
  clone(values = {}, options = {}) {
40795
40833
  if (this._warning != null) {
@@ -40985,7 +41023,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
40985
41023
  *
40986
41024
  * @param values The values to update the clone with.
40987
41025
  * @param options The options to use for cloning.
40988
- * @returns The cloned instance.
41026
+ * @returns The cloned instance with its own property arrays. Nested objects
41027
+ * and URLs are shared with this instance.
40989
41028
  */
40990
41029
  clone(values = {}, options = {}) {
40991
41030
  if (this._warning != null) {
@@ -41191,7 +41230,8 @@ var Article = class Article extends Object$1 {
41191
41230
  *
41192
41231
  * @param values The values to update the clone with.
41193
41232
  * @param options The options to use for cloning.
41194
- * @returns The cloned instance.
41233
+ * @returns The cloned instance with its own property arrays. Nested objects
41234
+ * and URLs are shared with this instance.
41195
41235
  */
41196
41236
  clone(values = {}, options = {}) {
41197
41237
  if (this._warning != null) {
@@ -41202,16 +41242,16 @@ var Article = class Article extends Object$1 {
41202
41242
  };
41203
41243
  }
41204
41244
  const clone = super.clone(values, options);
41205
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
41245
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
41206
41246
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
41207
41247
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
41208
41248
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
41209
41249
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
41210
41250
  } else throw new TypeError("The quote must be of type Object | URL.");
41211
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
41251
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
41212
41252
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
41213
41253
  else throw new TypeError("The quoteUrl must be of type URL.");
41214
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
41254
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
41215
41255
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
41216
41256
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
41217
41257
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -42080,7 +42120,8 @@ var Document = class Document extends Object$1 {
42080
42120
  *
42081
42121
  * @param values The values to update the clone with.
42082
42122
  * @param options The options to use for cloning.
42083
- * @returns The cloned instance.
42123
+ * @returns The cloned instance with its own property arrays. Nested objects
42124
+ * and URLs are shared with this instance.
42084
42125
  */
42085
42126
  clone(values = {}, options = {}) {
42086
42127
  if (this._warning != null) {
@@ -42091,13 +42132,13 @@ var Document = class Document extends Object$1 {
42091
42132
  };
42092
42133
  }
42093
42134
  const clone = super.clone(values, options);
42094
- clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
42135
+ clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
42095
42136
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
42096
42137
  else throw new TypeError("The width must be of type number.");
42097
- clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
42138
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
42098
42139
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
42099
42140
  else throw new TypeError("The height must be of type number.");
42100
- clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
42141
+ clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.slice();
42101
42142
  if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
42102
42143
  else throw new TypeError("The digestMultibase must be of type string.");
42103
42144
  return clone;
@@ -42440,7 +42481,8 @@ var Audio = class Audio extends Document {
42440
42481
  *
42441
42482
  * @param values The values to update the clone with.
42442
42483
  * @param options The options to use for cloning.
42443
- * @returns The cloned instance.
42484
+ * @returns The cloned instance with its own property arrays. Nested objects
42485
+ * and URLs are shared with this instance.
42444
42486
  */
42445
42487
  clone(values = {}, options = {}) {
42446
42488
  if (this._warning != null) {
@@ -42648,7 +42690,8 @@ var Ignore = class Ignore extends Activity {
42648
42690
  *
42649
42691
  * @param values The values to update the clone with.
42650
42692
  * @param options The options to use for cloning.
42651
- * @returns The cloned instance.
42693
+ * @returns The cloned instance with its own property arrays. Nested objects
42694
+ * and URLs are shared with this instance.
42652
42695
  */
42653
42696
  clone(values = {}, options = {}) {
42654
42697
  if (this._warning != null) {
@@ -42843,7 +42886,8 @@ var Block = class Block extends Ignore {
42843
42886
  *
42844
42887
  * @param values The values to update the clone with.
42845
42888
  * @param options The options to use for cloning.
42846
- * @returns The cloned instance.
42889
+ * @returns The cloned instance with its own property arrays. Nested objects
42890
+ * and URLs are shared with this instance.
42847
42891
  */
42848
42892
  clone(values = {}, options = {}) {
42849
42893
  if (this._warning != null) {
@@ -43054,7 +43098,8 @@ var CollectionPage = class CollectionPage extends Collection {
43054
43098
  *
43055
43099
  * @param values The values to update the clone with.
43056
43100
  * @param options The options to use for cloning.
43057
- * @returns The cloned instance.
43101
+ * @returns The cloned instance with its own property arrays. Nested objects
43102
+ * and URLs are shared with this instance.
43058
43103
  */
43059
43104
  clone(values = {}, options = {}) {
43060
43105
  if (this._warning != null) {
@@ -43065,19 +43110,19 @@ var CollectionPage = class CollectionPage extends Collection {
43065
43110
  };
43066
43111
  }
43067
43112
  const clone = super.clone(values, options);
43068
- clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
43113
+ clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();
43069
43114
  clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf);
43070
43115
  if ("partOf" in values && values.partOf != null) if (values.partOf instanceof Collection || values.partOf instanceof URL) {
43071
43116
  clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [values.partOf];
43072
43117
  clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = /* @__PURE__ */ new Set([0]);
43073
43118
  } else throw new TypeError("The partOf must be of type Collection | URL.");
43074
- clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
43119
+ clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();
43075
43120
  clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next);
43076
43121
  if ("next" in values && values.next != null) if (values.next instanceof CollectionPage || values.next instanceof URL) {
43077
43122
  clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [values.next];
43078
43123
  clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = /* @__PURE__ */ new Set([0]);
43079
43124
  } else throw new TypeError("The next must be of type CollectionPage | URL.");
43080
- clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
43125
+ clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();
43081
43126
  clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev);
43082
43127
  if ("prev" in values && values.prev != null) if (values.prev instanceof CollectionPage || values.prev instanceof URL) {
43083
43128
  clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [values.prev];
@@ -44152,7 +44197,8 @@ var Create = class Create extends Activity {
44152
44197
  *
44153
44198
  * @param values The values to update the clone with.
44154
44199
  * @param options The options to use for cloning.
44155
- * @returns The cloned instance.
44200
+ * @returns The cloned instance with its own property arrays. Nested objects
44201
+ * and URLs are shared with this instance.
44156
44202
  */
44157
44203
  clone(values = {}, options = {}) {
44158
44204
  if (this._warning != null) {
@@ -44374,7 +44420,8 @@ var Delete = class Delete extends Activity {
44374
44420
  *
44375
44421
  * @param values The values to update the clone with.
44376
44422
  * @param options The options to use for cloning.
44377
- * @returns The cloned instance.
44423
+ * @returns The cloned instance with its own property arrays. Nested objects
44424
+ * and URLs are shared with this instance.
44378
44425
  */
44379
44426
  clone(values = {}, options = {}) {
44380
44427
  if (this._warning != null) {
@@ -44591,7 +44638,8 @@ var Dislike = class Dislike extends Activity {
44591
44638
  *
44592
44639
  * @param values The values to update the clone with.
44593
44640
  * @param options The options to use for cloning.
44594
- * @returns The cloned instance.
44641
+ * @returns The cloned instance with its own property arrays. Nested objects
44642
+ * and URLs are shared with this instance.
44595
44643
  */
44596
44644
  clone(values = {}, options = {}) {
44597
44645
  if (this._warning != null) {
@@ -44859,7 +44907,8 @@ var Endpoints = class {
44859
44907
  *
44860
44908
  * @param values The values to update the clone with.
44861
44909
  * @param options The options to use for cloning.
44862
- * @returns The cloned instance.
44910
+ * @returns The cloned instance with its own property arrays. Nested objects
44911
+ * and URLs are shared with this instance.
44863
44912
  */
44864
44913
  clone(values = {}, options = {}) {
44865
44914
  if (this._warning != null) {
@@ -44871,25 +44920,25 @@ var Endpoints = class {
44871
44920
  }
44872
44921
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
44873
44922
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
44874
- clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
44923
+ clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice();
44875
44924
  if ("proxyUrl" in values && values.proxyUrl != null) if (values.proxyUrl instanceof URL) clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [values.proxyUrl];
44876
44925
  else throw new TypeError("The proxyUrl must be of type URL.");
44877
- clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
44926
+ clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice();
44878
44927
  if ("oauthAuthorizationEndpoint" in values && values.oauthAuthorizationEndpoint != null) if (values.oauthAuthorizationEndpoint instanceof URL) clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [values.oauthAuthorizationEndpoint];
44879
44928
  else throw new TypeError("The oauthAuthorizationEndpoint must be of type URL.");
44880
- clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
44929
+ clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice();
44881
44930
  if ("oauthTokenEndpoint" in values && values.oauthTokenEndpoint != null) if (values.oauthTokenEndpoint instanceof URL) clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [values.oauthTokenEndpoint];
44882
44931
  else throw new TypeError("The oauthTokenEndpoint must be of type URL.");
44883
- clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
44932
+ clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice();
44884
44933
  if ("provideClientKey" in values && values.provideClientKey != null) if (values.provideClientKey instanceof URL) clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [values.provideClientKey];
44885
44934
  else throw new TypeError("The provideClientKey must be of type URL.");
44886
- clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
44935
+ clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice();
44887
44936
  if ("signClientKey" in values && values.signClientKey != null) if (values.signClientKey instanceof URL) clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [values.signClientKey];
44888
44937
  else throw new TypeError("The signClientKey must be of type URL.");
44889
- clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
44938
+ clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice();
44890
44939
  if ("sharedInbox" in values && values.sharedInbox != null) if (values.sharedInbox instanceof URL) clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [values.sharedInbox];
44891
44940
  else throw new TypeError("The sharedInbox must be of type URL.");
44892
- clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
44941
+ clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.slice();
44893
44942
  if ("uploadMedia" in values && values.uploadMedia != null) if (values.uploadMedia instanceof URL) clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
44894
44943
  else throw new TypeError("The uploadMedia must be of type URL.");
44895
44944
  return clone;
@@ -45388,7 +45437,8 @@ var Event = class Event extends Object$1 {
45388
45437
  *
45389
45438
  * @param values The values to update the clone with.
45390
45439
  * @param options The options to use for cloning.
45391
- * @returns The cloned instance.
45440
+ * @returns The cloned instance with its own property arrays. Nested objects
45441
+ * and URLs are shared with this instance.
45392
45442
  */
45393
45443
  clone(values = {}, options = {}) {
45394
45444
  if (this._warning != null) {
@@ -45595,7 +45645,8 @@ var Flag = class Flag extends Activity {
45595
45645
  *
45596
45646
  * @param values The values to update the clone with.
45597
45647
  * @param options The options to use for cloning.
45598
- * @returns The cloned instance.
45648
+ * @returns The cloned instance with its own property arrays. Nested objects
45649
+ * and URLs are shared with this instance.
45599
45650
  */
45600
45651
  clone(values = {}, options = {}) {
45601
45652
  if (this._warning != null) {
@@ -45789,7 +45840,8 @@ var Follow = class Follow extends Activity {
45789
45840
  *
45790
45841
  * @param values The values to update the clone with.
45791
45842
  * @param options The options to use for cloning.
45792
- * @returns The cloned instance.
45843
+ * @returns The cloned instance with its own property arrays. Nested objects
45844
+ * and URLs are shared with this instance.
45793
45845
  */
45794
45846
  clone(values = {}, options = {}) {
45795
45847
  if (this._warning != null) {
@@ -46013,7 +46065,7 @@ var Group = class Group extends Object$1 {
46013
46065
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
46014
46066
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
46015
46067
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
46016
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
46068
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
46017
46069
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
46018
46070
  }
46019
46071
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -46023,7 +46075,7 @@ var Group = class Group extends Object$1 {
46023
46075
  if ("publicKeys" in values && values.publicKeys != null) {
46024
46076
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
46025
46077
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
46026
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
46078
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
46027
46079
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
46028
46080
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
46029
46081
  }
@@ -46034,7 +46086,7 @@ var Group = class Group extends Object$1 {
46034
46086
  if ("assertionMethods" in values && values.assertionMethods != null) {
46035
46087
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
46036
46088
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
46037
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
46089
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
46038
46090
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
46039
46091
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
46040
46092
  }
@@ -46042,7 +46094,7 @@ var Group = class Group extends Object$1 {
46042
46094
  else throw new TypeError("The gateway must be of type URL.");
46043
46095
  if ("gateways" in values && values.gateways != null) {
46044
46096
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
46045
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
46097
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
46046
46098
  else throw new TypeError("The gateways must be an array of type URL.");
46047
46099
  }
46048
46100
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -46080,7 +46132,7 @@ var Group = class Group extends Object$1 {
46080
46132
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
46081
46133
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
46082
46134
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
46083
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
46135
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
46084
46136
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
46085
46137
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
46086
46138
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -46104,7 +46156,7 @@ var Group = class Group extends Object$1 {
46104
46156
  if ("aliases" in values && values.aliases != null) {
46105
46157
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
46106
46158
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
46107
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
46159
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
46108
46160
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
46109
46161
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
46110
46162
  }
@@ -46115,7 +46167,7 @@ var Group = class Group extends Object$1 {
46115
46167
  if ("services" in values && values.services != null) {
46116
46168
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
46117
46169
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
46118
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
46170
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
46119
46171
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
46120
46172
  } else throw new TypeError("The services must be an array of type DidService | URL.");
46121
46173
  }
@@ -46135,7 +46187,8 @@ var Group = class Group extends Object$1 {
46135
46187
  *
46136
46188
  * @param values The values to update the clone with.
46137
46189
  * @param options The options to use for cloning.
46138
- * @returns The cloned instance.
46190
+ * @returns The cloned instance with its own property arrays. Nested objects
46191
+ * and URLs are shared with this instance.
46139
46192
  */
46140
46193
  clone(values = {}, options = {}) {
46141
46194
  if (this._warning != null) {
@@ -46146,15 +46199,15 @@ var Group = class Group extends Object$1 {
46146
46199
  };
46147
46200
  }
46148
46201
  const clone = super.clone(values, options);
46149
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
46202
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
46150
46203
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
46151
46204
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
46152
46205
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
46153
46206
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
46154
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
46207
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
46155
46208
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
46156
46209
  }
46157
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
46210
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
46158
46211
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
46159
46212
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
46160
46213
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -46163,12 +46216,12 @@ var Group = class Group extends Object$1 {
46163
46216
  if ("publicKeys" in values && values.publicKeys != null) {
46164
46217
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
46165
46218
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
46166
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
46219
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
46167
46220
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
46168
46221
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
46169
46222
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
46170
46223
  }
46171
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
46224
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
46172
46225
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
46173
46226
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
46174
46227
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -46177,99 +46230,99 @@ var Group = class Group extends Object$1 {
46177
46230
  if ("assertionMethods" in values && values.assertionMethods != null) {
46178
46231
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
46179
46232
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
46180
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
46233
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
46181
46234
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
46182
46235
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
46183
46236
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
46184
46237
  }
46185
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
46238
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
46186
46239
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
46187
46240
  else throw new TypeError("The gateway must be of type URL.");
46188
46241
  if ("gateways" in values && values.gateways != null) {
46189
46242
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
46190
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
46243
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
46191
46244
  else throw new TypeError("The gateways must be an array of type URL.");
46192
46245
  }
46193
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
46246
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
46194
46247
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
46195
46248
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
46196
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
46249
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
46197
46250
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
46198
46251
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
46199
46252
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
46200
46253
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
46201
46254
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
46202
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
46255
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
46203
46256
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
46204
46257
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
46205
46258
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
46206
46259
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
46207
46260
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
46208
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
46261
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
46209
46262
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
46210
46263
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
46211
46264
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
46212
46265
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
46213
46266
  } else throw new TypeError("The following must be of type Collection | URL.");
46214
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
46267
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
46215
46268
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
46216
46269
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
46217
46270
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
46218
46271
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
46219
46272
  } else throw new TypeError("The followers must be of type Collection | URL.");
46220
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
46273
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
46221
46274
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
46222
46275
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
46223
46276
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
46224
46277
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
46225
46278
  } else throw new TypeError("The liked must be of type Collection | URL.");
46226
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
46279
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
46227
46280
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
46228
46281
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
46229
46282
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
46230
46283
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
46231
46284
  } else throw new TypeError("The featured must be of type Collection | URL.");
46232
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
46285
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
46233
46286
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
46234
46287
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
46235
46288
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
46236
46289
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
46237
46290
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
46238
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
46291
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
46239
46292
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
46240
46293
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
46241
46294
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
46242
46295
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
46243
46296
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
46244
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
46297
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
46245
46298
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
46246
46299
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
46247
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
46300
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
46248
46301
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
46249
46302
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
46250
46303
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
46251
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
46304
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
46252
46305
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
46253
46306
  else throw new TypeError("The endpoints must be of type Endpoints.");
46254
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
46307
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
46255
46308
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
46256
46309
  else throw new TypeError("The discoverable must be of type boolean.");
46257
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
46310
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
46258
46311
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
46259
46312
  else throw new TypeError("The suspended must be of type boolean.");
46260
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
46313
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
46261
46314
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
46262
46315
  else throw new TypeError("The memorial must be of type boolean.");
46263
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
46316
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
46264
46317
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
46265
46318
  else throw new TypeError("The indexable must be of type boolean.");
46266
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
46319
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
46267
46320
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
46268
46321
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
46269
46322
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
46270
46323
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
46271
46324
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
46272
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
46325
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
46273
46326
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
46274
46327
  if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
46275
46328
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -46278,12 +46331,12 @@ var Group = class Group extends Object$1 {
46278
46331
  if ("aliases" in values && values.aliases != null) {
46279
46332
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
46280
46333
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
46281
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
46334
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
46282
46335
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
46283
46336
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
46284
46337
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
46285
46338
  }
46286
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
46339
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
46287
46340
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
46288
46341
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
46289
46342
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -46292,15 +46345,15 @@ var Group = class Group extends Object$1 {
46292
46345
  if ("services" in values && values.services != null) {
46293
46346
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
46294
46347
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
46295
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
46348
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
46296
46349
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
46297
46350
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
46298
46351
  } else throw new TypeError("The services must be an array of type DidService | URL.");
46299
46352
  }
46300
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
46353
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
46301
46354
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
46302
46355
  else throw new TypeError("The followedMessage must be of type string.");
46303
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
46356
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
46304
46357
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
46305
46358
  else throw new TypeError("The cat must be of type boolean.");
46306
46359
  return clone;
@@ -51474,7 +51527,7 @@ var Link = class Link {
51474
51527
  else throw new TypeError("The rel must be of type string.");
51475
51528
  if ("rels" in values && values.rels != null) {
51476
51529
  if ("rel" in values && values.rel != null) throw new TypeError("Cannot initialize both rel and rels at the same time.");
51477
- if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
51530
+ if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
51478
51531
  else throw new TypeError("The rels must be an array of type string.");
51479
51532
  }
51480
51533
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
@@ -51485,7 +51538,7 @@ var Link = class Link {
51485
51538
  else throw new TypeError("The name must be of type string | LanguageString.");
51486
51539
  if ("names" in values && values.names != null) {
51487
51540
  if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
51488
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
51541
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
51489
51542
  else throw new TypeError("The names must be an array of type string | LanguageString.");
51490
51543
  }
51491
51544
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
@@ -51495,7 +51548,7 @@ var Link = class Link {
51495
51548
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
51496
51549
  else throw new TypeError("The width must be of type number.");
51497
51550
  if ("previews" in values && values.previews != null) if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
51498
- this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
51551
+ this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
51499
51552
  for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
51500
51553
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
51501
51554
  }
@@ -51510,7 +51563,8 @@ var Link = class Link {
51510
51563
  *
51511
51564
  * @param values The values to update the clone with.
51512
51565
  * @param options The options to use for cloning.
51513
- * @returns The cloned instance.
51566
+ * @returns The cloned instance with its own property arrays. Nested objects
51567
+ * and URLs are shared with this instance.
51514
51568
  */
51515
51569
  clone(values = {}, options = {}) {
51516
51570
  if (this._warning != null) {
@@ -51522,44 +51576,44 @@ var Link = class Link {
51522
51576
  }
51523
51577
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
51524
51578
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
51525
- clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
51579
+ clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice();
51526
51580
  if ("href" in values && values.href != null) if (values.href instanceof URL) clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [values.href];
51527
51581
  else throw new TypeError("The href must be of type URL.");
51528
- clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
51582
+ clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice();
51529
51583
  if ("rel" in values && values.rel != null) if (typeof values.rel === "string") clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [values.rel];
51530
51584
  else throw new TypeError("The rel must be of type string.");
51531
51585
  if ("rels" in values && values.rels != null) {
51532
51586
  if ("rel" in values && values.rel != null) throw new TypeError("Cannot update both rel and rels at the same time.");
51533
- if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
51587
+ if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
51534
51588
  else throw new TypeError("The rels must be an array of type string.");
51535
51589
  }
51536
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
51590
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
51537
51591
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
51538
51592
  else throw new TypeError("The mediaType must be of type string.");
51539
- clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
51593
+ clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.slice();
51540
51594
  if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
51541
51595
  else throw new TypeError("The digestMultibase must be of type string.");
51542
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
51596
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
51543
51597
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
51544
51598
  else throw new TypeError("The name must be of type string | LanguageString.");
51545
51599
  if ("names" in values && values.names != null) {
51546
51600
  if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
51547
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
51601
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
51548
51602
  else throw new TypeError("The names must be an array of type string | LanguageString.");
51549
51603
  }
51550
- clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
51604
+ clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice();
51551
51605
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
51552
51606
  else throw new TypeError("The language must be of type Intl.Locale.");
51553
- clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
51607
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
51554
51608
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
51555
51609
  else throw new TypeError("The height must be of type number.");
51556
- clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
51610
+ clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
51557
51611
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
51558
51612
  else throw new TypeError("The width must be of type number.");
51559
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
51613
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
51560
51614
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
51561
51615
  if ("previews" in values && values.previews != null) if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
51562
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
51616
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
51563
51617
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
51564
51618
  for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
51565
51619
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
@@ -52254,7 +52308,7 @@ var Link = class Link {
52254
52308
  let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
52255
52309
  for (const v of _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array == null ? [] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array.length === 1 && "@list" in _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0] ? _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0]["@list"] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array) {
52256
52310
  if (v == null) continue;
52257
- const decoded = new Intl.Locale(v["@value"]);
52311
+ const decoded = new Intl.Locale((0, _fedify_vocab_runtime.normalizeLanguageTag)(v["@value"]));
52258
52312
  if (typeof decoded === "undefined") {
52259
52313
  shouldCacheJsonLd = false;
52260
52314
  continue;
@@ -52492,7 +52546,8 @@ var Hashtag = class Hashtag extends Link {
52492
52546
  *
52493
52547
  * @param values The values to update the clone with.
52494
52548
  * @param options The options to use for cloning.
52495
- * @returns The cloned instance.
52549
+ * @returns The cloned instance with its own property arrays. Nested objects
52550
+ * and URLs are shared with this instance.
52496
52551
  */
52497
52552
  clone(values = {}, options = {}) {
52498
52553
  if (this._warning != null) {
@@ -52686,7 +52741,8 @@ var Image = class Image extends Document {
52686
52741
  *
52687
52742
  * @param values The values to update the clone with.
52688
52743
  * @param options The options to use for cloning.
52689
- * @returns The cloned instance.
52744
+ * @returns The cloned instance with its own property arrays. Nested objects
52745
+ * and URLs are shared with this instance.
52690
52746
  */
52691
52747
  clone(values = {}, options = {}) {
52692
52748
  if (this._warning != null) {
@@ -52895,7 +52951,8 @@ var Offer = class Offer extends Activity {
52895
52951
  *
52896
52952
  * @param values The values to update the clone with.
52897
52953
  * @param options The options to use for cloning.
52898
- * @returns The cloned instance.
52954
+ * @returns The cloned instance with its own property arrays. Nested objects
52955
+ * and URLs are shared with this instance.
52899
52956
  */
52900
52957
  clone(values = {}, options = {}) {
52901
52958
  if (this._warning != null) {
@@ -53088,7 +53145,8 @@ var Invite = class Invite extends Offer {
53088
53145
  *
53089
53146
  * @param values The values to update the clone with.
53090
53147
  * @param options The options to use for cloning.
53091
- * @returns The cloned instance.
53148
+ * @returns The cloned instance with its own property arrays. Nested objects
53149
+ * and URLs are shared with this instance.
53092
53150
  */
53093
53151
  clone(values = {}, options = {}) {
53094
53152
  if (this._warning != null) {
@@ -53280,7 +53338,8 @@ var Join = class Join extends Activity {
53280
53338
  *
53281
53339
  * @param values The values to update the clone with.
53282
53340
  * @param options The options to use for cloning.
53283
- * @returns The cloned instance.
53341
+ * @returns The cloned instance with its own property arrays. Nested objects
53342
+ * and URLs are shared with this instance.
53284
53343
  */
53285
53344
  clone(values = {}, options = {}) {
53286
53345
  if (this._warning != null) {
@@ -53472,7 +53531,8 @@ var Leave = class Leave extends Activity {
53472
53531
  *
53473
53532
  * @param values The values to update the clone with.
53474
53533
  * @param options The options to use for cloning.
53475
- * @returns The cloned instance.
53534
+ * @returns The cloned instance with its own property arrays. Nested objects
53535
+ * and URLs are shared with this instance.
53476
53536
  */
53477
53537
  clone(values = {}, options = {}) {
53478
53538
  if (this._warning != null) {
@@ -53664,7 +53724,8 @@ var Like = class Like extends Activity {
53664
53724
  *
53665
53725
  * @param values The values to update the clone with.
53666
53726
  * @param options The options to use for cloning.
53667
- * @returns The cloned instance.
53727
+ * @returns The cloned instance with its own property arrays. Nested objects
53728
+ * and URLs are shared with this instance.
53668
53729
  */
53669
53730
  clone(values = {}, options = {}) {
53670
53731
  if (this._warning != null) {
@@ -53859,7 +53920,8 @@ var Listen = class Listen extends Activity {
53859
53920
  *
53860
53921
  * @param values The values to update the clone with.
53861
53922
  * @param options The options to use for cloning.
53862
- * @returns The cloned instance.
53923
+ * @returns The cloned instance with its own property arrays. Nested objects
53924
+ * and URLs are shared with this instance.
53863
53925
  */
53864
53926
  clone(values = {}, options = {}) {
53865
53927
  if (this._warning != null) {
@@ -54050,7 +54112,8 @@ var Mention = class Mention extends Link {
54050
54112
  *
54051
54113
  * @param values The values to update the clone with.
54052
54114
  * @param options The options to use for cloning.
54053
- * @returns The cloned instance.
54115
+ * @returns The cloned instance with its own property arrays. Nested objects
54116
+ * and URLs are shared with this instance.
54054
54117
  */
54055
54118
  clone(values = {}, options = {}) {
54056
54119
  if (this._warning != null) {
@@ -54246,7 +54309,8 @@ var Move = class Move extends Activity {
54246
54309
  *
54247
54310
  * @param values The values to update the clone with.
54248
54311
  * @param options The options to use for cloning.
54249
- * @returns The cloned instance.
54312
+ * @returns The cloned instance with its own property arrays. Nested objects
54313
+ * and URLs are shared with this instance.
54250
54314
  */
54251
54315
  clone(values = {}, options = {}) {
54252
54316
  if (this._warning != null) {
@@ -54453,7 +54517,8 @@ var Note = class Note extends Object$1 {
54453
54517
  *
54454
54518
  * @param values The values to update the clone with.
54455
54519
  * @param options The options to use for cloning.
54456
- * @returns The cloned instance.
54520
+ * @returns The cloned instance with its own property arrays. Nested objects
54521
+ * and URLs are shared with this instance.
54457
54522
  */
54458
54523
  clone(values = {}, options = {}) {
54459
54524
  if (this._warning != null) {
@@ -54464,16 +54529,16 @@ var Note = class Note extends Object$1 {
54464
54529
  };
54465
54530
  }
54466
54531
  const clone = super.clone(values, options);
54467
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
54532
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
54468
54533
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
54469
54534
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
54470
54535
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
54471
54536
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
54472
54537
  } else throw new TypeError("The quote must be of type Object | URL.");
54473
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
54538
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
54474
54539
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
54475
54540
  else throw new TypeError("The quoteUrl must be of type URL.");
54476
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
54541
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
54477
54542
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
54478
54543
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
54479
54544
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -55327,7 +55392,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
55327
55392
  constructor(values, options = {}) {
55328
55393
  super(values, options);
55329
55394
  if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
55330
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
55395
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
55331
55396
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
55332
55397
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
55333
55398
  if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
@@ -55344,7 +55409,8 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
55344
55409
  *
55345
55410
  * @param values The values to update the clone with.
55346
55411
  * @param options The options to use for cloning.
55347
- * @returns The cloned instance.
55412
+ * @returns The cloned instance with its own property arrays. Nested objects
55413
+ * and URLs are shared with this instance.
55348
55414
  */
55349
55415
  clone(values = {}, options = {}) {
55350
55416
  if (this._warning != null) {
@@ -55355,14 +55421,14 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
55355
55421
  };
55356
55422
  }
55357
55423
  const clone = super.clone(values, options);
55358
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
55424
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
55359
55425
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
55360
55426
  if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
55361
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
55427
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
55362
55428
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
55363
55429
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
55364
55430
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
55365
- clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
55431
+ clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice();
55366
55432
  if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
55367
55433
  else throw new TypeError("The startIndex must be of type number.");
55368
55434
  return clone;
@@ -56062,7 +56128,7 @@ var Organization = class Organization extends Object$1 {
56062
56128
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
56063
56129
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
56064
56130
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
56065
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
56131
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
56066
56132
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
56067
56133
  }
56068
56134
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -56072,7 +56138,7 @@ var Organization = class Organization extends Object$1 {
56072
56138
  if ("publicKeys" in values && values.publicKeys != null) {
56073
56139
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
56074
56140
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
56075
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
56141
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
56076
56142
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
56077
56143
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
56078
56144
  }
@@ -56083,7 +56149,7 @@ var Organization = class Organization extends Object$1 {
56083
56149
  if ("assertionMethods" in values && values.assertionMethods != null) {
56084
56150
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
56085
56151
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
56086
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
56152
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
56087
56153
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
56088
56154
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
56089
56155
  }
@@ -56091,7 +56157,7 @@ var Organization = class Organization extends Object$1 {
56091
56157
  else throw new TypeError("The gateway must be of type URL.");
56092
56158
  if ("gateways" in values && values.gateways != null) {
56093
56159
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
56094
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
56160
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
56095
56161
  else throw new TypeError("The gateways must be an array of type URL.");
56096
56162
  }
56097
56163
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -56129,7 +56195,7 @@ var Organization = class Organization extends Object$1 {
56129
56195
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
56130
56196
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
56131
56197
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
56132
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
56198
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
56133
56199
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
56134
56200
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
56135
56201
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -56153,7 +56219,7 @@ var Organization = class Organization extends Object$1 {
56153
56219
  if ("aliases" in values && values.aliases != null) {
56154
56220
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
56155
56221
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
56156
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
56222
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
56157
56223
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
56158
56224
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
56159
56225
  }
@@ -56164,7 +56230,7 @@ var Organization = class Organization extends Object$1 {
56164
56230
  if ("services" in values && values.services != null) {
56165
56231
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
56166
56232
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
56167
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
56233
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
56168
56234
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
56169
56235
  } else throw new TypeError("The services must be an array of type DidService | URL.");
56170
56236
  }
@@ -56184,7 +56250,8 @@ var Organization = class Organization extends Object$1 {
56184
56250
  *
56185
56251
  * @param values The values to update the clone with.
56186
56252
  * @param options The options to use for cloning.
56187
- * @returns The cloned instance.
56253
+ * @returns The cloned instance with its own property arrays. Nested objects
56254
+ * and URLs are shared with this instance.
56188
56255
  */
56189
56256
  clone(values = {}, options = {}) {
56190
56257
  if (this._warning != null) {
@@ -56195,15 +56262,15 @@ var Organization = class Organization extends Object$1 {
56195
56262
  };
56196
56263
  }
56197
56264
  const clone = super.clone(values, options);
56198
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
56265
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
56199
56266
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
56200
56267
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
56201
56268
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
56202
56269
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
56203
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
56270
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
56204
56271
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
56205
56272
  }
56206
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
56273
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
56207
56274
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
56208
56275
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
56209
56276
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -56212,12 +56279,12 @@ var Organization = class Organization extends Object$1 {
56212
56279
  if ("publicKeys" in values && values.publicKeys != null) {
56213
56280
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
56214
56281
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
56215
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
56282
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
56216
56283
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
56217
56284
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
56218
56285
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
56219
56286
  }
56220
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
56287
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
56221
56288
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
56222
56289
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
56223
56290
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -56226,99 +56293,99 @@ var Organization = class Organization extends Object$1 {
56226
56293
  if ("assertionMethods" in values && values.assertionMethods != null) {
56227
56294
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
56228
56295
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
56229
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
56296
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
56230
56297
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
56231
56298
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
56232
56299
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
56233
56300
  }
56234
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
56301
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
56235
56302
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
56236
56303
  else throw new TypeError("The gateway must be of type URL.");
56237
56304
  if ("gateways" in values && values.gateways != null) {
56238
56305
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
56239
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
56306
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
56240
56307
  else throw new TypeError("The gateways must be an array of type URL.");
56241
56308
  }
56242
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
56309
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
56243
56310
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
56244
56311
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
56245
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
56312
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
56246
56313
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
56247
56314
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
56248
56315
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
56249
56316
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
56250
56317
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
56251
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
56318
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
56252
56319
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
56253
56320
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
56254
56321
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
56255
56322
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
56256
56323
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
56257
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
56324
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
56258
56325
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
56259
56326
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
56260
56327
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
56261
56328
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
56262
56329
  } else throw new TypeError("The following must be of type Collection | URL.");
56263
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
56330
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
56264
56331
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
56265
56332
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
56266
56333
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
56267
56334
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
56268
56335
  } else throw new TypeError("The followers must be of type Collection | URL.");
56269
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
56336
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
56270
56337
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
56271
56338
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
56272
56339
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
56273
56340
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
56274
56341
  } else throw new TypeError("The liked must be of type Collection | URL.");
56275
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
56342
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
56276
56343
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
56277
56344
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
56278
56345
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
56279
56346
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
56280
56347
  } else throw new TypeError("The featured must be of type Collection | URL.");
56281
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
56348
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
56282
56349
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
56283
56350
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
56284
56351
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
56285
56352
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
56286
56353
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
56287
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
56354
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
56288
56355
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
56289
56356
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
56290
56357
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
56291
56358
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
56292
56359
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
56293
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
56360
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
56294
56361
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
56295
56362
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
56296
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
56363
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
56297
56364
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
56298
56365
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
56299
56366
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
56300
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
56367
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
56301
56368
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
56302
56369
  else throw new TypeError("The endpoints must be of type Endpoints.");
56303
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
56370
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
56304
56371
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
56305
56372
  else throw new TypeError("The discoverable must be of type boolean.");
56306
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
56373
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
56307
56374
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
56308
56375
  else throw new TypeError("The suspended must be of type boolean.");
56309
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
56376
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
56310
56377
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
56311
56378
  else throw new TypeError("The memorial must be of type boolean.");
56312
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
56379
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
56313
56380
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
56314
56381
  else throw new TypeError("The indexable must be of type boolean.");
56315
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
56382
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
56316
56383
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
56317
56384
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
56318
56385
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
56319
56386
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
56320
56387
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
56321
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
56388
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
56322
56389
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
56323
56390
  if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
56324
56391
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -56327,12 +56394,12 @@ var Organization = class Organization extends Object$1 {
56327
56394
  if ("aliases" in values && values.aliases != null) {
56328
56395
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
56329
56396
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
56330
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
56397
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
56331
56398
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
56332
56399
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
56333
56400
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
56334
56401
  }
56335
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
56402
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
56336
56403
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
56337
56404
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
56338
56405
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -56341,15 +56408,15 @@ var Organization = class Organization extends Object$1 {
56341
56408
  if ("services" in values && values.services != null) {
56342
56409
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
56343
56410
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
56344
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
56411
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
56345
56412
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
56346
56413
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
56347
56414
  } else throw new TypeError("The services must be an array of type DidService | URL.");
56348
56415
  }
56349
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
56416
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
56350
56417
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
56351
56418
  else throw new TypeError("The followedMessage must be of type string.");
56352
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
56419
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
56353
56420
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
56354
56421
  else throw new TypeError("The cat must be of type boolean.");
56355
56422
  return clone;
@@ -61460,7 +61527,8 @@ var Page = class Page extends Document {
61460
61527
  *
61461
61528
  * @param values The values to update the clone with.
61462
61529
  * @param options The options to use for cloning.
61463
- * @returns The cloned instance.
61530
+ * @returns The cloned instance with its own property arrays. Nested objects
61531
+ * and URLs are shared with this instance.
61464
61532
  */
61465
61533
  clone(values = {}, options = {}) {
61466
61534
  if (this._warning != null) {
@@ -61697,7 +61765,7 @@ var Person = class Person extends Object$1 {
61697
61765
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
61698
61766
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
61699
61767
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
61700
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
61768
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
61701
61769
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
61702
61770
  }
61703
61771
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -61707,7 +61775,7 @@ var Person = class Person extends Object$1 {
61707
61775
  if ("publicKeys" in values && values.publicKeys != null) {
61708
61776
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
61709
61777
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
61710
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
61778
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
61711
61779
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
61712
61780
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
61713
61781
  }
@@ -61718,7 +61786,7 @@ var Person = class Person extends Object$1 {
61718
61786
  if ("assertionMethods" in values && values.assertionMethods != null) {
61719
61787
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
61720
61788
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
61721
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
61789
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
61722
61790
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
61723
61791
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
61724
61792
  }
@@ -61726,7 +61794,7 @@ var Person = class Person extends Object$1 {
61726
61794
  else throw new TypeError("The gateway must be of type URL.");
61727
61795
  if ("gateways" in values && values.gateways != null) {
61728
61796
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
61729
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
61797
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
61730
61798
  else throw new TypeError("The gateways must be an array of type URL.");
61731
61799
  }
61732
61800
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -61764,7 +61832,7 @@ var Person = class Person extends Object$1 {
61764
61832
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
61765
61833
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
61766
61834
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
61767
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
61835
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
61768
61836
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
61769
61837
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
61770
61838
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -61788,7 +61856,7 @@ var Person = class Person extends Object$1 {
61788
61856
  if ("aliases" in values && values.aliases != null) {
61789
61857
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
61790
61858
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
61791
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
61859
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
61792
61860
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
61793
61861
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
61794
61862
  }
@@ -61799,7 +61867,7 @@ var Person = class Person extends Object$1 {
61799
61867
  if ("services" in values && values.services != null) {
61800
61868
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
61801
61869
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
61802
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
61870
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
61803
61871
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
61804
61872
  } else throw new TypeError("The services must be an array of type DidService | URL.");
61805
61873
  }
@@ -61819,7 +61887,8 @@ var Person = class Person extends Object$1 {
61819
61887
  *
61820
61888
  * @param values The values to update the clone with.
61821
61889
  * @param options The options to use for cloning.
61822
- * @returns The cloned instance.
61890
+ * @returns The cloned instance with its own property arrays. Nested objects
61891
+ * and URLs are shared with this instance.
61823
61892
  */
61824
61893
  clone(values = {}, options = {}) {
61825
61894
  if (this._warning != null) {
@@ -61830,15 +61899,15 @@ var Person = class Person extends Object$1 {
61830
61899
  };
61831
61900
  }
61832
61901
  const clone = super.clone(values, options);
61833
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
61902
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
61834
61903
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
61835
61904
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
61836
61905
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
61837
61906
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
61838
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
61907
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
61839
61908
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
61840
61909
  }
61841
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
61910
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
61842
61911
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
61843
61912
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
61844
61913
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -61847,12 +61916,12 @@ var Person = class Person extends Object$1 {
61847
61916
  if ("publicKeys" in values && values.publicKeys != null) {
61848
61917
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
61849
61918
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
61850
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
61919
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
61851
61920
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
61852
61921
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
61853
61922
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
61854
61923
  }
61855
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
61924
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
61856
61925
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
61857
61926
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
61858
61927
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -61861,99 +61930,99 @@ var Person = class Person extends Object$1 {
61861
61930
  if ("assertionMethods" in values && values.assertionMethods != null) {
61862
61931
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
61863
61932
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
61864
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
61933
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
61865
61934
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
61866
61935
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
61867
61936
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
61868
61937
  }
61869
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
61938
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
61870
61939
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
61871
61940
  else throw new TypeError("The gateway must be of type URL.");
61872
61941
  if ("gateways" in values && values.gateways != null) {
61873
61942
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
61874
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
61943
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
61875
61944
  else throw new TypeError("The gateways must be an array of type URL.");
61876
61945
  }
61877
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
61946
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
61878
61947
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
61879
61948
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
61880
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
61949
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
61881
61950
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
61882
61951
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
61883
61952
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
61884
61953
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
61885
61954
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
61886
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
61955
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
61887
61956
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
61888
61957
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
61889
61958
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
61890
61959
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
61891
61960
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
61892
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
61961
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
61893
61962
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
61894
61963
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
61895
61964
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
61896
61965
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
61897
61966
  } else throw new TypeError("The following must be of type Collection | URL.");
61898
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
61967
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
61899
61968
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
61900
61969
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
61901
61970
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
61902
61971
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
61903
61972
  } else throw new TypeError("The followers must be of type Collection | URL.");
61904
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
61973
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
61905
61974
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
61906
61975
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
61907
61976
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
61908
61977
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
61909
61978
  } else throw new TypeError("The liked must be of type Collection | URL.");
61910
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
61979
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
61911
61980
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
61912
61981
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
61913
61982
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
61914
61983
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
61915
61984
  } else throw new TypeError("The featured must be of type Collection | URL.");
61916
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
61985
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
61917
61986
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
61918
61987
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
61919
61988
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
61920
61989
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
61921
61990
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
61922
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
61991
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
61923
61992
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
61924
61993
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
61925
61994
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
61926
61995
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
61927
61996
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
61928
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
61997
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
61929
61998
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
61930
61999
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
61931
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
62000
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
61932
62001
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
61933
62002
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
61934
62003
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
61935
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
62004
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
61936
62005
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
61937
62006
  else throw new TypeError("The endpoints must be of type Endpoints.");
61938
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
62007
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
61939
62008
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
61940
62009
  else throw new TypeError("The discoverable must be of type boolean.");
61941
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
62010
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
61942
62011
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
61943
62012
  else throw new TypeError("The suspended must be of type boolean.");
61944
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
62013
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
61945
62014
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
61946
62015
  else throw new TypeError("The memorial must be of type boolean.");
61947
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
62016
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
61948
62017
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
61949
62018
  else throw new TypeError("The indexable must be of type boolean.");
61950
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
62019
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
61951
62020
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
61952
62021
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
61953
62022
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
61954
62023
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
61955
62024
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
61956
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
62025
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
61957
62026
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
61958
62027
  if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
61959
62028
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -61962,12 +62031,12 @@ var Person = class Person extends Object$1 {
61962
62031
  if ("aliases" in values && values.aliases != null) {
61963
62032
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
61964
62033
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
61965
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
62034
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
61966
62035
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
61967
62036
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
61968
62037
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
61969
62038
  }
61970
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
62039
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
61971
62040
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
61972
62041
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
61973
62042
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -61976,15 +62045,15 @@ var Person = class Person extends Object$1 {
61976
62045
  if ("services" in values && values.services != null) {
61977
62046
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
61978
62047
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
61979
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
62048
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
61980
62049
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
61981
62050
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
61982
62051
  } else throw new TypeError("The services must be an array of type DidService | URL.");
61983
62052
  }
61984
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
62053
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
61985
62054
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
61986
62055
  else throw new TypeError("The followedMessage must be of type string.");
61987
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
62056
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
61988
62057
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
61989
62058
  else throw new TypeError("The cat must be of type boolean.");
61990
62059
  return clone;
@@ -67115,7 +67184,8 @@ var Place = class Place extends Object$1 {
67115
67184
  *
67116
67185
  * @param values The values to update the clone with.
67117
67186
  * @param options The options to use for cloning.
67118
- * @returns The cloned instance.
67187
+ * @returns The cloned instance with its own property arrays. Nested objects
67188
+ * and URLs are shared with this instance.
67119
67189
  */
67120
67190
  clone(values = {}, options = {}) {
67121
67191
  if (this._warning != null) {
@@ -67126,22 +67196,22 @@ var Place = class Place extends Object$1 {
67126
67196
  };
67127
67197
  }
67128
67198
  const clone = super.clone(values, options);
67129
- clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
67199
+ clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice();
67130
67200
  if ("accuracy" in values && values.accuracy != null) if (typeof values.accuracy === "number" && !Number.isNaN(values.accuracy)) clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [values.accuracy];
67131
67201
  else throw new TypeError("The accuracy must be of type number.");
67132
- clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
67202
+ clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice();
67133
67203
  if ("altitude" in values && values.altitude != null) if (typeof values.altitude === "number" && !Number.isNaN(values.altitude)) clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [values.altitude];
67134
67204
  else throw new TypeError("The altitude must be of type number.");
67135
- clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
67205
+ clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice();
67136
67206
  if ("latitude" in values && values.latitude != null) if (typeof values.latitude === "number" && !Number.isNaN(values.latitude)) clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [values.latitude];
67137
67207
  else throw new TypeError("The latitude must be of type number.");
67138
- clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
67208
+ clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice();
67139
67209
  if ("longitude" in values && values.longitude != null) if (typeof values.longitude === "number" && !Number.isNaN(values.longitude)) clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [values.longitude];
67140
67210
  else throw new TypeError("The longitude must be of type number.");
67141
- clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
67211
+ clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice();
67142
67212
  if ("radius" in values && values.radius != null) if (typeof values.radius === "number" && !Number.isNaN(values.radius)) clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [values.radius];
67143
67213
  else throw new TypeError("The radius must be of type number.");
67144
- clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
67214
+ clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice();
67145
67215
  if ("units" in values && values.units != null) if (values.units == "cm" || values.units == "feet" || values.units == "inches" || values.units == "km" || values.units == "m" || values.units == "miles" || values.units instanceof URL) clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = [values.units];
67146
67216
  else throw new TypeError("The units must be of type \"cm\" | \"feet\" | \"inches\" | \"km\" | \"m\" | \"miles\" | URL.");
67147
67217
  return clone;
@@ -67626,7 +67696,8 @@ var Profile = class Profile extends Object$1 {
67626
67696
  *
67627
67697
  * @param values The values to update the clone with.
67628
67698
  * @param options The options to use for cloning.
67629
- * @returns The cloned instance.
67699
+ * @returns The cloned instance with its own property arrays. Nested objects
67700
+ * and URLs are shared with this instance.
67630
67701
  */
67631
67702
  clone(values = {}, options = {}) {
67632
67703
  if (this._warning != null) {
@@ -67637,7 +67708,7 @@ var Profile = class Profile extends Object$1 {
67637
67708
  };
67638
67709
  }
67639
67710
  const clone = super.clone(values, options);
67640
- clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
67711
+ clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();
67641
67712
  clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes);
67642
67713
  if ("describes" in values && values.describes != null) if (values.describes instanceof Object$1 || values.describes instanceof URL) {
67643
67714
  clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [values.describes];
@@ -68120,11 +68191,11 @@ var Question = class Question extends IntransitiveActivity {
68120
68191
  constructor(values, options = {}) {
68121
68192
  super(values, options);
68122
68193
  if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
68123
- this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
68194
+ this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
68124
68195
  for (let i = 0; i < values.exclusiveOptions.length; i++) this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
68125
68196
  } else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
68126
68197
  if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
68127
- this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
68198
+ this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
68128
68199
  for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
68129
68200
  } else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
68130
68201
  if ("closed" in values && values.closed != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
@@ -68153,7 +68224,8 @@ var Question = class Question extends IntransitiveActivity {
68153
68224
  *
68154
68225
  * @param values The values to update the clone with.
68155
68226
  * @param options The options to use for cloning.
68156
- * @returns The cloned instance.
68227
+ * @returns The cloned instance with its own property arrays. Nested objects
68228
+ * and URLs are shared with this instance.
68157
68229
  */
68158
68230
  clone(values = {}, options = {}) {
68159
68231
  if (this._warning != null) {
@@ -68164,36 +68236,36 @@ var Question = class Question extends IntransitiveActivity {
68164
68236
  };
68165
68237
  }
68166
68238
  const clone = super.clone(values, options);
68167
- clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
68239
+ clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();
68168
68240
  clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf);
68169
68241
  if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
68170
- clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
68242
+ clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
68171
68243
  clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = /* @__PURE__ */ new Set();
68172
68244
  for (let i = 0; i < values.exclusiveOptions.length; i++) clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
68173
68245
  } else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
68174
- clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
68246
+ clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();
68175
68247
  clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf);
68176
68248
  if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
68177
- clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
68249
+ clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
68178
68250
  clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = /* @__PURE__ */ new Set();
68179
68251
  for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
68180
68252
  } else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
68181
- clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
68253
+ clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice();
68182
68254
  if ("closed" in values && values.closed != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
68183
68255
  else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
68184
- clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
68256
+ clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice();
68185
68257
  if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
68186
68258
  else throw new TypeError("The voters must be of type number.");
68187
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
68259
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
68188
68260
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
68189
68261
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
68190
68262
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
68191
68263
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
68192
68264
  } else throw new TypeError("The quote must be of type Object | URL.");
68193
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
68265
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
68194
68266
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
68195
68267
  else throw new TypeError("The quoteUrl must be of type URL.");
68196
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
68268
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
68197
68269
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
68198
68270
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
68199
68271
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -69605,7 +69677,8 @@ var Read = class Read extends Activity {
69605
69677
  *
69606
69678
  * @param values The values to update the clone with.
69607
69679
  * @param options The options to use for cloning.
69608
- * @returns The cloned instance.
69680
+ * @returns The cloned instance with its own property arrays. Nested objects
69681
+ * and URLs are shared with this instance.
69609
69682
  */
69610
69683
  clone(values = {}, options = {}) {
69611
69684
  if (this._warning != null) {
@@ -69797,7 +69870,8 @@ var Reject = class Reject extends Activity {
69797
69870
  *
69798
69871
  * @param values The values to update the clone with.
69799
69872
  * @param options The options to use for cloning.
69800
- * @returns The cloned instance.
69873
+ * @returns The cloned instance with its own property arrays. Nested objects
69874
+ * and URLs are shared with this instance.
69801
69875
  */
69802
69876
  clone(values = {}, options = {}) {
69803
69877
  if (this._warning != null) {
@@ -70000,7 +70074,7 @@ var Relationship = class Relationship extends Object$1 {
70000
70074
  if ("objects" in values && values.objects != null) {
70001
70075
  if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
70002
70076
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
70003
- this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
70077
+ this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
70004
70078
  for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
70005
70079
  } else throw new TypeError("The objects must be an array of type Object | URL.");
70006
70080
  }
@@ -70011,7 +70085,7 @@ var Relationship = class Relationship extends Object$1 {
70011
70085
  if ("relationships" in values && values.relationships != null) {
70012
70086
  if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot initialize both relationship and relationships at the same time.");
70013
70087
  if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
70014
- this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
70088
+ this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
70015
70089
  for (let i = 0; i < values.relationships.length; i++) this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
70016
70090
  } else throw new TypeError("The relationships must be an array of type Object | URL.");
70017
70091
  }
@@ -70027,7 +70101,8 @@ var Relationship = class Relationship extends Object$1 {
70027
70101
  *
70028
70102
  * @param values The values to update the clone with.
70029
70103
  * @param options The options to use for cloning.
70030
- * @returns The cloned instance.
70104
+ * @returns The cloned instance with its own property arrays. Nested objects
70105
+ * and URLs are shared with this instance.
70031
70106
  */
70032
70107
  clone(values = {}, options = {}) {
70033
70108
  if (this._warning != null) {
@@ -70038,13 +70113,13 @@ var Relationship = class Relationship extends Object$1 {
70038
70113
  };
70039
70114
  }
70040
70115
  const clone = super.clone(values, options);
70041
- clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
70116
+ clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();
70042
70117
  clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject);
70043
70118
  if ("subject" in values && values.subject != null) if (values.subject instanceof Object$1 || values.subject instanceof URL) {
70044
70119
  clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [values.subject];
70045
70120
  clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = /* @__PURE__ */ new Set([0]);
70046
70121
  } else throw new TypeError("The subject must be of type Object | URL.");
70047
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
70122
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
70048
70123
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
70049
70124
  if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
70050
70125
  clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
@@ -70053,12 +70128,12 @@ var Relationship = class Relationship extends Object$1 {
70053
70128
  if ("objects" in values && values.objects != null) {
70054
70129
  if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
70055
70130
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
70056
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
70131
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
70057
70132
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
70058
70133
  for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
70059
70134
  } else throw new TypeError("The objects must be an array of type Object | URL.");
70060
70135
  }
70061
- clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
70136
+ clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();
70062
70137
  clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship);
70063
70138
  if ("relationship" in values && values.relationship != null) if (values.relationship instanceof Object$1 || values.relationship instanceof URL) {
70064
70139
  clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [values.relationship];
@@ -70067,7 +70142,7 @@ var Relationship = class Relationship extends Object$1 {
70067
70142
  if ("relationships" in values && values.relationships != null) {
70068
70143
  if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot update both relationship and relationships at the same time.");
70069
70144
  if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
70070
- clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
70145
+ clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
70071
70146
  clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = /* @__PURE__ */ new Set();
70072
70147
  for (let i = 0; i < values.relationships.length; i++) clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
70073
70148
  } else throw new TypeError("The relationships must be an array of type Object | URL.");
@@ -71241,7 +71316,8 @@ var Remove = class Remove extends Activity {
71241
71316
  *
71242
71317
  * @param values The values to update the clone with.
71243
71318
  * @param options The options to use for cloning.
71244
- * @returns The cloned instance.
71319
+ * @returns The cloned instance with its own property arrays. Nested objects
71320
+ * and URLs are shared with this instance.
71245
71321
  */
71246
71322
  clone(values = {}, options = {}) {
71247
71323
  if (this._warning != null) {
@@ -71462,7 +71538,7 @@ var Service = class Service extends Object$1 {
71462
71538
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
71463
71539
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
71464
71540
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
71465
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
71541
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
71466
71542
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
71467
71543
  }
71468
71544
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -71472,7 +71548,7 @@ var Service = class Service extends Object$1 {
71472
71548
  if ("publicKeys" in values && values.publicKeys != null) {
71473
71549
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
71474
71550
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
71475
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
71551
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
71476
71552
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
71477
71553
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
71478
71554
  }
@@ -71483,7 +71559,7 @@ var Service = class Service extends Object$1 {
71483
71559
  if ("assertionMethods" in values && values.assertionMethods != null) {
71484
71560
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
71485
71561
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
71486
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
71562
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
71487
71563
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
71488
71564
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
71489
71565
  }
@@ -71491,7 +71567,7 @@ var Service = class Service extends Object$1 {
71491
71567
  else throw new TypeError("The gateway must be of type URL.");
71492
71568
  if ("gateways" in values && values.gateways != null) {
71493
71569
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
71494
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
71570
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
71495
71571
  else throw new TypeError("The gateways must be an array of type URL.");
71496
71572
  }
71497
71573
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -71529,7 +71605,7 @@ var Service = class Service extends Object$1 {
71529
71605
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
71530
71606
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
71531
71607
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
71532
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
71608
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
71533
71609
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
71534
71610
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
71535
71611
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -71553,7 +71629,7 @@ var Service = class Service extends Object$1 {
71553
71629
  if ("aliases" in values && values.aliases != null) {
71554
71630
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
71555
71631
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
71556
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
71632
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
71557
71633
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
71558
71634
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
71559
71635
  }
@@ -71564,7 +71640,7 @@ var Service = class Service extends Object$1 {
71564
71640
  if ("services" in values && values.services != null) {
71565
71641
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
71566
71642
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
71567
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
71643
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
71568
71644
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
71569
71645
  } else throw new TypeError("The services must be an array of type DidService | URL.");
71570
71646
  }
@@ -71584,7 +71660,8 @@ var Service = class Service extends Object$1 {
71584
71660
  *
71585
71661
  * @param values The values to update the clone with.
71586
71662
  * @param options The options to use for cloning.
71587
- * @returns The cloned instance.
71663
+ * @returns The cloned instance with its own property arrays. Nested objects
71664
+ * and URLs are shared with this instance.
71588
71665
  */
71589
71666
  clone(values = {}, options = {}) {
71590
71667
  if (this._warning != null) {
@@ -71595,15 +71672,15 @@ var Service = class Service extends Object$1 {
71595
71672
  };
71596
71673
  }
71597
71674
  const clone = super.clone(values, options);
71598
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
71675
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
71599
71676
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
71600
71677
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
71601
71678
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
71602
71679
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
71603
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
71680
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
71604
71681
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
71605
71682
  }
71606
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
71683
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
71607
71684
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
71608
71685
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
71609
71686
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -71612,12 +71689,12 @@ var Service = class Service extends Object$1 {
71612
71689
  if ("publicKeys" in values && values.publicKeys != null) {
71613
71690
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
71614
71691
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
71615
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
71692
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
71616
71693
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
71617
71694
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
71618
71695
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
71619
71696
  }
71620
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
71697
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
71621
71698
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
71622
71699
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
71623
71700
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -71626,99 +71703,99 @@ var Service = class Service extends Object$1 {
71626
71703
  if ("assertionMethods" in values && values.assertionMethods != null) {
71627
71704
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
71628
71705
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
71629
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
71706
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
71630
71707
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
71631
71708
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
71632
71709
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
71633
71710
  }
71634
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
71711
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
71635
71712
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
71636
71713
  else throw new TypeError("The gateway must be of type URL.");
71637
71714
  if ("gateways" in values && values.gateways != null) {
71638
71715
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
71639
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
71716
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && (0, _fedify_vocab_runtime.isGatewayUrl)(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
71640
71717
  else throw new TypeError("The gateways must be an array of type URL.");
71641
71718
  }
71642
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
71719
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
71643
71720
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
71644
71721
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
71645
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
71722
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
71646
71723
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
71647
71724
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
71648
71725
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
71649
71726
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
71650
71727
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
71651
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
71728
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
71652
71729
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
71653
71730
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
71654
71731
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
71655
71732
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
71656
71733
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
71657
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
71734
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
71658
71735
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
71659
71736
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
71660
71737
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
71661
71738
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
71662
71739
  } else throw new TypeError("The following must be of type Collection | URL.");
71663
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
71740
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
71664
71741
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
71665
71742
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
71666
71743
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
71667
71744
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
71668
71745
  } else throw new TypeError("The followers must be of type Collection | URL.");
71669
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
71746
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
71670
71747
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
71671
71748
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
71672
71749
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
71673
71750
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
71674
71751
  } else throw new TypeError("The liked must be of type Collection | URL.");
71675
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
71752
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
71676
71753
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
71677
71754
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
71678
71755
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
71679
71756
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
71680
71757
  } else throw new TypeError("The featured must be of type Collection | URL.");
71681
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
71758
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
71682
71759
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
71683
71760
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
71684
71761
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
71685
71762
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
71686
71763
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
71687
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
71764
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
71688
71765
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
71689
71766
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
71690
71767
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
71691
71768
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
71692
71769
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
71693
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
71770
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
71694
71771
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
71695
71772
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
71696
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
71773
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
71697
71774
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
71698
71775
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
71699
71776
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
71700
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
71777
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
71701
71778
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
71702
71779
  else throw new TypeError("The endpoints must be of type Endpoints.");
71703
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
71780
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
71704
71781
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
71705
71782
  else throw new TypeError("The discoverable must be of type boolean.");
71706
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
71783
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
71707
71784
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
71708
71785
  else throw new TypeError("The suspended must be of type boolean.");
71709
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
71786
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
71710
71787
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
71711
71788
  else throw new TypeError("The memorial must be of type boolean.");
71712
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
71789
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
71713
71790
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
71714
71791
  else throw new TypeError("The indexable must be of type boolean.");
71715
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
71792
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
71716
71793
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
71717
71794
  if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
71718
71795
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
71719
71796
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
71720
71797
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
71721
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
71798
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
71722
71799
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
71723
71800
  if ("alias" in values && values.alias != null) if (values.alias instanceof Application || values.alias instanceof Group || values.alias instanceof Organization || values.alias instanceof Person || values.alias instanceof Service || values.alias instanceof URL) {
71724
71801
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -71727,12 +71804,12 @@ var Service = class Service extends Object$1 {
71727
71804
  if ("aliases" in values && values.aliases != null) {
71728
71805
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
71729
71806
  if (Array.isArray(values.aliases) && values.aliases.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
71730
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
71807
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
71731
71808
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
71732
71809
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
71733
71810
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
71734
71811
  }
71735
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
71812
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
71736
71813
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
71737
71814
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
71738
71815
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -71741,15 +71818,15 @@ var Service = class Service extends Object$1 {
71741
71818
  if ("services" in values && values.services != null) {
71742
71819
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
71743
71820
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
71744
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
71821
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
71745
71822
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
71746
71823
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
71747
71824
  } else throw new TypeError("The services must be an array of type DidService | URL.");
71748
71825
  }
71749
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
71826
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
71750
71827
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
71751
71828
  else throw new TypeError("The followedMessage must be of type string.");
71752
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
71829
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
71753
71830
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
71754
71831
  else throw new TypeError("The cat must be of type boolean.");
71755
71832
  return clone;
@@ -76906,7 +76983,7 @@ var Source = class {
76906
76983
  else throw new TypeError("The content must be of type string | LanguageString.");
76907
76984
  if ("contents" in values && values.contents != null) {
76908
76985
  if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
76909
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
76986
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
76910
76987
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
76911
76988
  }
76912
76989
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
@@ -76923,7 +77000,8 @@ var Source = class {
76923
77000
  *
76924
77001
  * @param values The values to update the clone with.
76925
77002
  * @param options The options to use for cloning.
76926
- * @returns The cloned instance.
77003
+ * @returns The cloned instance with its own property arrays. Nested objects
77004
+ * and URLs are shared with this instance.
76927
77005
  */
76928
77006
  clone(values = {}, options = {}) {
76929
77007
  if (this._warning != null) {
@@ -76935,15 +77013,15 @@ var Source = class {
76935
77013
  }
76936
77014
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
76937
77015
  (0, _fedify_vocab_runtime_internal_portable_dereference.copyPortableProvenance)(this, clone);
76938
- clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
77016
+ clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
76939
77017
  if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof _fedify_vocab_runtime.LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
76940
77018
  else throw new TypeError("The content must be of type string | LanguageString.");
76941
77019
  if ("contents" in values && values.contents != null) {
76942
77020
  if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
76943
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
77021
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
76944
77022
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
76945
77023
  }
76946
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
77024
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
76947
77025
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
76948
77026
  else throw new TypeError("The mediaType must be of type string.");
76949
77027
  return clone;
@@ -77218,7 +77296,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
77218
77296
  *
77219
77297
  * @param values The values to update the clone with.
77220
77298
  * @param options The options to use for cloning.
77221
- * @returns The cloned instance.
77299
+ * @returns The cloned instance with its own property arrays. Nested objects
77300
+ * and URLs are shared with this instance.
77222
77301
  */
77223
77302
  clone(values = {}, options = {}) {
77224
77303
  if (this._warning != null) {
@@ -77410,7 +77489,8 @@ var TentativeReject = class TentativeReject extends Reject {
77410
77489
  *
77411
77490
  * @param values The values to update the clone with.
77412
77491
  * @param options The options to use for cloning.
77413
- * @returns The cloned instance.
77492
+ * @returns The cloned instance with its own property arrays. Nested objects
77493
+ * and URLs are shared with this instance.
77414
77494
  */
77415
77495
  clone(values = {}, options = {}) {
77416
77496
  if (this._warning != null) {
@@ -77597,7 +77677,7 @@ var Tombstone = class Tombstone extends Object$1 {
77597
77677
  else throw new TypeError("The formerType must be of type $EntityType.");
77598
77678
  if ("formerTypes" in values && values.formerTypes != null) {
77599
77679
  if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot initialize both formerType and formerTypes at the same time.");
77600
- if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
77680
+ if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
77601
77681
  else throw new TypeError("The formerTypes must be an array of type $EntityType.");
77602
77682
  }
77603
77683
  if ("deleted" in values && values.deleted != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
@@ -77614,7 +77694,8 @@ var Tombstone = class Tombstone extends Object$1 {
77614
77694
  *
77615
77695
  * @param values The values to update the clone with.
77616
77696
  * @param options The options to use for cloning.
77617
- * @returns The cloned instance.
77697
+ * @returns The cloned instance with its own property arrays. Nested objects
77698
+ * and URLs are shared with this instance.
77618
77699
  */
77619
77700
  clone(values = {}, options = {}) {
77620
77701
  if (this._warning != null) {
@@ -77625,15 +77706,15 @@ var Tombstone = class Tombstone extends Object$1 {
77625
77706
  };
77626
77707
  }
77627
77708
  const clone = super.clone(values, options);
77628
- clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
77709
+ clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.slice();
77629
77710
  if ("formerType" in values && values.formerType != null) if (isEntityType(values.formerType)) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [values.formerType];
77630
77711
  else throw new TypeError("The formerType must be of type $EntityType.");
77631
77712
  if ("formerTypes" in values && values.formerTypes != null) {
77632
77713
  if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot update both formerType and formerTypes at the same time.");
77633
- if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
77714
+ if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
77634
77715
  else throw new TypeError("The formerTypes must be an array of type $EntityType.");
77635
77716
  }
77636
- clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
77717
+ clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice();
77637
77718
  if ("deleted" in values && values.deleted != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
77638
77719
  else throw new TypeError("The deleted must be of type Temporal.Instant.");
77639
77720
  return clone;
@@ -77938,7 +78019,8 @@ var Travel = class Travel extends IntransitiveActivity {
77938
78019
  *
77939
78020
  * @param values The values to update the clone with.
77940
78021
  * @param options The options to use for cloning.
77941
- * @returns The cloned instance.
78022
+ * @returns The cloned instance with its own property arrays. Nested objects
78023
+ * and URLs are shared with this instance.
77942
78024
  */
77943
78025
  clone(values = {}, options = {}) {
77944
78026
  if (this._warning != null) {
@@ -78135,7 +78217,8 @@ var Undo = class Undo extends Activity {
78135
78217
  *
78136
78218
  * @param values The values to update the clone with.
78137
78219
  * @param options The options to use for cloning.
78138
- * @returns The cloned instance.
78220
+ * @returns The cloned instance with its own property arrays. Nested objects
78221
+ * and URLs are shared with this instance.
78139
78222
  */
78140
78223
  clone(values = {}, options = {}) {
78141
78224
  if (this._warning != null) {
@@ -78339,7 +78422,8 @@ var Update = class Update extends Activity {
78339
78422
  *
78340
78423
  * @param values The values to update the clone with.
78341
78424
  * @param options The options to use for cloning.
78342
- * @returns The cloned instance.
78425
+ * @returns The cloned instance with its own property arrays. Nested objects
78426
+ * and URLs are shared with this instance.
78343
78427
  */
78344
78428
  clone(values = {}, options = {}) {
78345
78429
  if (this._warning != null) {
@@ -78589,7 +78673,8 @@ var Video = class Video extends Document {
78589
78673
  *
78590
78674
  * @param values The values to update the clone with.
78591
78675
  * @param options The options to use for cloning.
78592
- * @returns The cloned instance.
78676
+ * @returns The cloned instance with its own property arrays. Nested objects
78677
+ * and URLs are shared with this instance.
78593
78678
  */
78594
78679
  clone(values = {}, options = {}) {
78595
78680
  if (this._warning != null) {
@@ -78796,7 +78881,8 @@ var View = class View extends Activity {
78796
78881
  *
78797
78882
  * @param values The values to update the clone with.
78798
78883
  * @param options The options to use for cloning.
78799
- * @returns The cloned instance.
78884
+ * @returns The cloned instance with its own property arrays. Nested objects
78885
+ * and URLs are shared with this instance.
78800
78886
  */
78801
78887
  clone(values = {}, options = {}) {
78802
78888
  if (this._warning != null) {