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

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.
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  globalThis.addEventListener = () => {};
3
3
  import "node:module";
4
- import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, formatIri, getDocumentLoader, importMultibaseKey, importPem, isDecimal, isGatewayUrl, parseDecimal, parseGatewayUrl, parseIri, parseJsonLdId } from "@fedify/vocab-runtime";
4
+ import { LanguageString, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, formatIri, getDocumentLoader, importMultibaseKey, importPem, isDecimal, isGatewayUrl, normalizeLanguageTag, parseDecimal, parseGatewayUrl, parseIri, parseJsonLdId } from "@fedify/vocab-runtime";
5
5
  import { SpanStatusCode, trace } from "@opentelemetry/api";
6
6
  import jsonld from "@fedify/vocab-runtime/jsonld";
7
7
  import { getLogger } from "@logtape/logtape";
@@ -186,7 +186,7 @@ function inspectIri(iri) {
186
186
  }
187
187
  function isValidLanguageTag(language) {
188
188
  try {
189
- new Intl.Locale(language);
189
+ new Intl.Locale(normalizeLanguageTag(language));
190
190
  return true;
191
191
  } catch (error) {
192
192
  if (error instanceof RangeError) return false;
@@ -542,7 +542,7 @@ var Object$1 = class Object$1 {
542
542
  if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
543
543
  else throw new TypeError("The id must be a URL.");
544
544
  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)) {
545
- this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
545
+ this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
546
546
  for (let i = 0; i < values.attachments.length; i++) this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
547
547
  } else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
548
548
  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) {
@@ -552,7 +552,7 @@ var Object$1 = class Object$1 {
552
552
  if ("attributions" in values && values.attributions != null) {
553
553
  if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot initialize both attribution and attributions at the same time.");
554
554
  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)) {
555
- this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
555
+ this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
556
556
  for (let i = 0; i < values.attributions.length; i++) this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
557
557
  } else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
558
558
  }
@@ -563,7 +563,7 @@ var Object$1 = class Object$1 {
563
563
  if ("audiences" in values && values.audiences != null) {
564
564
  if ("audience" in values && values.audience != null) throw new TypeError("Cannot initialize both audience and audiences at the same time.");
565
565
  if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
566
- this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
566
+ this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
567
567
  for (let i = 0; i < values.audiences.length; i++) this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
568
568
  } else throw new TypeError("The audiences must be an array of type Object | URL.");
569
569
  }
@@ -571,24 +571,24 @@ var Object$1 = class Object$1 {
571
571
  else throw new TypeError("The content must be of type string | LanguageString.");
572
572
  if ("contents" in values && values.contents != null) {
573
573
  if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
574
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
574
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
575
575
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
576
576
  }
577
577
  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)) {
578
- this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
578
+ this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
579
579
  for (let i = 0; i < values.contexts.length; i++) this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
580
580
  } else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
581
581
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
582
582
  else throw new TypeError("The name must be of type string | LanguageString.");
583
583
  if ("names" in values && values.names != null) {
584
584
  if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
585
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
585
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
586
586
  else throw new TypeError("The names must be an array of type string | LanguageString.");
587
587
  }
588
588
  if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
589
589
  else throw new TypeError("The endTime must be of type Temporal.Instant.");
590
590
  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)) {
591
- this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
591
+ this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
592
592
  for (let i = 0; i < values.generators.length; i++) this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
593
593
  } else throw new TypeError("The generators must be an array of type Object | Link | URL.");
594
594
  if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
@@ -598,7 +598,7 @@ var Object$1 = class Object$1 {
598
598
  if ("icons" in values && values.icons != null) {
599
599
  if ("icon" in values && values.icon != null) throw new TypeError("Cannot initialize both icon and icons at the same time.");
600
600
  if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
601
- this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
601
+ this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
602
602
  for (let i = 0; i < values.icons.length; i++) this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
603
603
  } else throw new TypeError("The icons must be an array of type Image | URL.");
604
604
  }
@@ -609,7 +609,7 @@ var Object$1 = class Object$1 {
609
609
  if ("images" in values && values.images != null) {
610
610
  if ("image" in values && values.image != null) throw new TypeError("Cannot initialize both image and images at the same time.");
611
611
  if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
612
- this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
612
+ this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
613
613
  for (let i = 0; i < values.images.length; i++) this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
614
614
  } else throw new TypeError("The images must be an array of type Image | URL.");
615
615
  }
@@ -620,7 +620,7 @@ var Object$1 = class Object$1 {
620
620
  if ("replyTargets" in values && values.replyTargets != null) {
621
621
  if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot initialize both replyTarget and replyTargets at the same time.");
622
622
  if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
623
- this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
623
+ this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
624
624
  for (let i = 0; i < values.replyTargets.length; i++) this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
625
625
  } else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
626
626
  }
@@ -631,7 +631,7 @@ var Object$1 = class Object$1 {
631
631
  if ("locations" in values && values.locations != null) {
632
632
  if ("location" in values && values.location != null) throw new TypeError("Cannot initialize both location and locations at the same time.");
633
633
  if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
634
- this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
634
+ this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
635
635
  for (let i = 0; i < values.locations.length; i++) this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
636
636
  } else throw new TypeError("The locations must be an array of type Object | Link | URL.");
637
637
  }
@@ -642,7 +642,7 @@ var Object$1 = class Object$1 {
642
642
  if ("previews" in values && values.previews != null) {
643
643
  if ("preview" in values && values.preview != null) throw new TypeError("Cannot initialize both preview and previews at the same time.");
644
644
  if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
645
- this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
645
+ this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
646
646
  for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
647
647
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
648
648
  }
@@ -670,11 +670,11 @@ var Object$1 = class Object$1 {
670
670
  else throw new TypeError("The summary must be of type string | LanguageString.");
671
671
  if ("summaries" in values && values.summaries != null) {
672
672
  if ("summary" in values && values.summary != null) throw new TypeError("Cannot initialize both summary and summaries at the same time.");
673
- if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
673
+ if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
674
674
  else throw new TypeError("The summaries must be an array of type string | LanguageString.");
675
675
  }
676
676
  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)) {
677
- this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
677
+ this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
678
678
  for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
679
679
  } else throw new TypeError("The tags must be an array of type Object | Link | URL.");
680
680
  if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
@@ -683,7 +683,7 @@ var Object$1 = class Object$1 {
683
683
  else throw new TypeError("The url must be of type URL | Link.");
684
684
  if ("urls" in values && values.urls != null) {
685
685
  if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
686
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
686
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
687
687
  else throw new TypeError("The urls must be an array of type URL | Link.");
688
688
  }
689
689
  if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
@@ -693,7 +693,7 @@ var Object$1 = class Object$1 {
693
693
  if ("tos" in values && values.tos != null) {
694
694
  if ("to" in values && values.to != null) throw new TypeError("Cannot initialize both to and tos at the same time.");
695
695
  if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
696
- this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
696
+ this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
697
697
  for (let i = 0; i < values.tos.length; i++) this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
698
698
  } else throw new TypeError("The tos must be an array of type Object | URL.");
699
699
  }
@@ -704,7 +704,7 @@ var Object$1 = class Object$1 {
704
704
  if ("btos" in values && values.btos != null) {
705
705
  if ("bto" in values && values.bto != null) throw new TypeError("Cannot initialize both bto and btos at the same time.");
706
706
  if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
707
- this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
707
+ this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
708
708
  for (let i = 0; i < values.btos.length; i++) this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
709
709
  } else throw new TypeError("The btos must be an array of type Object | URL.");
710
710
  }
@@ -715,7 +715,7 @@ var Object$1 = class Object$1 {
715
715
  if ("ccs" in values && values.ccs != null) {
716
716
  if ("cc" in values && values.cc != null) throw new TypeError("Cannot initialize both cc and ccs at the same time.");
717
717
  if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
718
- this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
718
+ this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
719
719
  for (let i = 0; i < values.ccs.length; i++) this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
720
720
  } else throw new TypeError("The ccs must be an array of type Object | URL.");
721
721
  }
@@ -726,7 +726,7 @@ var Object$1 = class Object$1 {
726
726
  if ("bccs" in values && values.bccs != null) {
727
727
  if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot initialize both bcc and bccs at the same time.");
728
728
  if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
729
- this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
729
+ this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
730
730
  for (let i = 0; i < values.bccs.length; i++) this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
731
731
  } else throw new TypeError("The bccs must be an array of type Object | URL.");
732
732
  }
@@ -745,7 +745,7 @@ var Object$1 = class Object$1 {
745
745
  if ("proofs" in values && values.proofs != null) {
746
746
  if ("proof" in values && values.proof != null) throw new TypeError("Cannot initialize both proof and proofs at the same time.");
747
747
  if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
748
- this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
748
+ this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
749
749
  for (let i = 0; i < values.proofs.length; i++) this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
750
750
  } else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
751
751
  }
@@ -765,7 +765,7 @@ var Object$1 = class Object$1 {
765
765
  this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
766
766
  this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.add(0);
767
767
  } else throw new TypeError("The announceAuthorization must be of type AnnounceAuthorization | URL.");
768
- if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations;
768
+ 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();
769
769
  else throw new TypeError("The translations must be an array of type Translation.");
770
770
  }
771
771
  /**
@@ -779,7 +779,8 @@ var Object$1 = class Object$1 {
779
779
  *
780
780
  * @param values The values to update the clone with.
781
781
  * @param options The options to use for cloning.
782
- * @returns The cloned instance.
782
+ * @returns The cloned instance with its own property arrays. Nested objects
783
+ * and URLs are shared with this instance.
783
784
  */
784
785
  clone(values = {}, options = {}) {
785
786
  if (this._warning != null) {
@@ -791,14 +792,14 @@ var Object$1 = class Object$1 {
791
792
  }
792
793
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
793
794
  copyPortableProvenance(this, clone);
794
- clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;
795
+ clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();
795
796
  clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment);
796
797
  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)) {
797
- clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
798
+ clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
798
799
  clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = /* @__PURE__ */ new Set();
799
800
  for (let i = 0; i < values.attachments.length; i++) clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
800
801
  } else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
801
- clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
802
+ clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();
802
803
  clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo);
803
804
  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) {
804
805
  clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = [values.attribution];
@@ -807,12 +808,12 @@ var Object$1 = class Object$1 {
807
808
  if ("attributions" in values && values.attributions != null) {
808
809
  if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot update both attribution and attributions at the same time.");
809
810
  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)) {
810
- clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
811
+ clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
811
812
  clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = /* @__PURE__ */ new Set();
812
813
  for (let i = 0; i < values.attributions.length; i++) clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
813
814
  } else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
814
815
  }
815
- clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
816
+ clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();
816
817
  clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience);
817
818
  if ("audience" in values && values.audience != null) if (values.audience instanceof Object$1 || values.audience instanceof URL) {
818
819
  clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = [values.audience];
@@ -821,45 +822,45 @@ var Object$1 = class Object$1 {
821
822
  if ("audiences" in values && values.audiences != null) {
822
823
  if ("audience" in values && values.audience != null) throw new TypeError("Cannot update both audience and audiences at the same time.");
823
824
  if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
824
- clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
825
+ clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
825
826
  clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = /* @__PURE__ */ new Set();
826
827
  for (let i = 0; i < values.audiences.length; i++) clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
827
828
  } else throw new TypeError("The audiences must be an array of type Object | URL.");
828
829
  }
829
- clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
830
+ clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
830
831
  if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
831
832
  else throw new TypeError("The content must be of type string | LanguageString.");
832
833
  if ("contents" in values && values.contents != null) {
833
834
  if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
834
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
835
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
835
836
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
836
837
  }
837
- clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;
838
+ clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();
838
839
  clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context);
839
840
  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)) {
840
- clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
841
+ clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
841
842
  clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = /* @__PURE__ */ new Set();
842
843
  for (let i = 0; i < values.contexts.length; i++) clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
843
844
  } else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
844
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
845
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
845
846
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
846
847
  else throw new TypeError("The name must be of type string | LanguageString.");
847
848
  if ("names" in values && values.names != null) {
848
849
  if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
849
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
850
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
850
851
  else throw new TypeError("The names must be an array of type string | LanguageString.");
851
852
  }
852
- clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
853
+ clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice();
853
854
  if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
854
855
  else throw new TypeError("The endTime must be of type Temporal.Instant.");
855
- clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
856
+ clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();
856
857
  clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
857
858
  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)) {
858
- clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
859
+ clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
859
860
  clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = /* @__PURE__ */ new Set();
860
861
  for (let i = 0; i < values.generators.length; i++) clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
861
862
  } else throw new TypeError("The generators must be an array of type Object | Link | URL.");
862
- clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
863
+ clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();
863
864
  clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon);
864
865
  if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
865
866
  clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = [values.icon];
@@ -868,12 +869,12 @@ var Object$1 = class Object$1 {
868
869
  if ("icons" in values && values.icons != null) {
869
870
  if ("icon" in values && values.icon != null) throw new TypeError("Cannot update both icon and icons at the same time.");
870
871
  if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
871
- clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
872
+ clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
872
873
  clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = /* @__PURE__ */ new Set();
873
874
  for (let i = 0; i < values.icons.length; i++) clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
874
875
  } else throw new TypeError("The icons must be an array of type Image | URL.");
875
876
  }
876
- clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
877
+ clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();
877
878
  clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image);
878
879
  if ("image" in values && values.image != null) if (values.image instanceof Image || values.image instanceof URL) {
879
880
  clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [values.image];
@@ -882,12 +883,12 @@ var Object$1 = class Object$1 {
882
883
  if ("images" in values && values.images != null) {
883
884
  if ("image" in values && values.image != null) throw new TypeError("Cannot update both image and images at the same time.");
884
885
  if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
885
- clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
886
+ clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
886
887
  clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = /* @__PURE__ */ new Set();
887
888
  for (let i = 0; i < values.images.length; i++) clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
888
889
  } else throw new TypeError("The images must be an array of type Image | URL.");
889
890
  }
890
- clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
891
+ clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();
891
892
  clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo);
892
893
  if ("replyTarget" in values && values.replyTarget != null) if (values.replyTarget instanceof Object$1 || values.replyTarget instanceof Link || values.replyTarget instanceof URL) {
893
894
  clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [values.replyTarget];
@@ -896,12 +897,12 @@ var Object$1 = class Object$1 {
896
897
  if ("replyTargets" in values && values.replyTargets != null) {
897
898
  if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot update both replyTarget and replyTargets at the same time.");
898
899
  if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
899
- clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
900
+ clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
900
901
  clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = /* @__PURE__ */ new Set();
901
902
  for (let i = 0; i < values.replyTargets.length; i++) clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
902
903
  } else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
903
904
  }
904
- clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
905
+ clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();
905
906
  clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location);
906
907
  if ("location" in values && values.location != null) if (values.location instanceof Object$1 || values.location instanceof Link || values.location instanceof URL) {
907
908
  clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = [values.location];
@@ -910,12 +911,12 @@ var Object$1 = class Object$1 {
910
911
  if ("locations" in values && values.locations != null) {
911
912
  if ("location" in values && values.location != null) throw new TypeError("Cannot update both location and locations at the same time.");
912
913
  if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
913
- clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
914
+ clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
914
915
  clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = /* @__PURE__ */ new Set();
915
916
  for (let i = 0; i < values.locations.length; i++) clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
916
917
  } else throw new TypeError("The locations must be an array of type Object | Link | URL.");
917
918
  }
918
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
919
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
919
920
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
920
921
  if ("preview" in values && values.preview != null) if (values.preview instanceof Link || values.preview instanceof Object$1 || values.preview instanceof URL) {
921
922
  clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = [values.preview];
@@ -924,68 +925,68 @@ var Object$1 = class Object$1 {
924
925
  if ("previews" in values && values.previews != null) {
925
926
  if ("preview" in values && values.preview != null) throw new TypeError("Cannot update both preview and previews at the same time.");
926
927
  if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
927
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
928
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
928
929
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
929
930
  for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
930
931
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
931
932
  }
932
- clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
933
+ clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice();
933
934
  if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
934
935
  else throw new TypeError("The published must be of type Temporal.Instant.");
935
- clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
936
+ clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();
936
937
  clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
937
938
  if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
938
939
  clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
939
940
  clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = /* @__PURE__ */ new Set([0]);
940
941
  } else throw new TypeError("The replies must be of type Collection | URL.");
941
- clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;
942
+ clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();
942
943
  clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares);
943
944
  if ("shares" in values && values.shares != null) if (values.shares instanceof Collection || values.shares instanceof URL) {
944
945
  clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = [values.shares];
945
946
  clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = /* @__PURE__ */ new Set([0]);
946
947
  } else throw new TypeError("The shares must be of type Collection | URL.");
947
- clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
948
+ clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();
948
949
  clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes);
949
950
  if ("likes" in values && values.likes != null) if (values.likes instanceof Collection || values.likes instanceof URL) {
950
951
  clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [values.likes];
951
952
  clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = /* @__PURE__ */ new Set([0]);
952
953
  } else throw new TypeError("The likes must be of type Collection | URL.");
953
- clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
954
+ clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();
954
955
  clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions);
955
956
  if ("emojiReactions" in values && values.emojiReactions != null) if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) {
956
957
  clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
957
958
  clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = /* @__PURE__ */ new Set([0]);
958
959
  } else throw new TypeError("The emojiReactions must be of type Collection | URL.");
959
- clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
960
+ clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice();
960
961
  if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
961
962
  else throw new TypeError("The startTime must be of type Temporal.Instant.");
962
- clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
963
+ clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice();
963
964
  if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
964
965
  else throw new TypeError("The summary must be of type string | LanguageString.");
965
966
  if ("summaries" in values && values.summaries != null) {
966
967
  if ("summary" in values && values.summary != null) throw new TypeError("Cannot update both summary and summaries at the same time.");
967
- if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
968
+ if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
968
969
  else throw new TypeError("The summaries must be an array of type string | LanguageString.");
969
970
  }
970
- clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;
971
+ clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();
971
972
  clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag);
972
973
  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)) {
973
- clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
974
+ clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
974
975
  clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = /* @__PURE__ */ new Set();
975
976
  for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
976
977
  } else throw new TypeError("The tags must be an array of type Object | Link | URL.");
977
- clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
978
+ clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice();
978
979
  if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
979
980
  else throw new TypeError("The updated must be of type Temporal.Instant.");
980
- clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
981
+ clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
981
982
  if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
982
983
  else throw new TypeError("The url must be of type URL | Link.");
983
984
  if ("urls" in values && values.urls != null) {
984
985
  if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
985
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
986
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
986
987
  else throw new TypeError("The urls must be an array of type URL | Link.");
987
988
  }
988
- clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
989
+ clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();
989
990
  clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to);
990
991
  if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
991
992
  clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = [values.to];
@@ -994,12 +995,12 @@ var Object$1 = class Object$1 {
994
995
  if ("tos" in values && values.tos != null) {
995
996
  if ("to" in values && values.to != null) throw new TypeError("Cannot update both to and tos at the same time.");
996
997
  if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
997
- clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
998
+ clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
998
999
  clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = /* @__PURE__ */ new Set();
999
1000
  for (let i = 0; i < values.tos.length; i++) clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
1000
1001
  } else throw new TypeError("The tos must be an array of type Object | URL.");
1001
1002
  }
1002
- clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
1003
+ clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();
1003
1004
  clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto);
1004
1005
  if ("bto" in values && values.bto != null) if (values.bto instanceof Object$1 || values.bto instanceof URL) {
1005
1006
  clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [values.bto];
@@ -1008,12 +1009,12 @@ var Object$1 = class Object$1 {
1008
1009
  if ("btos" in values && values.btos != null) {
1009
1010
  if ("bto" in values && values.bto != null) throw new TypeError("Cannot update both bto and btos at the same time.");
1010
1011
  if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
1011
- clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
1012
+ clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
1012
1013
  clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = /* @__PURE__ */ new Set();
1013
1014
  for (let i = 0; i < values.btos.length; i++) clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
1014
1015
  } else throw new TypeError("The btos must be an array of type Object | URL.");
1015
1016
  }
1016
- clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
1017
+ clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();
1017
1018
  clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc);
1018
1019
  if ("cc" in values && values.cc != null) if (values.cc instanceof Object$1 || values.cc instanceof URL) {
1019
1020
  clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [values.cc];
@@ -1022,12 +1023,12 @@ var Object$1 = class Object$1 {
1022
1023
  if ("ccs" in values && values.ccs != null) {
1023
1024
  if ("cc" in values && values.cc != null) throw new TypeError("Cannot update both cc and ccs at the same time.");
1024
1025
  if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
1025
- clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
1026
+ clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
1026
1027
  clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = /* @__PURE__ */ new Set();
1027
1028
  for (let i = 0; i < values.ccs.length; i++) clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
1028
1029
  } else throw new TypeError("The ccs must be an array of type Object | URL.");
1029
1030
  }
1030
- clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
1031
+ clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();
1031
1032
  clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc);
1032
1033
  if ("bcc" in values && values.bcc != null) if (values.bcc instanceof Object$1 || values.bcc instanceof URL) {
1033
1034
  clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [values.bcc];
@@ -1036,24 +1037,24 @@ var Object$1 = class Object$1 {
1036
1037
  if ("bccs" in values && values.bccs != null) {
1037
1038
  if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot update both bcc and bccs at the same time.");
1038
1039
  if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
1039
- clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
1040
+ clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
1040
1041
  clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = /* @__PURE__ */ new Set();
1041
1042
  for (let i = 0; i < values.bccs.length; i++) clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
1042
1043
  } else throw new TypeError("The bccs must be an array of type Object | URL.");
1043
1044
  }
1044
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
1045
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
1045
1046
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
1046
1047
  else throw new TypeError("The mediaType must be of type string.");
1047
- clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
1048
+ clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice();
1048
1049
  if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
1049
1050
  else throw new TypeError("The duration must be of type Temporal.Duration.");
1050
- clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
1051
+ clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice();
1051
1052
  if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
1052
1053
  else throw new TypeError("The sensitive must be of type boolean.");
1053
- clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
1054
+ clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice();
1054
1055
  if ("source" in values && values.source != null) if (values.source instanceof Source) clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [values.source];
1055
1056
  else throw new TypeError("The source must be of type Source.");
1056
- clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
1057
+ clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();
1057
1058
  clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof);
1058
1059
  if ("proof" in values && values.proof != null) if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) {
1059
1060
  clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [values.proof];
@@ -1062,37 +1063,37 @@ var Object$1 = class Object$1 {
1062
1063
  if ("proofs" in values && values.proofs != null) {
1063
1064
  if ("proof" in values && values.proof != null) throw new TypeError("Cannot update both proof and proofs at the same time.");
1064
1065
  if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
1065
- clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
1066
+ clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
1066
1067
  clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = /* @__PURE__ */ new Set();
1067
1068
  for (let i = 0; i < values.proofs.length; i++) clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
1068
1069
  } else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
1069
1070
  }
1070
- clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
1071
+ clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.slice();
1071
1072
  if ("interactionPolicy" in values && values.interactionPolicy != null) if (values.interactionPolicy instanceof InteractionPolicy) clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = [values.interactionPolicy];
1072
1073
  else throw new TypeError("The interactionPolicy must be of type InteractionPolicy.");
1073
- clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
1074
+ clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.slice();
1074
1075
  if ("approvedBy" in values && values.approvedBy != null) if (values.approvedBy instanceof URL) clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = [values.approvedBy];
1075
1076
  else throw new TypeError("The approvedBy must be of type URL.");
1076
- clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
1077
+ clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.slice();
1077
1078
  clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set(this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization);
1078
1079
  if ("likeAuthorization" in values && values.likeAuthorization != null) if (values.likeAuthorization instanceof LikeAuthorization || values.likeAuthorization instanceof URL) {
1079
1080
  clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = [values.likeAuthorization];
1080
1081
  clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = /* @__PURE__ */ new Set([0]);
1081
1082
  } else throw new TypeError("The likeAuthorization must be of type LikeAuthorization | URL.");
1082
- clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
1083
+ clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.slice();
1083
1084
  clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set(this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization);
1084
1085
  if ("replyAuthorization" in values && values.replyAuthorization != null) if (values.replyAuthorization instanceof ReplyAuthorization || values.replyAuthorization instanceof URL) {
1085
1086
  clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = [values.replyAuthorization];
1086
1087
  clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = /* @__PURE__ */ new Set([0]);
1087
1088
  } else throw new TypeError("The replyAuthorization must be of type ReplyAuthorization | URL.");
1088
- clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
1089
+ clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.slice();
1089
1090
  clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = new Set(this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization);
1090
1091
  if ("announceAuthorization" in values && values.announceAuthorization != null) if (values.announceAuthorization instanceof AnnounceAuthorization || values.announceAuthorization instanceof URL) {
1091
1092
  clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
1092
1093
  clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = /* @__PURE__ */ new Set([0]);
1093
1094
  } else throw new TypeError("The announceAuthorization must be of type AnnounceAuthorization | URL.");
1094
- clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
1095
- if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations;
1095
+ clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.slice();
1096
+ 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();
1096
1097
  else throw new TypeError("The translations must be an array of type Translation.");
1097
1098
  return clone;
1098
1099
  }
@@ -10163,7 +10164,8 @@ var Emoji = class Emoji extends Object$1 {
10163
10164
  *
10164
10165
  * @param values The values to update the clone with.
10165
10166
  * @param options The options to use for cloning.
10166
- * @returns The cloned instance.
10167
+ * @returns The cloned instance with its own property arrays. Nested objects
10168
+ * and URLs are shared with this instance.
10167
10169
  */
10168
10170
  clone(values = {}, options = {}) {
10169
10171
  if (this._warning != null) {
@@ -10385,7 +10387,8 @@ var ChatMessage = class ChatMessage extends Object$1 {
10385
10387
  *
10386
10388
  * @param values The values to update the clone with.
10387
10389
  * @param options The options to use for cloning.
10388
- * @returns The cloned instance.
10390
+ * @returns The cloned instance with its own property arrays. Nested objects
10391
+ * and URLs are shared with this instance.
10389
10392
  */
10390
10393
  clone(values = {}, options = {}) {
10391
10394
  if (this._warning != null) {
@@ -10396,16 +10399,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
10396
10399
  };
10397
10400
  }
10398
10401
  const clone = super.clone(values, options);
10399
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
10402
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
10400
10403
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
10401
10404
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
10402
10405
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
10403
10406
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
10404
10407
  } else throw new TypeError("The quote must be of type Object | URL.");
10405
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
10408
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
10406
10409
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
10407
10410
  else throw new TypeError("The quoteUrl must be of type URL.");
10408
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
10411
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
10409
10412
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
10410
10413
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
10411
10414
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -11274,7 +11277,7 @@ var Activity = class Activity extends Object$1 {
11274
11277
  if ("actors" in values && values.actors != null) {
11275
11278
  if ("actor" in values && values.actor != null) throw new TypeError("Cannot initialize both actor and actors at the same time.");
11276
11279
  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)) {
11277
- this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
11280
+ this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
11278
11281
  for (let i = 0; i < values.actors.length; i++) this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
11279
11282
  } else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
11280
11283
  }
@@ -11285,7 +11288,7 @@ var Activity = class Activity extends Object$1 {
11285
11288
  if ("objects" in values && values.objects != null) {
11286
11289
  if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
11287
11290
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
11288
- this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
11291
+ this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
11289
11292
  for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
11290
11293
  } else throw new TypeError("The objects must be an array of type Object | URL.");
11291
11294
  }
@@ -11296,7 +11299,7 @@ var Activity = class Activity extends Object$1 {
11296
11299
  if ("targets" in values && values.targets != null) {
11297
11300
  if ("target" in values && values.target != null) throw new TypeError("Cannot initialize both target and targets at the same time.");
11298
11301
  if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
11299
- this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
11302
+ this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
11300
11303
  for (let i = 0; i < values.targets.length; i++) this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
11301
11304
  } else throw new TypeError("The targets must be an array of type Object | URL.");
11302
11305
  }
@@ -11307,7 +11310,7 @@ var Activity = class Activity extends Object$1 {
11307
11310
  if ("results" in values && values.results != null) {
11308
11311
  if ("result" in values && values.result != null) throw new TypeError("Cannot initialize both result and results at the same time.");
11309
11312
  if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
11310
- this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
11313
+ this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
11311
11314
  for (let i = 0; i < values.results.length; i++) this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
11312
11315
  } else throw new TypeError("The results must be an array of type Object | URL.");
11313
11316
  }
@@ -11318,7 +11321,7 @@ var Activity = class Activity extends Object$1 {
11318
11321
  if ("origins" in values && values.origins != null) {
11319
11322
  if ("origin" in values && values.origin != null) throw new TypeError("Cannot initialize both origin and origins at the same time.");
11320
11323
  if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
11321
- this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
11324
+ this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
11322
11325
  for (let i = 0; i < values.origins.length; i++) this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
11323
11326
  } else throw new TypeError("The origins must be an array of type Object | URL.");
11324
11327
  }
@@ -11329,7 +11332,7 @@ var Activity = class Activity extends Object$1 {
11329
11332
  if ("instruments" in values && values.instruments != null) {
11330
11333
  if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot initialize both instrument and instruments at the same time.");
11331
11334
  if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
11332
- this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
11335
+ this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
11333
11336
  for (let i = 0; i < values.instruments.length; i++) this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
11334
11337
  } else throw new TypeError("The instruments must be an array of type Object | URL.");
11335
11338
  }
@@ -11345,7 +11348,8 @@ var Activity = class Activity extends Object$1 {
11345
11348
  *
11346
11349
  * @param values The values to update the clone with.
11347
11350
  * @param options The options to use for cloning.
11348
- * @returns The cloned instance.
11351
+ * @returns The cloned instance with its own property arrays. Nested objects
11352
+ * and URLs are shared with this instance.
11349
11353
  */
11350
11354
  clone(values = {}, options = {}) {
11351
11355
  if (this._warning != null) {
@@ -11356,7 +11360,7 @@ var Activity = class Activity extends Object$1 {
11356
11360
  };
11357
11361
  }
11358
11362
  const clone = super.clone(values, options);
11359
- clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
11363
+ clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();
11360
11364
  clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor);
11361
11365
  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) {
11362
11366
  clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [values.actor];
@@ -11365,12 +11369,12 @@ var Activity = class Activity extends Object$1 {
11365
11369
  if ("actors" in values && values.actors != null) {
11366
11370
  if ("actor" in values && values.actor != null) throw new TypeError("Cannot update both actor and actors at the same time.");
11367
11371
  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)) {
11368
- clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
11372
+ clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
11369
11373
  clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = /* @__PURE__ */ new Set();
11370
11374
  for (let i = 0; i < values.actors.length; i++) clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
11371
11375
  } else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
11372
11376
  }
11373
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
11377
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
11374
11378
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
11375
11379
  if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
11376
11380
  clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
@@ -11379,12 +11383,12 @@ var Activity = class Activity extends Object$1 {
11379
11383
  if ("objects" in values && values.objects != null) {
11380
11384
  if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
11381
11385
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
11382
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
11386
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
11383
11387
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
11384
11388
  for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
11385
11389
  } else throw new TypeError("The objects must be an array of type Object | URL.");
11386
11390
  }
11387
- clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
11391
+ clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();
11388
11392
  clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target);
11389
11393
  if ("target" in values && values.target != null) if (values.target instanceof Object$1 || values.target instanceof URL) {
11390
11394
  clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [values.target];
@@ -11393,12 +11397,12 @@ var Activity = class Activity extends Object$1 {
11393
11397
  if ("targets" in values && values.targets != null) {
11394
11398
  if ("target" in values && values.target != null) throw new TypeError("Cannot update both target and targets at the same time.");
11395
11399
  if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
11396
- clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
11400
+ clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
11397
11401
  clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = /* @__PURE__ */ new Set();
11398
11402
  for (let i = 0; i < values.targets.length; i++) clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
11399
11403
  } else throw new TypeError("The targets must be an array of type Object | URL.");
11400
11404
  }
11401
- clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
11405
+ clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();
11402
11406
  clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result);
11403
11407
  if ("result" in values && values.result != null) if (values.result instanceof Object$1 || values.result instanceof URL) {
11404
11408
  clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [values.result];
@@ -11407,12 +11411,12 @@ var Activity = class Activity extends Object$1 {
11407
11411
  if ("results" in values && values.results != null) {
11408
11412
  if ("result" in values && values.result != null) throw new TypeError("Cannot update both result and results at the same time.");
11409
11413
  if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
11410
- clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
11414
+ clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
11411
11415
  clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = /* @__PURE__ */ new Set();
11412
11416
  for (let i = 0; i < values.results.length; i++) clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
11413
11417
  } else throw new TypeError("The results must be an array of type Object | URL.");
11414
11418
  }
11415
- clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;
11419
+ clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();
11416
11420
  clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin);
11417
11421
  if ("origin" in values && values.origin != null) if (values.origin instanceof Object$1 || values.origin instanceof URL) {
11418
11422
  clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = [values.origin];
@@ -11421,12 +11425,12 @@ var Activity = class Activity extends Object$1 {
11421
11425
  if ("origins" in values && values.origins != null) {
11422
11426
  if ("origin" in values && values.origin != null) throw new TypeError("Cannot update both origin and origins at the same time.");
11423
11427
  if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
11424
- clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
11428
+ clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
11425
11429
  clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = /* @__PURE__ */ new Set();
11426
11430
  for (let i = 0; i < values.origins.length; i++) clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
11427
11431
  } else throw new TypeError("The origins must be an array of type Object | URL.");
11428
11432
  }
11429
- clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
11433
+ clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();
11430
11434
  clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument);
11431
11435
  if ("instrument" in values && values.instrument != null) if (values.instrument instanceof Object$1 || values.instrument instanceof URL) {
11432
11436
  clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [values.instrument];
@@ -11435,7 +11439,7 @@ var Activity = class Activity extends Object$1 {
11435
11439
  if ("instruments" in values && values.instruments != null) {
11436
11440
  if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot update both instrument and instruments at the same time.");
11437
11441
  if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
11438
- clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
11442
+ clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
11439
11443
  clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = /* @__PURE__ */ new Set();
11440
11444
  for (let i = 0; i < values.instruments.length; i++) clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
11441
11445
  } else throw new TypeError("The instruments must be an array of type Object | URL.");
@@ -13767,7 +13771,8 @@ var EmojiReact = class EmojiReact extends Activity {
13767
13771
  *
13768
13772
  * @param values The values to update the clone with.
13769
13773
  * @param options The options to use for cloning.
13770
- * @returns The cloned instance.
13774
+ * @returns The cloned instance with its own property arrays. Nested objects
13775
+ * and URLs are shared with this instance.
13771
13776
  */
13772
13777
  clone(values = {}, options = {}) {
13773
13778
  if (this._warning != null) {
@@ -14022,7 +14027,8 @@ var PropertyValue = class {
14022
14027
  *
14023
14028
  * @param values The values to update the clone with.
14024
14029
  * @param options The options to use for cloning.
14025
- * @returns The cloned instance.
14030
+ * @returns The cloned instance with its own property arrays. Nested objects
14031
+ * and URLs are shared with this instance.
14026
14032
  */
14027
14033
  clone(values = {}, options = {}) {
14028
14034
  if (this._warning != null) {
@@ -14034,10 +14040,10 @@ var PropertyValue = class {
14034
14040
  }
14035
14041
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
14036
14042
  copyPortableProvenance(this, clone);
14037
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
14043
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
14038
14044
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
14039
14045
  else throw new TypeError("The name must be of type string | LanguageString.");
14040
- clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
14046
+ clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice();
14041
14047
  if ("value" in values && values.value != null) if (typeof values.value === "string" || values.value instanceof LanguageString) clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = [values.value];
14042
14048
  else throw new TypeError("The value must be of type string | LanguageString.");
14043
14049
  return clone;
@@ -14380,7 +14386,8 @@ var Measure = class {
14380
14386
  *
14381
14387
  * @param values The values to update the clone with.
14382
14388
  * @param options The options to use for cloning.
14383
- * @returns The cloned instance.
14389
+ * @returns The cloned instance with its own property arrays. Nested objects
14390
+ * and URLs are shared with this instance.
14384
14391
  */
14385
14392
  clone(values = {}, options = {}) {
14386
14393
  if (this._warning != null) {
@@ -14392,10 +14399,10 @@ var Measure = class {
14392
14399
  }
14393
14400
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
14394
14401
  copyPortableProvenance(this, clone);
14395
- clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6;
14402
+ clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6.slice();
14396
14403
  if ("unit" in values && values.unit != null) if (typeof values.unit === "string") clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
14397
14404
  else throw new TypeError("The unit must be of type string.");
14398
- clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D;
14405
+ clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D.slice();
14399
14406
  if ("numericalValue" in values && values.numericalValue != null) if (typeof values.numericalValue === "string" && isDecimal(values.numericalValue)) clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
14400
14407
  else throw new TypeError("The numericalValue must be of type Decimal.");
14401
14408
  return clone;
@@ -14691,7 +14698,8 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
14691
14698
  *
14692
14699
  * @param values The values to update the clone with.
14693
14700
  * @param options The options to use for cloning.
14694
- * @returns The cloned instance.
14701
+ * @returns The cloned instance with its own property arrays. Nested objects
14702
+ * and URLs are shared with this instance.
14695
14703
  */
14696
14704
  clone(values = {}, options = {}) {
14697
14705
  if (this._warning != null) {
@@ -14702,13 +14710,13 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
14702
14710
  };
14703
14711
  }
14704
14712
  const clone = super.clone(values, options);
14705
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
14713
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
14706
14714
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
14707
14715
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
14708
14716
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
14709
14717
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
14710
14718
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
14711
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
14719
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
14712
14720
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
14713
14721
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
14714
14722
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -15466,7 +15474,8 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
15466
15474
  *
15467
15475
  * @param values The values to update the clone with.
15468
15476
  * @param options The options to use for cloning.
15469
- * @returns The cloned instance.
15477
+ * @returns The cloned instance with its own property arrays. Nested objects
15478
+ * and URLs are shared with this instance.
15470
15479
  */
15471
15480
  clone(values = {}, options = {}) {
15472
15481
  if (this._warning != null) {
@@ -15730,7 +15739,8 @@ var InteractionPolicy = class {
15730
15739
  *
15731
15740
  * @param values The values to update the clone with.
15732
15741
  * @param options The options to use for cloning.
15733
- * @returns The cloned instance.
15742
+ * @returns The cloned instance with its own property arrays. Nested objects
15743
+ * and URLs are shared with this instance.
15734
15744
  */
15735
15745
  clone(values = {}, options = {}) {
15736
15746
  if (this._warning != null) {
@@ -15742,19 +15752,19 @@ var InteractionPolicy = class {
15742
15752
  }
15743
15753
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
15744
15754
  copyPortableProvenance(this, clone);
15745
- clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = this.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature;
15755
+ clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = this.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature.slice();
15746
15756
  if ("canFeature" in values && values.canFeature != null) if (values.canFeature instanceof InteractionRule) clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = [values.canFeature];
15747
15757
  else throw new TypeError("The canFeature must be of type InteractionRule.");
15748
- clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
15758
+ clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.slice();
15749
15759
  if ("canLike" in values && values.canLike != null) if (values.canLike instanceof InteractionRule) clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [values.canLike];
15750
15760
  else throw new TypeError("The canLike must be of type InteractionRule.");
15751
- clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
15761
+ clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.slice();
15752
15762
  if ("canReply" in values && values.canReply != null) if (values.canReply instanceof InteractionRule) clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = [values.canReply];
15753
15763
  else throw new TypeError("The canReply must be of type InteractionRule.");
15754
- clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
15764
+ clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.slice();
15755
15765
  if ("canAnnounce" in values && values.canAnnounce != null) if (values.canAnnounce instanceof InteractionRule) clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = [values.canAnnounce];
15756
15766
  else throw new TypeError("The canAnnounce must be of type InteractionRule.");
15757
- clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
15767
+ clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.slice();
15758
15768
  if ("canQuote" in values && values.canQuote != null) if (values.canQuote instanceof InteractionRule) clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = [values.canQuote];
15759
15769
  else throw new TypeError("The canQuote must be of type InteractionRule.");
15760
15770
  return clone;
@@ -16203,14 +16213,14 @@ var InteractionRule = class {
16203
16213
  else throw new TypeError("The automaticApproval must be of type URL.");
16204
16214
  if ("automaticApprovals" in values && values.automaticApprovals != null) {
16205
16215
  if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot initialize both automaticApproval and automaticApprovals at the same time.");
16206
- if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
16216
+ if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
16207
16217
  else throw new TypeError("The automaticApprovals must be an array of type URL.");
16208
16218
  }
16209
16219
  if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
16210
16220
  else throw new TypeError("The manualApproval must be of type URL.");
16211
16221
  if ("manualApprovals" in values && values.manualApprovals != null) {
16212
16222
  if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot initialize both manualApproval and manualApprovals at the same time.");
16213
- if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
16223
+ if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
16214
16224
  else throw new TypeError("The manualApprovals must be an array of type URL.");
16215
16225
  }
16216
16226
  }
@@ -16225,7 +16235,8 @@ var InteractionRule = class {
16225
16235
  *
16226
16236
  * @param values The values to update the clone with.
16227
16237
  * @param options The options to use for cloning.
16228
- * @returns The cloned instance.
16238
+ * @returns The cloned instance with its own property arrays. Nested objects
16239
+ * and URLs are shared with this instance.
16229
16240
  */
16230
16241
  clone(values = {}, options = {}) {
16231
16242
  if (this._warning != null) {
@@ -16237,20 +16248,20 @@ var InteractionRule = class {
16237
16248
  }
16238
16249
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
16239
16250
  copyPortableProvenance(this, clone);
16240
- clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
16251
+ clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.slice();
16241
16252
  if ("automaticApproval" in values && values.automaticApproval != null) if (values.automaticApproval instanceof URL) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [values.automaticApproval];
16242
16253
  else throw new TypeError("The automaticApproval must be of type URL.");
16243
16254
  if ("automaticApprovals" in values && values.automaticApprovals != null) {
16244
16255
  if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot update both automaticApproval and automaticApprovals at the same time.");
16245
- if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
16256
+ if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
16246
16257
  else throw new TypeError("The automaticApprovals must be an array of type URL.");
16247
16258
  }
16248
- clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
16259
+ clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.slice();
16249
16260
  if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
16250
16261
  else throw new TypeError("The manualApproval must be of type URL.");
16251
16262
  if ("manualApprovals" in values && values.manualApprovals != null) {
16252
16263
  if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot update both manualApproval and manualApprovals at the same time.");
16253
- if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
16264
+ if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
16254
16265
  else throw new TypeError("The manualApprovals must be an array of type URL.");
16255
16266
  }
16256
16267
  return clone;
@@ -16530,7 +16541,8 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
16530
16541
  *
16531
16542
  * @param values The values to update the clone with.
16532
16543
  * @param options The options to use for cloning.
16533
- * @returns The cloned instance.
16544
+ * @returns The cloned instance with its own property arrays. Nested objects
16545
+ * and URLs are shared with this instance.
16534
16546
  */
16535
16547
  clone(values = {}, options = {}) {
16536
16548
  if (this._warning != null) {
@@ -16541,13 +16553,13 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
16541
16553
  };
16542
16554
  }
16543
16555
  const clone = super.clone(values, options);
16544
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
16556
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
16545
16557
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
16546
16558
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
16547
16559
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
16548
16560
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
16549
16561
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
16550
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
16562
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
16551
16563
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
16552
16564
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
16553
16565
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -17304,7 +17316,8 @@ var LikeRequest = class LikeRequest extends Activity {
17304
17316
  *
17305
17317
  * @param values The values to update the clone with.
17306
17318
  * @param options The options to use for cloning.
17307
- * @returns The cloned instance.
17319
+ * @returns The cloned instance with its own property arrays. Nested objects
17320
+ * and URLs are shared with this instance.
17308
17321
  */
17309
17322
  clone(values = {}, options = {}) {
17310
17323
  if (this._warning != null) {
@@ -17514,7 +17527,8 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
17514
17527
  *
17515
17528
  * @param values The values to update the clone with.
17516
17529
  * @param options The options to use for cloning.
17517
- * @returns The cloned instance.
17530
+ * @returns The cloned instance with its own property arrays. Nested objects
17531
+ * and URLs are shared with this instance.
17518
17532
  */
17519
17533
  clone(values = {}, options = {}) {
17520
17534
  if (this._warning != null) {
@@ -17525,13 +17539,13 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
17525
17539
  };
17526
17540
  }
17527
17541
  const clone = super.clone(values, options);
17528
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
17542
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
17529
17543
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
17530
17544
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
17531
17545
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
17532
17546
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
17533
17547
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
17534
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
17548
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
17535
17549
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
17536
17550
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
17537
17551
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -18288,7 +18302,8 @@ var ReplyRequest = class ReplyRequest extends Activity {
18288
18302
  *
18289
18303
  * @param values The values to update the clone with.
18290
18304
  * @param options The options to use for cloning.
18291
- * @returns The cloned instance.
18305
+ * @returns The cloned instance with its own property arrays. Nested objects
18306
+ * and URLs are shared with this instance.
18292
18307
  */
18293
18308
  clone(values = {}, options = {}) {
18294
18309
  if (this._warning != null) {
@@ -18498,7 +18513,8 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
18498
18513
  *
18499
18514
  * @param values The values to update the clone with.
18500
18515
  * @param options The options to use for cloning.
18501
- * @returns The cloned instance.
18516
+ * @returns The cloned instance with its own property arrays. Nested objects
18517
+ * and URLs are shared with this instance.
18502
18518
  */
18503
18519
  clone(values = {}, options = {}) {
18504
18520
  if (this._warning != null) {
@@ -18509,13 +18525,13 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
18509
18525
  };
18510
18526
  }
18511
18527
  const clone = super.clone(values, options);
18512
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
18528
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
18513
18529
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
18514
18530
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
18515
18531
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
18516
18532
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
18517
18533
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
18518
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
18534
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
18519
18535
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
18520
18536
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
18521
18537
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -19273,7 +19289,8 @@ var QuoteRequest = class QuoteRequest extends Activity {
19273
19289
  *
19274
19290
  * @param values The values to update the clone with.
19275
19291
  * @param options The options to use for cloning.
19276
- * @returns The cloned instance.
19292
+ * @returns The cloned instance with its own property arrays. Nested objects
19293
+ * and URLs are shared with this instance.
19277
19294
  */
19278
19295
  clone(values = {}, options = {}) {
19279
19296
  if (this._warning != null) {
@@ -19556,7 +19573,7 @@ var Translation = class {
19556
19573
  if ("translators" in values && values.translators != null) {
19557
19574
  if ("translator" in values && values.translator != null) throw new TypeError("Cannot initialize both translator and translators at the same time.");
19558
19575
  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)) {
19559
- this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators;
19576
+ this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators.slice();
19560
19577
  for (let i = 0; i < values.translators.length; i++) this.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.add(i);
19561
19578
  } else throw new TypeError("The translators must be an array of type Application | Group | Organization | Person | Service | URL.");
19562
19579
  }
@@ -19570,7 +19587,7 @@ var Translation = class {
19570
19587
  else throw new TypeError("The url must be of type URL | Link.");
19571
19588
  if ("urls" in values && values.urls != null) {
19572
19589
  if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
19573
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
19590
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
19574
19591
  else throw new TypeError("The urls must be an array of type URL | Link.");
19575
19592
  }
19576
19593
  }
@@ -19585,7 +19602,8 @@ var Translation = class {
19585
19602
  *
19586
19603
  * @param values The values to update the clone with.
19587
19604
  * @param options The options to use for cloning.
19588
- * @returns The cloned instance.
19605
+ * @returns The cloned instance with its own property arrays. Nested objects
19606
+ * and URLs are shared with this instance.
19589
19607
  */
19590
19608
  clone(values = {}, options = {}) {
19591
19609
  if (this._warning != null) {
@@ -19597,10 +19615,10 @@ var Translation = class {
19597
19615
  }
19598
19616
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
19599
19617
  copyPortableProvenance(this, clone);
19600
- clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = this.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG;
19618
+ clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = this.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG.slice();
19601
19619
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = [values.language];
19602
19620
  else throw new TypeError("The language must be of type Intl.Locale.");
19603
- clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR;
19621
+ clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.slice();
19604
19622
  clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = new Set(this.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR);
19605
19623
  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) {
19606
19624
  clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = [values.translator];
@@ -19609,26 +19627,26 @@ var Translation = class {
19609
19627
  if ("translators" in values && values.translators != null) {
19610
19628
  if ("translator" in values && values.translator != null) throw new TypeError("Cannot update both translator and translators at the same time.");
19611
19629
  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)) {
19612
- clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators;
19630
+ clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators.slice();
19613
19631
  clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = /* @__PURE__ */ new Set();
19614
19632
  for (let i = 0; i < values.translators.length; i++) clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.add(i);
19615
19633
  } else throw new TypeError("The translators must be an array of type Application | Group | Organization | Person | Service | URL.");
19616
19634
  }
19617
- clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = this.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7;
19635
+ clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = this.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7.slice();
19618
19636
  if ("original" in values && values.original != null) if (values.original instanceof URL) clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = [values.original];
19619
19637
  else throw new TypeError("The original must be of type URL.");
19620
- clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = this.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated;
19638
+ clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = this.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated.slice();
19621
19639
  if ("sourceUpdated" in values && values.sourceUpdated != null) if (isTemporalInstant(values.sourceUpdated)) clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = [values.sourceUpdated];
19622
19640
  else throw new TypeError("The sourceUpdated must be of type Temporal.Instant.");
19623
- clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = this.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW;
19641
+ clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = this.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW.slice();
19624
19642
  if ("basis" in values && values.basis != null) if (values.basis instanceof URL) clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = [values.basis];
19625
19643
  else throw new TypeError("The basis must be of type URL.");
19626
- clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
19644
+ clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
19627
19645
  if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
19628
19646
  else throw new TypeError("The url must be of type URL | Link.");
19629
19647
  if ("urls" in values && values.urls != null) {
19630
19648
  if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
19631
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
19649
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
19632
19650
  else throw new TypeError("The urls must be an array of type URL | Link.");
19633
19651
  }
19634
19652
  return clone;
@@ -20291,7 +20309,7 @@ var Translation = class {
20291
20309
  let _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array = values["https://schema.org/inLanguage"];
20292
20310
  for (const v of _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array == null ? [] : _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array.length === 1 && "@list" in _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array[0] ? _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array[0]["@list"] : _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array) {
20293
20311
  if (v == null) continue;
20294
- const decoded = new Intl.Locale(v["@value"]);
20312
+ const decoded = new Intl.Locale(normalizeLanguageTag(v["@value"]));
20295
20313
  if (typeof decoded === "undefined") {
20296
20314
  shouldCacheJsonLd = false;
20297
20315
  continue;
@@ -20495,7 +20513,8 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
20495
20513
  *
20496
20514
  * @param values The values to update the clone with.
20497
20515
  * @param options The options to use for cloning.
20498
- * @returns The cloned instance.
20516
+ * @returns The cloned instance with its own property arrays. Nested objects
20517
+ * and URLs are shared with this instance.
20499
20518
  */
20500
20519
  clone(values = {}, options = {}) {
20501
20520
  if (this._warning != null) {
@@ -20506,13 +20525,13 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
20506
20525
  };
20507
20526
  }
20508
20527
  const clone = super.clone(values, options);
20509
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
20528
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
20510
20529
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
20511
20530
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
20512
20531
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
20513
20532
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
20514
20533
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
20515
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
20534
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
20516
20535
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
20517
20536
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
20518
20537
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -21267,7 +21286,8 @@ var FeatureRequest = class FeatureRequest extends Activity {
21267
21286
  *
21268
21287
  * @param values The values to update the clone with.
21269
21288
  * @param options The options to use for cloning.
21270
- * @returns The cloned instance.
21289
+ * @returns The cloned instance with its own property arrays. Nested objects
21290
+ * and URLs are shared with this instance.
21271
21291
  */
21272
21292
  clone(values = {}, options = {}) {
21273
21293
  if (this._warning != null) {
@@ -21491,7 +21511,7 @@ var Collection = class Collection extends Object$1 {
21491
21511
  this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.add(0);
21492
21512
  } else throw new TypeError("The last must be of type CollectionPage | URL.");
21493
21513
  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)) {
21494
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
21514
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
21495
21515
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
21496
21516
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
21497
21517
  if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
@@ -21538,7 +21558,8 @@ var Collection = class Collection extends Object$1 {
21538
21558
  *
21539
21559
  * @param values The values to update the clone with.
21540
21560
  * @param options The options to use for cloning.
21541
- * @returns The cloned instance.
21561
+ * @returns The cloned instance with its own property arrays. Nested objects
21562
+ * and URLs are shared with this instance.
21542
21563
  */
21543
21564
  clone(values = {}, options = {}) {
21544
21565
  if (this._warning != null) {
@@ -21549,77 +21570,77 @@ var Collection = class Collection extends Object$1 {
21549
21570
  };
21550
21571
  }
21551
21572
  const clone = super.clone(values, options);
21552
- clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
21573
+ clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice();
21553
21574
  if ("totalItems" in values && values.totalItems != null) if (typeof values.totalItems === "number" && Number.isInteger(values.totalItems) && values.totalItems >= 0) clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [values.totalItems];
21554
21575
  else throw new TypeError("The totalItems must be of type number.");
21555
- clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;
21576
+ clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();
21556
21577
  clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current);
21557
21578
  if ("current" in values && values.current != null) if (values.current instanceof CollectionPage || values.current instanceof URL) {
21558
21579
  clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = [values.current];
21559
21580
  clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = /* @__PURE__ */ new Set([0]);
21560
21581
  } else throw new TypeError("The current must be of type CollectionPage | URL.");
21561
- clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;
21582
+ clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();
21562
21583
  clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first);
21563
21584
  if ("first" in values && values.first != null) if (values.first instanceof CollectionPage || values.first instanceof URL) {
21564
21585
  clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = [values.first];
21565
21586
  clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = /* @__PURE__ */ new Set([0]);
21566
21587
  } else throw new TypeError("The first must be of type CollectionPage | URL.");
21567
- clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
21588
+ clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();
21568
21589
  clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last);
21569
21590
  if ("last" in values && values.last != null) if (values.last instanceof CollectionPage || values.last instanceof URL) {
21570
21591
  clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [values.last];
21571
21592
  clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = /* @__PURE__ */ new Set([0]);
21572
21593
  } else throw new TypeError("The last must be of type CollectionPage | URL.");
21573
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
21594
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
21574
21595
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
21575
21596
  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)) {
21576
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
21597
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
21577
21598
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
21578
21599
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
21579
21600
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
21580
- clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
21601
+ clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();
21581
21602
  clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf);
21582
21603
  if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
21583
21604
  clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = [values.likesOf];
21584
21605
  clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = /* @__PURE__ */ new Set([0]);
21585
21606
  } else throw new TypeError("The likesOf must be of type Object | URL.");
21586
- clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
21607
+ clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();
21587
21608
  clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf);
21588
21609
  if ("sharesOf" in values && values.sharesOf != null) if (values.sharesOf instanceof Object$1 || values.sharesOf instanceof URL) {
21589
21610
  clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [values.sharesOf];
21590
21611
  clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = /* @__PURE__ */ new Set([0]);
21591
21612
  } else throw new TypeError("The sharesOf must be of type Object | URL.");
21592
- clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
21613
+ clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();
21593
21614
  clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf);
21594
21615
  if ("repliesOf" in values && values.repliesOf != null) if (values.repliesOf instanceof Object$1 || values.repliesOf instanceof URL) {
21595
21616
  clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [values.repliesOf];
21596
21617
  clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = /* @__PURE__ */ new Set([0]);
21597
21618
  } else throw new TypeError("The repliesOf must be of type Object | URL.");
21598
- clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
21619
+ clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();
21599
21620
  clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf);
21600
21621
  if ("inboxOf" in values && values.inboxOf != null) if (values.inboxOf instanceof Object$1 || values.inboxOf instanceof URL) {
21601
21622
  clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [values.inboxOf];
21602
21623
  clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = /* @__PURE__ */ new Set([0]);
21603
21624
  } else throw new TypeError("The inboxOf must be of type Object | URL.");
21604
- clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
21625
+ clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();
21605
21626
  clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf);
21606
21627
  if ("outboxOf" in values && values.outboxOf != null) if (values.outboxOf instanceof Object$1 || values.outboxOf instanceof URL) {
21607
21628
  clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [values.outboxOf];
21608
21629
  clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = /* @__PURE__ */ new Set([0]);
21609
21630
  } else throw new TypeError("The outboxOf must be of type Object | URL.");
21610
- clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
21631
+ clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();
21611
21632
  clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf);
21612
21633
  if ("followersOf" in values && values.followersOf != null) if (values.followersOf instanceof Object$1 || values.followersOf instanceof URL) {
21613
21634
  clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [values.followersOf];
21614
21635
  clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = /* @__PURE__ */ new Set([0]);
21615
21636
  } else throw new TypeError("The followersOf must be of type Object | URL.");
21616
- clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
21637
+ clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();
21617
21638
  clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf);
21618
21639
  if ("followingOf" in values && values.followingOf != null) if (values.followingOf instanceof Object$1 || values.followingOf instanceof URL) {
21619
21640
  clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [values.followingOf];
21620
21641
  clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = /* @__PURE__ */ new Set([0]);
21621
21642
  } else throw new TypeError("The followingOf must be of type Object | URL.");
21622
- clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
21643
+ clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();
21623
21644
  clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf);
21624
21645
  if ("likedOf" in values && values.likedOf != null) if (values.likedOf instanceof Object$1 || values.likedOf instanceof URL) {
21625
21646
  clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [values.likedOf];
@@ -25283,7 +25304,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
25283
25304
  constructor(values, options = {}) {
25284
25305
  super(values, options);
25285
25306
  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)) {
25286
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
25307
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
25287
25308
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
25288
25309
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
25289
25310
  }
@@ -25298,7 +25319,8 @@ var OrderedCollection = class OrderedCollection extends Collection {
25298
25319
  *
25299
25320
  * @param values The values to update the clone with.
25300
25321
  * @param options The options to use for cloning.
25301
- * @returns The cloned instance.
25322
+ * @returns The cloned instance with its own property arrays. Nested objects
25323
+ * and URLs are shared with this instance.
25302
25324
  */
25303
25325
  clone(values = {}, options = {}) {
25304
25326
  if (this._warning != null) {
@@ -25309,10 +25331,10 @@ var OrderedCollection = class OrderedCollection extends Collection {
25309
25331
  };
25310
25332
  }
25311
25333
  const clone = super.clone(values, options);
25312
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
25334
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
25313
25335
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
25314
25336
  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)) {
25315
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
25337
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
25316
25338
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
25317
25339
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
25318
25340
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
@@ -25946,7 +25968,8 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
25946
25968
  *
25947
25969
  * @param values The values to update the clone with.
25948
25970
  * @param options The options to use for cloning.
25949
- * @returns The cloned instance.
25971
+ * @returns The cloned instance with its own property arrays. Nested objects
25972
+ * and URLs are shared with this instance.
25950
25973
  */
25951
25974
  clone(values = {}, options = {}) {
25952
25975
  if (this._warning != null) {
@@ -25957,10 +25980,10 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
25957
25980
  };
25958
25981
  }
25959
25982
  const clone = super.clone(values, options);
25960
- clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = this.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic;
25983
+ clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = this.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic.slice();
25961
25984
  if ("topic" in values && values.topic != null) if (values.topic instanceof Hashtag) clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = [values.topic];
25962
25985
  else throw new TypeError("The topic must be of type Hashtag.");
25963
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
25986
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
25964
25987
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
25965
25988
  else throw new TypeError("The discoverable must be of type boolean.");
25966
25989
  return clone;
@@ -26282,7 +26305,8 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
26282
26305
  *
26283
26306
  * @param values The values to update the clone with.
26284
26307
  * @param options The options to use for cloning.
26285
- * @returns The cloned instance.
26308
+ * @returns The cloned instance with its own property arrays. Nested objects
26309
+ * and URLs are shared with this instance.
26286
26310
  */
26287
26311
  clone(values = {}, options = {}) {
26288
26312
  if (this._warning != null) {
@@ -26293,13 +26317,13 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
26293
26317
  };
26294
26318
  }
26295
26319
  const clone = super.clone(values, options);
26296
- clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = this.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject;
26320
+ clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = this.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject.slice();
26297
26321
  clone.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = new Set(this.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject);
26298
26322
  if ("featuredObject" in values && values.featuredObject != null) if (values.featuredObject instanceof Object$1 || values.featuredObject instanceof URL) {
26299
26323
  clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = [values.featuredObject];
26300
26324
  clone.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = /* @__PURE__ */ new Set([0]);
26301
26325
  } else throw new TypeError("The featuredObject must be of type Object | URL.");
26302
- clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = this.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization;
26326
+ clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = this.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization.slice();
26303
26327
  clone.#_trust_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = new Set(this.#_trust_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization);
26304
26328
  if ("featureAuthorization" in values && values.featureAuthorization != null) if (values.featureAuthorization instanceof FeatureAuthorization || values.featureAuthorization instanceof URL) {
26305
26329
  clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = [values.featureAuthorization];
@@ -27097,7 +27121,7 @@ var DidService = class {
27097
27121
  else throw new TypeError("The endpoint must be of type URL.");
27098
27122
  if ("endpoints" in values && values.endpoints != null) {
27099
27123
  if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot initialize both endpoint and endpoints at the same time.");
27100
- if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
27124
+ if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
27101
27125
  else throw new TypeError("The endpoints must be an array of type URL.");
27102
27126
  }
27103
27127
  }
@@ -27112,7 +27136,8 @@ var DidService = class {
27112
27136
  *
27113
27137
  * @param values The values to update the clone with.
27114
27138
  * @param options The options to use for cloning.
27115
- * @returns The cloned instance.
27139
+ * @returns The cloned instance with its own property arrays. Nested objects
27140
+ * and URLs are shared with this instance.
27116
27141
  */
27117
27142
  clone(values = {}, options = {}) {
27118
27143
  if (this._warning != null) {
@@ -27124,12 +27149,12 @@ var DidService = class {
27124
27149
  }
27125
27150
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
27126
27151
  copyPortableProvenance(this, clone);
27127
- clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
27152
+ clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice();
27128
27153
  if ("endpoint" in values && values.endpoint != null) if (values.endpoint instanceof URL) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [values.endpoint];
27129
27154
  else throw new TypeError("The endpoint must be of type URL.");
27130
27155
  if ("endpoints" in values && values.endpoints != null) {
27131
27156
  if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot update both endpoint and endpoints at the same time.");
27132
- if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
27157
+ if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
27133
27158
  else throw new TypeError("The endpoints must be an array of type URL.");
27134
27159
  }
27135
27160
  return clone;
@@ -27346,7 +27371,8 @@ var Export = class Export extends DidService {
27346
27371
  *
27347
27372
  * @param values The values to update the clone with.
27348
27373
  * @param options The options to use for cloning.
27349
- * @returns The cloned instance.
27374
+ * @returns The cloned instance with its own property arrays. Nested objects
27375
+ * and URLs are shared with this instance.
27350
27376
  */
27351
27377
  clone(values = {}, options = {}) {
27352
27378
  if (this._warning != null) {
@@ -27600,7 +27626,8 @@ var DataIntegrityProof = class {
27600
27626
  *
27601
27627
  * @param values The values to update the clone with.
27602
27628
  * @param options The options to use for cloning.
27603
- * @returns The cloned instance.
27629
+ * @returns The cloned instance with its own property arrays. Nested objects
27630
+ * and URLs are shared with this instance.
27604
27631
  */
27605
27632
  clone(values = {}, options = {}) {
27606
27633
  if (this._warning != null) {
@@ -27612,22 +27639,22 @@ var DataIntegrityProof = class {
27612
27639
  }
27613
27640
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
27614
27641
  copyPortableProvenance(this, clone);
27615
- clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
27642
+ clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice();
27616
27643
  if ("cryptosuite" in values && values.cryptosuite != null) if (values.cryptosuite == "eddsa-jcs-2022") clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [values.cryptosuite];
27617
27644
  else throw new TypeError("The cryptosuite must be of type \"eddsa-jcs-2022\".");
27618
- clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
27645
+ clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();
27619
27646
  clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod);
27620
27647
  if ("verificationMethod" in values && values.verificationMethod != null) if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) {
27621
27648
  clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [values.verificationMethod];
27622
27649
  clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = /* @__PURE__ */ new Set([0]);
27623
27650
  } else throw new TypeError("The verificationMethod must be of type Multikey | URL.");
27624
- clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
27651
+ clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice();
27625
27652
  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];
27626
27653
  else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
27627
- clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
27654
+ clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice();
27628
27655
  if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
27629
27656
  else throw new TypeError("The proofValue must be of type Uint8Array.");
27630
- clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
27657
+ clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice();
27631
27658
  if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
27632
27659
  else throw new TypeError("The created must be of type Temporal.Instant.");
27633
27660
  return clone;
@@ -28263,7 +28290,8 @@ var CryptographicKey = class {
28263
28290
  *
28264
28291
  * @param values The values to update the clone with.
28265
28292
  * @param options The options to use for cloning.
28266
- * @returns The cloned instance.
28293
+ * @returns The cloned instance with its own property arrays. Nested objects
28294
+ * and URLs are shared with this instance.
28267
28295
  */
28268
28296
  clone(values = {}, options = {}) {
28269
28297
  if (this._warning != null) {
@@ -28275,13 +28303,13 @@ var CryptographicKey = class {
28275
28303
  }
28276
28304
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
28277
28305
  copyPortableProvenance(this, clone);
28278
- clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
28306
+ clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();
28279
28307
  clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner);
28280
28308
  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) {
28281
28309
  clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [values.owner];
28282
28310
  clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = /* @__PURE__ */ new Set([0]);
28283
28311
  } else throw new TypeError("The owner must be of type Application | Group | Organization | Person | Service | URL.");
28284
- clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
28312
+ clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice();
28285
28313
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = [values.publicKey];
28286
28314
  else throw new TypeError("The publicKey must be of type CryptoKey.");
28287
28315
  return clone;
@@ -28916,7 +28944,8 @@ var Multikey = class {
28916
28944
  *
28917
28945
  * @param values The values to update the clone with.
28918
28946
  * @param options The options to use for cloning.
28919
- * @returns The cloned instance.
28947
+ * @returns The cloned instance with its own property arrays. Nested objects
28948
+ * and URLs are shared with this instance.
28920
28949
  */
28921
28950
  clone(values = {}, options = {}) {
28922
28951
  if (this._warning != null) {
@@ -28928,13 +28957,13 @@ var Multikey = class {
28928
28957
  }
28929
28958
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
28930
28959
  copyPortableProvenance(this, clone);
28931
- clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
28960
+ clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();
28932
28961
  clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller);
28933
28962
  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) {
28934
28963
  clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [values.controller];
28935
28964
  clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = /* @__PURE__ */ new Set([0]);
28936
28965
  } else throw new TypeError("The controller must be of type Application | Group | Organization | Person | Service | URL.");
28937
- clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
28966
+ clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice();
28938
28967
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = [values.publicKey];
28939
28968
  else throw new TypeError("The publicKey must be of type CryptoKey.");
28940
28969
  return clone;
@@ -29528,7 +29557,8 @@ var Agreement = class Agreement extends Object$1 {
29528
29557
  *
29529
29558
  * @param values The values to update the clone with.
29530
29559
  * @param options The options to use for cloning.
29531
- * @returns The cloned instance.
29560
+ * @returns The cloned instance with its own property arrays. Nested objects
29561
+ * and URLs are shared with this instance.
29532
29562
  */
29533
29563
  clone(values = {}, options = {}) {
29534
29564
  if (this._warning != null) {
@@ -29539,10 +29569,10 @@ var Agreement = class Agreement extends Object$1 {
29539
29569
  };
29540
29570
  }
29541
29571
  const clone = super.clone(values, options);
29542
- clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
29572
+ clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.slice();
29543
29573
  if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
29544
29574
  else throw new TypeError("The stipulates must be of type Commitment.");
29545
- clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
29575
+ clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.slice();
29546
29576
  if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
29547
29577
  else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
29548
29578
  return clone;
@@ -29947,7 +29977,8 @@ var Commitment = class {
29947
29977
  *
29948
29978
  * @param values The values to update the clone with.
29949
29979
  * @param options The options to use for cloning.
29950
- * @returns The cloned instance.
29980
+ * @returns The cloned instance with its own property arrays. Nested objects
29981
+ * and URLs are shared with this instance.
29951
29982
  */
29952
29983
  clone(values = {}, options = {}) {
29953
29984
  if (this._warning != null) {
@@ -29959,10 +29990,10 @@ var Commitment = class {
29959
29990
  }
29960
29991
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
29961
29992
  copyPortableProvenance(this, clone);
29962
- clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
29993
+ clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.slice();
29963
29994
  if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
29964
29995
  else throw new TypeError("The satisfies must be of type URL.");
29965
- clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
29996
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
29966
29997
  if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
29967
29998
  else throw new TypeError("The resourceQuantity must be of type Measure.");
29968
29999
  return clone;
@@ -30328,7 +30359,8 @@ var Intent = class {
30328
30359
  *
30329
30360
  * @param values The values to update the clone with.
30330
30361
  * @param options The options to use for cloning.
30331
- * @returns The cloned instance.
30362
+ * @returns The cloned instance with its own property arrays. Nested objects
30363
+ * and URLs are shared with this instance.
30332
30364
  */
30333
30365
  clone(values = {}, options = {}) {
30334
30366
  if (this._warning != null) {
@@ -30340,19 +30372,19 @@ var Intent = class {
30340
30372
  }
30341
30373
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
30342
30374
  copyPortableProvenance(this, clone);
30343
- clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
30375
+ clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.slice();
30344
30376
  if ("action" in values && values.action != null) if (typeof values.action === "string") clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
30345
30377
  else throw new TypeError("The action must be of type string.");
30346
- clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
30378
+ clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.slice();
30347
30379
  if ("resourceConformsTo" in values && values.resourceConformsTo != null) if (values.resourceConformsTo instanceof URL) clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
30348
30380
  else throw new TypeError("The resourceConformsTo must be of type URL.");
30349
- clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
30381
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
30350
30382
  if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
30351
30383
  else throw new TypeError("The resourceQuantity must be of type Measure.");
30352
- clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
30384
+ clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.slice();
30353
30385
  if ("availableQuantity" in values && values.availableQuantity != null) if (values.availableQuantity instanceof Measure) clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
30354
30386
  else throw new TypeError("The availableQuantity must be of type Measure.");
30355
- clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
30387
+ clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.slice();
30356
30388
  if ("minimumQuantity" in values && values.minimumQuantity != null) if (values.minimumQuantity instanceof Measure) clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
30357
30389
  else throw new TypeError("The minimumQuantity must be of type Measure.");
30358
30390
  return clone;
@@ -30814,7 +30846,8 @@ var Proposal = class Proposal extends Object$1 {
30814
30846
  *
30815
30847
  * @param values The values to update the clone with.
30816
30848
  * @param options The options to use for cloning.
30817
- * @returns The cloned instance.
30849
+ * @returns The cloned instance with its own property arrays. Nested objects
30850
+ * and URLs are shared with this instance.
30818
30851
  */
30819
30852
  clone(values = {}, options = {}) {
30820
30853
  if (this._warning != null) {
@@ -30825,16 +30858,16 @@ var Proposal = class Proposal extends Object$1 {
30825
30858
  };
30826
30859
  }
30827
30860
  const clone = super.clone(values, options);
30828
- clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
30861
+ clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.slice();
30829
30862
  if ("purpose" in values && values.purpose != null) if (typeof values.purpose === "string") clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
30830
30863
  else throw new TypeError("The purpose must be of type string.");
30831
- clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
30864
+ clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.slice();
30832
30865
  if ("publishes" in values && values.publishes != null) if (values.publishes instanceof Intent) clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
30833
30866
  else throw new TypeError("The publishes must be of type Intent.");
30834
- clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
30867
+ clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.slice();
30835
30868
  if ("reciprocal" in values && values.reciprocal != null) if (values.reciprocal instanceof Intent) clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
30836
30869
  else throw new TypeError("The reciprocal must be of type Intent.");
30837
- clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
30870
+ clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.slice();
30838
30871
  if ("unitBased" in values && values.unitBased != null) if (typeof values.unitBased === "boolean") clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
30839
30872
  else throw new TypeError("The unitBased must be of type boolean.");
30840
30873
  return clone;
@@ -31273,7 +31306,8 @@ var Accept = class Accept extends Activity {
31273
31306
  *
31274
31307
  * @param values The values to update the clone with.
31275
31308
  * @param options The options to use for cloning.
31276
- * @returns The cloned instance.
31309
+ * @returns The cloned instance with its own property arrays. Nested objects
31310
+ * and URLs are shared with this instance.
31277
31311
  */
31278
31312
  clone(values = {}, options = {}) {
31279
31313
  if (this._warning != null) {
@@ -31468,7 +31502,8 @@ var Add = class Add extends Activity {
31468
31502
  *
31469
31503
  * @param values The values to update the clone with.
31470
31504
  * @param options The options to use for cloning.
31471
- * @returns The cloned instance.
31505
+ * @returns The cloned instance with its own property arrays. Nested objects
31506
+ * and URLs are shared with this instance.
31472
31507
  */
31473
31508
  clone(values = {}, options = {}) {
31474
31509
  if (this._warning != null) {
@@ -31661,7 +31696,8 @@ var Announce = class Announce extends Activity {
31661
31696
  *
31662
31697
  * @param values The values to update the clone with.
31663
31698
  * @param options The options to use for cloning.
31664
- * @returns The cloned instance.
31699
+ * @returns The cloned instance with its own property arrays. Nested objects
31700
+ * and URLs are shared with this instance.
31665
31701
  */
31666
31702
  clone(values = {}, options = {}) {
31667
31703
  if (this._warning != null) {
@@ -31911,7 +31947,7 @@ var Application = class Application extends Object$1 {
31911
31947
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
31912
31948
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
31913
31949
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
31914
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
31950
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
31915
31951
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
31916
31952
  }
31917
31953
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -31921,7 +31957,7 @@ var Application = class Application extends Object$1 {
31921
31957
  if ("publicKeys" in values && values.publicKeys != null) {
31922
31958
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
31923
31959
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
31924
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
31960
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
31925
31961
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
31926
31962
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
31927
31963
  }
@@ -31932,7 +31968,7 @@ var Application = class Application extends Object$1 {
31932
31968
  if ("assertionMethods" in values && values.assertionMethods != null) {
31933
31969
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
31934
31970
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
31935
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
31971
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
31936
31972
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
31937
31973
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
31938
31974
  }
@@ -31940,7 +31976,7 @@ var Application = class Application extends Object$1 {
31940
31976
  else throw new TypeError("The gateway must be of type URL.");
31941
31977
  if ("gateways" in values && values.gateways != null) {
31942
31978
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
31943
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
31979
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
31944
31980
  else throw new TypeError("The gateways must be an array of type URL.");
31945
31981
  }
31946
31982
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -31978,7 +32014,7 @@ var Application = class Application extends Object$1 {
31978
32014
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
31979
32015
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
31980
32016
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
31981
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
32017
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
31982
32018
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
31983
32019
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
31984
32020
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -32002,7 +32038,7 @@ var Application = class Application extends Object$1 {
32002
32038
  if ("aliases" in values && values.aliases != null) {
32003
32039
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
32004
32040
  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)) {
32005
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
32041
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
32006
32042
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
32007
32043
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
32008
32044
  }
@@ -32013,7 +32049,7 @@ var Application = class Application extends Object$1 {
32013
32049
  if ("services" in values && values.services != null) {
32014
32050
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
32015
32051
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
32016
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
32052
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
32017
32053
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
32018
32054
  } else throw new TypeError("The services must be an array of type DidService | URL.");
32019
32055
  }
@@ -32033,7 +32069,8 @@ var Application = class Application extends Object$1 {
32033
32069
  *
32034
32070
  * @param values The values to update the clone with.
32035
32071
  * @param options The options to use for cloning.
32036
- * @returns The cloned instance.
32072
+ * @returns The cloned instance with its own property arrays. Nested objects
32073
+ * and URLs are shared with this instance.
32037
32074
  */
32038
32075
  clone(values = {}, options = {}) {
32039
32076
  if (this._warning != null) {
@@ -32044,15 +32081,15 @@ var Application = class Application extends Object$1 {
32044
32081
  };
32045
32082
  }
32046
32083
  const clone = super.clone(values, options);
32047
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
32084
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
32048
32085
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
32049
32086
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
32050
32087
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
32051
32088
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
32052
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
32089
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
32053
32090
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
32054
32091
  }
32055
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
32092
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
32056
32093
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
32057
32094
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
32058
32095
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -32061,12 +32098,12 @@ var Application = class Application extends Object$1 {
32061
32098
  if ("publicKeys" in values && values.publicKeys != null) {
32062
32099
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
32063
32100
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
32064
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
32101
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
32065
32102
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
32066
32103
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
32067
32104
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
32068
32105
  }
32069
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
32106
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
32070
32107
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
32071
32108
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
32072
32109
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -32075,99 +32112,99 @@ var Application = class Application extends Object$1 {
32075
32112
  if ("assertionMethods" in values && values.assertionMethods != null) {
32076
32113
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
32077
32114
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
32078
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
32115
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
32079
32116
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
32080
32117
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
32081
32118
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
32082
32119
  }
32083
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
32120
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
32084
32121
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
32085
32122
  else throw new TypeError("The gateway must be of type URL.");
32086
32123
  if ("gateways" in values && values.gateways != null) {
32087
32124
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
32088
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
32125
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
32089
32126
  else throw new TypeError("The gateways must be an array of type URL.");
32090
32127
  }
32091
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
32128
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
32092
32129
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
32093
32130
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
32094
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
32131
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
32095
32132
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
32096
32133
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
32097
32134
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
32098
32135
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
32099
32136
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
32100
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
32137
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
32101
32138
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
32102
32139
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
32103
32140
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
32104
32141
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
32105
32142
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
32106
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
32143
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
32107
32144
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
32108
32145
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
32109
32146
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
32110
32147
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
32111
32148
  } else throw new TypeError("The following must be of type Collection | URL.");
32112
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
32149
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
32113
32150
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
32114
32151
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
32115
32152
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
32116
32153
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
32117
32154
  } else throw new TypeError("The followers must be of type Collection | URL.");
32118
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
32155
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
32119
32156
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
32120
32157
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
32121
32158
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
32122
32159
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
32123
32160
  } else throw new TypeError("The liked must be of type Collection | URL.");
32124
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
32161
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
32125
32162
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
32126
32163
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
32127
32164
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
32128
32165
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
32129
32166
  } else throw new TypeError("The featured must be of type Collection | URL.");
32130
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
32167
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
32131
32168
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
32132
32169
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
32133
32170
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
32134
32171
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
32135
32172
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
32136
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
32173
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
32137
32174
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
32138
32175
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
32139
32176
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
32140
32177
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
32141
32178
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
32142
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
32179
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
32143
32180
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
32144
32181
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
32145
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
32182
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
32146
32183
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
32147
32184
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
32148
32185
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
32149
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
32186
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
32150
32187
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
32151
32188
  else throw new TypeError("The endpoints must be of type Endpoints.");
32152
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
32189
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
32153
32190
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
32154
32191
  else throw new TypeError("The discoverable must be of type boolean.");
32155
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
32192
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
32156
32193
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
32157
32194
  else throw new TypeError("The suspended must be of type boolean.");
32158
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
32195
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
32159
32196
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
32160
32197
  else throw new TypeError("The memorial must be of type boolean.");
32161
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
32198
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
32162
32199
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
32163
32200
  else throw new TypeError("The indexable must be of type boolean.");
32164
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
32201
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
32165
32202
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
32166
32203
  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) {
32167
32204
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
32168
32205
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
32169
32206
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
32170
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
32207
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
32171
32208
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
32172
32209
  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) {
32173
32210
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -32176,12 +32213,12 @@ var Application = class Application extends Object$1 {
32176
32213
  if ("aliases" in values && values.aliases != null) {
32177
32214
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
32178
32215
  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)) {
32179
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
32216
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
32180
32217
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
32181
32218
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
32182
32219
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
32183
32220
  }
32184
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
32221
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
32185
32222
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
32186
32223
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
32187
32224
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -32190,15 +32227,15 @@ var Application = class Application extends Object$1 {
32190
32227
  if ("services" in values && values.services != null) {
32191
32228
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
32192
32229
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
32193
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
32230
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
32194
32231
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
32195
32232
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
32196
32233
  } else throw new TypeError("The services must be an array of type DidService | URL.");
32197
32234
  }
32198
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
32235
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
32199
32236
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
32200
32237
  else throw new TypeError("The followedMessage must be of type string.");
32201
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
32238
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
32202
32239
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
32203
32240
  else throw new TypeError("The cat must be of type boolean.");
32204
32241
  return clone;
@@ -37311,7 +37348,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
37311
37348
  *
37312
37349
  * @param values The values to update the clone with.
37313
37350
  * @param options The options to use for cloning.
37314
- * @returns The cloned instance.
37351
+ * @returns The cloned instance with its own property arrays. Nested objects
37352
+ * and URLs are shared with this instance.
37315
37353
  */
37316
37354
  clone(values = {}, options = {}) {
37317
37355
  if (this._warning != null) {
@@ -37507,7 +37545,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
37507
37545
  *
37508
37546
  * @param values The values to update the clone with.
37509
37547
  * @param options The options to use for cloning.
37510
- * @returns The cloned instance.
37548
+ * @returns The cloned instance with its own property arrays. Nested objects
37549
+ * and URLs are shared with this instance.
37511
37550
  */
37512
37551
  clone(values = {}, options = {}) {
37513
37552
  if (this._warning != null) {
@@ -37713,7 +37752,8 @@ var Article = class Article extends Object$1 {
37713
37752
  *
37714
37753
  * @param values The values to update the clone with.
37715
37754
  * @param options The options to use for cloning.
37716
- * @returns The cloned instance.
37755
+ * @returns The cloned instance with its own property arrays. Nested objects
37756
+ * and URLs are shared with this instance.
37717
37757
  */
37718
37758
  clone(values = {}, options = {}) {
37719
37759
  if (this._warning != null) {
@@ -37724,16 +37764,16 @@ var Article = class Article extends Object$1 {
37724
37764
  };
37725
37765
  }
37726
37766
  const clone = super.clone(values, options);
37727
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
37767
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
37728
37768
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
37729
37769
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
37730
37770
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
37731
37771
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
37732
37772
  } else throw new TypeError("The quote must be of type Object | URL.");
37733
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
37773
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
37734
37774
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
37735
37775
  else throw new TypeError("The quoteUrl must be of type URL.");
37736
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
37776
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
37737
37777
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
37738
37778
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
37739
37779
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -38602,7 +38642,8 @@ var Document = class Document extends Object$1 {
38602
38642
  *
38603
38643
  * @param values The values to update the clone with.
38604
38644
  * @param options The options to use for cloning.
38605
- * @returns The cloned instance.
38645
+ * @returns The cloned instance with its own property arrays. Nested objects
38646
+ * and URLs are shared with this instance.
38606
38647
  */
38607
38648
  clone(values = {}, options = {}) {
38608
38649
  if (this._warning != null) {
@@ -38613,13 +38654,13 @@ var Document = class Document extends Object$1 {
38613
38654
  };
38614
38655
  }
38615
38656
  const clone = super.clone(values, options);
38616
- clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
38657
+ clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
38617
38658
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
38618
38659
  else throw new TypeError("The width must be of type number.");
38619
- clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
38660
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
38620
38661
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
38621
38662
  else throw new TypeError("The height must be of type number.");
38622
- clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
38663
+ clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.slice();
38623
38664
  if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
38624
38665
  else throw new TypeError("The digestMultibase must be of type string.");
38625
38666
  return clone;
@@ -38962,7 +39003,8 @@ var Audio = class Audio extends Document {
38962
39003
  *
38963
39004
  * @param values The values to update the clone with.
38964
39005
  * @param options The options to use for cloning.
38965
- * @returns The cloned instance.
39006
+ * @returns The cloned instance with its own property arrays. Nested objects
39007
+ * and URLs are shared with this instance.
38966
39008
  */
38967
39009
  clone(values = {}, options = {}) {
38968
39010
  if (this._warning != null) {
@@ -39170,7 +39212,8 @@ var Ignore = class Ignore extends Activity {
39170
39212
  *
39171
39213
  * @param values The values to update the clone with.
39172
39214
  * @param options The options to use for cloning.
39173
- * @returns The cloned instance.
39215
+ * @returns The cloned instance with its own property arrays. Nested objects
39216
+ * and URLs are shared with this instance.
39174
39217
  */
39175
39218
  clone(values = {}, options = {}) {
39176
39219
  if (this._warning != null) {
@@ -39365,7 +39408,8 @@ var Block = class Block extends Ignore {
39365
39408
  *
39366
39409
  * @param values The values to update the clone with.
39367
39410
  * @param options The options to use for cloning.
39368
- * @returns The cloned instance.
39411
+ * @returns The cloned instance with its own property arrays. Nested objects
39412
+ * and URLs are shared with this instance.
39369
39413
  */
39370
39414
  clone(values = {}, options = {}) {
39371
39415
  if (this._warning != null) {
@@ -39576,7 +39620,8 @@ var CollectionPage = class CollectionPage extends Collection {
39576
39620
  *
39577
39621
  * @param values The values to update the clone with.
39578
39622
  * @param options The options to use for cloning.
39579
- * @returns The cloned instance.
39623
+ * @returns The cloned instance with its own property arrays. Nested objects
39624
+ * and URLs are shared with this instance.
39580
39625
  */
39581
39626
  clone(values = {}, options = {}) {
39582
39627
  if (this._warning != null) {
@@ -39587,19 +39632,19 @@ var CollectionPage = class CollectionPage extends Collection {
39587
39632
  };
39588
39633
  }
39589
39634
  const clone = super.clone(values, options);
39590
- clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
39635
+ clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();
39591
39636
  clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf);
39592
39637
  if ("partOf" in values && values.partOf != null) if (values.partOf instanceof Collection || values.partOf instanceof URL) {
39593
39638
  clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [values.partOf];
39594
39639
  clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = /* @__PURE__ */ new Set([0]);
39595
39640
  } else throw new TypeError("The partOf must be of type Collection | URL.");
39596
- clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
39641
+ clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();
39597
39642
  clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next);
39598
39643
  if ("next" in values && values.next != null) if (values.next instanceof CollectionPage || values.next instanceof URL) {
39599
39644
  clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [values.next];
39600
39645
  clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = /* @__PURE__ */ new Set([0]);
39601
39646
  } else throw new TypeError("The next must be of type CollectionPage | URL.");
39602
- clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
39647
+ clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();
39603
39648
  clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev);
39604
39649
  if ("prev" in values && values.prev != null) if (values.prev instanceof CollectionPage || values.prev instanceof URL) {
39605
39650
  clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [values.prev];
@@ -40674,7 +40719,8 @@ var Create = class Create extends Activity {
40674
40719
  *
40675
40720
  * @param values The values to update the clone with.
40676
40721
  * @param options The options to use for cloning.
40677
- * @returns The cloned instance.
40722
+ * @returns The cloned instance with its own property arrays. Nested objects
40723
+ * and URLs are shared with this instance.
40678
40724
  */
40679
40725
  clone(values = {}, options = {}) {
40680
40726
  if (this._warning != null) {
@@ -40896,7 +40942,8 @@ var Delete = class Delete extends Activity {
40896
40942
  *
40897
40943
  * @param values The values to update the clone with.
40898
40944
  * @param options The options to use for cloning.
40899
- * @returns The cloned instance.
40945
+ * @returns The cloned instance with its own property arrays. Nested objects
40946
+ * and URLs are shared with this instance.
40900
40947
  */
40901
40948
  clone(values = {}, options = {}) {
40902
40949
  if (this._warning != null) {
@@ -41113,7 +41160,8 @@ var Dislike = class Dislike extends Activity {
41113
41160
  *
41114
41161
  * @param values The values to update the clone with.
41115
41162
  * @param options The options to use for cloning.
41116
- * @returns The cloned instance.
41163
+ * @returns The cloned instance with its own property arrays. Nested objects
41164
+ * and URLs are shared with this instance.
41117
41165
  */
41118
41166
  clone(values = {}, options = {}) {
41119
41167
  if (this._warning != null) {
@@ -41381,7 +41429,8 @@ var Endpoints = class {
41381
41429
  *
41382
41430
  * @param values The values to update the clone with.
41383
41431
  * @param options The options to use for cloning.
41384
- * @returns The cloned instance.
41432
+ * @returns The cloned instance with its own property arrays. Nested objects
41433
+ * and URLs are shared with this instance.
41385
41434
  */
41386
41435
  clone(values = {}, options = {}) {
41387
41436
  if (this._warning != null) {
@@ -41393,25 +41442,25 @@ var Endpoints = class {
41393
41442
  }
41394
41443
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
41395
41444
  copyPortableProvenance(this, clone);
41396
- clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
41445
+ clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice();
41397
41446
  if ("proxyUrl" in values && values.proxyUrl != null) if (values.proxyUrl instanceof URL) clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [values.proxyUrl];
41398
41447
  else throw new TypeError("The proxyUrl must be of type URL.");
41399
- clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
41448
+ clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice();
41400
41449
  if ("oauthAuthorizationEndpoint" in values && values.oauthAuthorizationEndpoint != null) if (values.oauthAuthorizationEndpoint instanceof URL) clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [values.oauthAuthorizationEndpoint];
41401
41450
  else throw new TypeError("The oauthAuthorizationEndpoint must be of type URL.");
41402
- clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
41451
+ clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice();
41403
41452
  if ("oauthTokenEndpoint" in values && values.oauthTokenEndpoint != null) if (values.oauthTokenEndpoint instanceof URL) clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [values.oauthTokenEndpoint];
41404
41453
  else throw new TypeError("The oauthTokenEndpoint must be of type URL.");
41405
- clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
41454
+ clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice();
41406
41455
  if ("provideClientKey" in values && values.provideClientKey != null) if (values.provideClientKey instanceof URL) clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [values.provideClientKey];
41407
41456
  else throw new TypeError("The provideClientKey must be of type URL.");
41408
- clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
41457
+ clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice();
41409
41458
  if ("signClientKey" in values && values.signClientKey != null) if (values.signClientKey instanceof URL) clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [values.signClientKey];
41410
41459
  else throw new TypeError("The signClientKey must be of type URL.");
41411
- clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
41460
+ clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice();
41412
41461
  if ("sharedInbox" in values && values.sharedInbox != null) if (values.sharedInbox instanceof URL) clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [values.sharedInbox];
41413
41462
  else throw new TypeError("The sharedInbox must be of type URL.");
41414
- clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
41463
+ clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.slice();
41415
41464
  if ("uploadMedia" in values && values.uploadMedia != null) if (values.uploadMedia instanceof URL) clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
41416
41465
  else throw new TypeError("The uploadMedia must be of type URL.");
41417
41466
  return clone;
@@ -41910,7 +41959,8 @@ var Event = class Event extends Object$1 {
41910
41959
  *
41911
41960
  * @param values The values to update the clone with.
41912
41961
  * @param options The options to use for cloning.
41913
- * @returns The cloned instance.
41962
+ * @returns The cloned instance with its own property arrays. Nested objects
41963
+ * and URLs are shared with this instance.
41914
41964
  */
41915
41965
  clone(values = {}, options = {}) {
41916
41966
  if (this._warning != null) {
@@ -42117,7 +42167,8 @@ var Flag = class Flag extends Activity {
42117
42167
  *
42118
42168
  * @param values The values to update the clone with.
42119
42169
  * @param options The options to use for cloning.
42120
- * @returns The cloned instance.
42170
+ * @returns The cloned instance with its own property arrays. Nested objects
42171
+ * and URLs are shared with this instance.
42121
42172
  */
42122
42173
  clone(values = {}, options = {}) {
42123
42174
  if (this._warning != null) {
@@ -42311,7 +42362,8 @@ var Follow = class Follow extends Activity {
42311
42362
  *
42312
42363
  * @param values The values to update the clone with.
42313
42364
  * @param options The options to use for cloning.
42314
- * @returns The cloned instance.
42365
+ * @returns The cloned instance with its own property arrays. Nested objects
42366
+ * and URLs are shared with this instance.
42315
42367
  */
42316
42368
  clone(values = {}, options = {}) {
42317
42369
  if (this._warning != null) {
@@ -42535,7 +42587,7 @@ var Group = class Group extends Object$1 {
42535
42587
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
42536
42588
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
42537
42589
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
42538
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
42590
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
42539
42591
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
42540
42592
  }
42541
42593
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -42545,7 +42597,7 @@ var Group = class Group extends Object$1 {
42545
42597
  if ("publicKeys" in values && values.publicKeys != null) {
42546
42598
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
42547
42599
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
42548
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
42600
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
42549
42601
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
42550
42602
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
42551
42603
  }
@@ -42556,7 +42608,7 @@ var Group = class Group extends Object$1 {
42556
42608
  if ("assertionMethods" in values && values.assertionMethods != null) {
42557
42609
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
42558
42610
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
42559
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
42611
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
42560
42612
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
42561
42613
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
42562
42614
  }
@@ -42564,7 +42616,7 @@ var Group = class Group extends Object$1 {
42564
42616
  else throw new TypeError("The gateway must be of type URL.");
42565
42617
  if ("gateways" in values && values.gateways != null) {
42566
42618
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
42567
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
42619
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
42568
42620
  else throw new TypeError("The gateways must be an array of type URL.");
42569
42621
  }
42570
42622
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -42602,7 +42654,7 @@ var Group = class Group extends Object$1 {
42602
42654
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
42603
42655
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
42604
42656
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
42605
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
42657
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
42606
42658
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
42607
42659
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
42608
42660
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -42626,7 +42678,7 @@ var Group = class Group extends Object$1 {
42626
42678
  if ("aliases" in values && values.aliases != null) {
42627
42679
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
42628
42680
  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)) {
42629
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
42681
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
42630
42682
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
42631
42683
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
42632
42684
  }
@@ -42637,7 +42689,7 @@ var Group = class Group extends Object$1 {
42637
42689
  if ("services" in values && values.services != null) {
42638
42690
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
42639
42691
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
42640
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
42692
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
42641
42693
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
42642
42694
  } else throw new TypeError("The services must be an array of type DidService | URL.");
42643
42695
  }
@@ -42657,7 +42709,8 @@ var Group = class Group extends Object$1 {
42657
42709
  *
42658
42710
  * @param values The values to update the clone with.
42659
42711
  * @param options The options to use for cloning.
42660
- * @returns The cloned instance.
42712
+ * @returns The cloned instance with its own property arrays. Nested objects
42713
+ * and URLs are shared with this instance.
42661
42714
  */
42662
42715
  clone(values = {}, options = {}) {
42663
42716
  if (this._warning != null) {
@@ -42668,15 +42721,15 @@ var Group = class Group extends Object$1 {
42668
42721
  };
42669
42722
  }
42670
42723
  const clone = super.clone(values, options);
42671
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
42724
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
42672
42725
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
42673
42726
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
42674
42727
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
42675
42728
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
42676
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
42729
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
42677
42730
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
42678
42731
  }
42679
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
42732
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
42680
42733
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
42681
42734
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
42682
42735
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -42685,12 +42738,12 @@ var Group = class Group extends Object$1 {
42685
42738
  if ("publicKeys" in values && values.publicKeys != null) {
42686
42739
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
42687
42740
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
42688
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
42741
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
42689
42742
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
42690
42743
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
42691
42744
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
42692
42745
  }
42693
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
42746
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
42694
42747
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
42695
42748
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
42696
42749
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -42699,99 +42752,99 @@ var Group = class Group extends Object$1 {
42699
42752
  if ("assertionMethods" in values && values.assertionMethods != null) {
42700
42753
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
42701
42754
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
42702
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
42755
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
42703
42756
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
42704
42757
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
42705
42758
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
42706
42759
  }
42707
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
42760
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
42708
42761
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
42709
42762
  else throw new TypeError("The gateway must be of type URL.");
42710
42763
  if ("gateways" in values && values.gateways != null) {
42711
42764
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
42712
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
42765
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
42713
42766
  else throw new TypeError("The gateways must be an array of type URL.");
42714
42767
  }
42715
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
42768
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
42716
42769
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
42717
42770
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
42718
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
42771
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
42719
42772
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
42720
42773
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
42721
42774
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
42722
42775
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
42723
42776
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
42724
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
42777
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
42725
42778
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
42726
42779
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
42727
42780
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
42728
42781
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
42729
42782
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
42730
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
42783
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
42731
42784
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
42732
42785
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
42733
42786
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
42734
42787
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
42735
42788
  } else throw new TypeError("The following must be of type Collection | URL.");
42736
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
42789
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
42737
42790
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
42738
42791
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
42739
42792
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
42740
42793
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
42741
42794
  } else throw new TypeError("The followers must be of type Collection | URL.");
42742
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
42795
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
42743
42796
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
42744
42797
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
42745
42798
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
42746
42799
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
42747
42800
  } else throw new TypeError("The liked must be of type Collection | URL.");
42748
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
42801
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
42749
42802
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
42750
42803
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
42751
42804
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
42752
42805
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
42753
42806
  } else throw new TypeError("The featured must be of type Collection | URL.");
42754
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
42807
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
42755
42808
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
42756
42809
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
42757
42810
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
42758
42811
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
42759
42812
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
42760
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
42813
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
42761
42814
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
42762
42815
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
42763
42816
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
42764
42817
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
42765
42818
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
42766
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
42819
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
42767
42820
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
42768
42821
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
42769
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
42822
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
42770
42823
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
42771
42824
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
42772
42825
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
42773
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
42826
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
42774
42827
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
42775
42828
  else throw new TypeError("The endpoints must be of type Endpoints.");
42776
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
42829
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
42777
42830
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
42778
42831
  else throw new TypeError("The discoverable must be of type boolean.");
42779
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
42832
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
42780
42833
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
42781
42834
  else throw new TypeError("The suspended must be of type boolean.");
42782
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
42835
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
42783
42836
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
42784
42837
  else throw new TypeError("The memorial must be of type boolean.");
42785
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
42838
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
42786
42839
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
42787
42840
  else throw new TypeError("The indexable must be of type boolean.");
42788
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
42841
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
42789
42842
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
42790
42843
  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) {
42791
42844
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
42792
42845
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
42793
42846
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
42794
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
42847
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
42795
42848
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
42796
42849
  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) {
42797
42850
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -42800,12 +42853,12 @@ var Group = class Group extends Object$1 {
42800
42853
  if ("aliases" in values && values.aliases != null) {
42801
42854
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
42802
42855
  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)) {
42803
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
42856
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
42804
42857
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
42805
42858
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
42806
42859
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
42807
42860
  }
42808
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
42861
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
42809
42862
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
42810
42863
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
42811
42864
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -42814,15 +42867,15 @@ var Group = class Group extends Object$1 {
42814
42867
  if ("services" in values && values.services != null) {
42815
42868
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
42816
42869
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
42817
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
42870
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
42818
42871
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
42819
42872
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
42820
42873
  } else throw new TypeError("The services must be an array of type DidService | URL.");
42821
42874
  }
42822
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
42875
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
42823
42876
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
42824
42877
  else throw new TypeError("The followedMessage must be of type string.");
42825
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
42878
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
42826
42879
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
42827
42880
  else throw new TypeError("The cat must be of type boolean.");
42828
42881
  return clone;
@@ -47996,7 +48049,7 @@ var Link = class Link {
47996
48049
  else throw new TypeError("The rel must be of type string.");
47997
48050
  if ("rels" in values && values.rels != null) {
47998
48051
  if ("rel" in values && values.rel != null) throw new TypeError("Cannot initialize both rel and rels at the same time.");
47999
- if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
48052
+ if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
48000
48053
  else throw new TypeError("The rels must be an array of type string.");
48001
48054
  }
48002
48055
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
@@ -48007,7 +48060,7 @@ var Link = class Link {
48007
48060
  else throw new TypeError("The name must be of type string | LanguageString.");
48008
48061
  if ("names" in values && values.names != null) {
48009
48062
  if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
48010
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
48063
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
48011
48064
  else throw new TypeError("The names must be an array of type string | LanguageString.");
48012
48065
  }
48013
48066
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
@@ -48017,7 +48070,7 @@ var Link = class Link {
48017
48070
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
48018
48071
  else throw new TypeError("The width must be of type number.");
48019
48072
  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)) {
48020
- this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
48073
+ this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
48021
48074
  for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
48022
48075
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
48023
48076
  }
@@ -48032,7 +48085,8 @@ var Link = class Link {
48032
48085
  *
48033
48086
  * @param values The values to update the clone with.
48034
48087
  * @param options The options to use for cloning.
48035
- * @returns The cloned instance.
48088
+ * @returns The cloned instance with its own property arrays. Nested objects
48089
+ * and URLs are shared with this instance.
48036
48090
  */
48037
48091
  clone(values = {}, options = {}) {
48038
48092
  if (this._warning != null) {
@@ -48044,44 +48098,44 @@ var Link = class Link {
48044
48098
  }
48045
48099
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
48046
48100
  copyPortableProvenance(this, clone);
48047
- clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
48101
+ clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice();
48048
48102
  if ("href" in values && values.href != null) if (values.href instanceof URL) clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [values.href];
48049
48103
  else throw new TypeError("The href must be of type URL.");
48050
- clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
48104
+ clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice();
48051
48105
  if ("rel" in values && values.rel != null) if (typeof values.rel === "string") clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [values.rel];
48052
48106
  else throw new TypeError("The rel must be of type string.");
48053
48107
  if ("rels" in values && values.rels != null) {
48054
48108
  if ("rel" in values && values.rel != null) throw new TypeError("Cannot update both rel and rels at the same time.");
48055
- if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
48109
+ if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
48056
48110
  else throw new TypeError("The rels must be an array of type string.");
48057
48111
  }
48058
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
48112
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
48059
48113
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
48060
48114
  else throw new TypeError("The mediaType must be of type string.");
48061
- clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
48115
+ clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.slice();
48062
48116
  if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
48063
48117
  else throw new TypeError("The digestMultibase must be of type string.");
48064
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
48118
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
48065
48119
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
48066
48120
  else throw new TypeError("The name must be of type string | LanguageString.");
48067
48121
  if ("names" in values && values.names != null) {
48068
48122
  if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
48069
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
48123
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
48070
48124
  else throw new TypeError("The names must be an array of type string | LanguageString.");
48071
48125
  }
48072
- clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
48126
+ clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice();
48073
48127
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
48074
48128
  else throw new TypeError("The language must be of type Intl.Locale.");
48075
- clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
48129
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
48076
48130
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
48077
48131
  else throw new TypeError("The height must be of type number.");
48078
- clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
48132
+ clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
48079
48133
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
48080
48134
  else throw new TypeError("The width must be of type number.");
48081
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
48135
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
48082
48136
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
48083
48137
  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)) {
48084
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
48138
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
48085
48139
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
48086
48140
  for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
48087
48141
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
@@ -48776,7 +48830,7 @@ var Link = class Link {
48776
48830
  let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
48777
48831
  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) {
48778
48832
  if (v == null) continue;
48779
- const decoded = new Intl.Locale(v["@value"]);
48833
+ const decoded = new Intl.Locale(normalizeLanguageTag(v["@value"]));
48780
48834
  if (typeof decoded === "undefined") {
48781
48835
  shouldCacheJsonLd = false;
48782
48836
  continue;
@@ -49014,7 +49068,8 @@ var Hashtag = class Hashtag extends Link {
49014
49068
  *
49015
49069
  * @param values The values to update the clone with.
49016
49070
  * @param options The options to use for cloning.
49017
- * @returns The cloned instance.
49071
+ * @returns The cloned instance with its own property arrays. Nested objects
49072
+ * and URLs are shared with this instance.
49018
49073
  */
49019
49074
  clone(values = {}, options = {}) {
49020
49075
  if (this._warning != null) {
@@ -49208,7 +49263,8 @@ var Image = class Image extends Document {
49208
49263
  *
49209
49264
  * @param values The values to update the clone with.
49210
49265
  * @param options The options to use for cloning.
49211
- * @returns The cloned instance.
49266
+ * @returns The cloned instance with its own property arrays. Nested objects
49267
+ * and URLs are shared with this instance.
49212
49268
  */
49213
49269
  clone(values = {}, options = {}) {
49214
49270
  if (this._warning != null) {
@@ -49417,7 +49473,8 @@ var Offer = class Offer extends Activity {
49417
49473
  *
49418
49474
  * @param values The values to update the clone with.
49419
49475
  * @param options The options to use for cloning.
49420
- * @returns The cloned instance.
49476
+ * @returns The cloned instance with its own property arrays. Nested objects
49477
+ * and URLs are shared with this instance.
49421
49478
  */
49422
49479
  clone(values = {}, options = {}) {
49423
49480
  if (this._warning != null) {
@@ -49610,7 +49667,8 @@ var Invite = class Invite extends Offer {
49610
49667
  *
49611
49668
  * @param values The values to update the clone with.
49612
49669
  * @param options The options to use for cloning.
49613
- * @returns The cloned instance.
49670
+ * @returns The cloned instance with its own property arrays. Nested objects
49671
+ * and URLs are shared with this instance.
49614
49672
  */
49615
49673
  clone(values = {}, options = {}) {
49616
49674
  if (this._warning != null) {
@@ -49802,7 +49860,8 @@ var Join = class Join extends Activity {
49802
49860
  *
49803
49861
  * @param values The values to update the clone with.
49804
49862
  * @param options The options to use for cloning.
49805
- * @returns The cloned instance.
49863
+ * @returns The cloned instance with its own property arrays. Nested objects
49864
+ * and URLs are shared with this instance.
49806
49865
  */
49807
49866
  clone(values = {}, options = {}) {
49808
49867
  if (this._warning != null) {
@@ -49994,7 +50053,8 @@ var Leave = class Leave extends Activity {
49994
50053
  *
49995
50054
  * @param values The values to update the clone with.
49996
50055
  * @param options The options to use for cloning.
49997
- * @returns The cloned instance.
50056
+ * @returns The cloned instance with its own property arrays. Nested objects
50057
+ * and URLs are shared with this instance.
49998
50058
  */
49999
50059
  clone(values = {}, options = {}) {
50000
50060
  if (this._warning != null) {
@@ -50186,7 +50246,8 @@ var Like = class Like extends Activity {
50186
50246
  *
50187
50247
  * @param values The values to update the clone with.
50188
50248
  * @param options The options to use for cloning.
50189
- * @returns The cloned instance.
50249
+ * @returns The cloned instance with its own property arrays. Nested objects
50250
+ * and URLs are shared with this instance.
50190
50251
  */
50191
50252
  clone(values = {}, options = {}) {
50192
50253
  if (this._warning != null) {
@@ -50381,7 +50442,8 @@ var Listen = class Listen extends Activity {
50381
50442
  *
50382
50443
  * @param values The values to update the clone with.
50383
50444
  * @param options The options to use for cloning.
50384
- * @returns The cloned instance.
50445
+ * @returns The cloned instance with its own property arrays. Nested objects
50446
+ * and URLs are shared with this instance.
50385
50447
  */
50386
50448
  clone(values = {}, options = {}) {
50387
50449
  if (this._warning != null) {
@@ -50572,7 +50634,8 @@ var Mention = class Mention extends Link {
50572
50634
  *
50573
50635
  * @param values The values to update the clone with.
50574
50636
  * @param options The options to use for cloning.
50575
- * @returns The cloned instance.
50637
+ * @returns The cloned instance with its own property arrays. Nested objects
50638
+ * and URLs are shared with this instance.
50576
50639
  */
50577
50640
  clone(values = {}, options = {}) {
50578
50641
  if (this._warning != null) {
@@ -50768,7 +50831,8 @@ var Move = class Move extends Activity {
50768
50831
  *
50769
50832
  * @param values The values to update the clone with.
50770
50833
  * @param options The options to use for cloning.
50771
- * @returns The cloned instance.
50834
+ * @returns The cloned instance with its own property arrays. Nested objects
50835
+ * and URLs are shared with this instance.
50772
50836
  */
50773
50837
  clone(values = {}, options = {}) {
50774
50838
  if (this._warning != null) {
@@ -50975,7 +51039,8 @@ var Note = class Note extends Object$1 {
50975
51039
  *
50976
51040
  * @param values The values to update the clone with.
50977
51041
  * @param options The options to use for cloning.
50978
- * @returns The cloned instance.
51042
+ * @returns The cloned instance with its own property arrays. Nested objects
51043
+ * and URLs are shared with this instance.
50979
51044
  */
50980
51045
  clone(values = {}, options = {}) {
50981
51046
  if (this._warning != null) {
@@ -50986,16 +51051,16 @@ var Note = class Note extends Object$1 {
50986
51051
  };
50987
51052
  }
50988
51053
  const clone = super.clone(values, options);
50989
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
51054
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
50990
51055
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
50991
51056
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
50992
51057
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
50993
51058
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
50994
51059
  } else throw new TypeError("The quote must be of type Object | URL.");
50995
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
51060
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
50996
51061
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
50997
51062
  else throw new TypeError("The quoteUrl must be of type URL.");
50998
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
51063
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
50999
51064
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
51000
51065
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
51001
51066
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -51849,7 +51914,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
51849
51914
  constructor(values, options = {}) {
51850
51915
  super(values, options);
51851
51916
  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)) {
51852
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
51917
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
51853
51918
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
51854
51919
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
51855
51920
  if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
@@ -51866,7 +51931,8 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
51866
51931
  *
51867
51932
  * @param values The values to update the clone with.
51868
51933
  * @param options The options to use for cloning.
51869
- * @returns The cloned instance.
51934
+ * @returns The cloned instance with its own property arrays. Nested objects
51935
+ * and URLs are shared with this instance.
51870
51936
  */
51871
51937
  clone(values = {}, options = {}) {
51872
51938
  if (this._warning != null) {
@@ -51877,14 +51943,14 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
51877
51943
  };
51878
51944
  }
51879
51945
  const clone = super.clone(values, options);
51880
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
51946
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
51881
51947
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
51882
51948
  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)) {
51883
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
51949
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
51884
51950
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
51885
51951
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
51886
51952
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
51887
- clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
51953
+ clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice();
51888
51954
  if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
51889
51955
  else throw new TypeError("The startIndex must be of type number.");
51890
51956
  return clone;
@@ -52584,7 +52650,7 @@ var Organization = class Organization extends Object$1 {
52584
52650
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
52585
52651
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
52586
52652
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
52587
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
52653
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
52588
52654
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
52589
52655
  }
52590
52656
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -52594,7 +52660,7 @@ var Organization = class Organization extends Object$1 {
52594
52660
  if ("publicKeys" in values && values.publicKeys != null) {
52595
52661
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
52596
52662
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
52597
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
52663
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
52598
52664
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
52599
52665
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
52600
52666
  }
@@ -52605,7 +52671,7 @@ var Organization = class Organization extends Object$1 {
52605
52671
  if ("assertionMethods" in values && values.assertionMethods != null) {
52606
52672
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
52607
52673
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
52608
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
52674
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
52609
52675
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
52610
52676
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
52611
52677
  }
@@ -52613,7 +52679,7 @@ var Organization = class Organization extends Object$1 {
52613
52679
  else throw new TypeError("The gateway must be of type URL.");
52614
52680
  if ("gateways" in values && values.gateways != null) {
52615
52681
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
52616
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
52682
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
52617
52683
  else throw new TypeError("The gateways must be an array of type URL.");
52618
52684
  }
52619
52685
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -52651,7 +52717,7 @@ var Organization = class Organization extends Object$1 {
52651
52717
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
52652
52718
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
52653
52719
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
52654
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
52720
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
52655
52721
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
52656
52722
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
52657
52723
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -52675,7 +52741,7 @@ var Organization = class Organization extends Object$1 {
52675
52741
  if ("aliases" in values && values.aliases != null) {
52676
52742
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
52677
52743
  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)) {
52678
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
52744
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
52679
52745
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
52680
52746
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
52681
52747
  }
@@ -52686,7 +52752,7 @@ var Organization = class Organization extends Object$1 {
52686
52752
  if ("services" in values && values.services != null) {
52687
52753
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
52688
52754
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
52689
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
52755
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
52690
52756
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
52691
52757
  } else throw new TypeError("The services must be an array of type DidService | URL.");
52692
52758
  }
@@ -52706,7 +52772,8 @@ var Organization = class Organization extends Object$1 {
52706
52772
  *
52707
52773
  * @param values The values to update the clone with.
52708
52774
  * @param options The options to use for cloning.
52709
- * @returns The cloned instance.
52775
+ * @returns The cloned instance with its own property arrays. Nested objects
52776
+ * and URLs are shared with this instance.
52710
52777
  */
52711
52778
  clone(values = {}, options = {}) {
52712
52779
  if (this._warning != null) {
@@ -52717,15 +52784,15 @@ var Organization = class Organization extends Object$1 {
52717
52784
  };
52718
52785
  }
52719
52786
  const clone = super.clone(values, options);
52720
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
52787
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
52721
52788
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
52722
52789
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
52723
52790
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
52724
52791
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
52725
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
52792
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
52726
52793
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
52727
52794
  }
52728
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
52795
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
52729
52796
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
52730
52797
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
52731
52798
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -52734,12 +52801,12 @@ var Organization = class Organization extends Object$1 {
52734
52801
  if ("publicKeys" in values && values.publicKeys != null) {
52735
52802
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
52736
52803
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
52737
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
52804
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
52738
52805
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
52739
52806
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
52740
52807
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
52741
52808
  }
52742
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
52809
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
52743
52810
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
52744
52811
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
52745
52812
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -52748,99 +52815,99 @@ var Organization = class Organization extends Object$1 {
52748
52815
  if ("assertionMethods" in values && values.assertionMethods != null) {
52749
52816
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
52750
52817
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
52751
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
52818
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
52752
52819
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
52753
52820
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
52754
52821
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
52755
52822
  }
52756
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
52823
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
52757
52824
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
52758
52825
  else throw new TypeError("The gateway must be of type URL.");
52759
52826
  if ("gateways" in values && values.gateways != null) {
52760
52827
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
52761
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
52828
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
52762
52829
  else throw new TypeError("The gateways must be an array of type URL.");
52763
52830
  }
52764
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
52831
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
52765
52832
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
52766
52833
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
52767
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
52834
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
52768
52835
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
52769
52836
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
52770
52837
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
52771
52838
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
52772
52839
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
52773
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
52840
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
52774
52841
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
52775
52842
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
52776
52843
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
52777
52844
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
52778
52845
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
52779
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
52846
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
52780
52847
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
52781
52848
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
52782
52849
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
52783
52850
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
52784
52851
  } else throw new TypeError("The following must be of type Collection | URL.");
52785
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
52852
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
52786
52853
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
52787
52854
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
52788
52855
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
52789
52856
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
52790
52857
  } else throw new TypeError("The followers must be of type Collection | URL.");
52791
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
52858
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
52792
52859
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
52793
52860
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
52794
52861
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
52795
52862
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
52796
52863
  } else throw new TypeError("The liked must be of type Collection | URL.");
52797
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
52864
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
52798
52865
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
52799
52866
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
52800
52867
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
52801
52868
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
52802
52869
  } else throw new TypeError("The featured must be of type Collection | URL.");
52803
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
52870
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
52804
52871
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
52805
52872
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
52806
52873
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
52807
52874
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
52808
52875
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
52809
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
52876
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
52810
52877
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
52811
52878
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
52812
52879
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
52813
52880
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
52814
52881
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
52815
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
52882
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
52816
52883
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
52817
52884
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
52818
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
52885
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
52819
52886
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
52820
52887
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
52821
52888
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
52822
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
52889
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
52823
52890
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
52824
52891
  else throw new TypeError("The endpoints must be of type Endpoints.");
52825
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
52892
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
52826
52893
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
52827
52894
  else throw new TypeError("The discoverable must be of type boolean.");
52828
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
52895
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
52829
52896
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
52830
52897
  else throw new TypeError("The suspended must be of type boolean.");
52831
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
52898
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
52832
52899
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
52833
52900
  else throw new TypeError("The memorial must be of type boolean.");
52834
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
52901
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
52835
52902
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
52836
52903
  else throw new TypeError("The indexable must be of type boolean.");
52837
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
52904
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
52838
52905
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
52839
52906
  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) {
52840
52907
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
52841
52908
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
52842
52909
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
52843
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
52910
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
52844
52911
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
52845
52912
  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) {
52846
52913
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -52849,12 +52916,12 @@ var Organization = class Organization extends Object$1 {
52849
52916
  if ("aliases" in values && values.aliases != null) {
52850
52917
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
52851
52918
  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)) {
52852
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
52919
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
52853
52920
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
52854
52921
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
52855
52922
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
52856
52923
  }
52857
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
52924
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
52858
52925
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
52859
52926
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
52860
52927
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -52863,15 +52930,15 @@ var Organization = class Organization extends Object$1 {
52863
52930
  if ("services" in values && values.services != null) {
52864
52931
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
52865
52932
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
52866
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
52933
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
52867
52934
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
52868
52935
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
52869
52936
  } else throw new TypeError("The services must be an array of type DidService | URL.");
52870
52937
  }
52871
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
52938
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
52872
52939
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
52873
52940
  else throw new TypeError("The followedMessage must be of type string.");
52874
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
52941
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
52875
52942
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
52876
52943
  else throw new TypeError("The cat must be of type boolean.");
52877
52944
  return clone;
@@ -57982,7 +58049,8 @@ var Page = class Page extends Document {
57982
58049
  *
57983
58050
  * @param values The values to update the clone with.
57984
58051
  * @param options The options to use for cloning.
57985
- * @returns The cloned instance.
58052
+ * @returns The cloned instance with its own property arrays. Nested objects
58053
+ * and URLs are shared with this instance.
57986
58054
  */
57987
58055
  clone(values = {}, options = {}) {
57988
58056
  if (this._warning != null) {
@@ -58219,7 +58287,7 @@ var Person = class Person extends Object$1 {
58219
58287
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
58220
58288
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
58221
58289
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
58222
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
58290
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
58223
58291
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
58224
58292
  }
58225
58293
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -58229,7 +58297,7 @@ var Person = class Person extends Object$1 {
58229
58297
  if ("publicKeys" in values && values.publicKeys != null) {
58230
58298
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
58231
58299
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
58232
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
58300
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
58233
58301
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
58234
58302
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
58235
58303
  }
@@ -58240,7 +58308,7 @@ var Person = class Person extends Object$1 {
58240
58308
  if ("assertionMethods" in values && values.assertionMethods != null) {
58241
58309
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
58242
58310
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
58243
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
58311
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
58244
58312
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
58245
58313
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
58246
58314
  }
@@ -58248,7 +58316,7 @@ var Person = class Person extends Object$1 {
58248
58316
  else throw new TypeError("The gateway must be of type URL.");
58249
58317
  if ("gateways" in values && values.gateways != null) {
58250
58318
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
58251
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
58319
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
58252
58320
  else throw new TypeError("The gateways must be an array of type URL.");
58253
58321
  }
58254
58322
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -58286,7 +58354,7 @@ var Person = class Person extends Object$1 {
58286
58354
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
58287
58355
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
58288
58356
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
58289
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
58357
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
58290
58358
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
58291
58359
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
58292
58360
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -58310,7 +58378,7 @@ var Person = class Person extends Object$1 {
58310
58378
  if ("aliases" in values && values.aliases != null) {
58311
58379
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
58312
58380
  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)) {
58313
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
58381
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
58314
58382
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
58315
58383
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
58316
58384
  }
@@ -58321,7 +58389,7 @@ var Person = class Person extends Object$1 {
58321
58389
  if ("services" in values && values.services != null) {
58322
58390
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
58323
58391
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
58324
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
58392
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
58325
58393
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
58326
58394
  } else throw new TypeError("The services must be an array of type DidService | URL.");
58327
58395
  }
@@ -58341,7 +58409,8 @@ var Person = class Person extends Object$1 {
58341
58409
  *
58342
58410
  * @param values The values to update the clone with.
58343
58411
  * @param options The options to use for cloning.
58344
- * @returns The cloned instance.
58412
+ * @returns The cloned instance with its own property arrays. Nested objects
58413
+ * and URLs are shared with this instance.
58345
58414
  */
58346
58415
  clone(values = {}, options = {}) {
58347
58416
  if (this._warning != null) {
@@ -58352,15 +58421,15 @@ var Person = class Person extends Object$1 {
58352
58421
  };
58353
58422
  }
58354
58423
  const clone = super.clone(values, options);
58355
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
58424
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
58356
58425
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
58357
58426
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
58358
58427
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
58359
58428
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
58360
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
58429
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
58361
58430
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
58362
58431
  }
58363
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
58432
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
58364
58433
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
58365
58434
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
58366
58435
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -58369,12 +58438,12 @@ var Person = class Person extends Object$1 {
58369
58438
  if ("publicKeys" in values && values.publicKeys != null) {
58370
58439
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
58371
58440
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
58372
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
58441
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
58373
58442
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
58374
58443
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
58375
58444
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
58376
58445
  }
58377
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
58446
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
58378
58447
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
58379
58448
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
58380
58449
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -58383,99 +58452,99 @@ var Person = class Person extends Object$1 {
58383
58452
  if ("assertionMethods" in values && values.assertionMethods != null) {
58384
58453
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
58385
58454
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
58386
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
58455
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
58387
58456
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
58388
58457
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
58389
58458
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
58390
58459
  }
58391
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
58460
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
58392
58461
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
58393
58462
  else throw new TypeError("The gateway must be of type URL.");
58394
58463
  if ("gateways" in values && values.gateways != null) {
58395
58464
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
58396
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
58465
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
58397
58466
  else throw new TypeError("The gateways must be an array of type URL.");
58398
58467
  }
58399
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
58468
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
58400
58469
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
58401
58470
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
58402
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
58471
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
58403
58472
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
58404
58473
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
58405
58474
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
58406
58475
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
58407
58476
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
58408
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
58477
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
58409
58478
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
58410
58479
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
58411
58480
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
58412
58481
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
58413
58482
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
58414
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
58483
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
58415
58484
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
58416
58485
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
58417
58486
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
58418
58487
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
58419
58488
  } else throw new TypeError("The following must be of type Collection | URL.");
58420
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
58489
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
58421
58490
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
58422
58491
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
58423
58492
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
58424
58493
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
58425
58494
  } else throw new TypeError("The followers must be of type Collection | URL.");
58426
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
58495
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
58427
58496
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
58428
58497
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
58429
58498
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
58430
58499
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
58431
58500
  } else throw new TypeError("The liked must be of type Collection | URL.");
58432
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
58501
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
58433
58502
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
58434
58503
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
58435
58504
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
58436
58505
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
58437
58506
  } else throw new TypeError("The featured must be of type Collection | URL.");
58438
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
58507
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
58439
58508
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
58440
58509
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
58441
58510
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
58442
58511
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
58443
58512
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
58444
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
58513
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
58445
58514
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
58446
58515
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
58447
58516
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
58448
58517
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
58449
58518
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
58450
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
58519
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
58451
58520
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
58452
58521
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
58453
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
58522
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
58454
58523
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
58455
58524
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
58456
58525
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
58457
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
58526
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
58458
58527
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
58459
58528
  else throw new TypeError("The endpoints must be of type Endpoints.");
58460
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
58529
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
58461
58530
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
58462
58531
  else throw new TypeError("The discoverable must be of type boolean.");
58463
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
58532
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
58464
58533
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
58465
58534
  else throw new TypeError("The suspended must be of type boolean.");
58466
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
58535
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
58467
58536
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
58468
58537
  else throw new TypeError("The memorial must be of type boolean.");
58469
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
58538
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
58470
58539
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
58471
58540
  else throw new TypeError("The indexable must be of type boolean.");
58472
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
58541
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
58473
58542
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
58474
58543
  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) {
58475
58544
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
58476
58545
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
58477
58546
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
58478
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
58547
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
58479
58548
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
58480
58549
  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) {
58481
58550
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -58484,12 +58553,12 @@ var Person = class Person extends Object$1 {
58484
58553
  if ("aliases" in values && values.aliases != null) {
58485
58554
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
58486
58555
  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)) {
58487
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
58556
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
58488
58557
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
58489
58558
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
58490
58559
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
58491
58560
  }
58492
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
58561
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
58493
58562
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
58494
58563
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
58495
58564
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -58498,15 +58567,15 @@ var Person = class Person extends Object$1 {
58498
58567
  if ("services" in values && values.services != null) {
58499
58568
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
58500
58569
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
58501
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
58570
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
58502
58571
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
58503
58572
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
58504
58573
  } else throw new TypeError("The services must be an array of type DidService | URL.");
58505
58574
  }
58506
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
58575
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
58507
58576
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
58508
58577
  else throw new TypeError("The followedMessage must be of type string.");
58509
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
58578
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
58510
58579
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
58511
58580
  else throw new TypeError("The cat must be of type boolean.");
58512
58581
  return clone;
@@ -63637,7 +63706,8 @@ var Place = class Place extends Object$1 {
63637
63706
  *
63638
63707
  * @param values The values to update the clone with.
63639
63708
  * @param options The options to use for cloning.
63640
- * @returns The cloned instance.
63709
+ * @returns The cloned instance with its own property arrays. Nested objects
63710
+ * and URLs are shared with this instance.
63641
63711
  */
63642
63712
  clone(values = {}, options = {}) {
63643
63713
  if (this._warning != null) {
@@ -63648,22 +63718,22 @@ var Place = class Place extends Object$1 {
63648
63718
  };
63649
63719
  }
63650
63720
  const clone = super.clone(values, options);
63651
- clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
63721
+ clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice();
63652
63722
  if ("accuracy" in values && values.accuracy != null) if (typeof values.accuracy === "number" && !Number.isNaN(values.accuracy)) clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [values.accuracy];
63653
63723
  else throw new TypeError("The accuracy must be of type number.");
63654
- clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
63724
+ clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice();
63655
63725
  if ("altitude" in values && values.altitude != null) if (typeof values.altitude === "number" && !Number.isNaN(values.altitude)) clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [values.altitude];
63656
63726
  else throw new TypeError("The altitude must be of type number.");
63657
- clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
63727
+ clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice();
63658
63728
  if ("latitude" in values && values.latitude != null) if (typeof values.latitude === "number" && !Number.isNaN(values.latitude)) clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [values.latitude];
63659
63729
  else throw new TypeError("The latitude must be of type number.");
63660
- clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
63730
+ clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice();
63661
63731
  if ("longitude" in values && values.longitude != null) if (typeof values.longitude === "number" && !Number.isNaN(values.longitude)) clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [values.longitude];
63662
63732
  else throw new TypeError("The longitude must be of type number.");
63663
- clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
63733
+ clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice();
63664
63734
  if ("radius" in values && values.radius != null) if (typeof values.radius === "number" && !Number.isNaN(values.radius)) clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [values.radius];
63665
63735
  else throw new TypeError("The radius must be of type number.");
63666
- clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
63736
+ clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice();
63667
63737
  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];
63668
63738
  else throw new TypeError("The units must be of type \"cm\" | \"feet\" | \"inches\" | \"km\" | \"m\" | \"miles\" | URL.");
63669
63739
  return clone;
@@ -64148,7 +64218,8 @@ var Profile = class Profile extends Object$1 {
64148
64218
  *
64149
64219
  * @param values The values to update the clone with.
64150
64220
  * @param options The options to use for cloning.
64151
- * @returns The cloned instance.
64221
+ * @returns The cloned instance with its own property arrays. Nested objects
64222
+ * and URLs are shared with this instance.
64152
64223
  */
64153
64224
  clone(values = {}, options = {}) {
64154
64225
  if (this._warning != null) {
@@ -64159,7 +64230,7 @@ var Profile = class Profile extends Object$1 {
64159
64230
  };
64160
64231
  }
64161
64232
  const clone = super.clone(values, options);
64162
- clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
64233
+ clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();
64163
64234
  clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes);
64164
64235
  if ("describes" in values && values.describes != null) if (values.describes instanceof Object$1 || values.describes instanceof URL) {
64165
64236
  clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [values.describes];
@@ -64642,11 +64713,11 @@ var Question = class Question extends IntransitiveActivity {
64642
64713
  constructor(values, options = {}) {
64643
64714
  super(values, options);
64644
64715
  if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
64645
- this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
64716
+ this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
64646
64717
  for (let i = 0; i < values.exclusiveOptions.length; i++) this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
64647
64718
  } else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
64648
64719
  if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
64649
- this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
64720
+ this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
64650
64721
  for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
64651
64722
  } else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
64652
64723
  if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
@@ -64675,7 +64746,8 @@ var Question = class Question extends IntransitiveActivity {
64675
64746
  *
64676
64747
  * @param values The values to update the clone with.
64677
64748
  * @param options The options to use for cloning.
64678
- * @returns The cloned instance.
64749
+ * @returns The cloned instance with its own property arrays. Nested objects
64750
+ * and URLs are shared with this instance.
64679
64751
  */
64680
64752
  clone(values = {}, options = {}) {
64681
64753
  if (this._warning != null) {
@@ -64686,36 +64758,36 @@ var Question = class Question extends IntransitiveActivity {
64686
64758
  };
64687
64759
  }
64688
64760
  const clone = super.clone(values, options);
64689
- clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
64761
+ clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();
64690
64762
  clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf);
64691
64763
  if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
64692
- clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
64764
+ clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
64693
64765
  clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = /* @__PURE__ */ new Set();
64694
64766
  for (let i = 0; i < values.exclusiveOptions.length; i++) clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
64695
64767
  } else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
64696
- clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
64768
+ clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();
64697
64769
  clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf);
64698
64770
  if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
64699
- clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
64771
+ clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
64700
64772
  clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = /* @__PURE__ */ new Set();
64701
64773
  for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
64702
64774
  } else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
64703
- clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
64775
+ clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice();
64704
64776
  if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
64705
64777
  else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
64706
- clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
64778
+ clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice();
64707
64779
  if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
64708
64780
  else throw new TypeError("The voters must be of type number.");
64709
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
64781
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
64710
64782
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
64711
64783
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
64712
64784
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
64713
64785
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
64714
64786
  } else throw new TypeError("The quote must be of type Object | URL.");
64715
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
64787
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
64716
64788
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
64717
64789
  else throw new TypeError("The quoteUrl must be of type URL.");
64718
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
64790
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
64719
64791
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
64720
64792
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
64721
64793
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -66127,7 +66199,8 @@ var Read = class Read extends Activity {
66127
66199
  *
66128
66200
  * @param values The values to update the clone with.
66129
66201
  * @param options The options to use for cloning.
66130
- * @returns The cloned instance.
66202
+ * @returns The cloned instance with its own property arrays. Nested objects
66203
+ * and URLs are shared with this instance.
66131
66204
  */
66132
66205
  clone(values = {}, options = {}) {
66133
66206
  if (this._warning != null) {
@@ -66319,7 +66392,8 @@ var Reject = class Reject extends Activity {
66319
66392
  *
66320
66393
  * @param values The values to update the clone with.
66321
66394
  * @param options The options to use for cloning.
66322
- * @returns The cloned instance.
66395
+ * @returns The cloned instance with its own property arrays. Nested objects
66396
+ * and URLs are shared with this instance.
66323
66397
  */
66324
66398
  clone(values = {}, options = {}) {
66325
66399
  if (this._warning != null) {
@@ -66522,7 +66596,7 @@ var Relationship = class Relationship extends Object$1 {
66522
66596
  if ("objects" in values && values.objects != null) {
66523
66597
  if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
66524
66598
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
66525
- this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
66599
+ this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
66526
66600
  for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
66527
66601
  } else throw new TypeError("The objects must be an array of type Object | URL.");
66528
66602
  }
@@ -66533,7 +66607,7 @@ var Relationship = class Relationship extends Object$1 {
66533
66607
  if ("relationships" in values && values.relationships != null) {
66534
66608
  if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot initialize both relationship and relationships at the same time.");
66535
66609
  if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
66536
- this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
66610
+ this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
66537
66611
  for (let i = 0; i < values.relationships.length; i++) this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
66538
66612
  } else throw new TypeError("The relationships must be an array of type Object | URL.");
66539
66613
  }
@@ -66549,7 +66623,8 @@ var Relationship = class Relationship extends Object$1 {
66549
66623
  *
66550
66624
  * @param values The values to update the clone with.
66551
66625
  * @param options The options to use for cloning.
66552
- * @returns The cloned instance.
66626
+ * @returns The cloned instance with its own property arrays. Nested objects
66627
+ * and URLs are shared with this instance.
66553
66628
  */
66554
66629
  clone(values = {}, options = {}) {
66555
66630
  if (this._warning != null) {
@@ -66560,13 +66635,13 @@ var Relationship = class Relationship extends Object$1 {
66560
66635
  };
66561
66636
  }
66562
66637
  const clone = super.clone(values, options);
66563
- clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
66638
+ clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();
66564
66639
  clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject);
66565
66640
  if ("subject" in values && values.subject != null) if (values.subject instanceof Object$1 || values.subject instanceof URL) {
66566
66641
  clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [values.subject];
66567
66642
  clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = /* @__PURE__ */ new Set([0]);
66568
66643
  } else throw new TypeError("The subject must be of type Object | URL.");
66569
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
66644
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
66570
66645
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
66571
66646
  if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
66572
66647
  clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
@@ -66575,12 +66650,12 @@ var Relationship = class Relationship extends Object$1 {
66575
66650
  if ("objects" in values && values.objects != null) {
66576
66651
  if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
66577
66652
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
66578
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
66653
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
66579
66654
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
66580
66655
  for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
66581
66656
  } else throw new TypeError("The objects must be an array of type Object | URL.");
66582
66657
  }
66583
- clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
66658
+ clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();
66584
66659
  clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship);
66585
66660
  if ("relationship" in values && values.relationship != null) if (values.relationship instanceof Object$1 || values.relationship instanceof URL) {
66586
66661
  clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [values.relationship];
@@ -66589,7 +66664,7 @@ var Relationship = class Relationship extends Object$1 {
66589
66664
  if ("relationships" in values && values.relationships != null) {
66590
66665
  if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot update both relationship and relationships at the same time.");
66591
66666
  if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
66592
- clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
66667
+ clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
66593
66668
  clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = /* @__PURE__ */ new Set();
66594
66669
  for (let i = 0; i < values.relationships.length; i++) clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
66595
66670
  } else throw new TypeError("The relationships must be an array of type Object | URL.");
@@ -67763,7 +67838,8 @@ var Remove = class Remove extends Activity {
67763
67838
  *
67764
67839
  * @param values The values to update the clone with.
67765
67840
  * @param options The options to use for cloning.
67766
- * @returns The cloned instance.
67841
+ * @returns The cloned instance with its own property arrays. Nested objects
67842
+ * and URLs are shared with this instance.
67767
67843
  */
67768
67844
  clone(values = {}, options = {}) {
67769
67845
  if (this._warning != null) {
@@ -67984,7 +68060,7 @@ var Service = class Service extends Object$1 {
67984
68060
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
67985
68061
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
67986
68062
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
67987
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
68063
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
67988
68064
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
67989
68065
  }
67990
68066
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -67994,7 +68070,7 @@ var Service = class Service extends Object$1 {
67994
68070
  if ("publicKeys" in values && values.publicKeys != null) {
67995
68071
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
67996
68072
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
67997
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
68073
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
67998
68074
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
67999
68075
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
68000
68076
  }
@@ -68005,7 +68081,7 @@ var Service = class Service extends Object$1 {
68005
68081
  if ("assertionMethods" in values && values.assertionMethods != null) {
68006
68082
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
68007
68083
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
68008
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
68084
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
68009
68085
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
68010
68086
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
68011
68087
  }
@@ -68013,7 +68089,7 @@ var Service = class Service extends Object$1 {
68013
68089
  else throw new TypeError("The gateway must be of type URL.");
68014
68090
  if ("gateways" in values && values.gateways != null) {
68015
68091
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
68016
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
68092
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
68017
68093
  else throw new TypeError("The gateways must be an array of type URL.");
68018
68094
  }
68019
68095
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
@@ -68051,7 +68127,7 @@ var Service = class Service extends Object$1 {
68051
68127
  this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
68052
68128
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
68053
68129
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
68054
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
68130
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
68055
68131
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
68056
68132
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
68057
68133
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -68075,7 +68151,7 @@ var Service = class Service extends Object$1 {
68075
68151
  if ("aliases" in values && values.aliases != null) {
68076
68152
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
68077
68153
  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)) {
68078
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
68154
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
68079
68155
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
68080
68156
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
68081
68157
  }
@@ -68086,7 +68162,7 @@ var Service = class Service extends Object$1 {
68086
68162
  if ("services" in values && values.services != null) {
68087
68163
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
68088
68164
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
68089
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
68165
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
68090
68166
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
68091
68167
  } else throw new TypeError("The services must be an array of type DidService | URL.");
68092
68168
  }
@@ -68106,7 +68182,8 @@ var Service = class Service extends Object$1 {
68106
68182
  *
68107
68183
  * @param values The values to update the clone with.
68108
68184
  * @param options The options to use for cloning.
68109
- * @returns The cloned instance.
68185
+ * @returns The cloned instance with its own property arrays. Nested objects
68186
+ * and URLs are shared with this instance.
68110
68187
  */
68111
68188
  clone(values = {}, options = {}) {
68112
68189
  if (this._warning != null) {
@@ -68117,15 +68194,15 @@ var Service = class Service extends Object$1 {
68117
68194
  };
68118
68195
  }
68119
68196
  const clone = super.clone(values, options);
68120
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
68197
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
68121
68198
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
68122
68199
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
68123
68200
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
68124
68201
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
68125
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
68202
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
68126
68203
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
68127
68204
  }
68128
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
68205
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
68129
68206
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
68130
68207
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
68131
68208
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -68134,12 +68211,12 @@ var Service = class Service extends Object$1 {
68134
68211
  if ("publicKeys" in values && values.publicKeys != null) {
68135
68212
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
68136
68213
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
68137
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
68214
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
68138
68215
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
68139
68216
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
68140
68217
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
68141
68218
  }
68142
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
68219
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
68143
68220
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
68144
68221
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
68145
68222
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -68148,99 +68225,99 @@ var Service = class Service extends Object$1 {
68148
68225
  if ("assertionMethods" in values && values.assertionMethods != null) {
68149
68226
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
68150
68227
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
68151
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
68228
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
68152
68229
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
68153
68230
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
68154
68231
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
68155
68232
  }
68156
- clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
68233
+ clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
68157
68234
  if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
68158
68235
  else throw new TypeError("The gateway must be of type URL.");
68159
68236
  if ("gateways" in values && values.gateways != null) {
68160
68237
  if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
68161
- if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
68238
+ if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
68162
68239
  else throw new TypeError("The gateways must be an array of type URL.");
68163
68240
  }
68164
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
68241
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
68165
68242
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
68166
68243
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
68167
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
68244
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
68168
68245
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
68169
68246
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
68170
68247
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
68171
68248
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
68172
68249
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
68173
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
68250
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
68174
68251
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
68175
68252
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
68176
68253
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
68177
68254
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
68178
68255
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
68179
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
68256
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
68180
68257
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
68181
68258
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
68182
68259
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
68183
68260
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
68184
68261
  } else throw new TypeError("The following must be of type Collection | URL.");
68185
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
68262
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
68186
68263
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
68187
68264
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
68188
68265
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
68189
68266
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
68190
68267
  } else throw new TypeError("The followers must be of type Collection | URL.");
68191
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
68268
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
68192
68269
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
68193
68270
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
68194
68271
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
68195
68272
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
68196
68273
  } else throw new TypeError("The liked must be of type Collection | URL.");
68197
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
68274
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
68198
68275
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
68199
68276
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
68200
68277
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
68201
68278
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
68202
68279
  } else throw new TypeError("The featured must be of type Collection | URL.");
68203
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
68280
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
68204
68281
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
68205
68282
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
68206
68283
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
68207
68284
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
68208
68285
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
68209
- clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
68286
+ clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
68210
68287
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
68211
68288
  if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
68212
68289
  clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
68213
68290
  clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
68214
68291
  } else throw new TypeError("The featuredCollections must be of type Collection | URL.");
68215
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
68292
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
68216
68293
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
68217
68294
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
68218
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
68295
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
68219
68296
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
68220
68297
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
68221
68298
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
68222
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
68299
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
68223
68300
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
68224
68301
  else throw new TypeError("The endpoints must be of type Endpoints.");
68225
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
68302
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
68226
68303
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
68227
68304
  else throw new TypeError("The discoverable must be of type boolean.");
68228
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
68305
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
68229
68306
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
68230
68307
  else throw new TypeError("The suspended must be of type boolean.");
68231
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
68308
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
68232
68309
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
68233
68310
  else throw new TypeError("The memorial must be of type boolean.");
68234
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
68311
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
68235
68312
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
68236
68313
  else throw new TypeError("The indexable must be of type boolean.");
68237
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
68314
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
68238
68315
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
68239
68316
  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) {
68240
68317
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
68241
68318
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
68242
68319
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
68243
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
68320
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
68244
68321
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
68245
68322
  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) {
68246
68323
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -68249,12 +68326,12 @@ var Service = class Service extends Object$1 {
68249
68326
  if ("aliases" in values && values.aliases != null) {
68250
68327
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
68251
68328
  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)) {
68252
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
68329
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
68253
68330
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
68254
68331
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
68255
68332
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
68256
68333
  }
68257
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
68334
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
68258
68335
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
68259
68336
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
68260
68337
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -68263,15 +68340,15 @@ var Service = class Service extends Object$1 {
68263
68340
  if ("services" in values && values.services != null) {
68264
68341
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
68265
68342
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
68266
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
68343
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
68267
68344
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
68268
68345
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
68269
68346
  } else throw new TypeError("The services must be an array of type DidService | URL.");
68270
68347
  }
68271
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
68348
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
68272
68349
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
68273
68350
  else throw new TypeError("The followedMessage must be of type string.");
68274
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
68351
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
68275
68352
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
68276
68353
  else throw new TypeError("The cat must be of type boolean.");
68277
68354
  return clone;
@@ -73428,7 +73505,7 @@ var Source = class {
73428
73505
  else throw new TypeError("The content must be of type string | LanguageString.");
73429
73506
  if ("contents" in values && values.contents != null) {
73430
73507
  if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
73431
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
73508
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
73432
73509
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
73433
73510
  }
73434
73511
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
@@ -73445,7 +73522,8 @@ var Source = class {
73445
73522
  *
73446
73523
  * @param values The values to update the clone with.
73447
73524
  * @param options The options to use for cloning.
73448
- * @returns The cloned instance.
73525
+ * @returns The cloned instance with its own property arrays. Nested objects
73526
+ * and URLs are shared with this instance.
73449
73527
  */
73450
73528
  clone(values = {}, options = {}) {
73451
73529
  if (this._warning != null) {
@@ -73457,15 +73535,15 @@ var Source = class {
73457
73535
  }
73458
73536
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
73459
73537
  copyPortableProvenance(this, clone);
73460
- clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
73538
+ clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
73461
73539
  if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
73462
73540
  else throw new TypeError("The content must be of type string | LanguageString.");
73463
73541
  if ("contents" in values && values.contents != null) {
73464
73542
  if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
73465
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
73543
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
73466
73544
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
73467
73545
  }
73468
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
73546
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
73469
73547
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
73470
73548
  else throw new TypeError("The mediaType must be of type string.");
73471
73549
  return clone;
@@ -73740,7 +73818,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
73740
73818
  *
73741
73819
  * @param values The values to update the clone with.
73742
73820
  * @param options The options to use for cloning.
73743
- * @returns The cloned instance.
73821
+ * @returns The cloned instance with its own property arrays. Nested objects
73822
+ * and URLs are shared with this instance.
73744
73823
  */
73745
73824
  clone(values = {}, options = {}) {
73746
73825
  if (this._warning != null) {
@@ -73932,7 +74011,8 @@ var TentativeReject = class TentativeReject extends Reject {
73932
74011
  *
73933
74012
  * @param values The values to update the clone with.
73934
74013
  * @param options The options to use for cloning.
73935
- * @returns The cloned instance.
74014
+ * @returns The cloned instance with its own property arrays. Nested objects
74015
+ * and URLs are shared with this instance.
73936
74016
  */
73937
74017
  clone(values = {}, options = {}) {
73938
74018
  if (this._warning != null) {
@@ -74119,7 +74199,7 @@ var Tombstone = class Tombstone extends Object$1 {
74119
74199
  else throw new TypeError("The formerType must be of type $EntityType.");
74120
74200
  if ("formerTypes" in values && values.formerTypes != null) {
74121
74201
  if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot initialize both formerType and formerTypes at the same time.");
74122
- if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
74202
+ if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
74123
74203
  else throw new TypeError("The formerTypes must be an array of type $EntityType.");
74124
74204
  }
74125
74205
  if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
@@ -74136,7 +74216,8 @@ var Tombstone = class Tombstone extends Object$1 {
74136
74216
  *
74137
74217
  * @param values The values to update the clone with.
74138
74218
  * @param options The options to use for cloning.
74139
- * @returns The cloned instance.
74219
+ * @returns The cloned instance with its own property arrays. Nested objects
74220
+ * and URLs are shared with this instance.
74140
74221
  */
74141
74222
  clone(values = {}, options = {}) {
74142
74223
  if (this._warning != null) {
@@ -74147,15 +74228,15 @@ var Tombstone = class Tombstone extends Object$1 {
74147
74228
  };
74148
74229
  }
74149
74230
  const clone = super.clone(values, options);
74150
- clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
74231
+ clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.slice();
74151
74232
  if ("formerType" in values && values.formerType != null) if (isEntityType(values.formerType)) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [values.formerType];
74152
74233
  else throw new TypeError("The formerType must be of type $EntityType.");
74153
74234
  if ("formerTypes" in values && values.formerTypes != null) {
74154
74235
  if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot update both formerType and formerTypes at the same time.");
74155
- if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
74236
+ if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
74156
74237
  else throw new TypeError("The formerTypes must be an array of type $EntityType.");
74157
74238
  }
74158
- clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
74239
+ clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice();
74159
74240
  if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
74160
74241
  else throw new TypeError("The deleted must be of type Temporal.Instant.");
74161
74242
  return clone;
@@ -74460,7 +74541,8 @@ var Travel = class Travel extends IntransitiveActivity {
74460
74541
  *
74461
74542
  * @param values The values to update the clone with.
74462
74543
  * @param options The options to use for cloning.
74463
- * @returns The cloned instance.
74544
+ * @returns The cloned instance with its own property arrays. Nested objects
74545
+ * and URLs are shared with this instance.
74464
74546
  */
74465
74547
  clone(values = {}, options = {}) {
74466
74548
  if (this._warning != null) {
@@ -74657,7 +74739,8 @@ var Undo = class Undo extends Activity {
74657
74739
  *
74658
74740
  * @param values The values to update the clone with.
74659
74741
  * @param options The options to use for cloning.
74660
- * @returns The cloned instance.
74742
+ * @returns The cloned instance with its own property arrays. Nested objects
74743
+ * and URLs are shared with this instance.
74661
74744
  */
74662
74745
  clone(values = {}, options = {}) {
74663
74746
  if (this._warning != null) {
@@ -74861,7 +74944,8 @@ var Update = class Update extends Activity {
74861
74944
  *
74862
74945
  * @param values The values to update the clone with.
74863
74946
  * @param options The options to use for cloning.
74864
- * @returns The cloned instance.
74947
+ * @returns The cloned instance with its own property arrays. Nested objects
74948
+ * and URLs are shared with this instance.
74865
74949
  */
74866
74950
  clone(values = {}, options = {}) {
74867
74951
  if (this._warning != null) {
@@ -75111,7 +75195,8 @@ var Video = class Video extends Document {
75111
75195
  *
75112
75196
  * @param values The values to update the clone with.
75113
75197
  * @param options The options to use for cloning.
75114
- * @returns The cloned instance.
75198
+ * @returns The cloned instance with its own property arrays. Nested objects
75199
+ * and URLs are shared with this instance.
75115
75200
  */
75116
75201
  clone(values = {}, options = {}) {
75117
75202
  if (this._warning != null) {
@@ -75318,7 +75403,8 @@ var View = class View extends Activity {
75318
75403
  *
75319
75404
  * @param values The values to update the clone with.
75320
75405
  * @param options The options to use for cloning.
75321
- * @returns The cloned instance.
75406
+ * @returns The cloned instance with its own property arrays. Nested objects
75407
+ * and URLs are shared with this instance.
75322
75408
  */
75323
75409
  clone(values = {}, options = {}) {
75324
75410
  if (this._warning != null) {